/* ==========================================================================
   Тёплый Контур: остекление балконов, Ярославль
   --------------------------------------------------------------------------
   Photography lives in img/. Containers (.visual-panel, .tile-photo) own
   the aspect-ratio and radius; images fill them with object-fit: cover,
   so replacement photos need no CSS changes.
   --------------------------------------------------------------------------
   Corner radius rule: buttons are 12px, selector pills are full-pill (999px),
   cards and panels are 18px, inputs are 10px. No other radii.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root{
  --ink:        #101a24;
  --ink-soft:   #51606f;
  --white:      #ffffff;
  --fog:        #f4f7fa;
  --fog-2:      #e8eef3;
  --line:       #d8e2ea;

  --slate-900:  #0e2438;
  --slate-700:  #1c3f5e;
  --slate-500:  #2f6690;
  --ice-100:    #dbe9f2;

  --amber:      #e2933f;
  --amber-dark: #b06a1d;
  --amber-100:  #fbe9d3;

  --shadow-sm: 0 2px 10px rgba(14,36,56,.07);
  --shadow-md: 0 14px 34px rgba(14,36,56,.14);
  --shadow-lg: 0 26px 64px rgba(14,36,56,.20);

  --radius-card: 18px;
  --radius-input: 10px;
  --radius-btn: 12px;
  --radius-pill: 999px;

  --ff-display: "Unbounded", ui-sans-serif, system-ui, sans-serif;
  --ff-body:    "Manrope", ui-sans-serif, system-ui, sans-serif;

  --section-pad: 112px;
  --header-h: 72px;
}

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

html{
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference){
  html{ scroll-behavior:smooth; }
}

body{
  margin:0;
  font-family: var(--ff-body);
  font-size:16px;
  line-height:1.6;
  color: var(--ink);
  background: var(--fog);
  -webkit-font-smoothing: antialiased;
}

/* Subtle film grain over the whole page: kills the flat vector feel.
   Sits below the fixed header (z:50) and mobile nav (z:60). */
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:1;
  pointer-events:none;
  opacity:.035;
  background: 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.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E") repeat;
  background-size:160px;
}

h1,h2,h3{
  font-family: var(--ff-display);
  line-height:1.15;
  margin:0 0 .6em;
  color: var(--slate-900);
  letter-spacing:-0.01em;
}
h1{ font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight:700; }
h2{ font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight:600; }
h3{ font-size: 1.05rem; font-weight:600; }

p{ margin:0 0 1em; }
a{ color: var(--slate-500); }
ul,ol{ margin:0; padding:0; }

.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:0 24px;
}
.wrap--narrow{ max-width:820px; }

.section{ padding: var(--section-pad) 0; }
.section--tint{
  background: linear-gradient(165deg, var(--fog-2) 45%, var(--ice-100) 140%);
}
.section--dark{
  background: var(--slate-900);
  color: rgba(255,255,255,.85);
}
.section--dark h2{ color: var(--white); }

/* Dark photo section: about.jpg is reused as a heavily dimmed backdrop,
   so it reads as texture, not as a repeated photo. */
.section--photo{
  background:
    linear-gradient(rgba(14,36,56,.94), rgba(14,36,56,.89)),
    url("img/about.jpg") center/cover no-repeat;
  color: rgba(255,255,255,.78);
}
.section--photo h2,
.section--photo h3{ color: var(--white); }
.section--photo .process-step p{ color: rgba(255,255,255,.7); }
.section--photo .process-step::before{ background: rgba(255,255,255,.22); }
.section--photo .step-dot{ border-color:#5d8db4; }
.section--photo .process-step:first-child .step-dot{ border-color: var(--amber); }

.section-head{ margin-bottom:48px; max-width:640px; }
.section-head--row{
  max-width:none;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
}
.section-head h2{ margin-bottom:0; }

.hero-topline{
  font-size:.95rem;
  font-weight:600;
  color: var(--ink-soft);
  margin:0 0 18px;
}
.hero-topline::before{
  content:"";
  display:inline-block;
  width:8px; height:8px;
  border-radius:2px;
  background: var(--amber);
  transform: rotate(45deg);
  margin-right:10px;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 28px;
  border-radius: var(--radius-btn);
  border:1.5px solid transparent;
  font-family: var(--ff-body);
  font-size:.95rem;
  font-weight:700;
  text-decoration:none;
  cursor:pointer;
  white-space:nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: scale(.98); }

.btn-primary{
  background: var(--amber);
  color: var(--slate-900);
  box-shadow: 0 6px 18px rgba(226,147,63,.35);
}
.btn-primary:hover{ background:#eaa055; }

.btn-ghost{
  background: transparent;
  color: var(--slate-700);
  border-color: var(--line);
}
.btn-ghost:hover{ border-color: var(--slate-500); }

.btn-sm{ padding:10px 20px; font-size:.88rem; }
.btn-block{ width:100%; }

/* ---------- Reveal on scroll (no-JS safe) ---------- */
.reveal{ opacity:1; transform:none; }
.reveal-init{
  opacity:0;
  transform: translateY(22px);
  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
}
.reveal-init.is-visible{
  opacity:1;
  transform:none;
}

/* ---------- Header ---------- */
#top-sentinel{ position:absolute; top:0; height:24px; width:1px; }

.site-header{
  position:fixed;
  top:0; left:0; right:0;
  z-index:50;
  height: var(--header-h);
  background: rgba(244,247,250,.85);
  backdrop-filter: blur(12px);
  border-bottom:1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease;
}
.site-header.is-scrolled{
  background: rgba(255,255,255,.92);
  border-bottom-color: var(--line);
}

.header-inner{
  height:100%;
  display:flex;
  align-items:center;
  gap:32px;
}

.logo{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
}
.logo-mark{ width:34px; height:34px; flex:none; }
.logo-word{
  font-family: var(--ff-display);
  font-size:.98rem;
  font-weight:600;
  color: var(--slate-900);
}

.main-nav{
  display:flex;
  gap:26px;
  margin-left:auto;
}
.main-nav a{
  font-size:.92rem;
  font-weight:600;
  color: var(--ink-soft);
  text-decoration:none;
  transition: color .18s ease;
}
.main-nav a:hover{ color: var(--amber-dark); }

.header-actions{
  display:flex;
  align-items:center;
  gap:18px;
}
.phone-link{
  display:flex;
  align-items:center;
  gap:7px;
  font-weight:700;
  font-size:.92rem;
  color: var(--slate-900);
  text-decoration:none;
  white-space:nowrap;
}
.phone-link svg{ width:17px; height:17px; color: var(--slate-500); }

.burger{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:42px; height:42px;
  padding:9px;
  background:none;
  border:1.5px solid var(--line);
  border-radius: var(--radius-input);
  cursor:pointer;
}
.burger span{
  display:block;
  height:2px;
  background: var(--slate-900);
  border-radius:2px;
  transition: transform .25s ease, opacity .25s ease;
}
.burger.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2){ opacity:0; }
.burger.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile nav ---------- */
.mobile-backdrop{
  position:fixed; inset:0;
  z-index:58;
  background: rgba(14,36,56,.45);
}
.mobile-nav{
  position:fixed;
  top:0; right:0; bottom:0;
  z-index:60;
  width:min(320px, 86vw);
  padding: 96px 28px 28px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  display:flex;
  flex-direction:column;
  gap:20px;
  transform: translateX(105%);
  transition: transform .3s cubic-bezier(.16,1,.3,1);
  visibility:hidden;
}
.mobile-nav.is-open{ transform:none; visibility:visible; }
.mobile-nav a{
  font-size:1.05rem;
  font-weight:600;
  color: var(--slate-900);
  text-decoration:none;
}
.mobile-nav .btn{ margin-top:auto; }
.mobile-nav-phone{ color: var(--amber-dark) !important; }

/* ---------- Hero ---------- */
.hero{
  padding: calc(var(--header-h) + 72px) 0 88px;
  overflow:hidden;
  background:
    radial-gradient(52rem 36rem at 86% 6%, rgba(219,233,242,.85), transparent 62%),
    radial-gradient(42rem 30rem at 2% 98%, rgba(251,233,211,.5), transparent 60%);
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:56px;
  align-items:center;
}
.hero-copy h1{ margin-bottom:20px; }
/* Marker-highlight instead of plain colored text */
.accent-word{
  background: linear-gradient(177deg, transparent 56%, var(--amber-100) 56%);
  padding:0 .08em;
}
.hero-lead{
  font-size:1.1rem;
  color: var(--ink-soft);
  max-width:46ch;
  margin-bottom:32px;
}
.hero-cta-row{
  display:flex;
  align-items:center;
  gap:24px;
  flex-wrap:wrap;
}
.link-arrow{
  font-weight:700;
  font-size:.95rem;
  color: var(--slate-700);
  text-decoration:underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness:2px;
  text-underline-offset:5px;
  transition: color .18s ease;
}
.link-arrow::after{ content:" →"; }
.link-arrow:hover{ color: var(--amber-dark); }
.hero-note{
  margin:20px 0 0;
  font-size:.85rem;
  color: var(--ink-soft);
}

.hero-media{ position:relative; }
/* Offset backing block + a hair of tilt so the photo reads as pinned, not templated */
.hero-media::before{
  content:"";
  position:absolute;
  inset:28px -16px 46px 28px;
  border-radius: var(--radius-card);
  background: var(--ice-100);
  transform: rotate(-1.4deg);
}
.hero-media .visual-panel{ transform: rotate(1.1deg); }
.hero-photo-note{
  position:relative;
  margin:18px 6px 0;
  font-size:.84rem;
  color: var(--ink-soft);
}

/* ---------- Visual panels (photography) ---------- */
.visual-panel{
  position:relative;
  border-radius: var(--radius-card);
  overflow:hidden;
  background: var(--fog-2);
  box-shadow: var(--shadow-lg);
}
.visual-panel img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.visual-panel--hero{ aspect-ratio: 4 / 5; }
.visual-panel--about{ aspect-ratio: 1 / 1; }
.visual-panel--about img{ object-position: 70% 50%; }

/* ---------- Stats strip ---------- */
.stats-strip{
  background: var(--white);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:30px 0;
}
.stats-inner{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:48px;
}
.stats-line{
  margin:0;
  font-size:1.05rem;
  max-width:60ch;
}
.stats-line strong{
  font-family: var(--ff-display);
  font-weight:700;
  color: var(--slate-900);
  white-space:nowrap;
}
.stats-systems{
  margin:0;
  flex:none;
  font-size:.85rem;
  font-weight:600;
  color: var(--ink-soft);
  text-align:right;
}

/* ---------- Services bento ---------- */
.bento{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:20px;
}
.bento-card{
  background: var(--white);
  border:1px solid var(--line);
  border-radius: var(--radius-card);
  padding:30px 28px;
  display:flex;
  flex-direction:column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.bento-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.bento-card--wide{ grid-column: span 2; }
.bento-card--warm{
  background: linear-gradient(150deg, var(--amber-100), #fff6ea 65%);
  border-color:#f0d9ba;
}
.bento-card--cool{
  background: linear-gradient(150deg, var(--ice-100), #eef5fa 65%);
  border-color:#c8dbe8;
}
.bento-card h3{ margin-bottom:8px; }
.bento-card p{
  color: var(--ink-soft);
  font-size:.94rem;
  margin-bottom:20px;
}
.bento-icon{
  width:46px; height:46px;
  border-radius: var(--radius-input);
  background: rgba(255,255,255,.75);
  border:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:18px;
}
.bento-card:not(.bento-card--warm):not(.bento-card--cool) .bento-icon{
  background: var(--fog);
}
.bento-icon svg{ width:24px; height:24px; color: var(--slate-500); }
.bento-card--warm .bento-icon svg{ color: var(--amber-dark); }
.bento-price{
  margin-top:auto;
  font-weight:800;
  font-size:.95rem;
  color: var(--slate-700);
}

/* ---------- Gallery ---------- */
.gallery-arrows{ display:flex; gap:10px; }
.arrow-btn{
  width:44px; height:44px;
  border-radius: var(--radius-pill);
  border:1.5px solid var(--line);
  background: var(--white);
  color: var(--slate-700);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: border-color .18s ease, transform .18s ease;
}
.arrow-btn:hover{ border-color: var(--slate-500); transform: translateY(-1px); }
.arrow-btn:active{ transform: scale(.95); }
.arrow-btn svg{ width:20px; height:20px; }

.gallery-track-outer{ overflow:hidden; }
.gallery-track{
  display:flex;
  gap:22px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding-bottom:12px;
  scrollbar-width:thin;
  scrollbar-color: var(--line) transparent;
}
.project-tile{
  flex:0 0 min(430px, 88vw);
  scroll-snap-align:start;
  margin:0;
}
.tile-photo{
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-card);
  overflow:hidden;
  box-shadow: var(--shadow-sm);
  background: var(--fog-2);
}
.tile-photo img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.project-tile figcaption{
  padding:14px 4px 0;
  font-size:.9rem;
  font-weight:600;
  color: var(--ink-soft);
}

/* ---------- About ---------- */
.about-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:64px;
  align-items:center;
}
.about-copy p{ color: var(--ink-soft); max-width:56ch; }
.check-list{
  list-style:none;
  margin:28px 0 32px;
  display:flex;
  flex-direction:column;
  gap:13px;
}
.check-list li{
  position:relative;
  padding-left:32px;
  font-weight:600;
}
.check-list li::before{
  content:"";
  position:absolute;
  left:0; top:3px;
  width:20px; height:20px;
  border-radius:50%;
  background: var(--amber-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23b06a1d' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size:13px;
  background-position:center;
  background-repeat:no-repeat;
}

/* ---------- Process ---------- */
.process-line{
  list-style:none;
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap:28px;
  counter-reset: step;
}
.process-step{
  position:relative;
  padding-top:34px;
}
.process-step::before{
  content:"";
  position:absolute;
  top:9px; left:26px; right:-28px;
  height:2px;
  background: var(--line);
}
.process-step:last-child::before{ display:none; }
.step-dot{
  position:absolute;
  top:0; left:0;
  width:20px; height:20px;
  border-radius:50%;
  background: var(--white);
  border:5px solid var(--slate-500);
}
.process-step:first-child .step-dot{ border-color: var(--amber); }
.process-step h3{ font-size:.98rem; margin-bottom:6px; }
.process-step p{
  font-size:.88rem;
  color: var(--ink-soft);
  margin:0;
}

/* ---------- Calculator ---------- */
.calc-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:28px;
  align-items:start;
}
.calc-controls{
  background: var(--white);
  border:1px solid var(--line);
  border-radius: var(--radius-card);
  padding:34px;
  display:flex;
  flex-direction:column;
  gap:28px;
}
.calc-field{
  border:none;
  padding:0;
  margin:0;
}
.calc-field legend,
.calc-field > label{
  display:block;
  font-weight:700;
  font-size:.95rem;
  margin-bottom:12px;
  padding:0;
}
.calc-field output{ color: var(--amber-dark); }

.pill-group{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.pill{ cursor:pointer; }
.pill input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.pill span{
  display:inline-block;
  padding:10px 20px;
  border-radius: var(--radius-pill);
  border:1.5px solid var(--line);
  font-weight:600;
  font-size:.9rem;
  color: var(--ink-soft);
  transition: all .18s ease;
}
.pill input:checked + span{
  background: var(--slate-900);
  border-color: var(--slate-900);
  color: var(--white);
}
.pill input:focus-visible + span{
  outline:2px solid var(--amber);
  outline-offset:2px;
}

input[type="range"]{
  width:100%;
  accent-color: var(--amber);
  cursor:pointer;
}

.check{
  display:flex;
  align-items:center;
  gap:11px;
  padding:9px 0;
  cursor:pointer;
  font-weight:600;
  font-size:.93rem;
}
.check input{
  width:19px; height:19px;
  accent-color: var(--amber-dark);
  cursor:pointer;
}

.calc-result{
  position:sticky;
  top: calc(var(--header-h) + 24px);
  background: var(--slate-900);
  color: rgba(255,255,255,.8);
  border-radius: var(--radius-card);
  padding:34px;
}
.calc-result-label{
  font-size:.8rem;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom:10px;
}
.calc-result-sum{
  font-family: var(--ff-display);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight:700;
  color: var(--white);
  margin-bottom:22px;
}
.calc-breakdown{
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:22px;
  font-size:.9rem;
}
.calc-breakdown li{
  display:flex;
  justify-content:space-between;
  gap:16px;
}
.calc-breakdown li span:last-child{
  font-weight:700;
  color: var(--white);
  white-space:nowrap;
}
.calc-note{
  font-size:.82rem;
  color: rgba(255,255,255,.55);
  margin-bottom:24px;
}
.calc-result .btn{ width:100%; }

/* ---------- Pricing ---------- */
.pricing-grid{
  display:grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap:22px;
  align-items:stretch;
}
.price-card{
  background: var(--white);
  border:1px solid var(--line);
  border-radius: var(--radius-card);
  padding:34px 30px;
  display:flex;
  flex-direction:column;
}
.price-card--featured{
  background: linear-gradient(165deg, #ffffff, var(--amber-100) 160%);
  border-color: var(--amber);
  box-shadow: var(--shadow-md);
}
.price-badge{
  align-self:flex-start;
  padding:5px 14px;
  border-radius: var(--radius-pill);
  background: var(--amber);
  color: var(--slate-900);
  font-size:.75rem;
  font-weight:800;
  margin-bottom:16px;
}
.price-from{
  font-family: var(--ff-display);
  font-size:1.2rem;
  font-weight:700;
  color: var(--slate-700);
  margin-bottom:20px;
}
.price-card ul{
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:28px;
  font-size:.92rem;
  color: var(--ink-soft);
}
.price-card ul li{
  padding-left:24px;
  position:relative;
}
.price-card ul li::before{
  content:"";
  position:absolute;
  left:0; top:5px;
  width:14px; height:14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' fill='none' stroke='%232f6690' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size:contain;
  background-repeat:no-repeat;
}
.price-card .btn{ margin-top:auto; }

/* ---------- Reviews ---------- */
.reviews-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:24px;
}
.reviews-grid .review-card:nth-child(even){
  transform: translateY(26px);
}
.review-card{
  background: var(--white);
  border:1px solid var(--line);
  border-radius: var(--radius-card);
  padding:30px;
}
.review-stars{
  display:flex;
  gap:3px;
  margin-bottom:16px;
}
.review-stars svg{
  width:17px; height:17px;
  fill: var(--amber);
}
.review-stars .star-empty{ fill: var(--line); }
.review-card blockquote{
  margin:0 0 22px;
  font-size:.98rem;
  color: var(--ink);
}
.review-author{
  display:flex;
  align-items:center;
  gap:13px;
}
.review-author strong{ display:block; font-size:.94rem; }
.review-author span:not(.avatar-initials){
  font-size:.82rem;
  color: var(--ink-soft);
}
.avatar-initials{
  flex:none;
  width:44px; height:44px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  font-size:.86rem;
}
.avatar-1{ background: var(--ice-100); color: var(--slate-700); }
.avatar-2{ background: var(--slate-700); color: var(--white); }
.avatar-3{ background: var(--amber-100); color: var(--amber-dark); }
.avatar-4{ background: var(--slate-500); color: var(--white); }

/* ---------- FAQ ---------- */
.faq-list{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.faq-item{
  background: var(--white);
  border:1px solid var(--line);
  border-radius: var(--radius-card);
  padding:0 26px;
  transition: border-color .2s ease;
}
.faq-item[open]{ border-color: var(--slate-500); }
.faq-item summary{
  list-style:none;
  cursor:pointer;
  padding:21px 36px 21px 0;
  font-weight:700;
  font-size:.98rem;
  position:relative;
  color: var(--slate-900);
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{
  content:"";
  position:absolute;
  right:2px; top:50%;
  width:12px; height:12px;
  border-right:2.5px solid var(--slate-500);
  border-bottom:2.5px solid var(--slate-500);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s ease;
}
.faq-item[open] summary::after{
  transform: translateY(-30%) rotate(225deg);
}
.faq-item p{
  padding-bottom:22px;
  margin:0;
  color: var(--ink-soft);
  font-size:.94rem;
}

/* ---------- Contact ---------- */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:64px;
  align-items:start;
}
.contact-info p{ max-width:44ch; }
.contact-list{
  list-style:none;
  margin-top:30px;
  display:flex;
  flex-direction:column;
  gap:12px;
  font-size:1rem;
}
.contact-list a{
  color: var(--white);
  font-weight:700;
  text-decoration:none;
}
.contact-list a:hover{ color: var(--amber); }

.contact-form{
  position:relative;
  background: var(--white);
  border-radius: var(--radius-card);
  padding:36px;
  color: var(--ink);
  overflow:hidden;
}
.form-field{ margin-bottom:20px; }
.form-field label{
  display:block;
  font-weight:700;
  font-size:.9rem;
  margin-bottom:7px;
}
.form-field input,
.form-field select{
  width:100%;
  padding:13px 16px;
  border:1.5px solid var(--line);
  border-radius: var(--radius-input);
  font-family: var(--ff-body);
  font-size:.95rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color .18s ease;
}
.form-field input::placeholder{ color:#8b98a5; }
.form-field input:focus,
.form-field select:focus{
  outline:none;
  border-color: var(--slate-500);
  box-shadow: 0 0 0 3px rgba(47,102,144,.18);
}
.form-field.is-invalid input{ border-color:#c0392b; }
.field-error{
  display:none;
  font-size:.8rem;
  color:#c0392b;
  margin-top:5px;
}
.form-field.is-invalid .field-error{ display:block; }
.form-consent{
  font-size:.78rem;
  color: var(--ink-soft);
  margin:14px 0 0;
  text-align:center;
}

.form-success[hidden]{ display:none; }
.form-success{
  position:absolute;
  inset:0;
  background: var(--white);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:32px;
  gap:4px;
}
.form-success svg{
  width:52px; height:52px;
  color:#2e8b57;
  padding:12px;
  border-radius:50%;
  background:#e6f4ec;
  margin-bottom:12px;
}
.form-success p{ margin:0; }
.form-success p:last-child{ color: var(--ink-soft); font-size:.92rem; }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--slate-900);
  color: rgba(255,255,255,.7);
  padding:72px 0 0;
  border-top:1px solid rgba(255,255,255,.08);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap:48px;
  padding-bottom:56px;
}
.logo--footer .logo-word{ color: var(--white); }
.footer-brand p{
  margin-top:18px;
  font-size:.9rem;
  max-width:34ch;
}
.footer-nav{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.footer-nav a,
.footer-contacts a{
  color: rgba(255,255,255,.8);
  text-decoration:none;
  font-size:.93rem;
}
.footer-nav a:hover,
.footer-contacts a:hover{ color: var(--amber); }
.footer-contacts{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.footer-contacts a{ font-weight:700; }
.footer-contacts p{ margin:0; font-size:.9rem; }
.footer-social{
  display:flex;
  gap:16px;
  margin-top:6px;
}
.footer-social a{
  font-size:.86rem;
  padding:7px 16px;
  border:1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-pill);
  transition: border-color .18s ease;
}
.footer-social a:hover{ border-color: var(--amber); }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.1);
  padding-top:22px;
  padding-bottom:22px;
}
.footer-bottom p{
  margin:0;
  font-size:.8rem;
  color: rgba(255,255,255,.45);
}

/* ---------- Responsive: 980px ---------- */
@media (max-width: 980px){
  :root{ --section-pad: 80px; }

  .main-nav,
  .header-actions .phone-link,
  .header-actions .btn{ display:none; }
  .burger{ display:flex; }

  .hero-grid{
    grid-template-columns:1fr;
    gap:48px;
  }
  .hero-media{
    order:-1;
    max-width:440px;
  }

  .stats-inner{
    flex-wrap:wrap;
    gap:28px;
  }
  .stats-systems{
    margin-left:0;
    text-align:left;
    width:100%;
  }

  .bento{ grid-template-columns: repeat(2, 1fr); }
  .bento-card--wide{ grid-column: span 2; }

  .about-grid{
    grid-template-columns:1fr;
    gap:44px;
  }
  .about-media{ order:-1; max-width:420px; }

  .process-line{
    grid-template-columns: repeat(2, 1fr);
    gap:32px 28px;
  }
  .process-step::before{ display:none; }

  .calc-grid{ grid-template-columns:1fr; }
  .calc-result{ position:static; }

  .pricing-grid{ grid-template-columns:1fr; max-width:520px; margin:0 auto; }

  .reviews-grid .review-card:nth-child(even){ transform:none; }

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

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

/* ---------- Responsive: 640px ---------- */
@media (max-width: 640px){
  :root{ --section-pad: 64px; }

  .hero{ padding-top: calc(var(--header-h) + 44px); padding-bottom:64px; }
  .hero-cta-row .btn{ flex:1 1 100%; }

  .section-head{ margin-bottom:34px; }
  .section-head--row{
    flex-direction:column;
    align-items:flex-start;
    gap:16px;
  }

  .bento{ grid-template-columns:1fr; }
  .bento-card--wide{ grid-column: auto; }

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

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

  .footer-grid{ grid-template-columns:1fr; gap:36px; }
}

/* ---------- Responsive: 480px ---------- */
@media (max-width: 480px){
  .wrap{ padding:0 18px; }
  .logo-word{ font-size:.88rem; }
  .calc-controls,
  .calc-result,
  .contact-form{ padding:24px 20px; }
  .pill span{ padding:9px 15px; font-size:.85rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    transition-duration:.01ms !important;
    animation-duration:.01ms !important;
  }
  .reveal-init{
    opacity:1;
    transform:none;
  }
}
