:root {
  --bg-color: #121212;
  --bg-secondary: #1e1e1e;
  --text-primary: #ffffff;
  --text-secondary: #aaaaaa;
  --accent-color: #ccff00; /* Neon Lime */
  --accent-hover: #b3e600;
  --font-main: "Manrope", sans-serif;
  --modal-overlay: rgba(0, 0, 0, 0.8);

  --debug-color: hsl(100 100 100 / .25);

  --x-large: 1340px;
  --large: 1200px;
}

/* Debug */
* {
  /* border: 1px solid var(--debug-color); */
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* -moz-osx-font-smoothing: grayscale; */
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.section-title {
  font-size: 2rem;
  font-size: clamp(
    1.8rem, 
    /* calc( 1.8rem + (100vw - 360px) / (420 - 360) * (2.0 - 1.8) * 16 ), */
    calc( 1.8rem + (100vw - 360px) * 0.053333 ),
   2rem
  );
  margin-bottom: 2rem;
  border-left: 4px solid var(--accent-color);
  padding-left: 15px;
}

/* Buttons */
.btn {
  display: inline-block;
  /* display: block; */
  padding: 1rem 2rem;
  font-family: var(--font-main);
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease,
              box-shadow 0.3s ease,
              color 0.3s ease;
  font-size: 1.25rem;
  border-radius: .5rem;
  opacity: 1;

  & span {
    color: red;
  }
}

.btn--accent {
  background-color: var(--accent-color);
  /* color: var(--bg-color); */
  color: darkgreen;
}

.btn--accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(204, 255, 0, 0.3);
}

.btn--white {
  background-color: #fff;
  color: var(--bg-color);
  border: 1px solid #fff;
}

.btn--white:hover {
  background-color: transparent;
  color: #fff;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.logo {
  font-weight: 800;
  font-size: 1.5rem;

  .newm-logo-cap {
    color: var(--accent-color);
  }
}


.nav__list {
  display: none; /* Mobile first hidden */
}

/* @media (min-width: 1200px) and (max-width: 1600px) { */
/*   body { */
/*     font-size: calc( */
/*       16px + (20 - 16) * ((100vw - 1200px) / (1600 - 1200)) */
/*     ); */
/*   } */
/* } */


@media (min-width: 1100px) and (max-width: 1340px) {
  .logo {
    font-size: clamp(
      1.1rem, 
      /* calc( 1.1rem + (100vw - 1100px) / (1340 - 1100) * (1.5 - 1.1)  ), */
      calc( 1.1rem + (100vw - 1100px) * 0.026672 ),
      1.5rem
    );
  }
}
@media (min-width: 1100px) {

  .nav__list {
    display: flex;
    gap: clamp(1rem, 1.3vw, 2rem);
  }

  .nav__link {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
  }

  .nav__link:hover {
    color: var(--accent-color);
  }

  .burger {
    display: none;
  }
}

/* Burger */
.burger {
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1100;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  position: absolute;
  transition: 0.3s;
}

.burger span:nth-child(1) {
  top: 0;
}
.burger span:nth-child(2) {
  top: 9px;
}
.burger span:nth-child(3) {
  top: 18px;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-color);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.4s ease;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu__list {
  text-align: center;
}

.mobile-menu__list li {
  margin: 2rem 0;
}

.mobile-menu__list a {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-color);

  &:hover, &:active {
    text-decoration: underline;
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 840px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero__container {
  /* display: flex; */
  display: grid;
  grid-template-columns: 1fr 585px;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.hero__content {
  flex: 1;
  z-index: 2;
}

.hero__title {
  opacity: 0.7;
  font-size: clamp(
    2.1rem,
    /* calc( 2.1rem + (100vw - 360px) / (420 - 360) * (2.5 - 2.1) * 16 ), */
    calc( 2.1rem + (100vw - 360px) * 0.106667 ),
    2.5rem
  );
  margin-bottom: 2.5rem;
  line-height: 1.1;
}

.hero__slogan {
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 4.5rem;
  line-height: 1.1;
}

/* Mesh/Neon text effect simulation */
.hero__slogan span {
  font-weight: 800;
  color: var(--accent-color);
  text-shadow: 0 0 10px rgba(204, 255, 0, 0.5);
  display: inline-block;
}

.hero__image {
  display: none; /* Hidden on mobile */
  flex: 1;
  height: 100%;
  justify-content: flex-end;
  align-items: flex-end;
}

p.button-asterisk {
  margin-block-start: 1.2rem;
  margin-inline-start: 1.2rem;

  & span {
    color: red;
  }
}

.trainer-cutout {
  max-height: 99%;
  object-fit: contain;
}

@media (min-width: 900px) {
  .hero__title {
    font-size: 3.5rem;
  }
  .hero__slogan {
    font-size: 2.65rem;
  }
  /* .hero__image { */
  /*   display: flex; */
  /* } */
}

@media (min-width: 766px) {
  .hero__image {
    display: flex;
  }
}


/* Section Common */
.section {
  padding: 3rem 0;
  scroll-margin-top: 60px;
}

/* About */
.about__grid {
  display: grid;
  gap: 2rem;
}

.about__mobile-photo img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

@media (min-width: 992px) {
  .about__grid {
    grid-template-columns: 1fr 1fr;
  }
  .about__mobile-photo {
    display: none; /* Hide on desktop as it's in Hero */
  }
}

h5.about__lead {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  line-height: 1.6;
  padding-left: 1.0rem;
  text-indent: -1.0rem;

  span {
    color: var(--accent-color);
  }

  &:first-child {
    margin-bottom: .2rem;
  }
}

.about__info {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.about__education strong {
  color: var(--accent-color);
}

.about__stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.about__stats li strong {
  display: block;
  font-size: 1.5rem;
  color: var(--accent-color);

  &.less {
    font-size: 1.2rem;
  }
}

.edu-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: 8px;
}

.edu-list img {
  border-radius: 50%;
}

@media (max-width: 419px) {
  .edu-list li {
    flex-direction: column;
  }
}


/* Cards Grid (Achievements, Services) */
.achievements-grid,
.services__grid,
.coaching-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.2rem;
}
.services__grid {
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
}
@media (max-width: 450px) {
  .services__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

.services__intro {
  margin-block: 1rem 1.4rem;
  font-size: 1.2rem;

  em {
    color: var(--accent-color);
    font-style: normal;
  }
}

.coaching-grid .card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.4rem;
  align-items: center;

  img {
    max-height: 120px;
  }
}
@media (max-width: 419px) {
 .coaching-grid .card {
    grid-template-columns: 1fr;
    grid-template-rows: 120px auto;
    align-items: center;
    justify-items: center;
    text-align: center;
  }
}

.card,
.service-card {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 12px;
  transition: transform 0.3s;
}

.card:hover,
.service-card:hover {
  transform: translateY(-5px);
}

.service-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

h3.achievements, 
.coaching-exp h3 {
  margin-block: 3.4rem 1rem;
  border-left: 3px solid var(--accent-color);
  padding-inline-start: .6rem;

  span {
    color: hsl(from currentcolor h s l / .4)
  }
}

.achievement-card {
  display: grid;
  grid-template-columns: subgrid;
  grid-template-rows: 200px 1fr;
  align-items: center;

  img {
    margin-inline: auto; 
    max-width: 200px;
    max-height: 200px;
  }

  & p {
    margin-block-start: 1rem;
    color: var(--accent-color);
    text-align: center;
  }
}


.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0;
}

/* Rehab */
.rehab-block {
  margin-top: 3rem;
  padding: 1.2rem 2rem;
  border-left: 6px solid transparent;
  background:
   repeating-linear-gradient(
    31deg,
     var(--accent-color) 0 12px,
     transparent 12px 20px
   ) left / 6px 100% no-repeat;

  strong {
    color: var(--accent-color);
  }
}

/* Methods */
.conditions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.link-accent {
  color: var(--accent-color);
  text-decoration: underline;
}

.steps-grid {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); */
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 700px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.step {
  text-align: center;
  background: var(--bg-secondary);
  padding: 2rem 1rem;
  border-radius: 8px;
}

.step span {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--accent-color);
}


/* When and Where */
section.when-and-where {
  h4 {
    color: var(--accent-color);
    margin-block-start: 1.6rem;
  }

  h5 {
    font-weight: bold;
    font-size: 1.2rem;
    margin-block-end: .5rem;
  }

  p {
    margin-block: 1rem;
  }
}

/* Testimonials */
.review-card {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 12px;
  border-left: 2px solid var(--accent-color);

  p {
    margin-block: 1rem;
    font-style: italic;
  }
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;

  h3 {
    line-height: 1.4;
  }
}

/* Prices */
.prices__desc {
  font-size: 1.1rem;

  &.accent {
    color: var(--accent-color);
  }
}
.price-pill {
  display: inline-block;
  padding: 1rem 2rem;
  border: 1px solid var(--text-secondary);
  margin: 0.5rem;
  border-radius: 50px;
}

.price-pill.accent {
  border-color: var(--accent-color);
  color: var(--accent-color);
  font-weight: 700;
}

.prices__options {
  margin: 2rem 0;
}

/* Contacts */
.contacts__container {
  /* gap: 2rem; */
  
}

@media (min-width: 768px) {
  .contacts__container {
    display: grid;
    grid-template-rows: 1fr 4fr;
    gap: 2rem;

    .contacts__list {
      display: flex;
      gap: 1.6rem;
    }
  }
}


.contacts__list li {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  border-left: 1px solid currentColor;
  padding-left: 1rem;

  a {
    color: var(--accent-color);

    &:hover {
      text-decoration: underline;
    }
  }

  svg.bi-envelope {
    translate: 0 2px;
  }
}

p.map-link-container {
  margin-block-start: -.4rem;
}

.address {
  margin-top: 1rem;

  p {
    display: inline;
    font-size: 1.2rem;
    padding-inline-end: 1rem;
  }
}

a#load-map {
    display: inline-block;
    padding: .2rem 1rem;
    border: 1px currentColor solid;
    border-radius: 1rem;
  color: var(--accent-color);

  &:hover {
    text-decoration: underline;
  }
}

#map {
  background: url("images/map-background-v2.webp") center center no-repeat wheat;
  width: 100%;
  height: 100%;
}

button.fullscreen {
  display: block;
  background-image: url(images/ymaps-fullscreen.svg);
  width: 3.25rem;
  height: 3.25rem;
  background-color: hsl(0, 0%, 100%);
  background-position: 50% 50%;
  background-repeat: no-repeat;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;

  &.exit-fullscreen {
    background-image: url(images/ymaps-fullscreen-exit.svg);
  }
}

@media (max-width: 768px) {
  #map {
    width: 84vw;
    height: 60vh;
  }

  .address {
    margin-block-start: 1.6rem;
  }

  a#load-map {
    margin-block: .6rem 1.6rem;
  }

  .logo {
    font-size: clamp(
      1.3rem, 
      /* calc( 1.3rem + (100vw - 360px) / (420 - 360) * (1.5  - 1.3) * 16 ), */
      calc( 1.3rem + (100vw - 360px) * 0.053333 ),
      1.5rem
    );
  }
}

/* Footer */
.footer {
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}
.newmental-ru,
.disclaimer {
  font-size: 0.8rem;
  opacity: 0.75;
  margin-top: 0.5rem;

  a {
    color: var(--accent-color);

    &:hover {
      text-decoration: underline;
    }
  }

  &:hover {
    opacity: .95;
  }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;

  & h2 {
    color: var(--accent-color);

    & span {
      color: red;
    }
  }

  & p.button-asterisk {
    margin: 0.2rem 0 1.5rem -.5rem;
  }

  & button {
    margin-block-start: 1.2rem;
  }
}

.modal.open {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--modal-overlay);
  backdrop-filter: blur(5px);
}

.modal__content {
  position: relative;
  background: var(--bg-secondary);
  padding: 2.5rem;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 2001;
}

.mobile-menu__close,
.modal__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: var(--bg-color);
  border: 1px solid #333;
  color: #fff;
  border-radius: 8px;
  font-family: var(--font-main);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}

.form-hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.8;
}

.full-width {
  width: 100%;
}

/* Honeypot Security - Hidden from visual users but seen by bots */
.honeypot-field {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  z-index: -1;
  overflow: hidden;
}

.form-status {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
}
