/* ========================================
   LALI — PSYCHOLOGIST WEBSITE
   style.css
   ======================================== */

/* === FONTS === */
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-cyrillic-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-04FF;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-cyrillic-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-04FF;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dm-sans-latin-ext-400-normal.woff2') format('woff2'),
       url('../fonts/dm-sans-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dm-sans-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #ffffff;
  --bg2:       #f4fbfa;
  --bg3:       #e2f4f2;
  --bg4:       #c8ece8;
  --gold:      #3DBFAD;
  --gold-lt:   #a8ddd8;
  --text:      #1a1a1a;
  --muted:     #555555;
  --muted2:    #888888;
  --border:    #e0e0e0;
  --card-bg:   #ffffff;
  --ff-head:   'Playfair Display', Georgia, serif;
  --ff-body:   'DM Sans', sans-serif;
  --ease:      cubic-bezier(.4,0,.2,1);
  --shadow-sm: 0 2px 16px rgba(61,191,173,0.08);
  --shadow-md: 0 6px 32px rgba(61,191,173,0.12);
  --shadow-lg: 0 16px 64px rgba(61,191,173,0.16);
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--ff-head);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(44px, 6vw, 72px); }
h2 { font-size: clamp(32px, 4vw, 44px); }
h3 { font-size: clamp(22px, 3vw, 30px); }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* === SELECTION === */
::selection { background: var(--gold); color: #ffffff; }

/* === CONTAINER === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* === SECTION COMMON === */
.section { padding: 120px 0; }
.section--alt {
  background: linear-gradient(160deg, var(--bg2) 0%, #F7F0E6 100%);
}
.section--warm {
  background: linear-gradient(140deg, var(--bg3) 0%, #F0E6D6 40%, var(--bg2) 100%);
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.section__label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.section__title {
  margin-bottom: 16px;
  color: var(--text);
}
.section__subtitle {
  color: var(--muted);
  font-size: 18px;
  max-width: 600px;
  margin-bottom: 64px;
}

/* ==============================
   HEADER
   ============================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,247,243,0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  cursor: pointer;
}
.logo__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.nav {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.4s var(--ease);
  white-space: nowrap;
}
.nav a:hover { color: var(--gold); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.5s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--outline {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn--outline:hover {
  background: var(--gold);
  color: #ffffff;
}
.btn--gold {
  background: var(--gold);
  color: #ffffff;
  border-color: var(--gold);
}
.btn--gold:hover {
  background: #2aa898;
  border-color: #2aa898;
  color: #ffffff;
}
.btn--ghost {
  border-color: var(--border);
  color: var(--muted);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-lt);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--muted);
  transition: all 0.4s var(--ease);
}
.hamburger.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); background: var(--gold); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); background: var(--gold); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(250,247,243,0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.4s var(--ease);
}
.mobile-menu.is-open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}
.mobile-menu a {
  font-family: var(--ff-head);
  font-size: 28px;
  color: var(--text);
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--gold); }

/* ==============================
   HERO
   ============================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #faf7f3;
  overflow: hidden;
}

/* Photo — right side only, not full-width */
.hero__photo {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 46%;
  z-index: 0;
  overflow: hidden;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

/* Gradient — left light, right photo */
.hero__photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(250,247,243,1) 0%,
    rgba(250,247,243,0.5) 25%,
    rgba(250,247,243,0) 60%,
    rgba(250,247,243,0.15) 100%
  );
  z-index: 1;
}
/* Left blend edge */
.hero__photo-grad {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 160px;
  background: linear-gradient(to right, rgba(250,247,243,1), transparent);
  z-index: 2;
}

/* Mobile: фоновое фото скрыть */
@media (max-width: 767px) {
  .hero__photo {
    display: none;
  }
}

/* Фото психолога в герое — только мобиль */
.hero__mobile-photo {
  display: none;
}
@media (max-width: 767px) {
  .hero__mobile-photo {
    display: block;
    margin: 28px auto 0;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--gold);
    box-shadow: 0 4px 24px rgba(61,191,173,0.25);
  }
  .hero__mobile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
  }
}

/* Particles go above photo, below text */
#tsparticles {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.hero__body {
  position: relative;
  z-index: 4;
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 120px 0 100px;
}
.hero__body > .container {
  width: 100%;
}
.hero__content {
  max-width: 560px;
  text-align: left;
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.hero__eyebrow-line {
  width: 40px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.hero__eyebrow-text {
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__title {
  font-size: clamp(44px, 6.5vw, 72px);
  color: var(--text);
  margin-bottom: 28px;
  line-height: 1.1;
}
.hero__subtitle {
  font-size: 19px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 480px;
  margin-bottom: 48px;
}
.hero__actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.hero__note {
  font-size: 14px;
  color: var(--muted2);
}

/* Hero strip */
.hero__strip {
  position: relative;
  z-index: 1;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.hero__stat {
  flex: 1;
  text-align: center;
  padding: 0 40px;
  position: relative;
}
.hero__stat + .hero__stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 48px;
  background: var(--border);
}
.hero__stat-num {
  font-family: var(--ff-head);
  font-size: 48px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
.hero__stat-label {
  font-size: 14px;
  color: var(--muted);
}

/* ==============================
   TOPICS
   ============================== */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.topic-card {
  background: var(--card-bg);
  border-top: 2px solid var(--gold);
  padding: 40px 36px;
  transition: all 0.5s var(--ease);
  cursor: default;
  box-shadow: var(--shadow-sm);
}
.topic-card:hover {
  border-top-color: #2aa898;
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.topic-card__title {
  font-family: var(--ff-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.3;
}
.topic-card__text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
}

/* ==============================
   HOW IT WORKS
   ============================== */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-bottom: 80px;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    var(--border) 0,
    var(--border) 8px,
    transparent 8px,
    transparent 16px
  );
}
.timeline-step {
  padding: 0 24px;
  text-align: center;
  position: relative;
}
.timeline-step__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  position: relative;
  z-index: 1;
  transition: border-color 0.4s, box-shadow 0.4s;
  box-shadow: var(--shadow-sm);
}
.timeline-step:hover .timeline-step__icon {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}
.timeline-step__icon svg,
.timeline-step__icon i {
  width: 26px;
  height: 26px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}
.timeline-step__title {
  font-family: var(--ff-head);
  font-size: 18px;
  color: var(--text);
  margin-bottom: 12px;
}
.timeline-step__text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
}
.how__info {
  border-left: 2px solid var(--gold);
  padding-left: 28px;
  max-width: 480px;
}
.how__info p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}
.how__info strong {
  color: var(--text);
  font-weight: 600;
}

/* ==============================
   CASES
   ============================== */
.swiper-cases { padding-bottom: 60px !important; }
.case-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 48px;
  height: auto;
  box-shadow: var(--shadow-sm);
}
.case-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 2px;
  padding: 4px 12px;
  margin-bottom: 24px;
}
.case-card__title {
  font-size: clamp(22px, 3vw, 32px);
  color: var(--text);
  margin-bottom: 32px;
}
.case-block {
  margin-bottom: 28px;
}
.case-block__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 10px;
}
.case-block__text {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.85;
}
.case-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
  color: var(--gold);
  font-size: 18px;
}
.case-divider::before, .case-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.case-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}
.case-card__sessions {
  font-size: 13px;
  color: var(--muted2);
}
.swiper-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}
.swiper-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease);
  color: var(--muted);
}
.swiper-btn:hover { border-color: var(--gold); color: var(--gold); }
.swiper-btn svg, .swiper-btn i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; display:block; }
.back-to-top svg, .back-to-top i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; display:block; }
.modal__close svg, .modal__close i { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; display:block; }
.swiper-pagination { position: static !important; }
.swiper-pagination-bullet { background: var(--border) !important; opacity: 1 !important; }
.swiper-pagination-bullet-active { background: var(--gold) !important; }

/* ==============================
   VIDEO
   ============================== */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.video-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.video-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg2);
  overflow: hidden;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.video-card:hover .video-thumb img { transform: scale(1.04); }
.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  transition: background 0.4s;
}
.video-card:hover .video-play { background: rgba(0,0,0,0.5); }
.video-play__btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(14,14,14,0.7);
  border: 1.5px solid rgba(200,168,130,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.video-card:hover .video-play__btn {
  background: var(--gold);
  border-color: var(--gold);
}
.video-play__btn svg { width: 20px; height: 20px; fill: white; margin-left: 3px; }
.video-info { padding: 20px; }
.video-info__title {
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 8px;
}
.video-info__dur { font-size: 13px; color: var(--muted2); }

/* ==============================
   ABOUT
   ============================== */
.about__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: start;
}
/* Текст слева, фото справа на десктопе */
.about__photo-col { order: 2; }
.about__photo-col { padding-top: 0; }
.about__motto {
  font-family: var(--ff-head);
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  color: var(--text);
  text-align: center;
  margin-top: 20px;
  line-height: 1.6;
}

.about__photo-btn {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.about__photo-btn .btn { width: 100%; justify-content: center; }

/* Простая белая рамка без обводки */
.about__photo-frame {
  position: relative;
  border: 4px solid #ffffff;
  border-radius: 10px;
  padding: 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}
.about__photo-frame::before { display: none; }

.about__photo {
  aspect-ratio: 3/4;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.about__photo-placeholder {
  font-size: 13px;
  color: var(--muted2);
  letter-spacing: 0.1em;
}

/* Mobile-only footer in About (buttons + stats) */
.about__mobile-footer { display: none; }
.about__mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.about__mobile-actions .btn { width: 100%; justify-content: center; }
.about__text {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 20px;
}
.about__text strong { color: var(--text); font-weight: 600; }
.about__edu {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  margin-bottom: 40px;
}
.about__edu-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 20px;
}
.about__edu-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--muted);
}
.about__edu-item::before {
  content: '—';
  color: var(--gold);
  flex-shrink: 0;
}

/* ==============================
   REVIEWS
   ============================== */
.review-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 72px;
  box-shadow: var(--shadow-sm);
}
.review-form__title {
  font-family: var(--ff-head);
  font-size: 22px;
  color: var(--text);
  margin-bottom: 28px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  font-family: var(--ff-body);
  font-size: 16px;
  color: var(--text);
  transition: border-color 0.3s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted2); }

/* Stars rating */
.stars-input {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}
.star-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
}
.star-btn svg {
  width: 28px;
  height: 28px;
  fill: var(--border);
  transition: fill 0.2s;
}
.star-btn.active svg,
.star-btn:hover svg { fill: var(--gold); }

/* Consent checkbox */
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.5;
}
.consent-check input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--gold);
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}
.consent-check a { color: var(--gold); text-decoration: underline; }

.form-msg {
  font-size: 14px;
  color: var(--gold);
  margin-top: 12px;
  display: none;
}

/* Reviews swiper */
.swiper-reviews { padding-bottom: 60px !important; }
.review-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 36px;
  height: auto;
  box-shadow: var(--shadow-sm);
}
.review-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-head);
  font-size: 20px;
  color: #ffffff;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.review-card__name {
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 4px;
}
.review-stars { display: flex; gap: 2px; }
.review-stars svg { width: 14px; height: 14px; fill: var(--gold); }
.review-card__text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.85;
}
.review-more {
  color: var(--gold);
  cursor: pointer;
  font-size: 14px;
  background: none;
  border: none;
  padding: 0;
  margin-top: 8px;
  font-family: var(--ff-body);
}
.review-card__date {
  font-size: 13px;
  color: var(--muted2);
  margin-top: 20px;
}

/* ==============================
   BLOG
   ============================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s, transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.blog-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.blog-card__tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.blog-card__title {
  font-family: var(--ff-head);
  font-size: 20px;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.3;
}
.blog-card__meta {
  font-size: 13px;
  color: var(--muted2);
  margin-bottom: 16px;
}
.blog-card__preview {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 24px;
}
.blog-card__link {
  font-size: 14px;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s;
}
.blog-card:hover .blog-card__link { gap: 10px; }

/* ==============================
   FAQ
   ============================== */
.faq-list { max-width: 800px; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  cursor: pointer;
  font-family: var(--ff-head);
  font-size: 18px;
  color: var(--text);
  transition: color 0.3s;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-weight: 400;
}
.faq-question:hover { color: var(--gold); }
.faq-question.is-open { color: var(--gold); }
.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--gold);
  transition: transform 0.4s var(--ease), opacity 0.4s;
}
.faq-icon::before { width: 100%; height: 1px; top: 50%; left: 0; }
.faq-icon::after { width: 1px; height: 100%; left: 50%; top: 0; }
.faq-question.is-open .faq-icon::after { transform: rotate(90deg); opacity: 0; }

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s var(--ease);
}
.faq-answer__inner {
  padding-bottom: 28px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.9;
}

/* ==============================
   FINAL CTA
   ============================== */
.cta-section { text-align: center; }
.cta__title {
  font-size: clamp(36px, 5vw, 52px);
  color: var(--text);
  margin-bottom: 20px;
}
.cta__sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 48px;
}
.cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.cta-btns .btn {
  padding: 16px 36px;
  font-size: 15px;
}
.cta-form {
  max-width: 440px;
  margin: 0 auto;
}
.cta-form__label {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}
.cta-form__row {
  display: flex;
  gap: 0;
}
.cta-form__row input {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 10px 0 0 10px;
  padding: 14px 20px;
  font-family: var(--ff-body);
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s;
}
.cta-form__row input:focus { border-color: var(--gold); }
.cta-form__row input::placeholder { color: var(--muted2); }
.cta-form__row .btn {
  border-radius: 0 10px 10px 0;
  padding: 14px 24px;
}

/* ==============================
   FOOTER
   ============================== */
.footer {
  background: #1A120C;
  border-top: none;
  padding: 60px 0 40px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-head);
  font-size: 24px;
  color: var(--gold-lt);
  margin-bottom: 16px;
}
.footer__tagline {
  font-size: 14px;
  color: rgba(232,213,183,0.55);
  line-height: 1.7;
}
.footer__col-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(232,213,183,0.40);
  margin-bottom: 20px;
}
.footer__nav, .footer__contacts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__nav a, .footer__contacts a {
  font-size: 14px;
  color: rgba(232,213,183,0.55);
  transition: color 0.3s;
}
.footer__nav a:hover, .footer__contacts a:hover { color: var(--gold-lt); }
.footer__bottom {
  border-top: 1px solid rgba(200,168,130,0.15);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__copy { font-size: 13px; color: rgba(232,213,183,0.35); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__legal a { font-size: 13px; color: rgba(232,213,183,0.35); transition: color 0.3s; white-space: nowrap; }
.footer__legal a:hover { color: rgba(232,213,183,0.65); }

/* ==============================
   FLOATING WIDGET
   ============================== */
.widget {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}
.widget.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.widget__panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  width: 200px;
  transform: translateY(10px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s var(--ease);
  transform-origin: bottom right;
}
.widget.is-open .widget__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.widget__panel-title {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  text-align: center;
}
.widget__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.widget__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
  transition: all 0.3s;
  cursor: pointer;
}
.widget__link:hover {
  border-color: var(--gold);
  color: var(--gold-lt);
}
.widget__link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.widget__btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-widget 3s ease-in-out infinite;
  position: relative;
  z-index: 1;
  transition: background 0.3s;
}
.widget__btn:hover { background: #2aa898; }
.widget__btn svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@keyframes pulse-widget {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61,191,173,0.35); }
  50% { box-shadow: 0 0 0 14px rgba(61,191,173,0); }
}

/* ==============================
   BACK TO TOP
   ============================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  left: 32px;
  z-index: 200;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s var(--ease);
  color: var(--muted);
}
.back-to-top:hover { border-color: var(--gold); color: var(--gold); }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }
.back-to-top svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

/* ==============================
   MOBILE BOTTOM BAR
   ============================== */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  padding: 12px 20px 20px;
  background: linear-gradient(to top, rgba(250,247,243,1) 60%, rgba(250,247,243,0));
}
.mobile-bar .btn {
  width: 100%;
  padding: 16px;
  font-size: 16px;
}

/* ==============================
   MODAL
   ============================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px;
  max-width: 720px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.4s var(--ease);
}
.modal-overlay.is-open .modal { transform: translateY(0); }
.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all 0.3s;
}
.modal__close:hover { border-color: var(--gold); color: var(--gold); }
.modal__close svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.modal__content h2 { color: var(--text); margin-bottom: 24px; font-size: 28px; }
.modal__content p { color: var(--muted); font-size: 16px; line-height: 1.9; margin-bottom: 16px; }
.modal__content h3 { color: var(--text); font-size: 20px; margin-bottom: 12px; margin-top: 24px; }
.modal__content iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: 4px;
}

/* ==============================
   SECTION DIVIDER
   ============================== */
.divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 32px;
}

/* ==============================
   LOAD MORE BTN
   ============================== */
.load-more-wrap {
  text-align: center;
  margin-top: 48px;
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 1100px) {
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; gap: 32px; }
  .about__photo-col { padding-top: 0; order: unset; }
  .about__photo-frame { max-width: 320px; margin: 0 auto; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  #about.section { padding-top: 36px; }
  .about__photo-col { padding-top: 0; }
  .about__photo-frame { max-width: 260px; }
  .about__photo { aspect-ratio: 3/4; }
  .about__motto { font-size: 13px; }
}

@media (max-width: 900px) {
  .nav, .header__btn { display: none; }
  .hamburger { display: flex; }
  .timeline {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .timeline::before { display: none; }
  .videos-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__stats { flex-direction: row; gap: 0; }
  .hero__stat { padding: 16px 0; border-bottom: none; }
  .hero__stat:last-child { border-bottom: none; }

  .hero__body { padding: 80px 0 80px; }
  .hero__content { max-width: 100%; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
  .topics-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .topic-card { padding: 20px 14px; }
  .topic-card__title { font-size: 15px; margin-bottom: 8px; }
  .topic-card__text { font-size: 12px; line-height: 1.65; }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .timeline-step { padding: 0 4px; }
  .timeline-step__icon { width: 60px; height: 60px; margin-bottom: 16px; }
  .timeline-step__title { font-size: 15px; margin-bottom: 8px; }
  .timeline-step__text { font-size: 13px; }
  .videos-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .case-card { padding: 28px; }
  .footer__top { grid-template-columns: 1fr; gap: 40px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .cta-btns { flex-direction: column; align-items: stretch; }
  .cta-form__row { flex-direction: column; }
  .cta-form__row input { border-radius: 10px; border-right: 1px solid var(--border); border-bottom: none; }
  .cta-form__row .btn { border-radius: 10px; }
  .hero__actions { flex-direction: column; align-items: center; }
  .widget { bottom: 90px; right: 20px; }
  .back-to-top { bottom: 90px; left: 20px; }
  .mobile-bar { display: block; }

  /* Hero mobile — только eyebrow, кнопки и статы перемещены в About */
  .hero { min-height: auto; }
  .hero__photo::before { background: rgba(250,247,243,0.85); }
  .hero__body { padding: 28px 0 24px; }
  .hero__title--desktop { display: none; }
  .hero__subtitle--desktop { display: none; }
  .hero__note { display: none; }
  .hero__mobile-photo { display: none; }
  .hero__actions { display: none; }
  .hero__strip { display: none; }

  /* About: mobile footer появляется */
  .about__mobile-footer { display: block; margin-top: 28px; }
  .about__photo-btn { display: none; }
  .about__mobile-stats {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 0;
    flex-direction: row;
  }
  .about__mobile-stats .hero__stat { padding: 8px 0; border-bottom: none; }
  .about__mobile-stats .hero__stat-num { font-size: 30px; margin-bottom: 2px; }
  .about__mobile-stats .hero__stat-label { font-size: 11px; }
}

/* === AVITO FAN === */
.avito-fan {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  padding: 32px 0 48px;
  position: relative;
}
.avito-card {
  width: 220px;
  flex-shrink: 0;
  margin: 0 -8px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  cursor: zoom-in;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), box-shadow 0.35s, z-index 0s;
  transform-origin: bottom center;
  position: relative;
}
.avito-card img { width: 100%; height: auto; display: block; }
.avito-card:hover {
  transform: rotate(0deg) translateY(-16px) scale(1.06) !important;
  z-index: 10;
  box-shadow: 0 20px 60px rgba(0,0,0,0.20);
}

/* === BOTANICAL DECORATIONS === */
.fleur {
  position: absolute;
  pointer-events: none;
  color: var(--gold);
  line-height: 0;
  user-select: none;
}
.fleur svg { display: block; }
.section { position: relative; }

/* === PREFERS REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ==============================
   PATCH: все правки апрель 2026
   ============================== */

/* Скрыть hero на десктопе, сайт начинается с About */
@media (min-width: 768px) {
  .hero { display: none; }
  #about { padding-top: 100px; }
  /* Сбросить order на мобиле */
  .about__photo-col { order: 2; }
}
@media (max-width: 767px) {
  .about__photo-col { order: unset; }
}

/* Текст justify только на десктопе — на мобиле даёт огромные дыры */
@media (min-width: 768px) {
  .about__text,
  .faq-answer__inner,
  .timeline-step__text,
  .how__info p {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
}
@media (max-width: 767px) {
  .about__text,
  .faq-answer__inner,
  .timeline-step__text,
  .how__info p {
    text-align: left;
    hyphens: none;
    -webkit-hyphens: none;
  }
}
/* В карточках топиков строки короткие — justify даёт огромные дыры */
.topic-card__text {
  text-align: left;
}

/* Отступы авито: уменьшить пространство под заголовком */
#avito-reviews .section__label { margin-bottom: 8px; }
#avito-reviews h2.section__title { margin-bottom: 0; }
.avito-fan { padding-top: 16px; padding-bottom: 32px; }

/* Фото в about — убрать лишний отступ сверху */
.about__photo { aspect-ratio: 3/4; }
@media (min-width: 768px) {
  .about__photo-frame { margin-top: 0; }
}

/* Рамка мобиль тоже белая */
@media (max-width: 1100px) {
  .about__photo-frame { max-width: 280px; }
}
@media (max-width: 640px) {
  .about__photo-frame { max-width: 300px; }
  .about__motto { font-size: 15px; }
}
@media (min-width: 1101px) {
  .about__photo-col { padding-top: 65px !important; }
}

