/* ═══════════════════════════════════════════════════════════
   BONO MODO — Soft Luxe Design System
   Тёплая пастель · терракот · serif-дисплей + гротеск
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Палитра */
  --bg:          #F6EFE4;
  --bg-deep:     #EFE5D5;
  --surface:     #FCF8F1;
  --surface-2:   #F1E7D7;
  --ink:         #271F18;
  --ink-2:       #3D342B;
  --muted:       #7C7062;
  --muted-2:     #9A8E7E;
  --accent:      #BE6A4E;   /* терракот */
  --accent-deep: #9E5238;
  --accent-2:    #D6A064;   /* охра */
  --accent-soft: #ECD6C4;
  --rose:        #E7CDBC;
  --green:       #6E7F63;   /* приглушённый шалфей для аналитики */
  --line:        rgba(39,31,24,0.12);
  --line-soft:   rgba(39,31,24,0.07);

  /* Тени */
  --shadow-sm: 0 2px 10px rgba(60,42,28,0.06);
  --shadow:    0 10px 30px rgba(60,42,28,0.08);
  --shadow-lg: 0 26px 60px rgba(60,42,28,0.14);

  /* Типографика */
  --font-serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-sans:  'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Радиусы и сетка */
  --r-sm: 12px;
  --r:    20px;
  --r-lg: 30px;
  --r-xl: 42px;
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── Reset / base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(214,160,100,0.16), transparent 60%),
    radial-gradient(900px 500px at -5% 8%, rgba(190,106,78,0.10), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; padding: 0; }

::selection { background: var(--accent); color: #fff; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

/* ─── Layout ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.section { padding-block: clamp(64px, 9vw, 130px); position: relative; }
.section--tight { padding-block: clamp(40px, 6vw, 80px); }
.section--breadcrumbs { padding-block: 28px 0; }

.section__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent-deep); margin-bottom: 20px;
}
.section__eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--accent); }
.section__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(34px, 5.4vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section__title em { font-style: italic; color: var(--accent-deep); }
.section__subtitle {
  margin-top: 22px;
  max-width: 60ch;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--muted);
  line-height: 1.55;
}
.text-center { text-align: center; }
.text-center.section__title { margin-inline: auto; }
.lead { font-size: 1.18em; color: var(--ink-2); }

/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  border-radius: 100px;
  background: var(--ink); color: var(--surface);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent-deep); }
.btn--light { background: var(--surface); color: var(--ink); }
.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn--lg { padding: 19px 38px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }

/* ─── Header / Nav ─────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s;
}
.header.is-scrolled {
  background: rgba(246,239,228,0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line-soft), 0 8px 30px rgba(60,42,28,0.05);
}
.nav__container { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 30px; }
.nav__logo { display: inline-flex; align-items: baseline; gap: 2px; font-family: var(--font-serif); font-weight: 600; font-size: 25px; letter-spacing: 0.04em; color: var(--ink); }
.nav__logo-text { display: inline-flex; }
.nav__logo-star { color: var(--accent); font-size: 0.62em; align-self: flex-start; transform: translateY(0.12em); }
.nav__logo-sep { width: 0.32em; }

.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__link { position: relative; font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 6px 0; transition: color .25s; }
.nav__link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px; background: var(--accent); transition: width .3s var(--ease); }
.nav__link:hover, .nav__link.active { color: var(--accent-deep); }
.nav__link:hover::after, .nav__link.active::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 20px; }
.nav__phone { font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.nav__phone:hover { color: var(--accent-deep); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__toggle-bar { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Marquee (бегущая строка трендов) ─────────────────────── */
.marquee { border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; padding-block: 18px; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 26px; padding-inline: 26px;
  font-family: var(--font-serif); font-style: italic; font-size: clamp(20px, 2.4vw, 30px);
  color: var(--ink-2); white-space: nowrap;
}
.marquee__item::after { content: "✦"; font-style: normal; font-size: 0.6em; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─── Reveal animation ─────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ─── Breadcrumbs ──────────────────────────────────────────── */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li:not(:last-child)::after { content: "/"; color: var(--muted-2); }
.breadcrumbs a:hover { color: var(--accent-deep); }

/* ─── Contact popup (визитка) ──────────────────────────────── */
.contact-popup { position: fixed; inset: 0; z-index: 200; display: none; }
.contact-popup.open { display: grid; place-items: center; }
.contact-popup__overlay { position: absolute; inset: 0; background: rgba(39,31,24,0.45); backdrop-filter: blur(4px); animation: fade .3s ease; }
.contact-popup__card { position: relative; z-index: 1; width: min(440px, 90vw); background: var(--surface); border-radius: var(--r-lg); padding: 42px 38px; box-shadow: var(--shadow-lg); animation: pop .45s var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.contact-popup__close { position: absolute; top: 18px; right: 22px; font-size: 28px; line-height: 1; color: var(--muted); transition: color .2s; }
.contact-popup__close:hover { color: var(--accent); }
.contact-popup__name { font-family: var(--font-serif); font-size: 30px; font-weight: 600; }
.contact-popup__role { color: var(--muted); margin-top: 4px; font-size: 15px; }
.contact-popup__divider { height: 1px; background: var(--line); margin: 24px 0; }
.contact-popup__item { margin-bottom: 16px; }
.contact-popup__label { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }
.contact-popup__value { font-size: 18px; font-weight: 600; color: var(--ink); }
.contact-popup__value:hover { color: var(--accent-deep); }
.contact-popup__note { font-size: 14.5px; color: var(--muted); margin: 8px 0 22px; line-height: 1.5; }
.contact-popup__btn { width: 100%; }

/* ═══════════════════════════════════════════════════════════
   ЛЕНДИНГ
   ═══════════════════════════════════════════════════════════ */

/* ─── Hero ─────────────────────────────────────────────────── */
.hero { position: relative; display: flex; align-items: center; min-height: calc(100svh - 80px); padding-block: clamp(24px, 3vw, 44px); }
.hero > .container { width: 100%; }
.hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero__star { color: var(--accent); }
.hero__title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(40px, 6.4vw, 92px); line-height: 0.92; letter-spacing: -0.015em; }
.hero__title em { font-style: italic; color: var(--accent-deep); }
.hero__lede { margin-top: 22px; max-width: 44ch; font-size: clamp(16.5px, 1.4vw, 19px); color: var(--ink-2); line-height: 1.55; }
.hero__tagline { display: inline-block; margin-top: 12px; font-family: var(--font-serif); font-style: italic; font-size: 21px; color: var(--accent-deep); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__stats { display: flex; gap: clamp(22px, 3.5vw, 46px); margin-top: 34px; flex-wrap: wrap; }
.hero__stat-num { font-family: var(--font-serif); font-size: clamp(32px, 3.6vw, 46px); font-weight: 600; line-height: 1; color: var(--accent-deep); }
.hero__stat-label { font-size: 13.5px; color: var(--muted); margin-top: 6px; max-width: 18ch; }

.hero__visual { position: relative; }
.hero__card { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4/5; background: linear-gradient(160deg, var(--accent-soft), var(--rose)); box-shadow: var(--shadow-lg); }
.hero__card img { width: 100%; height: 100%; object-fit: cover; object-position: center 14%; }
.hero__badge { position: absolute; left: -24px; bottom: 32px; background: var(--surface); border-radius: var(--r); padding: 16px 22px; box-shadow: var(--shadow); max-width: 250px; }
.hero__badge-title { font-family: var(--font-serif); font-size: 21px; font-weight: 600; line-height: 1.1; }
.hero__badge-text { font-size: 13px; color: var(--muted); margin-top: 5px; line-height: 1.35; }

/* ─── Expert / о Наталье (текстовый профиль, без фото) ─────── */
.expert__grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(34px, 6vw, 90px); align-items: start; }
.expert__head { position: sticky; top: 110px; }
@keyframes spin { to { transform: rotate(360deg); } }
.expert__name { font-family: var(--font-serif); font-size: clamp(38px, 5vw, 68px); font-weight: 500; line-height: 1.0; margin-top: 12px; }
.expert__role { color: var(--accent-deep); font-weight: 600; letter-spacing: .02em; margin-top: 14px; font-size: 15px; }
.expert__bio { color: var(--ink-2); font-size: clamp(17px, 1.5vw, 19px); line-height: 1.66; }
.expert__bio p + p { margin-top: 16px; }
.expert__creds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.expert__cred { font-size: 13.5px; font-weight: 500; color: var(--ink-2); background: var(--surface); padding: 9px 16px; border-radius: 100px; box-shadow: inset 0 0 0 1px var(--line); }
.expert__cred b { color: var(--accent-deep); }

/* ─── Services ─────────────────────────────────────────────── */
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 54px; }
.service { position: relative; padding: 30px 26px 26px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease); display: flex; flex-direction: column; min-height: 230px; }
.service::before { content: ""; position: absolute; inset: 0; opacity: 0; background: linear-gradient(165deg, var(--accent-soft), transparent 70%); transition: opacity .45s; }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service:hover::before { opacity: 1; }
.service__num { position: relative; font-family: var(--font-serif); font-size: 16px; color: var(--accent); font-weight: 600; }
.service__title { position: relative; font-family: var(--font-serif); font-size: 25px; font-weight: 600; line-height: 1.1; margin-top: 18px; }
.service__text { position: relative; font-size: 14.5px; color: var(--muted); margin-top: 12px; line-height: 1.5; flex: 1; }
.service__tags { position: relative; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.service__tag { font-size: 12px; color: var(--ink-2); background: var(--bg-deep); padding: 5px 11px; border-radius: 100px; }
.service--link { text-decoration: none; cursor: pointer; }
.service--link:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service__more { position: relative; margin-top: 16px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--accent-deep); }
.service--link:hover .service__more { color: var(--accent); }

/* ─── Segments (для кого) ──────────────────────────────────── */
.segments__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 54px; }
.segment { padding: 38px 32px; border-radius: var(--r-lg); color: var(--surface); position: relative; overflow: hidden; min-height: 320px; display: flex; flex-direction: column; }
.segment--1 { background: linear-gradient(160deg, #C9785A, var(--accent-deep)); }
.segment--2 { background: linear-gradient(160deg, #8A8266, #5C5A47); }
.segment--3 { background: linear-gradient(160deg, #D6A064, #B07C42); }
.segment__index { font-family: var(--font-serif); font-size: 15px; letter-spacing: .2em; opacity: .8; text-transform: uppercase; }
.segment__title { font-family: var(--font-serif); font-size: 32px; font-weight: 600; line-height: 1.05; margin-top: 16px; }
.segment__text { margin-top: 16px; font-size: 15.5px; line-height: 1.55; opacity: .92; flex: 1; }
.segment__list { margin-top: 20px; display: flex; flex-direction: column; gap: 9px; }
.segment__list li { display: flex; gap: 10px; font-size: 14.5px; opacity: .95; }
.segment__list li::before { content: "—"; opacity: .7; }

/* ─── Cases ────────────────────────────────────────────────── */
.cases-preview__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.cases-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; margin-top: 50px; }
.case-card { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease); isolation: isolate; }
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.case-card__media { position: absolute; inset: 0; z-index: -1; }
.case-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.case-card:hover .case-card__media img { transform: scale(1.06); }
.case-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(30,22,16,0.92) 0%, rgba(30,22,16,0.74) 32%, rgba(30,22,16,0.46) 60%, rgba(30,22,16,0.18) 85%, rgba(30,22,16,0.06) 100%); }
.case-card__body { padding: 28px 26px; color: #fff; text-shadow: 0 1px 5px rgba(20,14,9,0.5); }
.case-card__tag { display: inline-block; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: #fff; background: rgba(30,22,16,0.42); padding: 5px 12px; border-radius: 100px; backdrop-filter: blur(4px); text-shadow: none; }
.case-card__title { font-family: var(--font-serif); font-size: 27px; font-weight: 600; line-height: 1.08; margin-top: 14px; }
.case-card__meta { font-size: 13.5px; opacity: .8; margin-top: 8px; }
.case-card__excerpt { font-size: 14.5px; opacity: .9; margin-top: 10px; line-height: 1.5; }
.case-card--xl { grid-column: span 7; min-height: 420px; }
.case-card--lg { grid-column: span 5; min-height: 420px; }
.case-card--md { grid-column: span 4; }
.cases-grid--all .case-card { grid-column: span 4; }

/* ─── Articles cards ───────────────────────────────────────── */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 8px; }
.related-articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article-card { background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); display: flex; flex-direction: column; }
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.article-card__content { padding: 28px 26px; display: flex; flex-direction: column; height: 100%; }
.article-card__category { align-self: flex-start; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--accent-deep); background: var(--accent-soft); padding: 5px 12px; border-radius: 100px; }
.article-card__title { font-family: var(--font-serif); font-size: 24px; font-weight: 600; line-height: 1.14; margin-top: 16px; }
.article-card__title a:hover { color: var(--accent-deep); }
.article-card__excerpt { font-size: 15px; color: var(--muted); margin-top: 12px; line-height: 1.55; flex: 1; }
.article-card__meta { display: flex; gap: 16px; font-size: 13px; color: var(--muted-2); margin-top: 20px; }
.articles-empty { color: var(--muted); font-size: 18px; margin-top: 20px; }

.article-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 34px 44px; }
.article-filter { font-size: 14px; font-weight: 500; color: var(--ink-2); padding: 9px 18px; border-radius: 100px; box-shadow: inset 0 0 0 1px var(--line); transition: .25s; }
.article-filter:hover { color: var(--accent-deep); box-shadow: inset 0 0 0 1px var(--accent); }
.article-filter.active { background: var(--ink); color: var(--surface); box-shadow: none; }

/* ─── CTA block ────────────────────────────────────────────── */
.cta-block { text-align: center; padding: clamp(40px, 6vw, 72px); border-radius: var(--r-xl); background: linear-gradient(155deg, var(--surface), var(--surface-2)); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cta-block::before { content: "✦"; position: absolute; top: 24px; left: 50%; transform: translateX(-50%); color: var(--accent); font-size: 20px; }
.cta-block__title { font-family: var(--font-serif); font-size: clamp(28px, 3.6vw, 44px); font-weight: 600; line-height: 1.08; }
.cta-block__text { color: var(--muted); margin-top: 16px; font-size: 17px; max-width: 50ch; margin-inline: auto; }
.cta-block .btn { margin-top: 28px; }

/* ─── Contact / form section ───────────────────────────────── */
.contact-section { background: var(--ink); color: var(--surface); border-radius: var(--r-xl) var(--r-xl) 0 0; }
.contact-section .section__title { color: var(--surface); }
.contact-section .section__eyebrow { color: var(--accent-2); }
.contact-section .section__eyebrow::before { background: var(--accent-2); }
.contact-section__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 6vw, 80px); align-items: start; }
.contact-section__lead { color: rgba(252,248,241,0.78); font-size: 18px; line-height: 1.6; margin-top: 22px; max-width: 42ch; }
.contact-section__points { margin-top: 32px; display: flex; flex-direction: column; gap: 18px; }
.contact-point { display: flex; gap: 16px; align-items: flex-start; }
.contact-point__icon { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(214,160,100,0.18); color: var(--accent-2); font-family: var(--font-serif); font-size: 19px; }
.contact-point__title { font-weight: 600; font-size: 16px; }
.contact-point__text { color: rgba(252,248,241,0.65); font-size: 14.5px; margin-top: 2px; }
.contact-section__direct { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 26px; }
.contact-section__direct a { font-family: var(--font-serif); font-size: 22px; color: var(--surface); border-bottom: 1px solid rgba(252,248,241,0.3); padding-bottom: 3px; }
.contact-section__direct a:hover { color: var(--accent-2); border-color: var(--accent-2); }

/* ─── Form ─────────────────────────────────────────────────── */
.lead-form { background: var(--surface); color: var(--ink); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-lg); }
.lead-form__title { font-family: var(--font-serif); font-size: 28px; font-weight: 600; }
.lead-form__sub { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.form-group { margin-top: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); margin-bottom: 8px; }
.form-input, .form-phone-input, textarea.form-input { width: 100%; padding: 14px 16px; font-family: inherit; font-size: 15.5px; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r-sm); transition: border-color .25s, box-shadow .25s; }
.form-input:focus, .form-phone-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(190,106,78,0.12); }
textarea.form-input { min-height: 96px; resize: vertical; }
.form-phone-wrap { display: flex; align-items: stretch; background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r-sm); overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.form-phone-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(190,106,78,0.12); }
.form-phone-prefix { display: flex; align-items: center; gap: 6px; padding: 0 12px; font-weight: 600; font-size: 15px; color: var(--ink-2); background: var(--surface-2); border-right: 1.5px solid var(--line); }
.form-phone-input { border: none; background: transparent; }
.form-phone-input:focus { box-shadow: none; }
.smart-captcha { margin-top: 18px; }
.form-consent { display: flex; gap: 11px; align-items: flex-start; margin-top: 18px; cursor: pointer; }
.consent-checkbox { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.form-consent-text { font-size: 13px; color: var(--muted); line-height: 1.45; }
.form-consent-text a { color: var(--accent-deep); text-decoration: underline; }
.form-btn { margin-top: 22px; width: 100%; padding: 17px; font-size: 15px; font-weight: 600; letter-spacing: .02em; border-radius: 100px; background: var(--accent); color: #fff; transition: background .3s, transform .3s, opacity .3s; }
.form-btn:hover:not(:disabled) { background: var(--accent-deep); transform: translateY(-2px); }
.form-btn:disabled { opacity: .5; cursor: not-allowed; }
.form-status { margin-top: 14px; font-size: 14px; text-align: center; min-height: 20px; }
.form-status--ok { color: #4F7A4A; font-weight: 600; }
.form-status--err { color: #C75B40; font-weight: 600; }

/* ─── Clients ──────────────────────────────────────────────── */
.clients { padding-block: clamp(40px, 5vw, 70px); }
.clients__label { text-align: center; font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; }
.clients__panel { margin-top: 32px; background: #fff; border-radius: var(--r-lg); padding: clamp(28px, 4vw, 50px) clamp(24px, 4vw, 56px); box-shadow: var(--shadow-sm); }
.clients__grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(30px, 5vw, 68px); }
.clients__logo { height: clamp(26px, 3.4vw, 38px); width: auto; opacity: .62; filter: grayscale(1); mix-blend-mode: multiply; transition: opacity .3s, filter .3s; }
.clients__logo:hover { opacity: 1; filter: grayscale(0); }

/* ─── Footer ───────────────────────────────────────────────── */
.footer { background: var(--bg-deep); padding-block: clamp(48px, 6vw, 78px) 30px; border-top: 1px solid var(--line); }
.footer__top { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(30px, 6vw, 80px); }
.footer__logo { font-family: var(--font-serif); font-size: 30px; font-weight: 600; letter-spacing: .04em; }
.footer__logo-star { color: var(--accent); font-size: 0.62em; vertical-align: 0.55em; }
.footer__tagline { font-family: var(--font-serif); font-style: italic; color: var(--accent-deep); margin-top: 6px; }
.footer__about { color: var(--muted); margin-top: 18px; max-width: 44ch; line-height: 1.6; font-size: 15.5px; }
.footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col-title { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }
.footer__col a { font-size: 15.5px; color: var(--ink-2); transition: color .2s; }
.footer__col a:hover { color: var(--accent-deep); }
.footer__geo { font-size: 14px; color: var(--muted); line-height: 1.5; }
.footer__cta-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-block: 42px; padding: 26px 32px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.footer__cta-strip span { font-family: var(--font-serif); font-size: 22px; color: var(--ink); }
.footer__legal { border-top: 1px solid var(--line); padding-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--muted-2); }
.footer__legal p { margin: 0; }
.footer__legal-links { display: flex; gap: 18px; width: 100%; margin-top: 6px; }
.footer__legal-links a:hover { color: var(--accent-deep); }
.footer__link-btn { font-size: 13px; color: var(--muted-2); }
.footer--minimal { padding-block: 26px; text-align: center; }
.footer--minimal p { font-size: 13px; color: var(--muted-2); margin: 0; }

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 460px; }
  .expert__grid { grid-template-columns: 1fr; gap: 12px; }
  .expert__head { position: static; }
  .case-card--xl, .case-card--lg, .case-card--md, .cases-grid--all .case-card { grid-column: span 6; }
}
@media (max-width: 820px) {
  .nav__links { position: fixed; inset: 80px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 4px; background: rgba(246,239,228,0.98); backdrop-filter: blur(16px); padding: 20px var(--gutter) 32px; box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .4s var(--ease); max-height: calc(100vh - 80px); overflow-y: auto; }
  .nav__links.open { transform: none; }
  .nav__link { font-size: 19px; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line-soft); }
  .nav__phone { display: none; }
  .nav__toggle { display: flex; }
  .segments__grid { grid-template-columns: 1fr; }
  .articles-grid, .related-articles { grid-template-columns: 1fr 1fr; }
  .contact-section__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .services__grid { grid-template-columns: 1fr; }
  .articles-grid, .related-articles { grid-template-columns: 1fr; }
  .case-card--xl, .case-card--lg, .case-card--md, .cases-grid--all .case-card { grid-column: span 12; }
  .hero__badge { position: static; margin-top: 16px; max-width: none; }
  .nav__actions .btn { display: none; }
  .footer__nav { grid-template-columns: 1fr; }
  .footer__cta-strip { flex-direction: column; align-items: flex-start; }
}

/* ── HTML-карта сайта (/karta/) ─────────────────────────────── */
.sitemap {
  margin-top: 32px;
  columns: 3 260px;
  column-gap: 40px;
}
.sitemap__group {
  break-inside: avoid;
  margin-bottom: 34px;
  display: inline-block;
  width: 100%;
}
.sitemap__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bg-deep);
}
.sitemap__count {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 20px;
  padding: 1px 9px;
  vertical-align: middle;
  margin-left: 4px;
}
.sitemap__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sitemap__list li { margin: 0 0 7px; }
.sitemap__list a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15.5px;
  line-height: 1.4;
  transition: color .15s ease;
}
.sitemap__list a:hover { color: var(--accent); }
@media (max-width: 640px) {
  .sitemap { columns: 1; }
}

/* ── Обложки карточек статей (журнал + «Читайте также») ─────── */
.article-card__cover {
  display: block;
  aspect-ratio: 1 / 1;          /* обложки серии квадратные — показываем целиком, без обрезки */
  flex-shrink: 0;               /* не давать flex-колонке сжимать бокс по высоте (иначе object-fit срежет низ) */
  overflow: hidden;
  background: var(--bg-deep);
}
.article-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease);
}
.article-card:hover .article-card__cover img { transform: scale(1.04); }

/* ── Страница об авторе (/avtor/) ───────────────────────────── */
.author {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 24px;
}
.author__aside { position: sticky; top: 100px; }
.author__photo {
  width: 100%;
  border-radius: var(--r);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.author__facts { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.author__fact {
  background: var(--surface);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: inset 0 0 0 1px rgba(39,31,24,.06);
}
.author__fact-num {
  display: block;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 26px;
  line-height: 1;
  color: var(--accent-deep);
}
.author__fact-cap { display: block; font-size: 14px; color: var(--muted); margin-top: 5px; line-height: 1.4; }
.author__name { font-family: var(--font-serif); font-weight: 600; font-size: clamp(34px, 5vw, 48px); line-height: 1.05; margin: 8px 0 6px; }
.author__role { font-size: 18px; color: var(--accent-deep); font-weight: 600; margin-bottom: 22px; }
.author__bio p { font-size: 17px; line-height: 1.6; color: var(--ink); margin-bottom: 14px; }
.author__subtitle { font-family: var(--font-serif); font-weight: 600; font-size: 24px; margin: 34px 0 16px; }
.author__roles { list-style: none; margin: 0; padding: 0; }
.author__role-item { display: grid; grid-template-columns: 68px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--bg-deep); }
.author__role-item:first-child { border-top: none; }
.author__role-year { font-family: var(--font-serif); font-weight: 600; font-size: 20px; color: var(--accent); }
.author__role-text { font-size: 16px; line-height: 1.45; color: var(--ink); }
.author__tags { display: flex; flex-wrap: wrap; gap: 10px; }
.author__tag { font-size: 14px; font-weight: 600; color: var(--accent-deep); background: var(--accent-soft); border-radius: 100px; padding: 7px 15px; }
.author__legal { list-style: none; margin: 0; padding: 0; }
.author__legal li { font-size: 14.5px; color: var(--muted); line-height: 1.5; padding: 5px 0; }
.author__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
@media (max-width: 720px) {
  .author { grid-template-columns: 1fr; gap: 28px; }
  .author__aside { position: static; max-width: 320px; }
}

/* ═══ Карточка цифрового продукта (renderProductPromo): статьи, услуги, главная ═══ */
.ppromo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.ppromo--inline { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin: 44px 0; }
.ppromo__media { display: block; background: var(--surface-2); }
.ppromo__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.ppromo--inline .ppromo__media img { min-height: 100%; }
.ppromo__body { display: flex; flex-direction: column; padding: 28px 32px 30px; }
.ppromo__kicker { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--accent-deep); }
.ppromo__title { font-family: var(--font-serif); font-weight: 600; font-size: 28px; line-height: 1.12; margin: 10px 0 0; color: var(--ink); }
.ppromo__title a { color: inherit; text-decoration: none; }
.ppromo__title a:hover { color: var(--accent-deep); }
.ppromo__text { color: var(--ink-2); font-size: 16px; line-height: 1.6; margin: 12px 0 0; }
.ppromo__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: auto; padding-top: 22px; }
.ppromo__price { font-family: var(--font-serif); font-weight: 600; font-size: 28px; line-height: 1; color: var(--ink); display: flex; flex-direction: column; gap: 6px; }
.ppromo__price small { font-family: var(--font-sans); font-weight: 400; font-size: 13px; color: var(--muted); line-height: 1.3; }
.ppromo__btn { display: inline-block; padding: 13px 24px; background: var(--accent); color: #fff; border-radius: 100px; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; transition: background .25s, transform .25s; }
.ppromo__btn:hover { background: var(--accent-deep); transform: translateY(-2px); color: #fff; }
.ppromo--side { display: block; text-decoration: none; color: var(--ink); }
.ppromo--side .ppromo__media { aspect-ratio: 1287 / 909; }
.ppromo--side .ppromo__body { padding: 18px 20px 20px; display: block; }
.ppromo--side .ppromo__title { display: block; font-size: 21px; margin-top: 8px; }
.ppromo--side .ppromo__meta { display: block; font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.ppromo--side .ppromo__foot { display: flex; padding-top: 16px; }
.ppromo--side .ppromo__price { font-size: 22px; }
.ppromo--side .ppromo__btn { padding: 11px 18px; font-size: 13px; }
.ppromo--side:hover { border-color: var(--accent); }
.article__body .ppromo__title { margin-top: 10px; }
.article__body .ppromo__text { margin-bottom: 0; }
.service-related--product { margin-top: 48px; }
.service-related--product .ppromo--inline { margin: 0; }
@media (max-width: 820px) {
  .ppromo--inline { grid-template-columns: 1fr; }
  .ppromo--inline .ppromo__media img { max-height: 260px; }
  .ppromo__body { padding: 22px 22px 24px; }
  .ppromo__title { font-size: 24px; }
}
.article__body .ppromo__title a, .article__body .ppromo__title a:hover { text-decoration: none; }
.article__body .ppromo__title a { color: var(--ink); }
.article__body .ppromo__title a:hover { color: var(--accent-deep); }
.article__body .ppromo__btn, .article__body .ppromo__btn:hover { text-decoration: none; color: #fff; }
