/* ===== Variables ===== */
:root {
  --color-blue: #5B9BD5;
  --color-blue-dark: #3A7CA5;
  --color-blue-light: #E8F4FC;
  --color-mint: #B8E0D2;
  --color-mint-light: #E8F5F0;
  --color-beige: #F5F0E8;
  --color-beige-dark: #E8DFD0;
  --color-accent: #F5A623;
  --color-accent-hover: #E8940F;
  --color-accent-light: #FFF4E0;
  --color-text: #2C3E50;
  --color-text-muted: #5A6C7D;
  --color-white: #FFFFFF;
  --color-border: #D4E4ED;

  --font-sans: 'Nunito', system-ui, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;

  --header-height: 72px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(44, 62, 80, 0.08);
  --shadow-lg: 0 8px 32px rgba(44, 62, 80, 0.12);
  --transition: 0.2s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-blue-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-blue);
}

ul {
  list-style: none;
}

address {
  font-style: normal;
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section--mint {
  background: var(--color-mint-light) url('../assets/section-bg-mint.jpg') center/cover;
  background-blend-mode: multiply;
}

.section--beige {
  background: var(--color-beige) url('../assets/section-bg-beige.jpg') center/cover;
  background-blend-mode: multiply;
}

.section--blue {
  background:
    linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)),
    url('../assets/section-bg-blue.jpg') center/cover;
  color: var(--color-text);
}

.section--contacts {
  background: var(--color-blue-light);
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
  color: var(--color-text);
}

.section__title--light {
  color: var(--color-text);
  text-align: left;
}

.section__lead {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

.section__cta {
  text-align: center;
  margin-top: 48px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--accent {
  background: var(--color-accent);
  color: var(--color-text);
  border-color: var(--color-accent);
}

.btn--accent:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-text);
}

.btn--primary {
  background: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
}

.btn--primary:hover {
  background: var(--color-blue-dark);
  border-color: var(--color-blue-dark);
  color: var(--color-white);
}

.btn--outline {
  background: transparent;
  color: var(--color-blue-dark);
  border-color: var(--color-blue);
}

.btn--outline:hover {
  background: var(--color-blue-light);
}

.btn--sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.btn--full {
  width: 100%;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}

.logo__name {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
}

.logo__title {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.nav {
  display: flex;
  gap: 24px;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--color-blue);
}

.header__cta {
  flex-shrink: 0;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

.burger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.is-active span:nth-child(2) {
  opacity: 0;
}

.burger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  padding: calc(var(--header-height) + 60px) 0 80px;
  background: linear-gradient(180deg, var(--color-blue-light) 0%, var(--color-white) 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: center;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 20px;
  color: var(--color-text);
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero__trust {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero__photo-placeholder {
  background: linear-gradient(135deg, var(--color-mint) 0%, var(--color-blue-light) 100%);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blue-dark);
}

.hero__photo-placeholder svg {
  width: 120px;
  height: 120px;
}

.hero__photo-img {
  width: 100%;
  height: 220px;
  border-radius: 0;
  box-shadow: 0 12px 40px rgba(44, 62, 80, 0.18);
  object-fit: cover;
}

.hero__credentials {
  padding: 24px;
}

.hero__credentials-title {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-blue-dark);
  margin-bottom: 12px;
}

.hero__credentials-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.hero__credentials-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-mint);
  font-weight: 700;
}

/* ===== Cards ===== */
.cards {
  display: grid;
  gap: 24px;
}

.cards--6 {
  grid-template-columns: repeat(3, 1fr);
}

.cards--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

.card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.35;
}

.card__title a {
  color: var(--color-text);
}

.card__title a:hover {
  color: var(--color-blue);
}

.card__text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.card__link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.9rem;
}

.card--program {
  border-left: 4px solid var(--color-accent);
}

.card--article {
  display: flex;
  flex-direction: column;
}

.card--article .card__link {
  margin-top: auto;
}

/* ===== Services Table ===== */
.services-table-wrapper {
  overflow-x: auto;
  margin-bottom: 48px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.services-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  font-size: 0.95rem;
}

.services-table th,
.services-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.services-table th {
  background: var(--color-blue);
  color: var(--color-white);
  font-weight: 600;
  white-space: nowrap;
}

.services-table tbody tr:last-child td {
  border-bottom: none;
}

.services-table tbody tr:hover {
  background: var(--color-blue-light);
}

.services-table small {
  color: var(--color-text-muted);
  font-weight: 400;
}

.programs__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 32px;
}

/* ===== Advantages ===== */
.advantages {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.advantage {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.advantage__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blue);
  box-shadow: var(--shadow);
}

.advantage__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.advantage__text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===== Online ===== */
.online {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: center;
}

.online__content {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(58, 124, 165, 0.2);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(44, 62, 80, 0.12);
}

#online .section__title--light {
  color: #1f3b53;
}

.online__intro {
  font-size: 1.1rem;
  margin-bottom: 28px;
  opacity: 0.95;
  line-height: 1.7;
}

#online .online__intro,
#online .online__subtitle,
#online .online__list li,
#online .online__checklist li {
  color: #28465f;
  opacity: 1;
}

.online__subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 24px 0 12px;
}

.online__list {
  margin-bottom: 8px;
}

.online__list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  line-height: 1.6;
}

.online__list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.2rem;
}

.online__checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
}

.online__checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.online__visual {
  display: flex;
  justify-content: center;
}

.online__img {
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(44, 62, 80, 0.22);
}

.online__content .btn {
  margin-top: 10px;
}

.online__screen {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 280px;
}

.online__screen-header {
  height: 32px;
  background: var(--color-beige-dark);
}

.online__screen-body {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.online__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-mint), var(--color-blue-light));
}

.online__lines span {
  display: block;
  height: 8px;
  background: var(--color-beige);
  border-radius: 4px;
  margin-bottom: 8px;
}

.online__lines span:nth-child(1) { width: 180px; }
.online__lines span:nth-child(2) { width: 140px; }
.online__lines span:nth-child(3) { width: 160px; }

/* ===== Results ===== */
.results-list {
  max-width: 720px;
  margin: 0 auto;
}

.results-list li {
  position: relative;
  padding: 16px 0 16px 36px;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--color-border);
}

.results-list li:last-child {
  border-bottom: none;
}

.results-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* ===== Calculator ===== */
.calculator {
  max-width: 640px;
  margin: 0 auto;
}

.calculator__form {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.calc-question {
  border: none;
  margin-bottom: 24px;
  padding: 0;
}

.calc-question legend {
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 1rem;
  line-height: 1.4;
}

.calc-question label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 24px;
  cursor: pointer;
  font-size: 0.95rem;
}

.calculator__result {
  margin-top: 32px;
  padding: 28px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.calculator__result-text {
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* ===== Reviews ===== */
.reviews {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.review {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.review__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.review__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-blue);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.review__name {
  font-weight: 700;
  font-size: 1rem;
}

.review__diagnosis {
  font-size: 0.85rem;
  color: var(--color-blue-dark);
  font-weight: 600;
}

.review__text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
  font-style: italic;
}

.review__author {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.reviews__note {
  text-align: center;
  margin-top: 32px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ===== Certificates ===== */
.certificates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.certificate__placeholder {
  aspect-ratio: 3/4;
  background: linear-gradient(145deg, var(--color-beige) 0%, var(--color-beige-dark) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-muted);
  border: 2px dashed var(--color-border);
  line-height: 1.5;
}

/* ===== Contacts ===== */
.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contacts__address p {
  margin-bottom: 12px;
  font-size: 1rem;
  line-height: 1.6;
}

.contacts__address a {
  font-weight: 600;
}

.contacts__map {
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contacts__map iframe {
  display: block;
}

.contacts__map-links {
  padding: 12px 16px;
  background: var(--color-white);
  font-size: 0.9rem;
  text-align: center;
}

.contacts__form {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.contacts__form-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.form-field {
  display: block;
  margin-bottom: 16px;
}

.form-field span {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  transition: border-color var(--transition);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-blue);
}

.form-note {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.8);
  padding: 32px 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
}

.footer__nav {
  display: flex;
  gap: 24px;
}

.footer__nav a {
  color: rgba(255, 255, 255, 0.8);
}

.footer__nav a:hover {
  color: var(--color-white);
}

/* ===== Article Pages ===== */
.article-page {
  padding: calc(var(--header-height) + 40px) 0 80px;
}

.article-page__back {
  display: inline-block;
  margin-bottom: 24px;
  font-weight: 600;
  font-size: 0.9rem;
}

.article-page__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 16px;
  line-height: 1.25;
}

.article-page__meta {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.article-page__content {
  max-width: 720px;
}

.article-page__content h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 32px 0 16px;
}

.article-page__content p {
  margin-bottom: 16px;
  line-height: 1.75;
  color: var(--color-text-muted);
}

.article-page__content ul {
  margin: 16px 0 16px 24px;
  list-style: disc;
}

.article-page__content li {
  margin-bottom: 8px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.article-page__cta {
  margin-top: 48px;
  padding: 32px;
  background: var(--color-mint-light);
  border-radius: var(--radius);
  text-align: center;
}

.article-page__cta p {
  margin-bottom: 16px;
  font-weight: 600;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__trust {
    max-width: 400px;
  }

  .cards--6,
  .cards--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .online {
    grid-template-columns: 1fr;
  }

  .online__visual {
    order: -1;
  }

  .section__title--light {
    text-align: center;
  }

  .online__content {
    text-align: center;
  }

  .online__content .btn {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .header__cta {
    display: none;
  }

  .burger {
    display: flex;
  }

  .section {
    padding: 60px 0;
  }

  .cards--6,
  .cards--3,
  .advantages,
  .reviews,
  .certificates,
  .contacts {
    grid-template-columns: 1fr;
  }

  .services-table thead {
    display: none;
  }

  .services-table tr {
    display: block;
    margin-bottom: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
  }

  .services-table td {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
  }

  .services-table td:last-child {
    border-bottom: none;
  }

  .services-table td::before {
    content: attr(data-label);
    display: block;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-blue-dark);
    margin-bottom: 4px;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 1.5rem;
  }

  .btn--lg {
    white-space: normal;
    text-align: center;
  }
}

