/* ========================================
   Минималистичный дизайн сайта
   Цветовая схема: белый, черный, синий акцент
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Raleway:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  filter: grayscale(100%) sepia(10%);
}

:root {
  --color-white: #ffffff;
  --color-black: #000000;
  --color-text: #1a1a1a;
  --color-light-gray: #f8f8f6;
  --color-border: #e5e5e5;
  --color-blue: #1a1a2e;
  --color-blue-hover: #0d1117;
  --color-blue-light: #f0f0ee;

  --font-main: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 56px;
  --spacing-xxl: 96px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-white);
  color: var(--color-text);
  line-height: 1.75;
  font-size: 16px;
}

/* ========================================
   Типография
   ======================================== */

h1, h2, h3 {
  font-family: var(--font-heading);
}

h1 {
  font-size: 3.375rem;
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: var(--spacing-lg);
  letter-spacing: -0.01em;
}

h2 {
  font-size: 2.125rem;
  font-weight: 700;
  line-height: 1.22;
  margin-bottom: var(--spacing-md);
  letter-spacing: 0;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
}

h4 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: var(--spacing-sm);
  letter-spacing: 0.01em;
}

p {
  margin-bottom: var(--spacing-md);
  line-height: 1.75;
}

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-blue-hover);
}

/* ========================================
   Кнопки
   ======================================== */

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-main);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.btn-primary {
  background-color: var(--color-blue);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-blue-hover);
  color: var(--color-white);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-blue);
  border: 1px solid var(--color-blue);
}

.btn-secondary:hover {
  background-color: var(--color-blue);
  color: var(--color-white);
}

.btn-group {
  display: flex;
  flex-direction: row;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  margin-bottom: var(--spacing-lg);
  align-items: center;
}

@media (max-width: 480px) {
  .btn-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-group .btn {
    width: 100%;
  }
}

/* ========================================
   Навигация
   ======================================== */

header {
  background-color: var(--color-white);
  border-bottom: 1px solid transparent;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: border-color 0.3s ease;
}

header.scrolled {
  border-bottom-color: var(--color-border);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-md) 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.logo:hover {
  color: var(--color-text);
}

.nav-links {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
}

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #555;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--color-text);
}

/* Активная страница */
.nav-links a.nav-active {
  color: var(--color-text);
  font-weight: 600;
}

.nav-links a.nav-active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--color-text);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
}

.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-text);
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    display: block;
    padding: 14px 40px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
}

/* ========================================
   Секции
   ======================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: var(--spacing-xxl) var(--spacing-lg);
  border-top: 1px solid var(--color-border);
}

.section:nth-child(even) {
  background-color: var(--color-light-gray);
}

.section-title {
  text-align: left;
  margin-bottom: var(--spacing-xl);
}

/* ========================================
   Первый экран (Hero)
   ======================================== */

.hero {
  height: 100vh;
  max-height: 100vh;
  padding: 0;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.hero-inner {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 100%;
}

.hero-content {
  flex: 1;
  min-width: 0;
  padding: 60px 60px 40px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  text-align: left;
}

/* Убираем margin у детей — управляем отступами через gap */
.hero-content h1,
.hero-content .hero-description,
.hero-content .hero-specialist,
.hero-content .btn-group {
  margin-bottom: 0;
}

.hero-photo-wrap {
  flex: 0 0 auto;
  background-color: #f5f5f3;
  overflow: hidden;
}

.hero-photo {
  height: 100vh;
  width: auto;
  max-width: 55vw;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(100%) sepia(10%);
}

@media (max-width: 900px) {
  .hero {
    height: auto;
    max-height: none;
  }
  .hero-inner {
    flex-direction: column;
  }
  .hero-content {
    padding: 50px 32px 40px;
    order: 1;
    gap: 14px;
  }
  .hero-photo-wrap {
    order: 2;
    width: 100%;
    overflow: hidden;
    max-height: 320px;
  }
  .hero-photo {
    object-fit: cover;
    object-position: center top;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: 320px;
  }
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #666;
  margin-bottom: 0;
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(36px, 4.5vw, 68px);
  line-height: 1.05;
  margin-bottom: 0;
  max-width: none;
}

.hero-description {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #444;
  margin-bottom: 0;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.hero .btn-group {
  margin-bottom: 0;
  gap: 12px;
}

.hero-specialist {
  margin-bottom: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}

.specialist-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.specialist-title {
  font-size: 0.875rem;
  color: #888;
  letter-spacing: 0.01em;
}

@media (max-width: 768px) {
  .hero-description {
    font-size: 1rem;
  }
}

/* ========================================
   Обо мне (Doctor About)
   ======================================== */

.about-me-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: var(--spacing-xl);
  align-items: start;
}

.about-me-content {
  /* text column */
}

.about-me-lead {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.65;
  margin-bottom: var(--spacing-lg);
}

.about-me-content p {
  font-size: 1.05rem;
  line-height: 1.85;
}

.about-me-photos {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.about-photo {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.11);
  display: block;
}

.about-photo--sm {
  width: 78%;
  align-self: flex-end;
}

@media (max-width: 900px) {
  .about-me-layout {
    grid-template-columns: 1fr;
  }
  .about-me-photos {
    flex-direction: row;
    align-items: flex-start;
  }
  .about-photo {
    width: 50%;
  }
  .about-photo--sm {
    width: 44%;
    align-self: auto;
  }
}

@media (max-width: 640px) {
  .about-me-photos {
    flex-direction: column;
  }
  .about-photo,
  .about-photo--sm {
    width: 100%;
  }
}

/* ========================================
   О себе (About) — Symptoms Infographic
   ======================================== */

.symptoms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background-color: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: var(--spacing-xl);
}

.symptom-card {
  background: var(--color-white);
  padding: var(--spacing-xl) var(--spacing-lg);
  display: flex;
  gap: var(--spacing-md);
  align-items: flex-start;
  position: relative;
  transition: background 0.2s ease;
  border-left: 3px solid transparent;
}

.symptom-card:hover {
  background: #f4f8ff;
  border-left-color: var(--color-blue);
}

.symptom-num {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-blue);
  opacity: 0.10;
  flex-shrink: 0;
  letter-spacing: -0.04em;
  user-select: none;
  margin-top: -6px;
}

.symptom-body h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
  letter-spacing: 0;
}

.symptom-body p {
  font-size: 1.05rem;
  color: #777;
  line-height: 1.65;
  margin: 0;
}

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

.about-intro {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
}

.about-list {
  list-style: none;
  margin-bottom: var(--spacing-xl);
}

.about-list li {
  padding: var(--spacing-md) 0;
  padding-left: var(--spacing-lg);
  position: relative;
  line-height: 1.7;
}

.about-list li:before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-blue);
  font-weight: bold;
}

.about-approach {
  background-color: var(--color-light-gray);
  padding: var(--spacing-lg);
  border-radius: 4px;
  margin-top: var(--spacing-xl);
}

/* ========================================
   Принципы работы
   ======================================== */

.principles-list {
  max-width: 680px;
}

.principle-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid #e8e6e0;
}

.principle-row:last-of-type {
  border-bottom: 1px solid #e8e6e0;
}

.principle-num {
  font-size: 11px;
  color: #aaa;
  font-weight: 600;
  letter-spacing: 0.08em;
  min-width: 24px;
  flex-shrink: 0;
  padding-top: 2px;
}

.principle-text {
  margin: 0;
  line-height: 1.6;
}

.principle-sub {
  color: #888;
  font-weight: 400;
}

.principles-footer {
  padding-top: 28px;
  padding-left: 44px;
}

.principles-footer p {
  font-style: italic;
  color: #888;
  margin-bottom: 4px;
  line-height: 1.6;
}

/* ========================================
   Для кого это
   ======================================== */

.for-whom-lead {
  font-size: 15px;
  color: #888;
  margin-bottom: 1.5rem;
}

.for-whom-list {
  max-width: 680px;
  border-top: 1px solid #e8e6e0;
}

.for-whom-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid #e8e6e0;
}

.for-whom-text {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

.approach-sport {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
  padding: var(--spacing-xl);
}

.sport-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.sport-collage-item {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.sport-collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.sport-collage-item:nth-child(2) img { object-position: center 20%; }
.sport-collage-item:nth-child(3) img { object-position: center top; }
.sport-collage-item:nth-child(4) img { object-position: center 15%; }

.approach-sport-text h3 {
  margin-bottom: var(--spacing-md);
}

.approach-sport-text p {
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

.approach-sport-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .approach-sport {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  .approach-sport-photo {
    width: 100%;
  }
  .sport-collage {
    gap: 5px;
  }
  .sport-collage-item {
    border-radius: 8px;
  }
}

/* ========================================
   Steps (Как проходит работа)
   ======================================== */

.steps-list {
  max-width: 600px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-icon-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 44px;
}

.step-circle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-blue);
  background: var(--color-white);
}

.step-circle--dark {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: var(--color-white);
}

.step-line {
  width: 1px;
  background: var(--color-border);
  flex: 1;
  min-height: 40px;
  margin: 6px 0;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 2px;
}

.step-arrow {
  display: block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--color-border);
}

.step-body {
  padding-bottom: 36px;
  flex: 1;
  min-width: 0;
}

.step-num {
  font-size: 10px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
  font-family: var(--font-main);
}

.step-desc {
  font-size: 1.05rem;
  color: #666;
  line-height: 1.7;
  margin: 0;
}

/* Результат */
.step--result .step-body {
  padding-bottom: 0;
}

.step-body--result {
  background: #f5f5f3;
  padding: 20px 24px;
  border-radius: 2px;
}

.step-title--result {
  font-size: 1.2rem;
  font-family: var(--font-heading);
}

.step--result .step-num {
  color: var(--color-blue);
  font-weight: 700;
}

/* ========================================
   Карточки (Cards)
   ======================================== */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.card {
  background-color: var(--color-light-gray);
  border: none;
  padding: var(--spacing-lg);
  border-radius: 0;
  transition: background 0.2s ease;
}

.card:hover {
  background-color: #efefec;
}

.card h3 {
  color: var(--color-blue);
  margin-bottom: var(--spacing-md);
}

.card-list {
  list-style: none;
  margin: var(--spacing-md) 0;
}

.card-list li {
  padding: var(--spacing-sm) 0;
  padding-left: var(--spacing-md);
  position: relative;
}

.card-list li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-blue);
  font-weight: bold;
}

/* ========================================
   Цены / Форматы
   ======================================== */

.pricing-card {
  background-color: var(--color-light-gray);
  border: none;
  padding: var(--spacing-xl);
  border-radius: 0;
  text-align: left;
  transition: background 0.2s ease;
}

.pricing-card:hover {
  background-color: #efefec;
}

.pricing-card h3 {
  color: var(--color-blue);
  margin-bottom: var(--spacing-md);
}

.pricing-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  margin: var(--spacing-lg) 0;
}

.pricing-description {
  color: #666;
  margin-bottom: var(--spacing-lg);
  line-height: 1.7;
}

.pricing-features {
  text-align: left;
  margin: var(--spacing-lg) 0;
  list-style: none;
  padding-left: 0;
}

.pricing-features li {
  padding: var(--spacing-sm) 0;
  padding-left: var(--spacing-md);
  position: relative;
  color: #555;
}

.pricing-features li:before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-blue);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

/* ========================================
   FAQ
   ======================================== */

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: var(--spacing-sm) 0;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-question {
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--color-blue);
}

.faq-toggle {
  font-size: 1.25rem;
  color: var(--color-blue);
  transition: transform 0.2s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer {
  margin-top: var(--spacing-xs);
  color: #666;
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* ========================================
   Форма
   ======================================== */

.form-group {
  margin-bottom: var(--spacing-md);
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: var(--color-text);
}

input,
textarea,
select {
  padding: 12px var(--spacing-sm);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-container {
  max-width: 600px;
  margin: var(--spacing-xl) auto;
  background-color: var(--color-light-gray);
  padding: var(--spacing-xl);
  border-radius: 4px;
}

/* ========================================
   Футер
   ======================================== */

/* ========================================
   Проект «Не гипертония» — баннер
   ======================================== */

.not-hypertension-bar {
  border-top: 2px solid #c85a00;
  padding: 36px 0;
  background: var(--color-white);
}

.not-hypertension-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.not-hypertension-left {
  flex: 1;
  min-width: 0;
}

.not-hypertension-label {
  display: block;
  font-size: 11px;
  color: #c85a00;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 8px;
}

.not-hypertension-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 8px;
  font-family: var(--font-main);
  color: #c85a00;
}

.not-hypertension-desc {
  font-size: 14px;
  color: #888;
  margin-bottom: 14px;
  line-height: 1.5;
}

.not-hypertension-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nh-tag {
  border: 1px solid #e0e0e0;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  color: #666;
  white-space: nowrap;
}

.not-hypertension-right {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .not-hypertension-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

footer {
  background-color: var(--color-text);
  color: var(--color-white);
  padding: var(--spacing-xl) var(--spacing-lg);
  text-align: center;
  border-top: 1px solid var(--color-border);
}

footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

footer a {
  color: var(--color-white);
}

footer a:hover {
  text-decoration: underline;
}

/* ========================================
   Утилиты
   ======================================== */

.text-center {
  text-align: left;
}

.text-muted {
  color: #999;
}

.text-blue {
  color: var(--color-blue);
}

.mt-0 { margin-top: 0; }
.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }
.mt-xxl { margin-top: var(--spacing-xxl); }

.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }
.mb-xxl { margin-bottom: var(--spacing-xxl); }

.py-lg {
  padding-top: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
}

/* ========================================
   Аниматция и Эффекты
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   Адаптивность
   ======================================== */

@media (max-width: 640px) {
  :root {
    --spacing-lg: 24px;
    --spacing-xl: 40px;
    --spacing-xxl: 64px;
  }

  .section {
    padding: var(--spacing-xl) var(--spacing-lg);
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.625rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.8125rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Мобильные правки (max-width: 768px)
   ======================================== */

@media (max-width: 768px) {
  body {
    font-size: 15px;
    line-height: 1.5;
  }

  p {
    font-size: 15px;
    line-height: 1.5;
  }

  .about-me-lead {
    font-size: 17px;
    line-height: 1.4;
  }

  .symptom-card {
    padding: 16px;
    gap: 12px;
  }

  .symptom-num {
    font-size: 24px;
  }

  .step-body {
    padding-bottom: 16px;
  }

  .step-title {
    font-size: 17px;
  }

  .step-desc {
    font-size: 14px;
    line-height: 1.4;
  }

  .pricing-features li {
    padding: 6px 0;
    font-size: 14px;
    line-height: 1.4;
  }

  .principle-row {
    padding: 12px 0;
  }

  .principle-text {
    font-size: 15px;
    line-height: 1.4;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

/* ── Shared video cards (index, formats, reviews) ── */
.video-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.video-card {
  background: #ffffff;
  border: 0.5px solid #e8e6e0;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover {
  border-color: #cccccc;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.video-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0d0d1a;
  overflow: hidden;
}

.video-thumb {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  display: block;
}

.video-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.video-thumb:hover .video-thumb-overlay {
  background: rgba(0,0,0,0.45);
}

.play-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.video-thumb:hover .play-circle {
  transform: scale(1.08);
}

.play-circle svg {
  width: 18px;
  height: 18px;
  fill: #1a1a2e;
  margin-left: 3px;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-info {
  padding: 16px 20px 18px;
}

.video-name {
  font-size: 15px;
  font-weight: 500;
  color: #1a1a2e;
  margin-bottom: 5px;
}

.video-caption {
  font-size: 13px;
  color: #666;
  line-height: 1.55;
}

@media (max-width: 768px) {
  .video-grid-2 { grid-template-columns: 1fr; gap: 16px; }
}

/* Overrides for inline text-align: center in HTML */
[style*="text-align: center"],
[style*="margin: 0 auto; text-align: center"],
.text-center {
  text-align: left !important;
}
