/* Шрифты хостим сами: CSP font-src 'self' */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("assets/fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("assets/fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1c1c1c;
  --muted: #66625c;
  --paper: #f6f2eb;
  --panel: #ffffff;
  --line: #e1dbd2;
  --forest: #e86d0a;
  --forest-dark: #b8540a;
  --moss: #8d867c;
  --clay: #f07410;
  --cream: #fffaf0;
  --smoke: #f1ece4;
  --brand-surface: #f3efe8;
  --brand-surface-soft: #ebe5dc;
  --shadow: 0 24px 70px rgba(28, 28, 28, 0.18);
  --hover-shadow: 0 18px 44px rgba(28, 28, 28, 0.14);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --font-body: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: var(--font-body);
  --container: 1280px;
  --container-wide: 1280px;
  --gutter: clamp(18px, 5vw, 72px);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: var(--cream);
  background: var(--forest);
}

body.is-lightbox-open,
body.is-modal-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 10px var(--gutter);
  color: var(--ink);
  background: rgba(243, 239, 232, 0.96);
  box-shadow: 0 10px 32px rgba(13, 19, 18, 0.08);
  backdrop-filter: blur(18px);
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-solid {
  color: var(--ink);
  background: rgba(243, 239, 232, 0.98);
  box-shadow: 0 10px 32px rgba(23, 32, 29, 0.1);
}

.brand {
  display: block;
  width: clamp(236px, 19vw, 272px);
  height: 64px;
  min-width: 0;
  overflow: hidden;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 44%;
  mix-blend-mode: multiply;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 34px);
  font-size: 14px;
  font-weight: 600;
}

.nav a,
.nav-button {
  position: relative;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  opacity: 0.78;
  transition:
    color 180ms ease,
    opacity 180ms ease;
}

.nav a::after,
.nav-button::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.nav a:hover,
.nav-button:hover {
  opacity: 1;
}

.nav a:hover::after,
.nav-button:hover::after {
  opacity: 0.55;
  transform: scaleX(1);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--r-sm);
  font-weight: 700;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.header-cta {
  gap: 10px;
  padding: 0 16px;
  border: 1px solid currentColor;
  font-size: 14px;
  color: inherit;
  background: transparent;
}

.button {
  min-width: 0;
  padding: 0 20px;
  border: 0;
  font-size: 15px;
  text-align: center;
}

.button:hover {
  transform: translateY(-1px);
}

.header-cta:hover {
  transform: translateY(-1px);
}

.button:active,
.header-cta:active,
.header-phone:active {
  transform: translateY(1px) scale(0.985);
  transition-duration: 80ms;
}

.button:focus-visible,
.header-cta:focus-visible,
.header-phone:focus-visible,
.nav a:focus-visible,
.nav-button:focus-visible,
.footer-link:focus-visible,
.faq-list summary:focus-visible {
  outline: 3px solid rgba(232, 109, 10, 0.38);
  outline-offset: 3px;
}

.button-primary {
  color: #fff;
  background: var(--forest);
}

.button-primary:hover {
  background: var(--forest-dark);
  box-shadow: 0 12px 28px rgba(28, 28, 28, 0.22);
}

.button-light {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.button[disabled] {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: #fff;
  background: var(--brand-surface-soft);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    radial-gradient(120% 90% at 8% 40%, rgba(22, 18, 14, 0.92) 0%, rgba(22, 18, 14, 0.62) 46%, rgba(22, 18, 14, 0.18) 100%),
    linear-gradient(0deg, rgba(22, 18, 14, 0.6) 0%, transparent 46%);
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: clamp(32px, 5vw, 84px);
  align-items: center;
  width: min(var(--container-wide), calc(100% - 36px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 118px 0 54px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffb36b;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: 66px;
  line-height: 1.02;
}

h2 {
  margin-bottom: 0;
  font-size: 44px;
  line-height: 1.06;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

p {
  text-wrap: pretty;
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-points {
  display: grid;
  gap: 10px;
  max-width: 620px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  position: relative;
  padding-left: 26px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 500;
}

.hero-points li::before {
  position: absolute;
  top: 2px;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffb36b;
  content: "";
}

.hero-points li::after {
  position: absolute;
  top: 6px;
  left: 4px;
  width: 8px;
  height: 5px;
  border-bottom: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
  content: "";
  transform: rotate(-45deg);
}

.calculator {
  display: grid;
  gap: 14px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--r-lg);
  color: var(--ink);
  background: rgba(255, 250, 240, 0.96);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
}

.calculator-head h2 {
  font-size: 30px;
}

.calculator-head p {
  margin: 10px 0 0;
  color: var(--muted);
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  background: #fff;
  padding: 0 12px;
}

.field input,
.field select {
  height: 48px;
}

.field textarea {
  min-height: 112px;
  padding-top: 12px;
  resize: vertical;
}

.honeypot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.privacy-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.privacy-note a {
  color: var(--forest-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--forest);
  outline: 3px solid rgba(232, 109, 10, 0.14);
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.calculator-column {
  display: grid;
  gap: 12px;
}

.option-title {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.option-list {
  display: grid;
  gap: 9px;
}

.option-list label {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 9px;
  align-items: start;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.option-list input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--forest);
}

.duration-box {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  color: var(--ink);
  background: #ffe2c6;
}

.duration-box span {
  color: rgba(23, 32, 29, 0.72);
  font-size: 13px;
  font-weight: 500;
}

.duration-box strong {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.1;
}

.area-control {
  display: grid;
  gap: 9px;
}

.area-control label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.area-control input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  appearance: none;
  background: linear-gradient(90deg, var(--forest), var(--clay));
  cursor: pointer;
}

.area-control input[type="range"]::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid var(--cream);
  border-radius: 50%;
  appearance: none;
  background: var(--clay);
  box-shadow: 0 4px 12px rgba(23, 32, 29, 0.24);
}

.area-control input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid var(--cream);
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 4px 12px rgba(23, 32, 29, 0.24);
}

.area-control output {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.calc-summary {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: var(--r-sm);
  color: var(--ink);
  background: #fdf0e4;
}

.calc-summary span,
.calc-summary small {
  color: var(--muted);
  font-size: 13px;
}

.calc-summary strong {
  font-size: 16px;
  line-height: 1.05;
}

.lead-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.lead-panel {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.lead-panel[hidden] {
  display: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.calculator-submit {
  width: 100%;
}

.form-result {
  min-height: 60px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  color: var(--forest-dark);
  background: #fdf0e4;
  font-size: 14px;
}

.form-result.is-success {
  color: #fff;
  background: var(--forest);
}

.form-result.is-error {
  color: #6f2f1e;
  background: #f6dfd4;
}

.trust-strip {
  padding: 0 var(--gutter);
  background: var(--forest-dark);
}

.trust-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(var(--container), 100%);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.08);
}

.trust-strip-inner > div {
  min-height: 140px;
  padding: clamp(22px, 4vw, 40px);
  color: #fff;
  background: var(--forest-dark);
}

.trust-strip strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 50px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.trust-strip span {
  display: block;
  max-width: 260px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.section,
.site-footer {
  padding: clamp(68px, 9vw, 124px) var(--gutter);
}

.section-light {
  background: #fcfaf6;
}

.section-inner {
  width: min(var(--container), 100%);
  margin: 0 auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(320px, 1.28fr);
  column-gap: clamp(24px, 5vw, 72px);
  row-gap: 14px;
  align-items: start;
  width: min(var(--container), 100%);
  margin: 0 auto clamp(30px, 5vw, 58px);
}

.section-heading > p:not(.eyebrow) {
  grid-column: 2;
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: min(var(--container), 100%);
  margin: 0 auto;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: min(var(--container), 100%);
  margin: 0 auto;
}

.service-link-grid,
.cost-grid {
  display: grid;
  gap: 16px;
  width: min(var(--container), 100%);
  margin: 0 auto;
}

.service-link-grid {
  grid-template-columns: repeat(4, 1fr);
}

.cost-grid {
  grid-template-columns: repeat(3, 1fr);
}

.benefit-grid article,
.format-grid article,
.service-link-card,
.cost-card,
.service-list article,
.faq-list details {
  border: 0;
  border-radius: var(--r-md);
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(23, 32, 29, 0.04), 0 8px 24px -18px rgba(28, 28, 28, 0.35);
}

.section-light .benefit-grid article,
.section-light .cost-card,
.section-light .faq-list details {
  background: #f4efe7;
  box-shadow: none;
}

.benefit-grid article,
.format-grid article,
.service-link-card,
.cost-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-height: 240px;
  padding: 28px 26px 26px;
}

.format-grid article:first-child {
  color: #fff;
  background: var(--forest);
}

.format-grid article:first-child .card-index {
  color: #ffb36b;
}

.format-grid article:first-child p {
  color: rgba(255, 255, 255, 0.78);
}

.service-link-card {
  color: inherit;
}

.service-link-card h3,
.cost-card h3 {
  margin-bottom: 10px;
}

.service-link-card p,
.cost-card p {
  margin: 0;
  color: var(--muted);
}

.card-index {
  display: inline-flex;
  width: max-content;
  margin-bottom: 30px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.benefit-grid p,
.format-grid p,
.service-link-card p,
.cost-card p,
.service-list p,
.process-copy p,
.process-step p,
.timeline p,
.planning-copy p,
.faq-list p,
.final-cta p {
  color: var(--muted);
}

.service-layout,
.planning-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.04fr) minmax(320px, 0.96fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: stretch;
  width: min(var(--container), 100%);
  margin: 0 auto;
}

.service-image,
.planning-image {
  overflow: hidden;
  border: 0;
  border-radius: var(--r-lg);
  box-shadow: 0 24px 50px -20px rgba(28, 28, 28, 0.4);
  background: #d8d4c8;
}

.service-image img,
.planning-image img {
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.service-list {
  display: grid;
  gap: 14px;
}

.service-list article {
  display: grid;
  align-content: center;
  min-height: 160px;
  padding: 24px;
}

.service-list p,
.benefit-grid p,
.format-grid p,
.faq-list p {
  margin-bottom: 0;
}

.materials-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.96fr) minmax(320px, 1.04fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: center;
}

.materials-image {
  overflow: hidden;
  border: 0;
  border-radius: var(--r-lg);
  box-shadow: 0 24px 50px -20px rgba(28, 28, 28, 0.4);
  background: #d8d4c8;
}

.materials-image img {
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

.materials-copy {
  max-width: 660px;
}

.materials-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.mini-grid article {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 20px;
  border: 0;
  border-radius: var(--r-md);
  background: #f4efe7;
}

.mini-grid strong {
  font-size: 18px;
  font-weight: 700;
}

.mini-grid span {
  color: var(--muted);
  font-size: 14px;
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(360px, 1.12fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}

.process-copy {
  max-width: 620px;
}

.process-copy p {
  margin-top: 18px;
  font-size: 18px;
}

.process-note {
  display: grid;
  gap: 4px;
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 3px solid var(--clay);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: #f4efe7;
}

.process-note strong {
  font-size: 18px;
  font-weight: 700;
}

.process-note span {
  color: var(--muted);
}

.process-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.process-step {
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-height: 190px;
  padding: 22px;
  border: 0;
  border-radius: var(--r-md);
  background: #f4efe7;
}

.process-step span {
  display: inline-flex;
  width: max-content;
  margin-bottom: 24px;
  color: var(--clay);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.process-step h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.process-step p {
  margin-bottom: 0;
}

.timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.timeline li:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline span {
  color: var(--clay);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
}

.timeline strong {
  display: block;
  margin-bottom: 6px;
  font-size: 19px;
  font-weight: 700;
}

.timeline p {
  margin-bottom: 0;
}

.planning-layout {
  align-items: center;
}

.planning-copy {
  max-width: 620px;
}

.planning-copy p {
  margin: 18px 0 0;
  font-size: 18px;
}

.estimate-breakdown {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.estimate-breakdown div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.estimate-breakdown div:last-child {
  border-bottom: 1px solid var(--line);
}

.estimate-breakdown strong {
  color: var(--ink);
}

.estimate-breakdown span {
  color: var(--muted);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: min(var(--container), 100%);
  margin: 0 auto;
}

.case-grid article {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 0;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: 0 1px 0 rgba(23, 32, 29, 0.04), 0 8px 24px -18px rgba(28, 28, 28, 0.35);
}

.case-grid img {
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
}

.case-grid div {
  padding: 24px;
}

.case-grid span {
  display: block;
  margin-bottom: 12px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.case-facts {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
}

.case-facts div {
  padding: 0;
}

.case-facts dt {
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.case-facts dd {
  margin: 0;
  color: var(--muted);
}

.progress-section {
  background: var(--paper);
}

.photo-mosaic {
  display: grid;
  grid-auto-flow: dense;
  grid-auto-rows: 170px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  width: min(var(--container), 100%);
  margin: 0 auto;
}

.photo-tile {
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--r-md);
  background: #d8d4c8;
  cursor: zoom-in;
}

.photo-tile:focus-visible {
  outline: 3px solid rgba(232, 109, 10, 0.34);
  outline-offset: 3px;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-wide {
  grid-column: span 2;
}

.photo-tall {
  grid-row: span 2;
}

.photo-lightbox {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.photo-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(13, 19, 18, 0.82);
  cursor: zoom-out;
}

.photo-lightbox-panel {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: min(1120px, 100%);
  max-height: min(82vh, 900px);
}

.photo-lightbox-panel img {
  max-width: 100%;
  max-height: min(82vh, 900px);
  border-radius: 8px;
  object-fit: contain;
  box-shadow: var(--shadow);
}

.photo-lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: min(var(--container), 100%);
  margin: 0 auto;
}

.guarantee-grid article {
  min-height: 210px;
  padding: 26px;
  border: 0;
  border-radius: var(--r-md);
  color: #fff;
  background: var(--forest-dark);
}

.guarantee-grid p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--ink);
  font-weight: 500;
}

.check-list li::before {
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--forest);
  content: "✓";
  font-size: 12px;
  font-weight: 900;
}

.final-cta {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(26, 22, 18, 0.92), rgba(26, 22, 18, 0.72)),
    url("assets/hero-real.jpg") center / cover;
}

.final-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.final-cta-inner > div {
  max-width: 820px;
}

.final-cta .eyebrow {
  color: #ffb36b;
}

.final-cta p {
  max-width: 620px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.seo-page-main {
  background: var(--paper);
}

.seo-page-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
  width: min(var(--container), 100%);
  margin: 0 auto;
  padding: clamp(134px, 14vw, 184px) var(--gutter) clamp(58px, 8vw, 96px);
}

.seo-page-hero-copy {
  display: grid;
  gap: 20px;
}

.seo-page-hero h1 {
  margin: 0;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.98;
}

.seo-page-hero p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.seo-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.seo-page-actions .button-light {
  color: var(--forest-dark);
  border-color: rgba(23, 32, 29, 0.22);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: none;
}

.calculator-modal {
  z-index: 70;
}

.calculator-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(860px, calc(100svh - 48px));
  overflow: auto;
}

.calculator-modal-form {
  margin: 0;
  box-shadow: var(--shadow);
}

.seo-page-media {
  overflow: hidden;
  border: 0;
  border-radius: var(--r-lg);
  background: #d8d4c8;
  box-shadow: 0 24px 50px -20px rgba(28, 28, 28, 0.4);
}

.seo-page-media img {
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
}

.seo-page-section {
  padding: clamp(58px, 8vw, 104px) var(--gutter);
}

.seo-page-section.is-light {
  background: #fcfaf6;
}

.seo-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(var(--container), 100%);
  margin: 0 auto;
}

.seo-page-card,
.seo-page-section article {
  min-height: 220px;
  padding: 26px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(23, 32, 29, 0.04), 0 8px 24px -18px rgba(28, 28, 28, 0.35);
}

.seo-page-section.is-light .seo-page-card,
.seo-page-section.is-light article {
  background: #f4efe7;
  box-shadow: none;
}

.seo-page-card h2,
.seo-page-section article h2,
.seo-page-section article h3 {
  margin-bottom: 12px;
  font-size: 24px;
}

.seo-page-card p,
.seo-page-section article p,
.seo-page-card li {
  color: var(--muted);
}

.seo-page-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.seo-page-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  list-style: none;
}

.seo-page-breadcrumbs a {
  color: var(--forest-dark);
  font-weight: 750;
}

.privacy-content .section-inner {
  display: grid;
  gap: 18px;
  max-width: 920px;
}

.privacy-content article {
  min-height: auto;
}

.faq-list {
  display: grid;
  gap: 12px;
  width: min(900px, 100%);
  margin: 0 auto;
}

.faq-list details {
  padding: 20px 24px;
}

.faq-list summary {
  position: relative;
  padding-right: 36px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 0;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: var(--forest-dark);
  background: rgba(232, 109, 10, 0.1);
  content: "+";
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 220ms ease, background 220ms ease;
}

.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-list p {
  margin-top: 12px;
}

.site-footer {
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(244, 241, 233, 0.9), rgba(231, 233, 225, 0.96)),
    var(--brand-surface-soft);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  width: min(var(--container), 100%);
  margin: 0 auto;
}

.site-footer p {
  margin: 0;
  color: rgba(23, 32, 29, 0.72);
}

.footer-link {
  color: var(--forest-dark);
  font-weight: 600;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
}

.footer-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.callback-modal {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.callback-modal[hidden] {
  display: none;
}

.callback-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(13, 19, 18, 0.62);
  cursor: pointer;
}

.callback-dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  gap: clamp(22px, 4vw, 44px);
  width: min(880px, 100%);
  max-height: min(720px, calc(100svh - 48px));
  overflow: auto;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--r-lg);
  background: var(--cream);
  box-shadow: var(--shadow);
}

.callback-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.callback-copy h2 {
  margin: 0 0 22px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.04;
}

.callback-copy p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.callback-form {
  display: grid;
  gap: 14px;
  align-content: start;
}

.benefit-grid article,
.format-grid article,
.service-link-card,
.cost-card,
.service-list article,
.mini-grid article,
.process-step,
.seo-page-card,
.seo-page-section article,
.case-grid article,
.guarantee-grid article,
.faq-list details,
.calculator {
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.service-image img,
.materials-image img,
.planning-image img,
.photo-tile img,
.case-grid img {
  transition: transform 600ms ease;
}

.photo-tile {
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    opacity 220ms ease;
}

.field input,
.field select,
.field textarea,
.option-list label,
.area-control input[type="range"] {
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .calculator:hover {
    transform: translateY(-2px);
    box-shadow: 0 30px 80px rgba(23, 32, 29, 0.2);
  }

  .benefit-grid article:hover,
  .format-grid article:hover,
  .service-link-card:hover,
  .cost-card:hover,
  .service-list article:hover,
  .mini-grid article:hover,
  .process-step:hover,
  .seo-page-card:hover,
  .seo-page-section article:hover,
  .case-grid article:hover,
  .faq-list details:hover {
    box-shadow: var(--hover-shadow);
    transform: translateY(-3px);
  }

  .photo-tile:hover {
    box-shadow: var(--hover-shadow);
    transform: translateY(-4px);
  }

  .guarantee-grid article:hover {
    background: var(--forest);
    box-shadow: 0 18px 44px rgba(28, 28, 28, 0.28);
    transform: translateY(-3px);
  }

  .service-image:hover img,
  .materials-image:hover img,
  .planning-image:hover img,
  .photo-tile:hover img,
  .case-grid article:hover img {
    transform: scale(1.035);
  }

  .option-list label:hover,
  .faq-list details:hover summary {
    color: var(--forest-dark);
  }

  .footer-link:hover,
  .footer-button:hover {
    color: var(--forest);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: heroIntro 700ms ease both;
  }

  .calculator {
    animation: heroIntro 780ms ease 90ms both;
  }

  .lead-panel:not([hidden]) {
    animation: panelReveal 220ms ease both;
  }

  .format-grid article:first-child:hover,
  .trust-strip-inner > div {
    transform: none;
  }

  .reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 620ms ease,
      transform 620ms ease;
    transition-delay: var(--reveal-delay, 0ms);
  }

  .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  @keyframes heroIntro {
    from {
      opacity: 0;
      transform: translateY(18px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes panelReveal {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 1180px) {
  .hero-layout {
    gap: 28px;
  }

  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 40px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .calculator {
    padding: 20px;
  }

  .calculator-head h2 {
    font-size: 28px;
  }

  .calc-summary strong {
    font-size: 16px;
  }

  .photo-mosaic {
    grid-auto-rows: 150px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hero-layout {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 134px;
  }

  .hero-copy {
    max-width: 820px;
  }

  .calculator {
    max-width: 720px;
  }

  .service-layout,
  .materials-layout,
  .planning-layout,
  .process-layout,
  .seo-page-hero,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-heading > p:not(.eyebrow) {
    grid-column: auto;
  }

  .service-image img,
  .materials-image img,
  .planning-image img {
    min-height: 360px;
  }

  .callback-dialog {
    grid-template-columns: 1fr;
  }

  .calculator-modal-dialog {
    width: min(720px, 100%);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }
}

@media (max-width: 820px) {
  .trust-strip-inner,
  .benefit-grid,
  .format-grid,
  .service-link-grid,
  .cost-grid,
  .seo-page-grid,
  .case-grid,
  .guarantee-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .photo-mosaic {
    grid-auto-rows: 150px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-strip-inner > div {
    min-height: auto;
  }

  .benefit-grid article {
    min-height: 220px;
  }

  .format-grid article,
  .guarantee-grid article {
    min-height: auto;
  }

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

  .final-cta-inner {
    grid-template-columns: 1fr;
  }

  .final-cta-actions {
    justify-content: flex-start;
  }

  .final-cta .button {
    width: min(360px, 100%);
  }

  .seo-page-actions .button {
    width: min(360px, 100%);
  }

  .process-board {
    grid-template-columns: 1fr;
  }

  .photo-wide {
    grid-column: span 2;
  }
}

@media (max-width: 620px) {
  .site-header {
    gap: 12px;
    padding: 12px 14px;
  }

  .brand {
    width: min(248px, calc(100vw - 88px));
    height: 64px;
  }

  .header-cta span:first-child {
    display: none;
  }

  .header-cta {
    width: 44px;
    padding: 0;
  }

  .hero-image {
    object-position: 58% 50%;
  }

  .hero-layout {
    width: calc(100% - 28px);
    padding: 136px 0 28px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 32px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-points {
    display: none;
  }

  .calculator-head h2 {
    font-size: 30px;
  }

  .trust-strip strong {
    font-size: 34px;
  }

  .hero-actions,
  .hero-actions .button,
  .final-cta-actions,
  .final-cta-actions .button,
  .button {
    width: 100%;
  }

  .calculator {
    padding: 18px;
  }

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

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

  .callback-modal {
    padding: 14px;
  }

  .callback-dialog {
    max-height: calc(100svh - 28px);
    padding: 22px 18px;
  }

  .calculator-modal-dialog {
    max-height: calc(100svh - 28px);
  }

  .calculator-modal-form {
    padding: 18px;
  }

  .callback-copy h2 {
    padding-right: 44px;
  }

  .footer-actions {
    justify-content: flex-start;
  }

  .calc-summary strong {
    font-size: 16px;
  }

  .section,
  .seo-page-section,
  .site-footer {
    padding: 58px 14px;
  }

  .seo-page-hero {
    width: 100%;
    padding: 136px 14px 58px;
  }

  .seo-page-actions,
  .seo-page-actions .button {
    width: 100%;
  }

  .trust-strip {
    padding: 30px 14px 34px;
  }

  .trust-strip-inner > div {
    padding: 30px 24px;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .benefit-grid article,
  .service-list article {
    min-height: auto;
    padding: 20px;
  }

  .card-index {
    margin-bottom: 18px;
  }

  .service-image img,
  .materials-image img,
  .planning-image img {
    min-height: 300px;
  }

  .photo-mosaic {
    gap: 10px;
    grid-auto-rows: 128px;
  }

  .photo-lightbox {
    padding: 14px;
  }

  .photo-lightbox-close {
    top: 14px;
    right: 14px;
  }

  .estimate-breakdown div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .timeline li {
    grid-template-columns: 46px 1fr;
    gap: 12px;
  }
}

.footer-legal {
  width: min(var(--container), 100%);
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(23, 32, 29, 0.12);
}

.footer-legal p {
  margin: 0;
  color: rgba(23, 32, 29, 0.55);
  font-size: 13px;
  line-height: 1.55;
}

.footer-legal a {
  color: var(--forest-dark);
  font-weight: 600;
}


/* ---- Редизайн 2026-09-18: зерно, шапка с телефоном, узкие экраны ---- */
body::before {
  position: fixed;
  z-index: 100;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
  min-width: 0;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  color: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.header-phone-icon {
  flex: none;
}

.footer-phone {
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .header-phone:hover {
    color: var(--forest);
  }
}

/* до 1700px номер текстом не помещается рядом с меню — оставляем иконку */
@media (max-width: 1699px) {
  .header-contacts {
    gap: 10px;
  }

  .header-phone {
    width: 44px;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: var(--r-sm);
  }

  .header-phone span {
    display: none;
  }
}

/* узкие ноутбуки и планшеты в альбоме: меню плотнее, обе кнопки иконками */
@media (max-width: 1180px) and (min-width: 981px) {
  .site-header {
    gap: 14px;
  }

  .nav {
    gap: 10px;
    font-size: 13px;
  }

  .header-cta {
    width: 44px;
    padding: 0;
  }

  .header-cta span:first-child {
    display: none;
  }
}

@media (max-width: 620px) {
  .brand {
    width: min(236px, calc(100vw - 148px));
  }

  .header-contacts {
    gap: 8px;
  }
}

/* ---- Согласия: cookie-баннер и чекбоксы в формах (2026-09-18) ---- */
.cookie-banner {
  position: fixed;
  z-index: 50;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: 90px;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.97);
  border-top: 1px solid rgba(23, 32, 29, 0.1);
  box-shadow: 0 -8px 24px rgba(23, 32, 29, 0.08);
  backdrop-filter: blur(14px);
}

.cookie-banner[hidden],
body.is-modal-open .cookie-banner,
body.is-lightbox-open .cookie-banner {
  display: none;
}

.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: center;
  width: min(var(--container), 100%);
  margin: 0 auto;
  padding: 10px 16px;
}

.cookie-banner-text {
  flex: 1 1 320px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.cookie-banner-text strong {
  color: var(--ink);
}

.cookie-banner-text a {
  color: var(--forest-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.cookie-banner-actions .button {
  width: auto;
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.button-ghost {
  color: var(--forest-dark);
  border: 1px solid rgba(23, 32, 29, 0.22);
  background: transparent;
}

.button-ghost:hover {
  background: rgba(232, 109, 10, 0.08);
}

.consent-block {
  display: grid;
  gap: 10px;
  margin: 2px 0 0;
}

.consent-check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
  cursor: pointer;
  transition: color 180ms ease;
}

.consent-check input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--forest);
  cursor: pointer;
}

.consent-check.is-invalid {
  color: #8a2f1c;
}

.consent-check.is-invalid input {
  outline: 2px solid #c8442a;
  outline-offset: 2px;
  border-radius: 3px;
}

.consent-error {
  margin: -4px 0 0 34px;
  color: #b23a22;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.consent-error[hidden] {
  display: none;
}

.consent-check a {
  color: var(--forest-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-check input:focus-visible {
  outline: 3px solid rgba(232, 109, 10, 0.38);
  outline-offset: 2px;
}

@media (max-width: 620px) {
  .cookie-banner-inner {
    gap: 6px 12px;
    padding: 8px 12px;
  }

  .cookie-banner-text {
    flex-basis: 100%;
    font-size: 12px;
    line-height: 1.35;
  }

  .cookie-banner-actions {
    flex: 1 1 100%;
  }

  .cookie-banner-actions .button {
    flex: 1 1 0;
    min-height: 34px;
  }
}

/* ---- Ошибка в поле формы (неполный телефон), 2026-09-30 ---- */
.field.is-invalid input {
  border-color: #c8442a;
  outline: 3px solid rgba(200, 68, 42, 0.14);
}

.field-error {
  color: #b23a22;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.field-error[hidden] {
  display: none;
}

/* очень узкие телефоны: полоса cookie остаётся в пределах 90px */
@media (max-width: 360px) {
  .cookie-banner-inner {
    gap: 4px 10px;
    padding: 6px 10px;
  }

  .cookie-banner-text {
    font-size: 11px;
    line-height: 1.3;
  }

  .cookie-banner-actions .button {
    min-height: 30px;
    font-size: 12px;
  }
}

/* подвал: ссылок стало шесть, не даём им отжать слоган в узкую колонку */
.footer-actions {
  max-width: 480px;
}

/* ---- Кейсы с реальными фото и галерея (2026-10-07) ---- */
.case-grid .case-card {
  grid-template-rows: auto auto 1fr;
}

.case-card .photo-tile {
  border-radius: 0;
}

.case-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.case-cover {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.case-grid .case-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px 0 0;
}

.case-thumbs .photo-tile {
  aspect-ratio: 1 / 1;
}

.case-thumbs .photo-tile[hidden] {
  display: none;
}

.case-grid .case-body {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px 24px 24px;
}

.case-grid .case-body h3 {
  margin: 0;
}

.case-grid .case-location {
  margin: 0;
}

.case-more {
  justify-self: start;
  margin-top: 4px;
  padding: 0;
  border: 0;
  color: var(--forest-dark);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.case-actions {
  display: flex;
  justify-content: center;
  width: min(var(--container), 100%);
  margin: 28px auto 0;
}

.photo-lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  color: #fff;
  background: rgba(23, 32, 29, 0.78);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
}

.photo-lightbox-nav[hidden] {
  display: none;
}

.photo-lightbox-prev {
  left: 10px;
}

.photo-lightbox-next {
  right: 10px;
}

.photo-lightbox-counter {
  position: absolute;
  bottom: -30px;
  left: 50%;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transform: translateX(-50%);
}

@media (hover: hover) and (pointer: fine) {
  .case-card .photo-tile:hover {
    box-shadow: none;
    transform: none;
  }

  .photo-lightbox-nav:hover {
    background: var(--forest);
  }
}

@media (max-width: 620px) {
  .photo-lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

  .photo-lightbox-prev {
    left: 4px;
  }

  .photo-lightbox-next {
    right: 4px;
  }
}

/* ---- Калькулятор: форма заявки вместо параметров (2026-10-07) ---- */
.calculator.is-lead .calculator-grid,
.calculator.is-lead .area-control,
.calculator.is-lead .calculator-head p {
  display: none;
}

.calculator.is-lead .lead-note {
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}

.lead-back {
  justify-self: start;
  padding: 0;
  border: 0;
  color: var(--forest-dark);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.footer-services {
  margin: 0 0 10px;
  color: rgba(23, 32, 29, 0.6);
  font-size: 13px;
}

.footer-services a {
  color: var(--forest-dark);
  font-weight: 600;
}

/* ---- Блок «Платформа» (2026-10-07) ---- */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(var(--container), 100%);
  margin: 0 auto;
}

.platform-shot {
  margin: 0;
}

.platform-shot .photo-tile {
  width: 100%;
  border: 1px solid rgba(23, 32, 29, 0.1);
  border-radius: var(--r-md);
  background: #f4efe7;
  box-shadow: 0 18px 40px -24px rgba(28, 28, 28, 0.45);
}

.platform-shot img {
  width: 100%;
  height: auto;
}

.platform-shot figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.platform-points {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 32px;
}

.platform-points article {
  min-height: auto;
}

@media (max-width: 980px) {
  .platform-points {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .platform-grid,
  .platform-points {
    grid-template-columns: 1fr;
  }
}

/* ---- Бренд «Папайя»: горизонтальный логотип картинкой, акценты под логотип ---- */
.brand-papaya {
  display: flex;
  align-items: center;
  width: auto;
  height: 64px;
  overflow: visible;
}

.brand-logo-papaya {
  width: auto;
  height: 52px;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: multiply;
  /* в картинке есть подпись под словом, поэтому само слово «ПАПАЙЯ» сидит выше центра: подтягиваем к линии меню */
  transform: translateY(-4px);
}

.nav {
  justify-content: flex-start;
  margin-left: clamp(20px, 3vw, 48px);
  font-size: 15px;
}

.header-cta,
.header-phone {
  font-size: 15px;
}

.button-primary {
  color: var(--ink);
  background: var(--forest);
}

.button-primary:hover {
  color: var(--ink);
  background: #f28a2e;
}

.form-result.is-success {
  color: var(--ink);
  background: #ffe2c6;
}

.trust-strip,
.trust-strip-inner > div,
.guarantee-grid article,
.format-grid article:first-child {
  background: var(--ink);
}

.format-grid article:first-child .card-index,
.trust-strip strong {
  color: var(--clay);
}

.check-list li::before {
  color: var(--ink);
}

@media (hover: hover) and (pointer: fine) {
  .guarantee-grid article:hover {
    background: #2a2a2a;
  }
}

@media (max-width: 620px) {
  .brand-papaya {
    width: auto;
    height: 48px;
  }

  .brand-logo-papaya {
    height: 48px;
  }
}
