:root {
  --bg: #fbf8f5;
  --paper: #fffdfb;
  --ink: #201e1d;
  --muted: #736d69;
  --terracotta: #b85d4d;
  --terracotta-dark: #98493c;
  --terracotta-light: #d7a79d;
  --blush: #f5ebe7;
  --line: #ead7d1;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(57, 38, 31, .06);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(251, 248, 245, .93);
  border-bottom: 1px solid rgba(184, 93, 77, .14);
}
.header-inner {
  min-height: 84px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.brand-logo { width: 54px; height: 54px; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; }
.brand-copy strong { font: 500 19px/1.15 var(--serif); letter-spacing: -.01em; }
.brand-copy small { margin-top: 5px; color: var(--muted); line-height: 1.25; font-size: 11px; }
.desktop-nav { display: flex; justify-content: center; gap: 28px; font-size: 14px; color: #3e3936; }
.desktop-nav a { position: relative; padding: 31px 0 28px; }
.desktop-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 22px; height: 1px; background: var(--terracotta); transition: .25s ease; }
.desktop-nav a:hover::after { right: 0; }

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 14px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--terracotta); color: #fff; border: 1px solid var(--terracotta); }
.btn-primary:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); }
.btn-outline { border: 1px solid var(--terracotta); color: var(--terracotta-dark); background: transparent; }
.btn-outline:hover { background: var(--blush); }
.header-cta { white-space: nowrap; }
.menu-toggle { display: none; border: 0; background: transparent; width: 42px; height: 42px; padding: 10px; }
.menu-toggle span { display: block; height: 1px; background: var(--ink); margin: 7px 0; }
.mobile-menu { padding: 6px 24px 22px; border-top: 1px solid var(--line); background: var(--paper); }
.mobile-menu a:not(.btn) { display: block; padding: 12px 0; border-bottom: 1px solid rgba(184,93,77,.08); }
.mobile-menu .btn { margin-top: 14px; width: 100%; }

.hero { padding: 86px 0 76px; border-bottom: 1px solid rgba(184, 93, 77, .09); }
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; gap: 56px; }
.eyebrow { margin: 0 0 16px; color: var(--terracotta-dark); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
h1,h2,h3,p { margin-top: 0; }
h1 { max-width: 780px; margin-bottom: 22px; font: 500 clamp(48px, 5.2vw, 76px)/.98 var(--serif); letter-spacing: -.035em; }
h2 { margin-bottom: 16px; font: 500 clamp(35px, 3.5vw, 52px)/1.06 var(--serif); letter-spacing: -.025em; }
h3 { margin-bottom: 10px; font: 600 20px/1.2 var(--serif); }
.hero-lead { max-width: 650px; font-size: 21px; color: #4c4744; line-height: 1.5; }
.hero-actions { margin: 34px 0 24px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.text-link { color: var(--terracotta-dark); font-weight: 600; font-size: 14px; }
.text-link span { margin-left: 6px; }
.hero-note { max-width: 660px; font-size: 13px; color: var(--muted); line-height: 1.55; }
.hero-art { justify-self: end; width: min(100%, 500px); }
.hero-art svg { width: 100%; overflow: visible; }
.art-line, .art-check { fill: none; stroke: var(--terracotta); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.art-dash { fill: none; stroke: var(--terracotta-light); stroke-width: 2; stroke-dasharray: 3 11; }
.art-fill { fill: var(--blush); stroke: var(--terracotta); stroke-width: 3; }
.art-check { stroke-width: 4; }
.art-dot { fill: var(--terracotta); }

.service-strip { background: var(--paper); border-bottom: 1px solid var(--line); }
.service-strip-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; padding: 44px 0; align-items: end; }
.service-strip h2 { margin: 0; font-size: 36px; }
.service-strip p:last-child { margin: 0; color: var(--muted); font-size: 17px; }

.section { padding: 88px 0; }
.section-soft { background: var(--paper); border-top: 1px solid rgba(184, 93, 77, .08); border-bottom: 1px solid rgba(184, 93, 77, .08); }
.section-head { margin-bottom: 44px; }
.section-head.centered { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.section-head.left { max-width: 520px; margin: 0; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 17px; }

.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.process-card { position: relative; padding: 42px 25px 28px; min-height: 310px; border-right: 1px solid var(--line); }
.process-card:first-child { border-left: 1px solid var(--line); }
.step-num { position: absolute; top: -17px; left: 25px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--terracotta-dark); border: 1px solid var(--terracotta); background: var(--bg); font-size: 11px; font-weight: 700; }
.line-icon { width: 58px; height: 58px; margin-bottom: 25px; fill: none; stroke: var(--terracotta); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.process-card h3 { font-size: 18px; }

.process-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.court-addon-wrap { margin-top: 28px; display: flex; flex-direction: column; align-items: flex-end; }
.court-addon { width: min(100%, 510px); display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: center; padding: 20px 24px; border-top: 1px solid var(--terracotta-light); border-bottom: 1px solid var(--terracotta-light); background: rgba(255,250,247,.72); }
.court-plus { width: 42px; height: 42px; border: 1px solid var(--terracotta); border-radius: 50%; display: grid; place-items: center; color: var(--terracotta-dark); font: 400 31px/1 var(--serif); }
.court-addon-title { margin: 0 0 4px; color: var(--ink); font: 600 19px/1.2 var(--serif); }
.court-addon-title sup { color: var(--terracotta-dark); font-size: 11px; vertical-align: super; margin-left: 2px; }
.court-addon-copy > p:last-child { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.court-footnote { width: min(100%, 510px); margin: 9px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.court-footnote sup { color: var(--terracotta-dark); font-weight: 700; }

.principles-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.principles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.principles-grid article { padding: 30px; min-height: 215px; background: var(--bg); border-left: 5px solid var(--terracotta); }
.mini-mark { display: block; color: var(--terracotta); font-weight: 700; font-size: 12px; letter-spacing: .08em; margin-bottom: 28px; }
.principles-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.pricing-head { margin-bottom: 34px; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.price-card { padding: 30px 24px; border: 1px solid var(--line); background: var(--paper); text-align: center; min-height: 360px; display: flex; flex-direction: column; align-items: center; }
.price-card.featured { background: #fffaf7; border-color: var(--terracotta-light); }
.price-card.court { border-color: var(--terracotta); }
.price-icon { height: 60px; margin-bottom: 20px; }
.price-icon svg { width: 52px; height: 52px; fill: none; stroke: var(--terracotta); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.price-name { margin: 0; font: 500 24px/1.15 var(--serif); }
.price-subname { margin: 4px 0 0; color: var(--muted); font-size: 12px; min-height: 19px; }
.price-value { margin: 24px 0 4px; color: var(--terracotta-dark); font: 500 52px/1 var(--serif); }
.price-rub { font-size: 36px; line-height: 1.15; margin-top: 35px; }
.price-note { margin-top: auto; color: var(--muted); font-size: 13px; line-height: 1.5; }
.payment-row { margin-top: 20px; display: grid; grid-template-columns: 1.15fr .85fr; border: 1px solid var(--line); background: var(--paper); }
.payment-row > div { display: grid; grid-template-columns: 62px 1fr; gap: 18px; padding: 26px 30px; align-items: center; }
.payment-row > div + div { border-left: 1px solid var(--line); }
.payment-row p { margin: 0; color: var(--muted); font-size: 14px; }
.payment-row strong { color: var(--ink); }
.payment-icon { width: 48px; height: 48px; fill: none; stroke: var(--terracotta); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.contact-section { padding-top: 50px; }
.contact-card { padding: 34px; background: var(--paper); border-top: 1px solid var(--terracotta-light); border-bottom: 1px solid var(--terracotta-light); display: grid; grid-template-columns: 1.15fr 1fr auto; gap: 42px; align-items: center; }
.contact-brand { display: flex; align-items: center; gap: 22px; }
.contact-brand img { width: 96px; height: 96px; object-fit: contain; }
.contact-brand h2 { margin-bottom: 6px; font-size: 32px; }
.contact-brand p:not(.eyebrow) { margin: 0; color: var(--muted); }
.contact-links { display: grid; gap: 7px; font-size: 14px; }
.contact-links a { color: #3f3936; }
.contact-links a:hover { color: var(--terracotta-dark); }
.contact-links span { margin-top: 4px; color: var(--muted); }
.contact-action { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.contact-action small { color: var(--muted); text-align: center; }
.footer { padding: 25px 0 40px; color: var(--muted); font-size: 11px; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; border-top: 1px solid rgba(184,93,77,.12); padding-top: 20px; }

@media (max-width: 1050px) {
  .desktop-nav, .header-cta { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .menu-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr .7fr; gap: 20px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); border-top: 0; gap: 12px; }
  .process-card { border: 1px solid var(--line); min-height: 260px; }
  .process-card:first-child { border-left: 1px solid var(--line); }
  .step-num { top: 18px; }
  .line-icon { margin-top: 35px; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .contact-card { grid-template-columns: 1fr 1fr; }
  .contact-action { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1180px); }
  .header-inner { min-height: 70px; }
  .hero { padding: 55px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(46px, 13vw, 66px); }
  .hero-lead { font-size: 18px; }
  .hero-art { width: 80%; justify-self: center; margin-top: 18px; }
  .service-strip-inner { grid-template-columns: 1fr; gap: 18px; padding: 34px 0; }
  .section { padding: 64px 0; }
  .process-grid { grid-template-columns: 1fr; }
  .process-card { min-height: auto; padding-bottom: 34px; }
  .court-addon-wrap { align-items: stretch; margin-top: 20px; }
  .court-addon, .court-footnote { width: 100%; }
  .court-addon { grid-template-columns: 44px 1fr; padding: 18px 16px; gap: 14px; }
  .court-plus { width: 38px; height: 38px; font-size: 28px; }
  .principles-layout { grid-template-columns: 1fr; gap: 36px; }
  .principles-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card { min-height: 325px; }
  .payment-row { grid-template-columns: 1fr; }
  .payment-row > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .contact-card { grid-template-columns: 1fr; padding: 26px 20px; }
  .contact-brand { align-items: flex-start; }
  .contact-brand img { width: 72px; height: 72px; }
  .contact-brand h2 { font-size: 28px; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Contact modal */
.btn { cursor: pointer; }
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.contact-modal.is-open { display: flex; }
.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 24, 21, .46);
  backdrop-filter: blur(8px);
}
.contact-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(90vh, 860px);
  overflow: auto;
  padding: 42px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 30px 90px rgba(49, 32, 26, .18);
}
.modal-close {
  position: absolute;
  top: 15px;
  right: 17px;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--terracotta-dark);
  font: 300 30px/1 var(--serif);
  cursor: pointer;
}
.modal-head { padding-right: 42px; margin-bottom: 28px; }
.modal-head h2 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 12px; }
.modal-head p:not(.eyebrow) { max-width: 620px; margin: 0; color: var(--muted); font-size: 15px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: grid; gap: 8px; }
.form-field-wide { grid-column: 1 / -1; }
.form-field > span { color: #4d4642; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.form-field b { color: var(--terracotta-dark); font-weight: 700; }
.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid #dfcbc4;
  background: #fff;
  color: var(--ink);
  border-radius: 2px;
  padding: 13px 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field input { min-height: 46px; }
.form-field textarea { resize: vertical; min-height: 122px; line-height: 1.5; }
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(184, 93, 77, .08);
}
.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] { border-color: #a63f31; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: #a29a95; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.consent-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  margin: 20px 0 24px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.consent-row input { margin: 2px 0 0; accent-color: var(--terracotta); }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-submit { min-width: 190px; }
.form-submit[disabled] { opacity: .65; cursor: wait; transform: none; }
.form-status { margin: 0; color: #8d4034; font-size: 12px; }
.form-status.is-info { color: var(--muted); }
.form-success { text-align: center; padding: 44px 10px 18px; }
.success-mark {
  width: 58px;
  height: 58px;
  margin: 0 auto 20px;
  border: 1px solid var(--terracotta);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--terracotta-dark);
  font: 400 30px/1 var(--serif);
}
.form-success h3 { margin-bottom: 10px; font-size: 30px; font-weight: 500; }
.form-success p { max-width: 500px; margin: 0 auto 24px; color: var(--muted); font-size: 14px; }
body.modal-open { overflow: hidden; }

@media (max-width: 760px) {
  .contact-modal { padding: 12px; align-items: flex-end; }
  .contact-modal-dialog { padding: 30px 18px 22px; max-height: 94vh; }
  .modal-head { padding-right: 30px; margin-bottom: 22px; }
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .form-field-wide { grid-column: auto; }
  .form-actions { align-items: stretch; }
  .form-submit { width: 100%; }
}

/* Anchor positioning: keep the Principles section fully in view */
@media (min-width: 761px) {
  #principles {
    min-height: calc(100vh - 84px);
    display: flex;
    align-items: center;
    scroll-margin-top: 84px;
  }

  #principles > .container {
    width: min(1180px, calc(100% - 48px));
  }
}

@media (max-width: 760px) {
  #principles {
    scroll-margin-top: 70px;
  }
}

/* Anchor positioning: keep the pricing section fully in view */
@media (min-width: 761px) {
  #pricing {
    min-height: calc(100vh - 84px);
    display: flex;
    align-items: center;
    scroll-margin-top: 84px;
  }

  #pricing > .container {
    width: min(1180px, calc(100% - 48px));
  }
}

@media (max-width: 760px) {
  #pricing {
    scroll-margin-top: 70px;
  }
}

/* Home screen: keep the next section outside the initial viewport */
@media (min-width: 761px) {
  #home.hero {
    min-height: calc(100vh - 84px);
    display: flex;
    align-items: center;
    padding-top: 52px;
    padding-bottom: 52px;
    scroll-margin-top: 84px;
  }

  #home > .container {
    width: min(1180px, calc(100% - 48px));
  }
}

@media (max-width: 760px) {
  #home { scroll-margin-top: 70px; }
}

/* Mobile first screen — extra compact editorial layout */
@media (max-width: 760px) {
  .container {
    width: calc(100% - 36px);
  }

  .site-header {
    background: rgba(251, 248, 245, .98);
  }

  .header-inner {
    min-height: 62px;
  }

  .brand {
    gap: 8px;
  }

  .site-header .brand-mark {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    min-width: 44px;
    flex-basis: 44px;
  }

  .brand-name {
    font-size: 20px;
    letter-spacing: .035em;
  }

  .menu-toggle {
    width: 38px;
    height: 38px;
    padding: 8px;
  }

  #home.hero {
    min-height: 0;
    display: block;
    padding: 28px 0 34px;
    overflow: hidden;
    scroll-margin-top: 62px;
  }

  #home .hero-grid {
    display: block;
  }

  #home h1 {
    max-width: 330px;
    margin: 0 0 18px;
    font-size: clamp(29px, 8.6vw, 34px);
    line-height: 1.04;
    letter-spacing: -.025em;
  }

  #home .hero-lead {
    max-width: 330px;
    margin: 0;
    font-size: 14.5px;
    line-height: 1.5;
  }

  #home .hero-actions {
    margin: 22px 0 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    width: 100%;
  }

  #home .hero-actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 16px;
    font-size: 13px;
  }

  #home .text-link {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.36);
    font-size: 13px;
  }

  #home .hero-note,
  #home .hero-art {
    display: none !important;
  }
}

@media (max-width: 390px) {
  #home.hero {
    padding-top: 24px;
    padding-bottom: 30px;
  }

  #home h1 {
    max-width: 300px;
    font-size: 29px;
  }

  #home .hero-lead {
    max-width: 300px;
    font-size: 14px;
  }
}

/* 152-ФЗ: форма и юридические страницы */
.form-help {
  display: block;
  margin-top: 8px;
  color: #7d746f;
  font-size: 12px;
  line-height: 1.45;
}
.consent-row a,
.privacy-note a,
.footer-legal-links a,
.legal-page a {
  color: #a94f3f;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.privacy-note {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #6f6762;
}
.footer-legal-wrap {
  flex-wrap: wrap;
  row-gap: 10px;
}
.footer-legal-links {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 12px;
}
.legal-page {
  min-height: 100vh;
  background: #fbf8f5;
  color: #26211f;
}
.legal-shell {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 80px;
}
.legal-topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid #eadbd4;
  margin-bottom: 40px;
}
.legal-topline a {
  text-decoration: none;
}
.legal-topline strong {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  font-weight: 500;
  color: #26211f;
}
.legal-topline span {
  color: #9d4c3d;
  font-size: 13px;
}
.legal-page h1 {
  margin: 0 0 16px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
  font-weight: 500;
}
.legal-version {
  margin: 0 0 36px;
  color: #7a716c;
  font-size: 13px;
}
.legal-page h2 {
  margin: 34px 0 12px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
}
.legal-page p,
.legal-page li {
  font-size: 15px;
  line-height: 1.65;
}
.legal-page ul {
  padding-left: 22px;
}
.legal-card {
  margin: 28px 0;
  padding: 20px 22px;
  border: 1px solid #e6d4cc;
  background: #fffdfa;
  border-radius: 14px;
}
.legal-footer-note {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid #eadbd4;
  color: #7a716c;
  font-size: 12px !important;
}
@media (max-width: 640px) {
  .legal-shell { width: min(100% - 28px, 920px); padding-top: 28px; }
  .legal-topline { align-items: flex-start; flex-direction: column; margin-bottom: 28px; }
  .legal-page h1 { font-size: 34px; }
  .legal-page h2 { font-size: 21px; }
  .footer-legal-links { flex-direction: column; gap: 6px; }
}

/* Cookie / analytics consent */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1300;
}
.cookie-banner-inner {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  background: rgba(255, 253, 250, .985);
  border: 1px solid #e4d5ce;
  border-radius: 16px;
  box-shadow: 0 18px 55px rgba(69, 45, 37, .16);
  backdrop-filter: blur(12px);
}
.cookie-banner-copy strong {
  display: block;
  margin-bottom: 5px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  font-weight: 600;
  color: #2b2421;
}
.cookie-banner-copy p {
  max-width: 700px;
  margin: 0 0 6px;
  color: #625956;
  font-size: 13px;
  line-height: 1.5;
}
.cookie-banner-copy a {
  color: #a94f3f;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  white-space: nowrap;
}
.cookie-banner-actions .btn {
  min-height: 42px;
  padding: 0 16px;
  font-size: 12px;
}
.inline-cookie-button {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: #a94f3f;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.legal-page code {
  padding: 1px 5px;
  border-radius: 5px;
  background: #f1e7e2;
  font-size: .92em;
}

@media (max-width: 760px) {
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
  .cookie-banner-inner {
    padding: 15px;
    grid-template-columns: 1fr;
    gap: 14px;
    border-radius: 14px;
  }
  .cookie-banner-copy strong { font-size: 17px; }
  .cookie-banner-copy p { font-size: 12.5px; }
  .cookie-banner-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .cookie-banner-actions .btn { width: 100%; }
}


/* FINAL HEADER BRAND FIX — compact VL mark + VED LEGAL, no subtitle */
.site-header .brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 11px !important;
  width: auto !important;
  height: auto !important;
}
.site-header .brand-mark {
  display: block !important;
  width: 56px !important;
  height: 56px !important;
  max-width: 56px !important;
  min-width: 56px !important;
  flex: 0 0 56px !important;
  object-fit: contain !important;
}
.site-header .brand-name {
  display: block !important;
  font-family: var(--serif) !important;
  font-size: 27px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  letter-spacing: .055em !important;
  white-space: nowrap !important;
  color: var(--ink) !important;
}

@media (max-width: 760px) {
  .site-header .brand {
    gap: 8px !important;
  }
  .site-header .brand-mark {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    min-width: 44px !important;
    flex-basis: 44px !important;
  }
  .site-header .brand-name {
    font-size: 20px !important;
    letter-spacing: .035em !important;
  }
}


/* FINAL FORM SPACING FIX — одинаковые отступы между юридическими блоками */
.form-help {
  display: block;
  margin: 8px 0 0;
  color: #7d746f;
  font-size: 12px;
  line-height: 1.45;
}

.consent-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  margin: 20px 0 0 !important;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.consent-row input {
  margin: 2px 0 0;
  accent-color: var(--terracotta);
}

.privacy-note {
  margin: 20px 0 0 !important;
  color: #6f6762;
  font-size: 12px;
  line-height: 1.5;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 30px !important;
}

.form-submit {
  min-width: 190px;
}

@media (max-width: 760px) {
  .consent-row {
    margin-top: 18px !important;
  }

  .privacy-note {
    margin-top: 18px !important;
  }

  .form-actions {
    margin-top: 26px !important;
  }
}
