/* ========================================
   Psyholog Soft — "Мягкая сила" Theme
   Organic / Soft Modern
   ======================================== */

/* --- CSS Variables --- */
:root {
  --color-bg: #F5F2F9;
  --color-bg-alt: #EBE5F2;
  --color-text: #2A2035;
  --color-text-muted: #6B5F78;
  --color-lavender: #6B4C9A;
  --color-lavender-light: #9A7DC8;
  --color-lavender-bg: #EDE6F6;
  --color-gold: #C8B273;
  --color-gold-light: #E0D5AC;
  --color-gold-bg: #F8F4E8;
  --color-mint: #8B6FC0;
  --color-mint-light: #B49DDA;
  --color-mint-bg: #F0EAF8;
  --color-white: #FFFFFF;
  --color-overlay: rgba(42, 32, 53, 0.55);

  --font-display: 'Lora', Georgia, serif;
  --font-body: 'Manrope', -apple-system, sans-serif;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --radius-full: 50%;

  --shadow-soft: 0 4px 24px rgba(107, 76, 154, 0.10), 0 1px 6px rgba(0,0,0,0.04);
  --shadow-card: 0 8px 32px rgba(107, 76, 154, 0.13), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-hover: 0 12px 40px rgba(107, 76, 154, 0.20), 0 4px 12px rgba(0,0,0,0.06);

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --swiper-theme-color: #6B4C9A !important;
  --hystmodal-speed: .3s;
  --hystmodal-zindex: 70;
}

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

html {
  background-color: var(--color-bg);
  scroll-behavior: smooth;
  /* Обрезаем горизонтальный оверфлоу от закрытого мобильного меню (right: -300px),
     чтобы его нельзя было «вытянуть» свайпом. clip (а не hidden) не ломает sticky. */
  overflow-x: clip;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
}

body {
  color: var(--color-text);
  background: var(--color-bg) url('../img/texture-noise.svg') repeat;
  background-size: 400px 400px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-lavender); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-gold); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* --- Container --- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); margin: 0 0 0.75rem; }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); margin: 0 0 0.5rem; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 500;
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #6B4C9A, #9A7DC8);
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: linear-gradient(135deg, #6B4C9A, #4A2D7A);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(107, 76, 154, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 45, 122, 0.45);
  color: var(--color-white);
}

.btn-gold {
  background: linear-gradient(135deg, #8B6FC0, #6B4C9A);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(139, 111, 192, 0.35);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 111, 192, 0.45);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-lavender);
  color: var(--color-lavender);
}
.btn-outline:hover {
  background: var(--color-lavender);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-messenger {
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
}

.btn-messenger svg { width: 22px; height: 22px; flex-shrink: 0; }

.full-width { width: 100%; }

/* ========================================
   HEADER
   ======================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background:
    url('../img/texture-grain-light.svg') repeat,
    rgba(245, 242, 249, 0.88);
  background-size: 300px 300px, auto;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(107, 76, 154, 0.1);
  transition: box-shadow var(--transition);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}

.logo a { display: flex; align-items: center; }
.logo img { height: 48px; width: auto; }

.nav__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}

.nav__link {
  display: block;
  padding: 8px 14px;
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav__link:hover {
  color: var(--color-lavender);
  background: var(--color-lavender-bg);
}

/* Social icons in header */
.social {
  display: flex;
  align-items: center;
  gap: 6px;
}

.social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-lavender-bg);
  transition: all var(--transition);
}
.social__link:hover {
  background: var(--color-lavender);
}
.social__link svg { width: 20px; height: 20px; }
.social__link svg path { fill: var(--color-lavender); transition: fill var(--transition); }
.social__link:hover svg path { fill: var(--color-white); }

/* Burger */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 60;
}
.burger-menu span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.burger-menu.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.burger-menu.active span:nth-child(2) { opacity: 0; }
.burger-menu.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.mobile-social { display: none; }
.mobile-nav-close { display: none; }

/* Mobile overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-overlay);
  z-index: 40;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-overlay.active { display: block; opacity: 1; }

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  padding: 4rem 0 5rem;
  overflow: hidden;
  background:
    url('../img/texture-grain-light.svg') repeat,
    url('../img/abstract-dots.svg') repeat,
    var(--color-white);
  background-size: 300px 300px, 300px 300px, auto;
}

/* Decorative blobs */
.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -120px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(107, 76, 154, 0.15) 0%, transparent 70%);
  border-radius: 43% 57% 52% 48% / 45% 38% 62% 55%;
  animation: blobBreathe 8s ease-in-out infinite;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -80px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(139, 111, 192, 0.12) 0%, transparent 70%);
  border-radius: 52% 48% 43% 57% / 55% 62% 38% 45%;
  animation: blobBreathe 10s ease-in-out infinite reverse;
  z-index: 0;
}

.hero__wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

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

.hero__stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}
.hero__stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--color-mint-bg);
  color: var(--color-mint);
  font-size: 0.85rem;
}

.hero__photo {
  position: relative;
}
.hero__photo picture,
.hero__photo img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.mobile-photo { display: none; }

/* ========================================
   HELP (Services) SECTION
   ======================================== */
.help-section {
  padding: 5rem 0;
  position: relative;
  background:
    url('../img/texture-grain-dark.svg') repeat,
    url('../img/texture-linen.svg') repeat,
    #2A2035;
  background-size: 300px 300px, 60px 60px, auto;
  color: rgba(255,255,255,0.9);
}
.help-section .section-title { color: var(--color-white); }
.help-section .help-cta h3 { color: var(--color-white); }

.help-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: url('../img/abstract-rings.svg') no-repeat center;
  background-size: contain;
  opacity: 0.6;
  pointer-events: none;
}
.help-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: url('../img/abstract-blob-1.svg') no-repeat center;
  background-size: contain;
  opacity: 0.8;
  pointer-events: none;
}

.help-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.help-card {
  flex: 1 1 300px;
  max-width: 364px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.help-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.14);
  border-color: rgba(155, 125, 200, 0.3);
}

.help-card__blob {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: 43% 57% 52% 48% / 45% 38% 62% 55%;
  animation: blobBreathe 6s ease-in-out infinite;
}

.help-card:nth-child(1) .help-card__blob { background: rgba(107, 76, 154, 0.25); }
.help-card:nth-child(2) .help-card__blob { background: rgba(200, 178, 115, 0.25); }
.help-card:nth-child(3) .help-card__blob { background: rgba(139, 111, 192, 0.25); }
.help-card:nth-child(4) .help-card__blob { background: rgba(200, 178, 115, 0.25); }
.help-card:nth-child(5) .help-card__blob { background: rgba(107, 76, 154, 0.25); }
.help-card:nth-child(6) .help-card__blob { background: rgba(139, 111, 192, 0.25); }

.help-card__blob svg {
  width: 32px;
  height: 32px;
}

.help-card:nth-child(1) .help-card__blob svg { color: #B49DDA; }
.help-card:nth-child(2) .help-card__blob svg { color: #E0D5AC; }
.help-card:nth-child(3) .help-card__blob svg { color: #B49DDA; }
.help-card:nth-child(4) .help-card__blob svg { color: #E0D5AC; }
.help-card:nth-child(5) .help-card__blob svg { color: #B49DDA; }
.help-card:nth-child(6) .help-card__blob svg { color: #B49DDA; }

.help-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--color-white);
}

.help-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin: 0;
  line-height: 1.5;
}

.help-cta {
  text-align: center;
}

.help-cta h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.help-cta__buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.help-section .btn-primary {
  background: linear-gradient(135deg, #C8B273, #B8A263);
  box-shadow: 0 4px 16px rgba(200, 178, 115, 0.3);
}
.help-section .btn-primary:hover {
  box-shadow: 0 8px 24px rgba(200, 178, 115, 0.4);
}
.help-section .btn-gold {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: none;
}
.help-section .btn-gold:hover {
  background: rgba(255,255,255,0.2);
  box-shadow: none;
}

/* ========================================
   TASK (Mission) SECTION
   ======================================== */
.mission-section {
  padding: 5rem 0;
  background:
    url('../img/texture-grain-light.svg') repeat,
    url('../img/texture-linen.svg') repeat,
    var(--color-white);
  background-size: 300px 300px, 60px 60px, auto;
  position: relative;
}

.mission__wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.mission__photo picture,
.mission__photo img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.mission__content h2 { margin-bottom: 1.5rem; }

.mission__list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.mission__list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 2rem;
  font-size: 1rem;
  line-height: 1.6;
}

.mission__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #8B6FC0, #B49DDA);
}

.quote-block {
  background:
    url('../img/texture-grain-light.svg') repeat,
    var(--color-lavender-bg);
  background-size: 300px 300px, auto;
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  border-left: 4px solid #6B4C9A;
  margin-top: 2rem;
}
.quote-block q { color: var(--color-text); }
.quote-block cite { color: var(--color-text-muted); }
.quote-block q {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text);
}
.quote-block cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-style: normal;
  color: var(--color-text-muted);
}

/* Секция «Возможно, сейчас вы…» */
.recognize {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 768px) {
  .recognize {
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
  }
}
.recognize__title {
  text-align: left;
  margin-bottom: 1.5rem;
}
.recognize__list {
  margin-bottom: 0;
}
.recognize__support {
  background:
    url('../img/texture-grain-light.svg') repeat,
    var(--color-lavender-bg);
  background-size: 300px 300px, auto;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border-left: 4px solid var(--color-lavender);
}
.recognize__support p {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--color-text);
  margin: 0 0 0.6rem;
}
.recognize__support p:last-child {
  margin-bottom: 0;
}
.recognize__support-accent {
  color: var(--color-lavender);
}

/* ========================================
   CONSULTATION FORM (inline)
   ======================================== */
.consult-section {
  padding: 4rem 0;
  position: relative;
}

.consult__wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background:
    url('../img/texture-grain-light.svg') repeat,
    var(--color-lavender-bg);
  background-size: 300px 300px, auto;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.consult__photo picture,
.consult__photo img {
  border-radius: var(--radius-lg);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-section {
  padding: 5rem 0;
  background:
    url('../img/texture-grain-light.svg') repeat,
    url('../img/texture-linen.svg') repeat,
    var(--color-white);
  background-size: 300px 300px, 60px 60px, auto;
  position: relative;
  overflow: hidden;
}
.about-section::before {
  content: '';
  position: absolute;
  top: 40px;
  right: -60px;
  width: 350px;
  height: 350px;
  background: url('../img/abstract-blob-2.svg') no-repeat center;
  background-size: contain;
  pointer-events: none;
}
.about-section::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: -40px;
  width: 300px;
  height: 300px;
  background: url('../img/abstract-rings.svg') no-repeat center;
  background-size: contain;
  opacity: 0.5;
  pointer-events: none;
}

.about__wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.about__photo picture,
.about__photo img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.about__content h3 {
  font-family: var(--font-display);
  margin-bottom: 1rem;
}

.about__content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.about__content ul {
  padding-left: 0;
  list-style: none;
  margin-bottom: 1.5rem;
}

.about__content ul li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.75rem;
  line-height: 1.6;
}
.about__content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--color-gold);
}

/* Чек-лист «что может измениться» — галочки вместо точек */
.about__content .about__checklist li {
  padding-left: 2rem;
}
.about__content .about__checklist li::before {
  content: '✓';
  top: 0.3rem;
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  color: var(--color-gold);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}

/* ========================================
   PRICING SECTION
   ======================================== */
.pricing-section {
  padding: 5rem 0;
  position: relative;
  background:
    url('../img/texture-grain-dark.svg') repeat,
    url('../img/texture-linen.svg') repeat,
    #2A2035;
  background-size: 300px 300px, 60px 60px, auto;
  color: rgba(255,255,255,0.9);
  overflow: hidden;
}
.pricing-section .section-title { color: var(--color-white); }
.pricing-section::before {
  content: '';
  position: absolute;
  top: -40px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: url('../img/abstract-rings.svg') no-repeat center;
  background-size: contain;
  opacity: 0.4;
  pointer-events: none;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1040px;
  margin: 0 auto 2rem;
}

.pricing-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.pricing-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.14);
  border-color: rgba(155, 125, 200, 0.3);
}

.pricing-card__label {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.85);
}

.pricing-card__price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.pricing-card:first-child .pricing-card__price { color: #C8B273; }
.pricing-card:last-child .pricing-card__price { color: #B49DDA; }

.pricing-card__unit {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
}

.pricing-card__stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}
.pricing-card:first-child .pricing-card__stripe {
  background: linear-gradient(90deg, #C8B273, #E0D5AC);
}
.pricing-card:last-child .pricing-card__stripe {
  background: linear-gradient(90deg, #9A7DC8, #B49DDA);
}

.pricing-note {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

/* ========================================
   REVIEWS SECTION
   ======================================== */
.reviews-section {
  padding: 5rem 0;
  background:
    url('../img/texture-grain-light.svg') repeat,
    url('../img/abstract-dots.svg') repeat,
    var(--color-white);
  background-size: 300px 300px, 300px 300px, auto;
  position: relative;
  overflow: hidden;
}
.reviews-section::after {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: url('../img/abstract-blob-2.svg') no-repeat center;
  background-size: contain;
  opacity: 0.5;
  pointer-events: none;
}

.reviews-section .swiper-slide img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.reviews-section .swiper-button-prev,
.reviews-section .swiper-button-next {
  color: var(--color-lavender);
  background: var(--color-white);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-soft);
}
.reviews-section .swiper-button-prev::after,
.reviews-section .swiper-button-next::after {
  font-size: 18px;
}

.reviews-section .swiper-pagination-bullet {
  background: var(--color-lavender-light);
}
.reviews-section .swiper-pagination-bullet-active {
  background: var(--color-lavender);
}

/* ========================================
   FAQ SECTION
   ======================================== */
.faq-section {
  padding: 5rem 0;
  background:
    url('../img/texture-grain-dark.svg') repeat,
    url('../img/texture-linen.svg') repeat,
    #2A2035;
  background-size: 300px 300px, 60px 60px, auto;
  color: rgba(255,255,255,0.9);
  position: relative;
  overflow: hidden;
}

/* Секция формы консультации (перенесена после FAQ) */
.consult-section {
  padding: 5rem 0;
  background:
    url('../img/texture-grain-dark.svg') repeat,
    url('../img/texture-linen.svg') repeat,
    #2A2035;
  background-size: 300px 300px, 60px 60px, auto;
  position: relative;
}
.faq-section .section-title { color: var(--color-white); }
.faq-section::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: url('../img/abstract-blob-1.svg') no-repeat center;
  background-size: contain;
  opacity: 0.5;
  pointer-events: none;
}

.faq__questions {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 800px;
  margin: 0 auto;
}

.faq__question {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  box-shadow: none;
  overflow: hidden;
  transition: all var(--transition);
}
.faq__question:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(155, 125, 200, 0.25);
}

.faq__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 1.5rem;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  gap: 1rem;
}

.faq__head-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(107, 76, 154, 0.3);
  flex-shrink: 0;
  transition: all var(--transition);
}
.faq__head-icon::before {
  content: '+';
  font-size: 1.2rem;
  color: #B49DDA;
  line-height: 1;
  transition: transform var(--transition);
}

.faq__question--open .faq__head-icon {
  background: var(--color-lavender);
}
.faq__question--open .faq__head-icon::before {
  content: '−';
  color: var(--color-white);
}

.faq__answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
}

.faq__question--open .faq__answer {
  display: block;
}

.faq__answer ul {
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}
.faq__answer li {
  margin-bottom: 0.35rem;
}
.faq__answer a {
  color: #C8B273;
}
.faq__answer a:hover {
  color: #E0D5AC;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background:
    url('../img/texture-grain-dark.svg') repeat,
    #1A1425;
  background-size: 300px 300px, auto;
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 2rem;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer__info h4 {
  color: var(--color-white);
  font-family: var(--font-display);
  margin-bottom: 0.75rem;
}

.footer__info p,
.footer__info a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  line-height: 1.8;
}
.footer__info a:hover { color: var(--color-gold-light); }

.footer__social {
  display: flex;
  gap: 10px;
}
.footer__social .social__link {
  background: rgba(255,255,255,0.1);
}
.footer__social .social__link:hover {
  background: var(--color-lavender);
}
.footer__social .social__link svg path {
  fill: rgba(255,255,255,0.8);
}
.footer__social .social__link:hover svg path {
  fill: var(--color-white);
}

.footer__copy {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}
.footer__copy .footer__policy {
  display: block;
  margin-top: 0.5rem;
  color: rgba(255,255,255,0.55);
  text-decoration: underline;
  transition: color var(--transition);
}
.footer__copy .footer__policy:hover { color: var(--color-gold-light); }

/* ========================================
   FORMS
   ======================================== */
.form__field {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--color-bg-alt);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: all var(--transition);
  outline: none;
}
.form__field:focus {
  border-color: var(--color-lavender);
  box-shadow: 0 0 0 4px rgba(107, 76, 154, 0.15);
}
.form__field::placeholder {
  color: var(--color-text-muted);
  opacity: 0.6;
}

textarea.form__field {
  resize: vertical;
  min-height: 100px;
}

.form__label {
  display: block;
  margin-bottom: 1rem;
}
.form__label span {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.form__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.form__fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1rem;
}
.form__fieldset legend {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.form__fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 1rem;
  font-size: 0.9rem;
  cursor: pointer;
}
.form__fieldset input[type="radio"] {
  accent-color: var(--color-lavender);
}

.form__agreement {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}
.form__agreement p { margin: 0; }
.form__agreement a { text-decoration: underline; }

.form__btn {
  margin-top: 0.5rem;
}

/* Validation error styles */
.form__field--error {
  border-color: #D46A6A !important;
  box-shadow: 0 0 0 3px rgba(212, 106, 106, 0.15) !important;
  animation: shakeField 0.4s ease;
}

.form__error-label {
  display: block;
  margin-top: 6px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #D46A6A;
  background: rgba(212, 106, 106, 0.08);
  border-radius: var(--radius-sm);
  border-left: 3px solid #D46A6A;
  animation: fadeInError 0.3s ease;
}

@keyframes shakeField {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

@keyframes fadeInError {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Form result messages */
.form__result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1rem;
  text-align: center;
  animation: fadeInError 0.4s ease;
}
.form__result svg {
  flex-shrink: 0;
}
.form__result p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
}
.form__result--success p { color: #6B4C9A; }
.form__result--error p { color: #D46A6A; }

.mb-2 { margin-bottom: 1rem; }

/* ========================================
   MODAL (HystModal overrides)
   ======================================== */
.hystmodal {
  position: fixed; top: 0; left: 0; bottom: 0; right: 0;
  overflow: hidden; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  pointer-events: none;
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: min-content;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  z-index: var(--hystmodal-zindex);
}

.hystmodal::before {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  content: ''; display: block;
  background-color: rgba(44,44,44,0.5);
  opacity: 0;
  transition: opacity var(--hystmodal-speed);
}

.hystmodal--active { visibility: visible; pointer-events: auto; }
.hystmodal--active::before { opacity: 1; }

.hystmodal__opened { overflow: hidden; }

.modal__container {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin: 2rem auto;
  max-width: 520px;
  width: calc(100% - 2rem);
  box-shadow: var(--shadow-hover);
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--hystmodal-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.hystmodal--active .modal__container {
  transform: translateY(0);
  opacity: 1;
}

.hystmodal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0;
  transition: all var(--transition);
}
.hystmodal__close::before {
  content: '×';
  font-size: 1.4rem;
  color: var(--color-text-muted);
  line-height: 1;
}
.hystmodal__close:hover {
  background: var(--color-lavender-bg);
}

/* ========================================
   BLOG — Feed layout
   ======================================== */
.blog-page {
  padding: 3rem 0;
  background:
    url('../img/texture-grain-light.svg') repeat,
    var(--color-bg);
  background-size: 300px 300px, auto;
  min-height: 80vh;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 2rem;
  text-align: center;
}

/* Blog tag page */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.page-header .page-title { text-align: left; margin-bottom: 0; }
.tag-highlight { color: var(--color-lavender); }
.btn-back {
  font-size: 0.95rem;
  color: var(--color-lavender);
  transition: color var(--transition);
}
.btn-back:hover { color: var(--color-gold); }

/* Feed container */
.blog-feed {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Layout: feed + sidebar (sidebar only on wide screens) */
.blog-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.blog-main { width: 100%; }
/* Мобильная/планшетная версия: карточка автора показывается над постами */
.blog-sidebar {
  display: block;
  order: -1;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

@media (min-width: 1024px) {
  .blog-layout {
    display: grid;
    grid-template-columns: 600px 300px;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
  }
  .blog-main { width: 600px; }
  .blog-sidebar {
    order: 0;
    width: auto;
    max-width: none;
    margin: 0;
  }
  .author-card {
    position: sticky;
    top: 100px;
  }
}

/* Author sidebar card */
.author-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.75rem 1.5rem;
  text-align: center;
}
.author-card-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #6B4C9A, #4A2D7A);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}
.author-card-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}
.author-card-role {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.1rem;
}
.author-card-bio {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}
.author-card-vk {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  background: var(--color-lavender);
  color: var(--color-white);
  font-weight: 500;
  transition: background var(--transition);
}
.author-card-vk:hover {
  background: var(--color-gold);
  color: var(--color-white);
}

.blog-empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--color-text-muted);
}

/* ---- Blog card ---- */
.blog-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: box-shadow var(--transition);
}
.blog-card:hover {
  box-shadow: var(--shadow-card);
}

.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Card header (avatar + name + date) */
.blog-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
}
.blog-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #6B4C9A, #4A2D7A);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
}
.blog-card-author {
  flex: 1;
  min-width: 0;
}
.blog-card-author-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.2;
}
.blog-card-date {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.2;
}

/* Card media */
.blog-card-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.blog-card-media img,
/* Изображение в естественных пропорциях (без жёсткого кропа) */
.blog-card-image {
  width: 100%;
  height: auto;
  display: block;
}
.blog-card-image--placeholder {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--color-lavender-bg), var(--color-bg-alt));
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card-video {
  width: 100%;
  display: block;
  aspect-ratio: 4/5;
  object-fit: cover;
  background: #000;
}
.blog-card-overlay { display: none; }

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: rgba(107, 76, 154, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  pointer-events: none;
}
.play-icon {
  color: var(--color-white);
  font-size: 1.2rem;
  margin-left: 3px;
}
.blog-card:hover .play-overlay {
  background: rgba(74, 45, 122, 0.9);
  transform: translate(-50%, -50%) scale(1.08);
}

/* ---- Карусель фото (посты с несколькими изображениями) ---- */
.blog-photo-swiper {
  width: 100%;
  position: relative;
}
.blog-photo-swiper .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
}
.blog-photo-swiper .swiper-pagination {
  bottom: 10px;
}
.blog-photo-swiper .swiper-pagination-bullet {
  width: 7px;
  height: 7px;
  background: #fff;
  opacity: 0.5;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
}
.blog-photo-swiper .swiper-pagination-bullet-active {
  opacity: 1;
}
/* Счётчик «1/10» */
.blog-photo-counter {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 12px;
  pointer-events: none;
}
/* Стрелки — на десктопе по наведению, на тач-устройствах скрыты (свайп) */
.blog-photo-swiper-prev,
.blog-photo-swiper-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s, background 0.2s;
}
.blog-photo-swiper-prev::before,
.blog-photo-swiper-next::before {
  content: '';
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--color-text);
  border-right: 2px solid var(--color-text);
}
.blog-photo-swiper-prev { left: 8px; }
.blog-photo-swiper-prev::before { transform: rotate(-135deg); margin-left: 3px; }
.blog-photo-swiper-next { right: 8px; }
.blog-photo-swiper-next::before { transform: rotate(45deg); margin-right: 3px; }
.blog-photo-swiper:hover .blog-photo-swiper-prev,
.blog-photo-swiper:hover .blog-photo-swiper-next {
  opacity: 1;
}
.blog-photo-swiper-prev.swiper-button-disabled,
.blog-photo-swiper-next.swiper-button-disabled {
  opacity: 0 !important;
  cursor: default;
}
@media (hover: none) {
  .blog-photo-swiper-prev,
  .blog-photo-swiper-next { display: none; }
}

/* Card content */
.blog-card-content {
  padding: 14px 16px 8px;
}
.blog-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text);
  margin: 0 0 8px;
}
.blog-card-meta {
  display: none; /* date is in header now */
}

/* Post type: контент в ленте со сворачиванием длинного текста */
.blog-card-text {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--color-text);
  padding: 0 16px;
}
.blog-card-text p { margin: 0 0 0.75rem; }
.blog-card-text p:last-child { margin-bottom: 0; }

/* Свёрнутое состояние длинного поста */
.blog-card--post .blog-card-text {
  position: relative;
  max-height: 16em;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.blog-card--post.expanded .blog-card-text {
  max-height: 6000px;
}
/* Градиент-затухание внизу свёрнутого текста */
.blog-card--post.has-more:not(.expanded) .blog-card-text::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3.5em;
  background: linear-gradient(rgba(255, 255, 255, 0), var(--color-white));
  pointer-events: none;
}
/* Кнопка «Показать ещё» — видна только если текст реально длинный */
.blog-card-showmore {
  display: none;
  align-items: center;
  gap: 4px;
  margin: 6px 16px 0;
  padding: 4px 0;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-lavender);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
}
.blog-card-showmore:hover { color: var(--color-gold); }
.blog-card--post.has-more .blog-card-showmore { display: inline-flex; }

/* Article type: excerpt + "read more" */
.blog-card-excerpt {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-readmore {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-lavender);
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
  transition: color var(--transition);
}
.blog-card-readmore:hover { color: var(--color-gold); }
.blog-card-readmore svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}
.blog-card.expanded .blog-card-readmore svg {
  transform: rotate(180deg);
}

/* Expanded article content */
.blog-card-full {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 16px;
}
.blog-card.expanded .blog-card-full {
  max-height: 5000px;
}
.blog-card-full-inner {
  padding: 12px 0 4px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--color-text);
}
.blog-card-full-inner p { margin: 0 0 1rem; }
.blog-card-full-inner img {
  border-radius: var(--radius-md);
  margin: 1rem 0;
}
.blog-card-full-inner h2,
.blog-card-full-inner h3 {
  margin-top: 1.5rem;
}

.blog-card-full-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

/* Card footer (tags) */
/* Единый нижний отступ карточки-поста, чтобы контент не прилипал
   к краю, когда у поста нет тегов (тогда теги не дают отступ снизу) */
.blog-card--post { padding-bottom: 14px; }
.blog-card--post .blog-card-tags { padding-bottom: 0; }

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px 14px;
}
.blog-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--color-lavender-bg);
  color: var(--color-lavender);
  transition: all var(--transition);
  text-decoration: none;
}
.blog-tag:hover {
  background: var(--color-lavender);
  color: var(--color-white);
}

/* ---- Blog post detail page ---- */
.blog-post-page {
  padding: 3rem 0;
  background:
    url('../img/texture-grain-light.svg') repeat,
    var(--color-bg);
  background-size: 300px 300px, auto;
}
.blog-post-detail {
  max-width: 600px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.blog-post-detail-header {
  padding: 20px 20px 0;
}
.blog-post-detail-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.blog-post-detail-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}
.blog-post-detail-media {
  margin-bottom: 0;
}
.blog-post-detail-media img {
  width: 100%;
  display: block;
}
.blog-post-detail-content {
  padding: 20px;
  font-size: 0.95rem;
  line-height: 1.7;
}
.blog-post-detail-content p { margin: 0 0 1rem; }
.blog-post-detail-content img {
  border-radius: var(--radius-md);
  margin: 1rem 0;
}
.blog-post-detail-tags {
  padding: 0 20px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.blog-post-detail-tags strong {
  font-size: 0.85rem;
  margin-right: 4px;
}
.blog-post-detail-comments {
  display: none;
}

/* Video in posts */
.post-image img {
  border-radius: 0;
  width: 100%;
}
.video-player { margin-bottom: 0; }
.video-embed-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  overflow: hidden;
}
.video-embed-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.video-player-element {
  width: 100%;
  display: block;
}

/* Spinner (shared) */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--color-bg-alt);
  border-top-color: var(--color-lavender);
  border-radius: var(--radius-full);
  animation: spin 0.8s linear infinite;
}

/* Infinite scroll */
.infinite-scroll-loader {
  text-align: center;
  padding: 2rem;
  color: var(--color-text-muted);
}
.blog-end-message {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ========================================
   WAVE DIVIDERS
   ======================================== */
.wave-divider {
  line-height: 0;
  margin: 0;
  overflow: hidden;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: 60px;
}
.wave-to-dark { background: var(--color-white); }
.wave-to-light { background: #2A2035; }
.wave-to-light-reviews { background: #2A2035; }
.wave-to-dark-faq { background: var(--color-white); }

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes blobBreathe {
  0%, 100% {
    border-radius: 43% 57% 52% 48% / 45% 38% 62% 55%;
    transform: scale(1);
  }
  33% {
    border-radius: 52% 48% 43% 57% / 55% 62% 38% 45%;
    transform: scale(1.03);
  }
  66% {
    border-radius: 48% 52% 57% 43% / 38% 45% 55% 62%;
    transform: scale(0.97);
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal utility */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.stagger > * { transition-delay: calc(var(--i, 0) * 0.08s); }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .hero__wrap { grid-template-columns: 1fr; text-align: center; }
  .hero__photo { max-width: 480px; margin: 0 auto; }
  .hero__stats { justify-content: center; }
  .hero__content .btn { margin: 0 auto; }

  .help-grid { grid-template-columns: repeat(2, 1fr); }

  .mission__wrap,
  .about__wrap,
  .consult__wrap { grid-template-columns: 1fr; }
  .mission__photo,
  .about__photo,
  .consult__photo { max-width: 480px; margin: 0 auto; }

  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .burger-menu { display: flex; }
  /* Убираем backdrop-filter: он создаёт containing-block для fixed-драйвера меню,
     из-за чего на мобильных меню «уезжает» к началу документа при прокрутке */
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .desktop-social { display: none; }
  .mobile-social {
    display: flex;
    gap: 10px;
    padding: 1.5rem 0;
    justify-content: center;
  }
  .mobile-social .social__link {
    background: rgba(255,255,255,0.1);
    transition: all var(--transition);
  }
  .mobile-social .social__link:hover,
  .mobile-social .social__link:active {
    background: #6B4C9A;
    transform: scale(1.1);
  }
  .mobile-social .social__link svg path {
    fill: rgba(255,255,255,0.8);
    transition: fill var(--transition);
  }
  .mobile-social .social__link:hover svg path,
  .mobile-social .social__link:active svg path {
    fill: #FFFFFF;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--color-text);
    z-index: 50;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .header__nav.active { right: 0; }

  /* Close button inside mobile nav */
  .mobile-nav-close {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    z-index: 51;
  }
  .mobile-nav-close::before,
  .mobile-nav-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 2.5px;
    background: #FFFFFF;
    border-radius: 2px;
  }
  .mobile-nav-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }
  .mobile-nav-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }
  .mobile-nav-close:active::before,
  .mobile-nav-close:active::after {
    background: #C8B273;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }
  .nav__link {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    padding: 12px 8px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav__link:hover { color: var(--color-gold-light); background: none; }

  .hero { padding: 2.5rem 0 3rem; }
  .mobile-photo {
    display: block;
    max-width: 320px;
    margin: 0 auto 1.5rem;
  }
  .mobile-photo img { border-radius: var(--radius-xl); }
  .hero__photo { display: none; }

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

  .pricing-cards { grid-template-columns: 1fr; max-width: 360px; }

  .footer__inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

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

  .blog-slide-container { max-width: 100%; }

  section { padding-left: 0; padding-right: 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero__stats { flex-direction: column; gap: 0.75rem; align-items: center; }
  .help-cta__buttons { flex-direction: column; align-items: stretch; }
  .consult__wrap { padding: 1.5rem; }
  .modal__container { padding: 1.5rem; }

  .blog-feed { gap: 1rem; }
  .blog-card { border-radius: var(--radius-md); }
  .blog-card-content { padding: 12px 14px 6px; }
  .blog-card-text { padding: 0 14px; }
  .blog-card-tags { padding: 8px 14px 12px; }
  .blog-card-full { padding: 0 14px; }
}

/* ========================================
   LEGAL PAGE (Согласие на обработку ПДн)
   ======================================== */
.legal-page {
  padding: 3rem 0 4rem;
  background:
    url('../img/texture-grain-light.svg') repeat,
    var(--color-bg);
  background-size: 300px 300px, auto;
}
.legal-page__inner {
  max-width: 820px;
}
.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 1.5rem;
  color: var(--color-text);
}
.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
  color: var(--color-text);
}
.legal-page p {
  margin: 0 0 1rem;
  line-height: 1.7;
  color: var(--color-text);
}
.legal-page ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  line-height: 1.7;
}
.legal-page li { margin-bottom: 0.35rem; }
.legal-page a { color: var(--color-lavender); }
.legal-page a:hover { color: var(--color-gold); }
.legal-page__lead {
  font-size: 1.05rem;
  color: var(--color-text-muted);
}
.legal-page__date {
  margin-top: 2rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Чекбокс согласия в формах */
.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 1rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  cursor: pointer;
}
.form__consent input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--color-lavender);
  cursor: pointer;
}
.form__consent a {
  color: var(--color-lavender);
  text-decoration: underline;
}
.form__consent a:hover { color: var(--color-gold); }

/* ========================================
   BLOG TEASER (карусель обложек на главной)
   ======================================== */
.blog-promo-section {
  padding: 5rem 0 4rem;
  background:
    url('../img/texture-grain-light.svg') repeat,
    var(--color-bg);
  background-size: 300px 300px, auto;
}
.blog-promo__subtitle {
  text-align: center;
  color: var(--color-text-muted);
  margin: -1rem 0 2.5rem;
}
.blog-promo-swiper {
  padding-bottom: 2.5rem;
}
.blog-promo-slide {
  display: block;
  text-decoration: none;
}
.blog-promo-slide__img {
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s, box-shadow 0.35s;
}
.blog-promo-slide:hover .blog-promo-slide__img {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.blog-promo__cta {
  text-align: center;
  margin-top: 1rem;
}
.blog-promo-swiper .swiper-pagination { bottom: 0; }
.blog-promo-swiper .swiper-pagination-bullet {
  background: var(--color-lavender);
  opacity: 0.35;
}
.blog-promo-swiper .swiper-pagination-bullet-active { opacity: 1; }
.blog-promo-prev,
.blog-promo-next {
  position: absolute;
  top: calc(50% - 1.25rem);
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}
.blog-promo-prev::before,
.blog-promo-next::before {
  content: '';
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--color-lavender);
  border-right: 2px solid var(--color-lavender);
}
.blog-promo-prev { left: -6px; }
.blog-promo-prev::before { transform: rotate(-135deg); margin-left: 3px; }
.blog-promo-next { right: -6px; }
.blog-promo-next::before { transform: rotate(45deg); margin-right: 3px; }
.blog-promo-prev.swiper-button-disabled,
.blog-promo-next.swiper-button-disabled { opacity: 0; cursor: default; }
@media (max-width: 768px) {
  .blog-promo-prev,
  .blog-promo-next { display: none; }
}
