:root {
  --bg: #f7f4ef;
  --bg-soft: #efeae1;
  --card: #ffffff;
  --text: #2b2a27;
  --text-muted: #6b6862;
  --accent: #7c9a86;
  --accent-dark: #5f7d6a;
  --accent-soft: #e3ece5;
  --border: #e2ddd3;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(43, 42, 39, 0.07);
  --shadow-lg: 0 24px 60px rgba(43, 42, 39, 0.12);
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-title: Georgia, "Times New Roman", serif;
  --header-bg: rgba(247, 244, 239, 0.86);
  --cookie-bg: rgba(247, 244, 239, 0.96);
  --card-translucent: rgba(255, 255, 255, 0.7);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.container--narrow { width: min(760px, 92vw); }

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 221, 211, 0.8);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 4px 0;
}

.logo__mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: none;
  border: 0;
  color: var(--accent-dark);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  position: relative;
  transition: transform .35s cubic-bezier(.22, .61, .36, 1);
}

.logo__mark svg { display: block; }

.logo:hover .logo__mark {
  transform: translateY(-1px) scale(1.04);
}

.logo__text {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-family: var(--font-body);
  line-height: 1.15;
}

.logo__brand {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .11em;
  color: var(--text);
  white-space: nowrap;
}

.logo__sep {
  color: var(--accent);
  font-weight: 300;
  font-size: 15px;
}

.logo__name {
  font-family: var(--font-title);
  font-size: 14.5px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: .01em;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.1vw, 18px);
}

.nav a {
  font-size: clamp(13px, 1vw, 14.5px);
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s, background-color .2s;
  white-space: nowrap !important;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  text-decoration: none;
}

.nav a:hover { color: var(--text); }

/* Деликатные разделители с размытыми концами между пунктами верхнего меню на десктопе */
@media (min-width: 981px) {
  .nav a:not(.nav__cta):not(:last-of-type)::after {
    content: "";
    display: inline-block;
    width: 1px;
    height: 14px;
    margin-left: clamp(8px, 1.1vw, 18px);
    background: linear-gradient(180deg, transparent 0%, rgba(124, 154, 134, 0.45) 50%, transparent 100%);
    pointer-events: none;
    flex-shrink: 0;
  }

  .theme-dark .nav a:not(.nav__cta):not(:last-of-type)::after {
    background: linear-gradient(180deg, transparent 0%, rgba(168, 207, 180, 0.4) 50%, transparent 100%);
  }
}

.nav__cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  white-space: nowrap;
}

.nav__cta:hover { background: var(--accent-dark); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.burger span {
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ---------- Hero ---------- */

.hero {
  padding: 76px 0 90px;
  overflow: visible;
  overflow-x: clip;
  overflow-y: visible;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
  margin: 0 0 18px;
}

h1 {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.12;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}

.lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 0 30px;
}

.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, background .2s, border-color .2s, color .2s;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(124, 154, 134, .28); }

.btn--primary:hover { background: var(--accent-dark); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }

.btn--ghost:hover { border-color: var(--accent); color: var(--accent-dark); }

.btn--block { width: 100%; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.hero__facts li { position: relative; padding-left: 18px; }

.hero__facts li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 7px; height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--accent);
}

.hero__art { position: relative; display: flex; justify-content: center; }

.hero__card {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 4 / 5;
  border-radius: 32px;
  background:
    radial-gradient(120% 80% at 20% 10%, #dfe9e1 0%, transparent 55%),
    radial-gradient(100% 70% at 85% 90%, #e8dfd0 0%, transparent 60%),
    #eef1ea;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-end;
  padding: 36px;
  overflow: hidden;
}

.hero__leaf {
  position: absolute;
  inset: auto -40px -60px auto;
  width: 260px; height: 260px;
  border-radius: 60% 40% 55% 45%;
  background: linear-gradient(145deg, rgba(124, 154, 134, .35), rgba(124, 154, 134, .05));
  transform: rotate(-18deg);
}

.hero__quote {
  position: relative;
  font-family: var(--font-title);
  font-size: 21px;
  line-height: 1.45;
  color: var(--text);
  margin: 0;
}

/* ---------- Sections ---------- */

section[id],
main[id] {
  scroll-margin-top: 88px;
}

.section { padding: 82px 0; }

.section--soft { background: var(--bg-soft); }

.section__title {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.2;
  margin: 0 0 14px;
  text-align: center;
}

.section__title--left { text-align: left; }

.section__lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 62ch;
  margin: 0 auto 42px;
}

.grid { display: grid; gap: 18px; }

.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
}

.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.card h3 {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 21px;
  margin: 0 0 10px;
}

.card p { margin: 0; color: var(--text-muted); font-size: 15px; }

.note {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin: 34px auto 0;
  max-width: 64ch;
}

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 56px;
  align-items: center;
}

.about__photo { display: flex; justify-content: center; }

.about__frame {
  display: block;
  width: min(300px, 100%);
  aspect-ratio: 4 / 5;
  margin: 0;
  border-radius: 24px 24px 120px 24px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.about__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.about__text p { color: var(--text-muted); margin: 0 0 16px; }

.about__text strong { color: var(--text); }

.placeholder {
  color: #b0863c;
  background: #fbf3e2;
  border-bottom: 1px dashed #d8b16a;
  padding: 1px 4px;
  border-radius: 4px;
}

/* ---------- Facts (5 фактов) ---------- */

.facts { margin-top: 42px; }

.facts__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.fact {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 15px 15px;
  box-shadow: 0 4px 14px rgba(43, 42, 39, .05);
  transition: transform .18s, box-shadow .18s, border-color .18s;
  overflow: hidden;
}

.fact:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(43, 42, 39, .10);
  border-color: rgba(124, 154, 134, .40);
}

.fact__icon {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  margin-bottom: 9px;
  border-radius: 10px;
  background: var(--accent-soft);
  font-size: 17px;
  line-height: 1;
}

.fact h3 {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.25;
  margin: 0 0 6px;
}

.fact p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.48;
}

@media (max-width: 1100px) {
  .facts__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .facts { margin-top: 34px; }
  .facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

@media (max-width: 720px) {
  .facts { margin-top: 28px; }
  .facts__grid { grid-template-columns: 1fr; gap: 10px; margin-top: 18px; }
  .fact { padding: 15px 15px 14px; }
  .fact__icon { width: 32px; height: 32px; font-size: 16px; margin-bottom: 8px; }
  .fact h3 { font-size: 15.5px; }
  .fact p { font-size: 13px; }
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 46px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}

.step__num {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 34px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 14px;
}

.step h3 { font-size: 17px; margin: 0 0 8px; }

.step p { margin: 0; color: var(--text-muted); font-size: 14.5px; }

/* ---------- Prices ---------- */

.prices { align-items: stretch; padding-top: 20px; }

.price-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.price-card--featured {
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(124, 154, 134, .18);
}

.price-card h3 { font-family: var(--font-title); font-weight: 400; font-size: 21px; margin: 0 0 16px; }

.price-card__value { font-size: 30px; font-weight: 700; margin: 0; }

.price-card__sub { color: var(--text-muted); font-size: 14px; margin: 4px 0 18px; }

.price-card p:not(.price-card__value):not(.price-card__sub) { color: var(--text-muted); font-size: 15px; margin: 0 0 24px; }

.price-card .btn { margin-top: auto; }

.badge {
  position: absolute;
  top: -12px; left: 28px;
  background: var(--accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  z-index: 3;
}

/* ---------- FAQ ---------- */

.faq {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.faq:hover {
  border-color: rgba(124, 154, 134, 0.45);
  box-shadow: 0 6px 20px rgba(43, 42, 39, 0.06);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  position: relative;
  padding-right: 38px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s ease;
}

.faq summary:hover {
  color: var(--accent-dark);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  position: absolute;
  right: 6px;
  top: calc(50% - 6px);
}

.faq[open] summary::after {
  transform: rotate(-135deg);
}

.faq p {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Contact ---------- */

.section--contact { background: var(--accent-soft); }

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact__text p { color: var(--text-muted); margin: 0 0 20px; }

.contact__links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 480px) {
  .contact__links {
    grid-template-columns: 1fr;
  }
}

.contact__link {
  display: flex;
  gap: 11px;
  align-items: center;
  min-width: 0;
  background: var(--card-translucent);
  border: 1px solid rgba(124, 154, 134, .28);
  border-radius: 14px;
  padding: 11px 13px;
  transition: background .2s, transform .15s, border-color .2s;
}

.contact__link:hover {
  background: #fff;
  border-color: rgba(124, 154, 134, .48);
  transform: translateY(-1px);
}

.contact__icon {
  width: 42px; height: 42px;
  border-radius: 13px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  box-shadow: 0 4px 12px rgba(43, 42, 39, .14);
}

.contact__icon svg { display: block; }

.contact__icon--tg    { background: linear-gradient(160deg, #45c4ee, #1e8fc6); }
.contact__icon--wa    { background: linear-gradient(160deg, #5ceb7f, #1fae4b); }
.contact__icon--max   { background: linear-gradient(160deg, #00d2ff, #0066ff); }
.contact__icon--phone { background: linear-gradient(160deg, #34c759, #228b3b); color: #fff; }
.contact__icon--mail  { background: linear-gradient(160deg, #a3c4ae, #6d8b77); }

.contact__text-block {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.35;
}

.contact__text-block b {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}

.contact__text-block span {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .contact__text-block b { font-size: 14px; }
  .contact__text-block span { font-size: 12.5px; }
}

.contact__form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
}

.contact__form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 6px;
}

.contact__form input,
.contact__form textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}

.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 154, 134, .18);
}

.form__hint { font-size: 12.5px; color: var(--text-muted); margin: 0 0 16px; }

.form__status { font-size: 14px; margin: 12px 0 0; min-height: 20px; }

.form__status--ok { color: var(--accent-dark); }

.form__status--err { color: #b4453c; }

/* ---------- Focus visible ---------- */

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.btn:focus-visible {
  outline-offset: 4px;
  border-radius: 999px;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 88px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer__copy {
  font-weight: 600;
  color: var(--text);
}

.footer__title {
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer__link {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.footer__link:hover {
  color: var(--accent-dark);
}

.footer__link--top {
  text-decoration: none;
  font-weight: 600;
}

.footer__sep {
  color: var(--border);
  user-select: none;
}

.footer a:hover { color: var(--accent-dark); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 52px 0 64px; }
  .hero__art { order: -1; }
  .hero__card { width: min(340px, 80%); aspect-ratio: 5 / 4; }
  .about { grid-template-columns: 1fr; gap: 34px; }
  .about__photo { order: -1; }
  .about__frame { width: min(280px, 70%); aspect-ratio: 1; border-radius: 24px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 520px) {
  .contact__links { grid-template-columns: 1fr; }
}

/* Мобильное бургер-меню (активно на планшетах и телефонах <= 980px) */
@media (max-width: 980px) {
  .burger { display: flex; }
  .burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 14px 4vw 22px;
    box-shadow: 0 18px 40px rgba(43, 42, 39, 0.12);
    display: flex;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .25s ease, transform .25s cubic-bezier(.16, 1, .3, 1), visibility .25s;
    pointer-events: none;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav a {
    padding: 11px 14px;
    font-size: 15px;
    color: var(--text);
    border-radius: 10px;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.18s ease;
  }

  .nav a:hover,
  .nav a:active {
    background: var(--accent-soft);
    color: var(--accent-dark);
  }

  /* Отключаем десктопные вертикальные чёрточки на мобилках */
  .nav a::after {
    display: none !important;
  }

  /* Выделяем отдельные разделы Статьи и Рекомендации в мобильном меню */
  .nav a[href="/articles"],
  .nav a[href="/recommendations"] {
    background: rgba(124, 154, 134, 0.08);
    font-weight: 550;
    color: var(--accent-dark);
    margin: 2px 0;
  }

  .nav a[href="/articles"]::after,
  .nav a[href="/recommendations"]::after {
    display: inline-block !important;
    content: "Вкладка ↗";
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--accent-dark);
  }

  .nav__cta {
    text-align: center;
    justify-content: center !important;
    margin-top: 10px;
    padding: 13px 20px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
  }
}

@media (max-width: 720px) {
  .grid--3, .steps { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  h1 { font-size: 34px; }
  .btn { width: 100%; }
  .hero__actions .btn { width: auto; }

  /* На узком экране шапку ужимаем, но имя оставляем — оно скрывается
     только ниже 375px, где физически не помещается. */
  .logo { gap: 10px; }
  .logo__brand { font-size: 13px; letter-spacing: .07em; }
  .logo__sep { font-size: 13px; }
  .logo__name { font-size: 13px; }
  .logo__text { gap: 6px; }
  .logo__mark { width: 38px; height: 38px; }
  .logo__mark svg { width: 38px; height: 38px; }
}

/* На очень узких телефонах (<340px) места на полное имя нет */
@media (max-width: 339px) {
  .logo__sep,
  .logo__name { display: none; }
  .logo__brand { font-size: 14px; letter-spacing: .09em; }
}

/* ---------- Mobile refinement (≤720px) ---------- */

@media (max-width: 720px) {
  /* Горизонтальные reveal-варианты вылезают за viewport и дают скролл.
     На телефоне все элементы появляются снизу — без боковых сдвигов. */
  .reveal--left,
  .reveal--right,
  .reveal--grid-item {
    transform: translate3d(0, 20px, 0);
  }

  .reveal--left.is-visible,
  .reveal--right.is-visible,
  .reveal--grid-item.is-visible {
    transform: translate3d(0, 0, 0);
  }

  body { overflow-x: hidden; }

  /* Hero: карточка меньше, текст компактнее */
  .hero {
    padding: 34px 0 48px;
    overflow: visible;
    overflow-x: clip;
    overflow-y: visible;
  }
  .hero__inner { gap: 26px; }
  .hero__art { order: 0; }
  .hero__card {
    width: min(260px, 72%);
    aspect-ratio: 4 / 3;
    border-radius: 24px;
    padding: 22px 20px;
  }
  .hero__quote { font-size: 16.5px; line-height: 1.4; }
  .hero__leaf { width: 170px; height: 170px; inset: auto -30px -45px auto; }

  h1 { font-size: 30px; line-height: 1.16; margin-bottom: 16px; }
  .eyebrow { font-size: 11px; letter-spacing: .13em; margin-bottom: 12px; }
  .lead { font-size: 16px; margin-bottom: 24px; }
  .hero__actions { gap: 10px; }
  .hero__actions .btn { width: 100%; }
  .hero__facts {
    margin-top: 22px;
    gap: 8px 18px;
    font-size: 13.5px;
  }

  /* Заголовки секций */
  .section__title { font-size: 27px; }
  .section__lead { font-size: 15px; margin-bottom: 26px; }

  /* Карточки */
  .card { padding: 22px 20px; }
  .card h3 { font-size: 19px; }
  .card p { font-size: 14.5px; }

  .step { padding: 20px 18px; }
  .step__num { font-size: 28px; margin-bottom: 8px; }
  .step h3 { font-size: 16px; }
  .step p { font-size: 14px; }

  .price-card { padding: 26px 20px; }
  .price-card h3 { font-size: 19px; margin-bottom: 12px; }
  .price-card__value { font-size: 26px; }
  .prices { padding-top: 26px; gap: 34px; }
  .price-card--featured { margin-top: 8px; }
  .badge { top: -11px; left: 20px; font-size: 10.5px; padding: 5px 10px; z-index: 3; }

  /* Обо мне */
  .about__frame {
    width: min(230px, 64%);
    aspect-ratio: 4 / 5;
    border-radius: 20px 20px 80px 20px;
  }
  .about__text p { font-size: 15px; }

  /* FAQ */
  .faq { padding: 15px 16px; }
  .faq summary { font-size: 15px; padding-right: 26px; }
  .faq p { font-size: 14.5px; }

  /* Контакты */
  .contact__form { padding: 22px 18px; }
  .contact__form input,
  .contact__form textarea { padding: 11px 12px; font-size: 16px; }
  .contact__link { padding: 11px 12px; }
  .contact__text-block b { font-size: 14px; }
  .contact__text-block span { font-size: 13px; }

  /* Подвал */
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
  }
}

/* ---------- Very small phones (≤390px) ---------- */

@media (max-width: 390px) {
  .container { width: 94vw; }
  .header__inner { height: 64px; }
  .nav { top: 64px; }
  h1 { font-size: 27px; }
  .section { padding: 44px 0; }
  .section__title { font-size: 24px; }
  .hero__card { width: min(230px, 76%); }
  .about__frame { width: min(210px, 66%); }
}


/* ---------- Privacy Hint Link ---------- */
.form__hint-link {
  color: var(--accent-dark);
  text-decoration: underline;
  cursor: pointer;
  transition: opacity 0.2s;
}
.form__hint-link:hover { opacity: 0.8; }

/* ---------- Form Success Card ---------- */
.form__success-card {
  display: none;
  background: #f1f8f3;
  border: 1px solid #cce5d4;
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  margin-top: 16px;
  animation: fadeIn 0.4s ease forwards;
}
.form__success-icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 12px;
}
.form__success-card h4 {
  margin: 0 0 6px;
  color: var(--accent-dark);
  font-size: 18px;
}
.form__success-card p {
  margin: 0;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.5;
}

/* ---------- Floating Quick Contact (FAB) ---------- */
.fab-container {
  position: fixed;
  bottom: 84px;
  right: 20px;
  z-index: 99;
}
@media (max-width: 600px) {
  .fab-container {
    bottom: 92px;
    right: 16px;
  }
}
.fab-trigger {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(95, 125, 106, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}
.fab-trigger:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(95, 125, 106, 0.48);
}
.fab-icon--close {
  display: none;
  font-size: 32px;
  line-height: 1;
}
.fab-container.is-open .fab-icon--chat { display: none; }
.fab-container.is-open .fab-icon--close { display: block; }
.fab-container.is-open .fab-trigger {
  background: #333333;
}

.fab-menu {
  position: absolute;
  bottom: 70px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px) scale(0.95);
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fab-container.is-open .fab-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.fab-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  text-decoration: none;
  transition: transform 0.18s ease, filter 0.18s ease;
  white-space: nowrap;
}
.fab-item:hover {
  transform: translateX(-4px);
  filter: brightness(1.08);
}
.fab-item--tg { background: #229ED9; }
.fab-item--wa { background: #25D366; }
.fab-item--max { background: linear-gradient(135deg, #00d2ff, #0066ff); }

/* ---------- Privacy Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(43, 42, 39, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-backdrop.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Модалки условий и политики открываются ПОВЕРХ окна отзывов */
#privacyModal,
#termsModal {
  z-index: 2600;
}

@media (max-width: 640px) {
  .modal-backdrop {
    padding: 10px;
    align-items: flex-end;
  }
  .modal-card {
    width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
  }
  .modal-card--review {
    width: 100%;
    max-height: 94vh;
  }
  .modal-body {
    -webkit-overflow-scrolling: touch;
    padding: 16px;
  }
  .reviews-header__action {
    width: 100%;
  }
  .reviews-header__action .btn {
    width: 100%;
  }
}
.modal-card {
  background: var(--card);
  border-radius: 20px;
  width: min(600px, 100%);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-backdrop.is-active .modal-card {
  transform: translateY(0) scale(1);
}
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 20px;
  color: var(--text);
}
.modal-close {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-close:hover {
  color: var(--text);
  background: var(--card);
  border-color: var(--accent);
  transform: rotate(90deg) scale(1.08);
}
.modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text);
}
.modal-body h4 {
  margin: 16px 0 6px;
  font-size: 15px;
  color: var(--accent-dark);
}
.modal-body p { margin: 0 0 10px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

/* ---------- Cookie Banner (152-ФЗ) ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--cookie-bg);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 14px 20px;
  z-index: 98;
  box-shadow: 0 -4px 20px rgba(43, 42, 39, 0.08);
  display: none;
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.cookie-banner__inner {
  width: min(1160px, 92vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-banner__text {
  margin: 0;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.5;
  flex: 1;
  min-width: 260px;
}
.cookie-banner__link {
  color: var(--accent-dark);
  text-decoration: underline;
  cursor: pointer;
}
.cookie-banner__btn {
  padding: 8px 22px;
  font-size: 13.5px;
  border-radius: 20px;
  white-space: nowrap;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ==========================================================
   THEME SYSTEM: LIGHT (WHITE) & DARK (BLACK) MODES
   Переключение, автоопределение и сохранение выбора
   ========================================================== */

/* Контролы в шапке (переключатель тем + бургер) */
.header__controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Кнопка переключения темы */
.theme-toggle {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 30px;
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
  transition: background-color 0.28s ease, border-color 0.28s ease, transform 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(124, 154, 134, 0.28);
}

.theme-toggle__track {
  position: relative;
  width: 50px;
  height: 26px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 13px;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.theme-toggle__thumb {
  position: absolute;
  top: 1px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

.theme-toggle__icon {
  font-size: 13px;
  line-height: 1;
  position: absolute;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-toggle__icon--sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.theme-toggle__icon--moon {
  opacity: 0;
  transform: scale(0.4) rotate(-90deg);
}

/* Состояние при активной тёмной теме */
html[data-theme="dark"] .theme-toggle__track,
.theme-dark .theme-toggle__track {
  background: #252e27;
  border-color: #3b473e;
}

html[data-theme="dark"] .theme-toggle__thumb,
.theme-dark .theme-toggle__thumb {
  transform: translateX(22px);
  background: #151a16;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .theme-toggle__icon--sun,
.theme-dark .theme-toggle__icon--sun {
  opacity: 0;
  transform: scale(0.4) rotate(90deg);
}

html[data-theme="dark"] .theme-toggle__icon--moon,
.theme-dark .theme-toggle__icon--moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Строка смены темы и ссылки на соглашения в мобильном меню */
.nav__theme-row,
.nav__legal-row {
  display: none;
}

@media (max-width: 900px) {
  .nav__theme-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 0 6px;
    margin-top: 10px;
    border-top: 1px solid var(--border);
  }

  .nav__legal-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    padding: 10px 0 4px;
    font-size: 13px;
  }

  .nav__legal-link {
    color: var(--text-muted);
    text-decoration: underline;
    cursor: pointer;
  }

  .nav__theme-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
  }

  .theme-toggle--mobile {
    padding: 4px 10px 4px 4px;
  }

  .theme-toggle__text {
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
  }
}

/* Плавный переход при переключении темы (только поверхности и карточки, без мерцания градиентного текста) */
html.theme-transition body,
html.theme-transition .header,
html.theme-transition .card,
html.theme-transition .price-card,
html.theme-transition .fact,
html.theme-transition .faq,
html.theme-transition .contact__link,
html.theme-transition .contact__form,
html.theme-transition .hero__card,
html.theme-transition .modal-card,
html.theme-transition .footer,
html.theme-transition .theme-switch,
html.theme-transition .theme-toggle__track,
html.theme-transition .theme-toggle__thumb,
html.theme-transition .cookie-banner,
html.theme-transition .review-card,
html.theme-transition .rating-picker,
html.theme-transition .review-dropzone,
html.theme-transition input,
html.theme-transition textarea,
html.theme-transition select {
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease !important;
}

/* Исключаем мерцание градиентного h1 с -webkit-background-clip: text */
html.theme-transition h1,
html.theme-transition h1 * {
  transition: none !important;
}

/* 1. ПРИНУДИТЕЛЬНО СВЕТЛАЯ ТЕМА (WHITE) */
html[data-theme="light"] {
  --bg: #f7f4ef;
  --bg-soft: #efeae1;
  --card: #ffffff;
  --text: #2b2a27;
  --text-muted: #6b6862;
  --accent: #7c9a86;
  --accent-dark: #5f7d6a;
  --accent-soft: #e3ece5;
  --border: #e2ddd3;
  --shadow: 0 10px 30px rgba(43, 42, 39, 0.07);
  --shadow-lg: 0 24px 60px rgba(43, 42, 39, 0.12);
  --header-bg: rgba(247, 244, 239, 0.86);
  --cookie-bg: rgba(247, 244, 239, 0.96);
  --card-translucent: rgba(255, 255, 255, 0.7);
  color-scheme: light;
}

html[data-theme="light"] body {
  background: var(--bg);
  color: var(--text);
}

html[data-theme="light"] .header {
  border-bottom: 1px solid rgba(226, 221, 211, 0.8);
}

html[data-theme="light"] h1 {
  background-image: linear-gradient(
    100deg,
    #2b2a27 0%,
    #4d6b57 26%,
    #7c9a86 44%,
    #a98a5c 62%,
    #2b2a27 100%
  );
  -webkit-text-fill-color: transparent;
}

html[data-theme="light"] .logo__brand,
html[data-theme="light"] .eyebrow {
  color: var(--accent-dark);
}

html[data-theme="light"] .hero::before {
  background: linear-gradient(120deg, #b9d3c1, #d9e7cf, #cfe0d5);
  opacity: .55;
  filter: blur(70px);
}

html[data-theme="light"] .hero::after {
  background: linear-gradient(120deg, #ecd9bf, #f3e6d2, #e6d3bb);
  opacity: .55;
  filter: blur(70px);
}

/* 2. ТЁМНАЯ ТЕМА (BLACK / DARK) */
html[data-theme="dark"],
.theme-dark {
  --bg: #141715;
  --bg-soft: #1a1e1b;
  --card: #202522;
  --text: #e7ece8;
  --text-muted: #9aa49c;
  --accent: #86ab92;
  --accent-dark: #9eccaf;
  --accent-soft: #232d26;
  --border: #2c342e;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --header-bg: rgba(20, 23, 21, 0.88);
  --cookie-bg: rgba(20, 23, 21, 0.96);
  --card-translucent: rgba(32, 37, 34, 0.75);
  color-scheme: dark;
}

html[data-theme="dark"] body,
.theme-dark body {
  background: var(--bg);
  color: var(--text);
}

html[data-theme="dark"] .header,
.theme-dark .header {
  border-bottom: 1px solid var(--border);
}

html[data-theme="dark"] .hero__card,
.theme-dark .hero__card {
  background: radial-gradient(120% 80% at 20% 10%, #252e27 0%, #1c221e 100%);
  border: 1px solid var(--border);
}

html[data-theme="dark"] .hero__quote,
.theme-dark .hero__quote {
  color: #c7d4cb;
}

html[data-theme="dark"] .badge,
.theme-dark .badge {
  background: var(--accent);
  color: #141715;
  font-weight: 800;
}

html[data-theme="dark"] .contact__text-block b,
.theme-dark .contact__text-block b {
  color: var(--text);
}

html[data-theme="dark"] .contact__text-block span,
.theme-dark .contact__text-block span {
  color: var(--text-muted);
}

html[data-theme="dark"] .fact__icon,
.theme-dark .fact__icon {
  background: var(--accent-soft);
  color: var(--accent);
}

html[data-theme="dark"] .placeholder,
.theme-dark .placeholder {
  color: #f1cf88;
  background: rgba(226, 185, 115, 0.16);
  border-bottom: 1px dashed #e2b973;
}

html[data-theme="dark"] .logo__brand,
html[data-theme="dark"] .eyebrow,
.theme-dark .logo__brand,
.theme-dark .eyebrow {
  color: #9eccaf;
}

html[data-theme="dark"] h1,
.theme-dark h1 {
  background-image: linear-gradient(
    100deg,
    #ffffff 0%,
    #e2f3e8 26%,
    #c4e5ce 44%,
    #faebd2 62%,
    #ffffff 100%
  );
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-theme="dark"] .lead,
.theme-dark .lead {
  color: #c7d2ca;
}

html[data-theme="dark"] .hero__facts li,
.theme-dark .hero__facts li {
  color: #a3b0a6;
}

html[data-theme="dark"] .hero__facts li::before,
.theme-dark .hero__facts li::before {
  background: #86ab92;
}

html[data-theme="dark"] .hero::before,
.theme-dark .hero::before {
  background: linear-gradient(120deg, #183522, #244d33, #1c3c27);
  background-size: 220% 220%;
  opacity: .45;
  filter: blur(95px);
}

html[data-theme="dark"] .hero::after,
.theme-dark .hero::after {
  background: linear-gradient(120deg, #382c19, #4a3a22, #342917);
  background-size: 220% 220%;
  opacity: .40;
  filter: blur(95px);
}

/* 3. СИСТЕМНАЯ ТЕМНАЯ ТЕМА (если пользователь не выбрал принудительно light) */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #141715;
    --bg-soft: #1a1e1b;
    --card: #202522;
    --text: #e7ece8;
    --text-muted: #9aa49c;
    --accent: #86ab92;
    --accent-dark: #638870;
    --accent-soft: #232d26;
    --border: #2c342e;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
    --header-bg: rgba(20, 23, 21, 0.88);
    --cookie-bg: rgba(20, 23, 21, 0.96);
    --card-translucent: rgba(32, 37, 34, 0.75);
    color-scheme: dark;
  }

  html:not([data-theme="light"]) body {
    background: var(--bg);
    color: var(--text);
  }

  html:not([data-theme="light"]) .header {
    border-bottom: 1px solid var(--border);
  }

  html:not([data-theme="light"]) .hero__card {
    background: radial-gradient(120% 80% at 20% 10%, #252e27 0%, #1c221e 100%);
    border: 1px solid var(--border);
  }

  html:not([data-theme="light"]) .hero__quote {
    color: #c7d4cb;
  }

  html:not([data-theme="light"]) .badge {
    background: var(--accent);
    color: #141715;
    font-weight: 800;
  }

  html:not([data-theme="light"]) .contact__text-block b {
    color: var(--text);
  }

  html:not([data-theme="light"]) .contact__text-block span {
    color: var(--text-muted);
  }

  html:not([data-theme="light"]) .fact__icon {
    background: var(--accent-soft);
    color: var(--accent);
  }

  html:not([data-theme="light"]) .placeholder {
    color: #f1cf88;
    background: rgba(226, 185, 115, 0.16);
    border-bottom: 1px dashed #e2b973;
  }

  html:not([data-theme="light"]) .logo__brand {
    color: #9eccaf;
  }

  html:not([data-theme="light"]) .eyebrow {
    color: #9eccaf;
  }

  html:not([data-theme="light"]) h1 {
    background-image: linear-gradient(
      100deg,
      #ffffff 0%,
      #e2f3e8 26%,
      #c4e5ce 44%,
      #faebd2 62%,
      #ffffff 100%
    );
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  html:not([data-theme="light"]) .lead {
    color: #c7d2ca;
  }

  html:not([data-theme="light"]) .hero__facts li {
    color: #a3b0a6;
  }

  html:not([data-theme="light"]) .hero__facts li::before {
    background: #86ab92;
  }

  html:not([data-theme="light"]) .hero::before {
    background: linear-gradient(120deg, #183522, #244d33, #1c3c27);
    background-size: 220% 220%;
    opacity: .45;
    filter: blur(95px);
  }

  html:not([data-theme="light"]) .hero::after {
    background: linear-gradient(120deg, #382c19, #4a3a22, #342917);
    background-size: 220% 220%;
    opacity: .40;
    filter: blur(95px);
  }
}


/* =========================================================
   REVIEWS & TESTIMONIALS SECTION (ECO-PSY ULTRA DESIGN)
   ========================================================= */
.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.reviews-header__text {
  flex: 1 1 450px;
}

.reviews-header__text .section__title {
  margin-bottom: 8px;
}

.reviews-header__action {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.reviews-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(43, 42, 39, 0.05);
}

.reviews-rating-pill__val {
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}

.reviews-rating-pill__stars {
  color: #e5a93c;
  letter-spacing: 2px;
  font-size: 14px;
}

.reviews-rating-pill__count {
  font-size: 12.5px;
  color: var(--text-muted);
}

.reviews-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.reviews-filter__title {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
  margin-right: 4px;
}

.reviews-filter__btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.reviews-filter__btn:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}

.reviews-filter__btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(124, 154, 134, 0.35);
}

.reviews-grid {
  margin-bottom: 24px;
}

.reviews-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 8px 0 16px;
}

.reviews-empty__icon {
  font-size: 42px;
  line-height: 1;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 10px rgba(124, 154, 134, 0.25));
}

.reviews-empty__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.reviews-empty__text {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.reviews-empty__btn {
  padding: 12px 28px;
  font-size: 15px;
}

.review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(43, 42, 39, 0.09);
  border-color: #cbd7cc;
}

.review-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.review-card__person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), #d1e2d4);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(124, 154, 134, 0.25);
}

.review-card__author {
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.review-card__date {
  font-size: 12px;
  color: var(--text-muted);
}

.review-card__source--site {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border: 1px solid rgba(124, 154, 134, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.review-card__rating {
  color: #e5a93c;
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.review-card__topic {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--accent-soft);
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 8px;
  margin-bottom: 14px;
}

.review-card__body {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
  flex: 1;
}

/* Gallery inside review card */
.review-card__gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.review-gallery-thumb {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: var(--bg-soft);
}

.review-gallery-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  border-color: var(--accent);
}

.review-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reviews-bottom {
  text-align: center;
  margin-top: 16px;
}

/* Modal styling & Image Dropzone */
.modal-card--review {
  width: min(580px, 100%);
  max-height: 90vh;
}

.modal-lead-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 16px;
}

.req-star {
  color: #cf223e;
}

.rating-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 14px;
  background: var(--bg-soft);
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.rating-stars {
  display: inline-flex;
  gap: 4px;
  cursor: pointer;
}

.rating-stars .star {
  font-size: 26px;
  color: #d1ccbf;
  transition: color 0.15s ease, transform 0.15s ease;
  user-select: none;
  line-height: 1;
}

.rating-stars .star.is-active,
.rating-stars .star.is-hover {
  color: #e5a93c;
}

.rating-stars .star:hover {
  transform: scale(1.15);
}

.rating-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

/* Image Dropzone in Modal */
.review-dropzone {
  border: 2px dashed var(--border);
  border-radius: 14px;
  padding: 16px;
  background: var(--bg-soft);
  text-align: center;
  margin: 6px 0 16px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.review-dropzone.is-dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.review-dropzone__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.review-dropzone__clip {
  font-size: 26px;
  line-height: 1;
}

.review-dropzone__text {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 13.5px;
  color: var(--text-muted);
}

.review-dropzone__btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.review-dropzone__btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.review-dropzone__hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 4px 0 0;
  line-height: 1.4;
}

.review-dropzone__hint b {
  color: var(--accent-dark);
}

/* Thumbnails list inside dropzone */
.review-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  justify-content: center;
}

.review-thumb-item {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.review-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review-thumb-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  background: rgba(43, 42, 39, 0.75);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s;
}

.review-thumb-remove:hover {
  background: #cf223e;
}

/* Fullscreen Lightbox */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.lightbox-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 24, 20, 0.88);
  backdrop-filter: blur(8px);
}

.lightbox-modal__box {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-modal__img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.lightbox-modal__close {
  position: absolute;
  top: -42px;
  right: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 34px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  opacity: 0.85;
  transition: opacity 0.15s, transform 0.15s;
}

.lightbox-modal__close:hover {
  opacity: 1;
  transform: scale(1.1);
}

.lightbox-modal__caption {
  color: #e5ece6;
  font-size: 13.5px;
  margin-top: 10px;
  text-align: center;
}

/* Dark mode overrides for reviews */
.theme-dark .reviews-rating-pill,
.theme-dark .reviews-filter__btn,
.theme-dark .review-card,
.theme-dark .rating-picker,
.theme-dark .review-dropzone {
  background: var(--card);
  border-color: var(--border);
}

.theme-dark .review-card__avatar {
  background: rgba(124, 154, 134, 0.25);
  color: #a8cfb4;
}

.theme-dark .rating-stars .star {
  color: #555047;
}

.theme-dark .rating-stars .star.is-active,
.theme-dark .rating-stars .star.is-hover {
  color: #f1b74a;
}

/* ---------- Hero Top Row (Eyebrow + Theme Switcher) ---------- */
.hero__top-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hero__top-row .eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

/* Элегантный переключатель темы рядом с текстом */
.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124, 154, 134, 0.12);
  border: 1px solid rgba(124, 154, 134, 0.28);
  border-radius: 999px;
  padding: 3px 12px 3px 4px;
  cursor: pointer;
  user-select: none;
  font-family: var(--font-body);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.theme-switch:hover {
  background: rgba(124, 154, 134, 0.20);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 154, 134, 0.18);
}

.theme-switch:active {
  transform: translateY(0) scale(0.98);
}

.theme-switch__dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s;
  flex-shrink: 0;
}

.theme-switch__ico {
  font-size: 14px;
  line-height: 1;
  position: absolute;
  transition: opacity 0.22s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-switch__ico--sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.theme-switch__ico--moon {
  opacity: 0;
  transform: scale(0.4) rotate(-90deg);
}

.theme-switch__label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
  transition: color 0.2s;
  white-space: nowrap;
}

/* Тёмная тема для переключателя */
html[data-theme="dark"] .theme-switch,
.theme-dark .theme-switch {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .theme-switch:hover,
.theme-dark .theme-switch:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--accent-dark);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .theme-switch__dot,
.theme-dark .theme-switch__dot {
  background: #1a221d;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .theme-switch__ico--sun,
.theme-dark .theme-switch__ico--sun {
  opacity: 0;
  transform: scale(0.4) rotate(90deg);
}

html[data-theme="dark"] .theme-switch__ico--moon,
.theme-dark .theme-switch__ico--moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Адаптив под мобильные телефоны (<540px) */
@media (max-width: 540px) {
  .hero__top-row {
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
  }
  .theme-switch {
    padding: 2px 9px 2px 3px;
  }
  .theme-switch__dot {
    width: 24px;
    height: 24px;
  }
  .theme-switch__ico {
    font-size: 13px;
  }
  .theme-switch__label {
    font-size: 11.5px;
  }
}

@media (max-width: 360px) {
  .hero__top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ==========================================================
   Фирменный кастомный селект с анимированной стрелочкой и меню
   ========================================================== */
.custom-select-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 16px;
}

.custom-select-trigger {
  width: 100%;
  padding: 13px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(43, 42, 39, 0.03);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.custom-select-trigger:hover {
  border-color: rgba(124, 154, 134, 0.55);
}

.custom-select-wrap.is-open .custom-select-trigger {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 154, 134, 0.24);
}

.custom-select-trigger__text {
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-select-trigger__arrow {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  margin-left: 12px;
  flex-shrink: 0;
}

.custom-select-wrap.is-open .custom-select-trigger__arrow {
  transform: rotate(-135deg);
}

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 16px 40px rgba(43, 42, 39, 0.16);
  z-index: 100;
  max-height: 240px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
  pointer-events: none;
}

.custom-select-wrap.is-open .custom-select-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.custom-select-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 14.5px;
  color: var(--text);
  transition: background-color 0.16s ease, transform 0.16s ease, color 0.16s ease;
  user-select: none;
}

.custom-select-option:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
  transform: translateX(3px);
}

.custom-select-option.is-selected {
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
}

.custom-select-option.is-selected .custom-select-option__icon {
  transform: scale(1.15);
}

.custom-select-option__icon {
  font-size: 16px;
  line-height: 1;
  transition: transform 0.16s ease;
}

.theme-dark .custom-select-dropdown {
  background: rgba(36, 42, 38, 0.98);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.12);
}

.theme-dark .custom-select-option:hover {
  background: rgba(124, 154, 134, 0.2);
  color: #a8cfb4;
}

/* Стилизация полей модального окна отзыва */
#reviewForm input[type="text"],
#reviewForm textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

#reviewForm input[type="text"]:focus,
#reviewForm textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 154, 134, 0.22);
}

#reviewForm select option {
  background: var(--card);
  color: var(--text);
  padding: 8px 12px;
}

/* Dark mode overrides for cards, links and success cards */
html[data-theme="dark"] .form__success-card,
.theme-dark .form__success-card {
  background: rgba(124, 154, 134, 0.14);
  border-color: rgba(124, 154, 134, 0.35);
}

html[data-theme="dark"] .contact__link:hover,
.theme-dark .contact__link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
}

.modal-body code {
  background: var(--bg-soft);
  color: var(--accent-dark);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 13px;
}

html[data-theme="dark"] .modal-body code,
.theme-dark .modal-body code {
  background: rgba(255, 255, 255, 0.08);
  color: #a8cfb4;
  border: 1px solid var(--border);
}

/* ==========================================================
   Фирменные модальные уведомления и подтверждения (Eco Toast / Alert)
   ========================================================== */
.eco-toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: min(92vw, 420px);
  width: 100%;
}

.eco-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(43, 42, 39, 0.18);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  font-size: 14.5px;
  line-height: 1.4;
}

.eco-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.eco-toast__icon {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
}

.eco-toast--warn {
  border-left: 4px solid #e5a93c;
}

.eco-toast--err {
  border-left: 4px solid #cf223e;
}

.eco-toast--ok {
  border-left: 4px solid var(--accent);
}

.theme-dark .eco-toast {
  background: rgba(36, 42, 38, 0.95);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

/* =========================================================
   ARTICLES & RECOMMENDATIONS (СТАТЬИ И РЕКОМЕНДАЦИИ)
   ========================================================= */
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.section-header-row__text {
  flex: 1 1 450px;
}

.section-header-row__text .section__title {
  margin-bottom: 8px;
}

/* Фильтры статей и рекомендаций */
.articles-filter,
.recommendations-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.articles-filter__title,
.recommendations-filter__title {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
  margin-right: 4px;
}

.articles-filter__btn,
.recommendations-filter__btn {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.articles-filter__btn:hover,
.recommendations-filter__btn:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}

.articles-filter__btn.is-active,
.recommendations-filter__btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(124, 154, 134, 0.35);
}

/* Пустые состояния */
.articles-empty,
.recommendations-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 8px 0 16px;
}

.articles-empty__icon,
.recommendations-empty__icon {
  font-size: 40px;
  margin-bottom: 14px;
  line-height: 1;
}

.articles-empty__title,
.recommendations-empty__title {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 400;
  margin: 0 0 8px;
  color: var(--text);
}

.articles-empty__text,
.recommendations-empty__text {
  color: var(--text-muted);
  font-size: 14.5px;
  max-width: 480px;
  margin: 0;
  line-height: 1.55;
}

/* Карточка статьи */
.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(43, 42, 39, 0.09);
  border-color: #cbd7cc;
}

.article-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.article-card__topic {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

.article-card__date {
  font-size: 12px;
  color: var(--text-muted);
}

.article-card__title {
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  margin: 0 0 10px;
}

.article-card__snippet {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.article-card__read-more {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.article-card__read-time {
  font-size: 12px;
  color: var(--text-muted);
}

/* Карточка рекомендации */
.recommendation-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.recommendation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(43, 42, 39, 0.09);
  border-color: #cbd7cc;
}

.recommendation-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.recommendation-card__badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.recommendation-card__badge--channel {
  background: rgba(42, 171, 238, 0.15);
  color: #1c88be;
}

.recommendation-card__badge--book {
  background: rgba(181, 137, 78, 0.15);
  color: #8c6328;
}

.recommendation-card__badge--movie {
  background: rgba(114, 137, 218, 0.15);
  color: #4f67b5;
}

.recommendation-card__badge--practice {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.recommendation-card__badge--resource {
  background: rgba(100, 160, 150, 0.15);
  color: #2b7a6d;
}

.recommendation-card__date {
  font-size: 12px;
  color: var(--text-muted);
}

/* Профиль рекомендации: Аватар с инициалами + Значок соцсети */
.recommendation-card__profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.recommendation-card__avatar-badge {
  position: relative;
  flex-shrink: 0;
}

.recommendation-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #7c9a86 0%, #4e6b58 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(78, 107, 88, 0.22);
  letter-spacing: 0.5px;
  user-select: none;
}

.recommendation-card__platform-pill {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--card);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  color: #ffffff;
}

.recommendation-card__platform-pill svg {
  width: 12px;
  height: 12px;
  display: block;
}

/* Цвета значков платформ / соцсетей */
.rec-pill--tg { background: #2aabee; }
.rec-pill--wa { background: #25D366; }
.rec-pill--max { background: #0055ff; }
.rec-pill--vk { background: #0077ff; }
.rec-pill--ok { background: #ee8208; }
.rec-pill--yt { background: #ff0000; }
.rec-pill--web { background: #2b7a6d; }
.rec-pill--book { background: #8c6328; }
.rec-pill--movie { background: #4f67b5; }
.rec-pill--practice { background: #4e6b58; }

.recommendation-card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.recommendation-card__title {
  font-family: var(--font-title);
  font-size: 17.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin: 0;
}

.recommendation-card__author {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 0;
}

.recommendation-card__comment {
  position: relative;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: rgba(124, 154, 134, 0.08);
  border-left: 3px solid var(--accent);
  padding: 11px 14px;
  border-radius: 0 10px 10px 0;
  margin: 0 0 16px;
  flex: 1;
}

/* Брендированная кнопка перехода */
.recommendation-card__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #ffffff !important;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: auto;
}

.recommendation-card__btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.recommendation-card__btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.recommendation-card__btn-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.recommendation-card__btn-label {
  flex: 1;
  text-align: left;
}

.recommendation-card__btn-arrow {
  font-size: 16px;
  transition: transform 0.2s ease;
}

.recommendation-card__btn:hover .recommendation-card__btn-arrow {
  transform: translateX(3px);
}

/* Градиенты брендированных кнопок соцсетей / платформ */
.rec-btn--tg {
  background: linear-gradient(135deg, #2aabee 0%, #229ed9 100%);
  box-shadow: 0 4px 14px rgba(42, 171, 238, 0.32);
}
.rec-btn--wa {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}
.rec-btn--max {
  background: linear-gradient(135deg, #2272ff 0%, #0055ff 100%);
  box-shadow: 0 4px 14px rgba(0, 85, 255, 0.32);
}
.rec-btn--vk {
  background: linear-gradient(135deg, #2787f5 0%, #0077ff 100%);
  box-shadow: 0 4px 14px rgba(0, 119, 255, 0.32);
}
.rec-btn--ok {
  background: linear-gradient(135deg, #f59623 0%, #ee8208 100%);
  box-shadow: 0 4px 14px rgba(238, 130, 8, 0.32);
}
.rec-btn--yt {
  background: linear-gradient(135deg, #ff2a2a 0%, #cc0000 100%);
  box-shadow: 0 4px 14px rgba(204, 0, 0, 0.32);
}
.rec-btn--web {
  background: linear-gradient(135deg, #7c9a86 0%, #4e6b58 100%);
  box-shadow: 0 4px 14px rgba(78, 107, 88, 0.28);
}
.rec-btn--book {
  background: linear-gradient(135deg, #b5894e 0%, #8c6328 100%);
  box-shadow: 0 4px 14px rgba(140, 99, 40, 0.3);
}
.rec-btn--movie {
  background: linear-gradient(135deg, #7289da 0%, #4f67b5 100%);
  box-shadow: 0 4px 14px rgba(79, 103, 181, 0.3);
}
.rec-btn--practice {
  background: linear-gradient(135deg, #7c9a86 0%, #4e6b58 100%);
  box-shadow: 0 4px 14px rgba(78, 107, 88, 0.28);
}

.theme-dark .recommendation-card__platform-pill {
  border-color: var(--card);
}
.theme-dark .recommendation-card__comment {
  background: rgba(168, 207, 180, 0.08);
  border-left-color: var(--accent);
}

/* Модальное окно для чтения статьи */
.modal-card--article {
  width: min(720px, 100%);
  max-height: 88vh;
}

.article-modal__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.article-modal__badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

.article-modal__date,
.article-modal__time {
  font-size: 12.5px;
  color: var(--text-muted);
}

.article-modal__body {
  padding: 24px 28px;
  overflow-y: auto;
}

.article-modal__title {
  font-family: var(--font-title);
  font-size: 26px;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 16px;
}

.article-modal__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.article-modal__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.article-modal__author-name {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.article-modal__author-role {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
}

.article-modal__content {
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--text);
}

.article-modal__content p {
  margin: 0 0 16px;
}

.article-modal__footer {
  margin-top: 32px;
  padding: 24px 20px;
  background: rgba(124, 154, 134, 0.08);
  border-radius: 14px;
  text-align: center;
}

.article-modal__footer p {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--text);
}

/* Адаптации для тёмной темы */
.theme-dark .article-card,
.theme-dark .recommendation-card,
.theme-dark .articles-filter__btn,
.theme-dark .recommendations-filter__btn,
.theme-dark .articles-empty,
.theme-dark .recommendations-empty {
  background: var(--card);
  border-color: var(--border);
}

.theme-dark .recommendation-card__comment {
  background: rgba(124, 154, 134, 0.12);
}

.theme-dark .article-modal__footer {
  background: rgba(124, 154, 134, 0.12);
}

@media (max-width: 640px) {
  .modal-card--article {
    max-height: 94vh;
  }
  .article-modal__body {
    padding: 18px 16px;
  }
  .article-modal__title {
    font-size: 22px;
  }
  .article-modal__content {
    font-size: 15.5px;
    line-height: 1.7;
  }
}

/* =========================================================
   ОТДЕЛЬНЫЕ СТРАНИЦЫ И ПРОМО-БЛОК В СЕРЕДИНЕ САЙТА
   ========================================================= */

/* Активный пункт меню */
.nav a.is-active {
  color: var(--accent);
  font-weight: 600;
}

/* Отдельные страницы (Статьи, Рекомендации) */
.page-subpage .header {
  border-bottom: 1px solid var(--border);
}
.page-subpage .page-content {
  padding-top: 10px;
}

.section--articles-page,
.section--recs-page {
  padding-top: 36px;
  padding-bottom: 90px;
  min-height: 70vh;
}

/* Хлебные крошки */
.breadcrumbs {
  margin-bottom: 24px;
  font-size: 13.5px;
}
.breadcrumbs__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  color: var(--text-muted);
}
.breadcrumbs__list li + li::before {
  content: "/";
  color: var(--border);
  margin-right: 8px;
}
.breadcrumbs__list a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.18s ease;
}
.breadcrumbs__list a:hover {
  color: var(--accent-dark);
}
.breadcrumbs__list li[aria-current="page"] {
  color: var(--accent-dark);
  font-weight: 500;
}

/* Заголовок отдельных страниц */
.page-title {
  font-family: var(--font-title);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  color: var(--text);
  margin: 0 0 10px;
  line-height: 1.25;
}
.page-lead {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 68ch;
  margin: 0 0 28px;
}

/* Баннер-призыв внизу отдельных страниц */
.page-cta-banner {
  margin-top: 56px;
  padding: 36px 36px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.page-cta-banner__title {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin: 0 0 6px;
}
.page-cta-banner__text {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
  max-width: 58ch;
}
@media (max-width: 768px) {
  .page-cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
  }
  .page-cta-banner .btn {
    width: 100%;
  }
}

/* ПРОМО-БЛОК В СЕРЕДИНЕ САЙТА (.materials-promo) */
.materials-promo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .materials-promo {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.materials-promo__card {
  display: flex;
  flex-direction: column;
  padding: 32px 30px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}
.materials-promo__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(43, 42, 39, 0.08);
  border-color: rgba(124, 154, 134, 0.45);
}

.materials-promo__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 10px;
}
.materials-promo__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}
.materials-promo__top-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.materials-promo__badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
}
.materials-promo__count {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.materials-promo__title {
  font-family: var(--font-title);
  font-size: 23px;
  font-weight: 400;
  color: var(--text);
  margin: 0 0 10px;
  line-height: 1.3;
}
.materials-promo__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 20px;
  flex-grow: 1;
}

.materials-promo__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.materials-promo__tag {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
  transition: all 0.2s ease;
}
.materials-promo__card:hover .materials-promo__tag {
  border-color: rgba(124, 154, 134, 0.35);
  color: var(--text);
}

.materials-promo__btn {
  align-self: flex-start;
  font-size: 14.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 520px) {
  .materials-promo__card {
    padding: 24px 20px;
  }
  .materials-promo__btn {
    width: 100%;
    justify-content: center;
  }
}

/* Тёмная тема */
.theme-dark .materials-promo__card,
.theme-dark .page-cta-banner {
  background: var(--card);
  border-color: var(--border);
}
.theme-dark .materials-promo__icon {
  background: rgba(124, 154, 134, 0.22);
}
.theme-dark .materials-promo__tag {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  color: #c4d7c8;
}
.theme-dark .breadcrumbs__list li[aria-current="page"] {
  color: #a8cfb4;
}



/* ================= ЕДИНАЯ ЗАКЛЁПКА ЗАКРЕПЛЕНИЯ (ДЛЯ ПОЛЬЗОВАТЕЛЕЙ НА САЙТЕ) ================= */
.badge-pinned {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(200, 163, 107, 0.16);
  color: #8c672b;
  border: 1px solid rgba(200, 163, 107, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 4px rgba(200, 163, 107, 0.12);
  line-height: 1.2;
  white-space: nowrap;
}

.review-card--pinned,
.article-card--pinned,
.recommendation-card--pinned {
  border-color: rgba(200, 163, 107, 0.45) !important;
  box-shadow: 0 4px 18px rgba(200, 163, 107, 0.12) !important;
  position: relative;
}

.theme-dark .badge-pinned {
  background: rgba(200, 163, 107, 0.22);
  color: #dfba7c;
  border-color: rgba(200, 163, 107, 0.45);
}

.theme-dark .review-card--pinned,
.theme-dark .article-card--pinned,
.theme-dark .recommendation-card--pinned {
  border-color: rgba(200, 163, 107, 0.5) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}
