﻿/* ===== AICH Design — client website ===== */

/* Self-hosted variable font (replaces Google Fonts to drop the external
   connection/render-blocking stylesheet). Each subset file covers the whole
   200-600 weight range; the browser matches the requested weight within it. */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 200 600;
  font-display: swap;
  src: url("assets/fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 200 600;
  font-display: swap;
  src: url("assets/fonts/jost-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --navy-900: #2a363f;
  --navy-800: #313f4a;
  --navy-700: #46525c;
  --navy-600: #5e6972;
  --blush-500: #e0c1bc;
  --blush-400: #e3c7c3;
  --blush-300: #e7cfcb;
  --cream-100: #f6f0e9;
  --cream-050: #fbf7f2;
  --ink: #232a2e;
  --line: rgba(246, 240, 233, 0.14);

  --font-display: "Jost", "Futura", "Century Gothic", "Segoe UI", sans-serif;
  --font-body: "Jost", "Segoe UI", sans-serif;

  --radius: 2px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  background: var(--cream-050);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--blush-500);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Custom cursor (demo) ---------- */
/* Desktop-with-a-real-mouse only - on touch devices there's no cursor to
   replace, and JS gates this whole feature behind prefers-reduced-motion too. */
@media (hover: hover) and (pointer: fine) {
  body.custom-cursor-on { cursor: none; }
  body.custom-cursor-on a,
  body.custom-cursor-on button,
  body.custom-cursor-on input,
  body.custom-cursor-on textarea,
  body.custom-cursor-on select,
  body.custom-cursor-on summary { cursor: none; }
}
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 14px; height: 14px;
  margin: 0 0 0 -7px;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  will-change: transform;
  /* No transition here - position must snap instantly with the mouse, or it
     visibly lags/drags behind on every move. Only the shape's own scale/color
     (below) animates, triggered by the .hover class, not by every mousemove. */
}
.cursor-dot.gone, .cursor-trail-dot.gone { opacity: 0 !important; }
.cursor-dot-shape {
  width: 100%; height: 100%;
  background: var(--blush-500);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  transform: rotate(-25deg);
  transform-origin: 50% 0%; /* the triangle's tip - rotate/scale pivot on it, not the box center, so the tip is what actually tracks the mouse position and presses buttons on hover */
  transition: transform 0.15s ease, background 0.2s ease;
}
.cursor-dot.hover .cursor-dot-shape {
  transform: rotate(-25deg) scale(1.4);
  background: var(--blush-300);
}

/* Trailing dots: all five get the exact same target position as the main
   cursor on every mousemove, but each animates toward it over a slightly
   longer duration than the last - since they're always "catching up", they
   naturally spread into a tail instead of overlapping. */
.cursor-trail-dot {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  background: var(--blush-500);
  pointer-events: none;
  z-index: 9998;
  will-change: transform;
}
.cursor-trail-dot-1 { width: 6px; height: 6px; margin: -3px 0 0 -3px; opacity: 0.55; transition: transform 0.08s linear, opacity 0.2s ease; }
.cursor-trail-dot-2 { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; opacity: 0.42; transition: transform 0.14s linear, opacity 0.2s ease; }
.cursor-trail-dot-3 { width: 4px; height: 4px; margin: -2px 0 0 -2px; opacity: 0.3; transition: transform 0.2s linear, opacity 0.2s ease; }
.cursor-trail-dot-4 { width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; opacity: 0.2; transition: transform 0.26s linear, opacity 0.2s ease; }
.cursor-trail-dot-5 { width: 2px; height: 2px; margin: -1px 0 0 -1px; opacity: 0.12; transition: transform 0.32s linear, opacity 0.2s ease; }
.cursor-trail-dot.idle { opacity: 0 !important; }

img { max-width: 100%; display: block; }

/* ---------- Scroll reveal ---------- */
.reveal,
.reveal-left,
.reveal-right,
.reveal-stagger > * {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal { transform: translateY(28px); }
.reveal-left { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }
.reveal-stagger > * { transform: translateY(22px); }
.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Hero entrance ---------- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-main > * { animation: heroFadeUp 0.8s ease both; }
.hero-main > *:nth-child(1) { animation-delay: 0.1s; }
.hero-main > *:nth-child(2) { animation-delay: 0.22s; }
.hero-main > *:nth-child(3) { animation-delay: 0.36s; }
.hero-main > *:nth-child(4) { animation-delay: 0.5s; }
.hero-stats { animation: heroFadeUp 0.8s ease both; animation-delay: 0.62s; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0;
}

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

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--blush-500);
  font-weight: 500;
}

.section-tag {
  display: inline-block;
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blush-500);
  color: var(--navy-900);
}
.btn-primary:hover { background: var(--blush-300); }

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-outline:hover { background: rgba(255,255,255,0.08); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--navy-700);
  color: var(--navy-700);
}
.btn-outline-dark:hover { background: var(--navy-700); color: var(--cream-050); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 76px;
  background: rgba(49, 63, 74, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  overflow: visible;
}

.header-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 32px;
  max-width: var(--container);
  margin: 0 auto;
  color: var(--cream-050);
  overflow: visible;
}

.logo {
  display: flex;
  align-items: flex-start;
  align-self: flex-start;
  flex-shrink: 0;
  padding-top: 8px;
}
.logo-img {
  height: 84px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}
.logo:hover .logo-img { transform: scale(1.05); }

.nav-links {
  display: flex;
  flex-shrink: 0;
  gap: 14px;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-links a { position: relative; opacity: 0.85; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; color: var(--blush-500); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -6px;
  height: 1px;
  background: var(--blush-500);
  transition: right 0.25s ease;
}
.nav-links a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream-050);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  background:
    linear-gradient(180deg, rgba(49,63,74,0.62) 0%, rgba(49,63,74,0.68) 50%, rgba(49,63,74,0.78) 100%),
    url('assets/portfolio/project-10.jpg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  color: var(--cream-050);
  padding-top: 105px;
}

.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(224,193,188,0.10), transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(224,193,188,0.08), transparent 45%);
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 32px 48px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

.hero-main { max-width: 920px; }

.hero h1 {
  font-size: clamp(1.5rem, 3.4vw, 2.8rem);
  max-width: 920px;
  line-height: 1.3;
  font-weight: 200;
  letter-spacing: 0.03em;
}
.hero h1 em {
  font-style: normal;
  font-weight: inherit;
  color: var(--blush-500);
}
.hero-line { white-space: nowrap; }
.nowrap { white-space: nowrap; }

.hero-sub {
  margin-top: 60px;
  max-width: 560px;
  font-size: 1.08rem;
  color: rgba(246,240,233,0.85);
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-stats {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--blush-500);
  font-variant-numeric: tabular-nums;
}
.hero-stat .label {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(246,240,233,0.7);
  margin-top: 4px;
}

/* ---------- Photo placeholders ---------- */
.ph {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #3d4d58 0%, #313f4a 55%, #59473f 100%);
  color: rgba(246,240,233,0.55);
  display: flex;
  align-items: flex-end;
  min-height: 220px;
}
.ph::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.06), transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(0,0,0,0.15), transparent 50%);
}
.ph span {
  position: relative;
  padding: 14px 16px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-body);
}
.ph-1 { background: linear-gradient(135deg, #4a5a63 0%, #313f4a 60%); }
.ph-2 { background: linear-gradient(135deg, #59473f 0%, #313f4a 60%); }
.ph-3 { background: linear-gradient(135deg, #536354 0%, #313f4a 60%); }
.ph-4 { background: linear-gradient(135deg, #4a4258 0%, #313f4a 60%); }
.ph-5 { background: linear-gradient(135deg, #3f5058 0%, #59473f 100%); }
.ph-6 { background: linear-gradient(135deg, #59473f 0%, #536354 100%); }

/* ---------- About ---------- */
.about {
  background: var(--cream-050);
  padding: 120px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.about h2 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  color: var(--navy-800);
  line-height: 1.2;
  margin-bottom: 24px;
}
.about h2 em {
  font-style: normal;
  font-weight: inherit;
  color: #82706d;
}
.about p { color: #4b5760; max-width: 560px; }

.about-highlights {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  max-width: 560px;
}
.about-highlights li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  color: #4b5760;
  font-size: 0.95rem;
}
.about-highlights li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--blush-500);
}

.founders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.founders-caption {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #525960;
  margin: 0 0 4px;
}
.founder-card {
  border-left: 2px solid var(--blush-500);
  padding-left: 18px;
}
.founder-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}
.founder-photo:hover img { transform: scale(1.06); }
.founder-name {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  font-size: 1.2rem;
  color: var(--navy-800);
  margin: 0 0 8px;
}
.founder-card ul {
  margin: 0; padding: 0; list-style: none;
  font-size: 0.9rem;
  color: #57626b;
}
.founder-card li { margin-bottom: 5px; padding-left: 14px; position: relative; }
.founder-card li::before {
  content: "-";
  position: absolute; left: 0; color: var(--blush-500);
}

/* ---------- Services ---------- */
.services {
  background: var(--navy-900);
  color: var(--cream-050);
  padding: 120px 0;
}
.services-head {
  max-width: 620px;
  margin-bottom: 64px;
}
.services-head h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-top: 10px; }
.services-head p { color: rgba(246,240,233,0.72); margin-top: 16px; }

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(224,193,188,0.22);
  border: 1px solid rgba(224,193,188,0.22);
}
.service-card {
  position: relative;
  overflow: hidden;
  background: var(--navy-900) center / cover no-repeat;
  padding: 44px 34px;
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--blush-500);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42,54,63,0.8) 0%, rgba(42,54,63,0.92) 50%, rgba(42,54,63,0.97) 100%);
  transition: opacity 0.35s ease;
}
.service-card:hover::before { opacity: 0.78; }
.service-card > * {
  position: relative;
  z-index: 1;
}
.service-card--design.bg-loaded { background-image: url('assets/services/design.jpg'); }
.service-card--renovation.bg-loaded { background-image: url('assets/services/renovation.jpg'); }
.service-card--furniture.bg-loaded { background-image: url('assets/services/furniture.jpg'); }
.service-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--blush-500);
  letter-spacing: 0.1em;
  background: rgba(224,193,188,0.12);
  padding: 4px 10px;
  border-radius: var(--radius);
}
.service-card h3 {
  margin-top: 18px;
  font-size: 1.5rem;
  color: var(--blush-400);
}
.service-card p.desc {
  margin-top: 14px;
  font-size: 0.92rem;
  color: rgba(246,240,233,0.68);
}
.service-card ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: rgba(246,240,233,0.8);
  flex-grow: 1;
}
.service-card li {
  padding: 9px 0;
  border-top: 1px solid rgba(224,193,188,0.16);
  padding-left: 16px;
  position: relative;
}
.service-card li:first-child { border-top: none; }
.service-card li::before {
  content: "";
  position: absolute; left: 0; top: 17px;
  width: 8px; height: 2px;
  background: var(--blush-500);
}
.service-card .btn { margin-top: 26px; align-self: flex-start; }

/* ---------- Calculator + Pricing ---------- */
.calculator {
  background: var(--cream-050);
  padding: 120px 0;
}
.calc-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  row-gap: 32px;
}
.calc-top {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.calc-bottom { min-width: 0; }

.calc-head { margin-bottom: 32px; }
.calc-head h2 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); color: var(--navy-800); margin-top: 10px; }
.calc-head p { color: #57626b; margin-top: 14px; font-size: 0.94rem; }

.calc-stage {
  position: relative;
  display: grid;
  flex: 1 1 auto;
  min-height: 420px;
}
.calc-stage > .calc-form,
.calc-stage > .calc-result {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.calc-stage > .calc-form[hidden],
.calc-stage > .calc-result[hidden] {
  visibility: hidden;
  pointer-events: none;
}

.calc-form {
  background: var(--navy-800);
  border: 1px solid var(--navy-800);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.calc-stage > .calc-form[hidden] { display: flex !important; }
.calc-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.calc-field label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(246,240,233,0.6);
  margin-bottom: 12px;
}
.calc-field input[type="number"] {
  width: 100%;
  border: none;
  border-bottom: 2px solid rgba(246,240,233,0.3);
  background: transparent;
  padding: 10px 2px;
  font-family: var(--font-body);
  font-size: 1.4rem;
  color: var(--cream-050);
  outline: none;
  transition: border-color 0.2s;
}
.calc-field input[type="number"]:focus { border-color: var(--blush-500); }
.calc-field input.error { border-color: #e08a84; }

.calc-services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.calc-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--cream-050);
  cursor: pointer;
  transition: color 0.2s ease;
}
.calc-check:hover { color: var(--blush-300); }
.calc-check input { accent-color: var(--blush-500); width: 18px; height: 18px; flex-shrink: 0; }

.calc-error {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #e08a84;
}

.calc-row { flex-shrink: 0; }
.calc-form .btn { margin-top: auto; }

.calc-result {
  background: var(--navy-900);
  color: var(--cream-050);
  border-radius: var(--radius);
  padding: 28px;
}
.calc-stage > .calc-result[hidden] { display: block !important; }
.calc-result h3 { margin-top: 6px; font-size: clamp(1.3rem, 2vw, 1.7rem); }
.calc-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.calc-result-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(246,240,233,0.6);
}
.calc-result-value {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}
.calc-result-price { color: var(--blush-500); }
.calc-result-grid--2 { grid-template-columns: repeat(2, 1fr); }
.calc-result-breakdown {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.calc-result-breakdown-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
  color: rgba(246,240,233,0.75);
  font-variant-numeric: tabular-nums;
}
.calc-result-breakdown-total {
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--blush-500);
}
.calc-result-note {
  margin-top: 10px;
  font-size: 0.76rem;
  color: rgba(246,240,233,0.65);
}
.calc-result-includes {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.calc-result-includes-label {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(246,240,233,0.65);
  margin-bottom: 8px;
}
.calc-result-includes ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.calc-result-includes li {
  font-size: 0.86rem;
  color: rgba(246,240,233,0.85);
  padding-left: 18px;
  position: relative;
}
.calc-result-includes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blush-500);
  font-weight: 600;
}
.calc-result .hero-actions { margin-top: 18px; }
.calc-result .btn-outline-dark { border-color: var(--cream-050); color: var(--cream-050); }
.calc-result .btn-outline-dark:hover { background: var(--cream-050); color: var(--navy-900); }

.calc-result-share {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.calc-result-share-label {
  font-size: 0.76rem;
  color: rgba(246,240,233,0.55);
  margin-right: 2px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(246,240,233,0.3);
  background: transparent;
  color: var(--cream-050);
  font-family: var(--font-body);
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.share-btn:hover { border-color: var(--blush-500); color: var(--blush-400); }

/* Printed calculation (opened via the "Скачать PDF" share button, which
   window.print()s just this one .calc-result while everything else on the
   page is hidden) - print-only header/footer for a branded one-page result. */
.print-header, .print-footer { display: none; }

@media print {
  body * { visibility: hidden; }
  .calc-result.printing, .calc-result.printing * { visibility: visible; }
  .calc-result.printing {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    background: var(--navy-900) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    padding: 32px;
  }
  .calc-result.printing .calc-result-share,
  .calc-result.printing .hero-actions { display: none; }
  .print-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: -8px 0 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--blush-500);
  }
  .print-logo { height: 48px; width: auto; }
  .print-header-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--blush-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .print-header-date { font-size: 0.8rem; color: rgba(246,240,233,0.6); margin-top: 4px; }
  .print-footer {
    display: block;
    margin-top: 28px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 0.76rem;
    color: rgba(246,240,233,0.5);
  }
}

/* Same "branded one-page result" look as .printing above, but usable on
   screen (not gated behind @media print) - html2canvas photographs the live
   page, not print output, so the share-as-image feature (buildResultImage
   in script.js) needs this to actually render, not just window.print(). */
.calc-result.capturing {
  background: var(--navy-900) !important;
  padding: 32px;
}
.calc-result.capturing .calc-result-share,
.calc-result.capturing .hero-actions { display: none; }
.calc-result.capturing .print-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: -8px 0 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--blush-500);
}
.calc-result.capturing .print-logo { height: 48px; width: auto; }
.calc-result.capturing .print-header-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--blush-400);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.calc-result.capturing .print-header-date { font-size: 0.8rem; color: rgba(246,240,233,0.6); margin-top: 4px; }
.calc-result.capturing .print-footer {
  display: block;
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  color: rgba(246,240,233,0.5);
}

.pricing-tiers {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pricing-card {
  background: var(--blush-300);
  border: 1px solid rgba(43,58,69,0.1);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.pricing-card--featured {
  background: var(--navy-900);
  color: var(--cream-050);
  border-color: var(--navy-900);
}
.pricing-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.pricing-card-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1rem;
  color: var(--navy-800);
}
.pricing-card--featured .pricing-card-title { color: var(--blush-400); }
.pricing-card ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  line-height: 1.4;
}
.pricing-card ul li {
  padding: 8px 0 8px 22px;
  border-top: 1px solid rgba(43,58,69,0.1);
  color: #4b5760;
  position: relative;
}
.pricing-card--featured ul li { border-top: 1px solid var(--line); color: rgba(246,240,233,0.8); }
.pricing-card ul li:first-child { border-top: none; }

.pricing-avaible li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--navy-700);
  font-weight: 600;
}
.pricing-card--featured .pricing-avaible li::before { color: var(--blush-500); }
.pricing-not-avaible {
  margin-top: 4px !important;
}
.pricing-not-avaible li {
  color: #63524d;
  text-decoration: line-through;
  text-decoration-color: rgba(138,119,112,0.6);
}
.pricing-card--featured .pricing-not-avaible li { color: rgba(246,240,233,0.65); }
.pricing-not-avaible li::before {
  content: "–";
  position: absolute;
  left: 4px;
  color: #63524d;
}
.pricing-card-price {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--navy-900);
  white-space: nowrap;
}
.pricing-card--featured .pricing-card-price { color: var(--blush-500); }
.pricing-card-price span { font-size: 0.85rem; opacity: 0.6; }

.pricing-card-line {
  margin-top: 10px;
  font-size: 0.86rem;
  color: #57626b;
  line-height: 1.45;
}
.pricing-card--featured .pricing-card-line { color: rgba(246,240,233,0.75); }

.price-toggle {
  display: inline-block;
  margin-top: 4px;
  padding: 11px 0;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--navy-800);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.pricing-card--featured .price-toggle { color: var(--blush-400); }
.price-toggle:hover { opacity: 0.75; }
.price-details { margin-top: 4px; }

.pricing-intro {
  font-size: 0.86rem;
  color: #57626b;
  line-height: 1.5;
  margin-bottom: 14px;
}
.pricing-card--featured .pricing-intro { color: rgba(246,240,233,0.75); }

.pricing-materials {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(43,58,69,0.1);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pricing-card--featured .pricing-materials { border-top-color: var(--line); }
.pricing-materials-label {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #525960;
  margin-bottom: 2px;
}
.pricing-card--featured .pricing-materials-label { color: rgba(246,240,233,0.65); }
.pricing-materials-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: #6b7580;
}
.pricing-card--featured .pricing-materials-row { color: rgba(246,240,233,0.65); }
.pricing-materials-total {
  margin-top: 2px;
  font-weight: 500;
  color: var(--navy-800);
}
.pricing-card--featured .pricing-materials-total { color: var(--blush-400); }

.calc-disclaimer {
  margin-top: 22px;
  font-size: 0.8rem;
  color: #525960;
  font-style: italic;
}

/* ---------- Payment ---------- */
.payment-block {
  background: var(--navy-800);
  color: var(--cream-050);
  padding: 56px 0;
}
.payment-head { max-width: 620px; margin-bottom: 36px; }
.payment-head h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  color: var(--cream-050);
}
.payment-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.payment-item { text-align: center; }
.payment-badge {
  width: 76px;
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blush-500);
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
  transition: transform 0.3s ease;
}
.payment-item:hover .payment-badge { transform: scale(1.1); }
.payment-text { margin-top: 14px; font-size: 0.88rem; color: rgba(246,240,233,0.75); }
.payment-block .calc-disclaimer { margin-top: 28px; text-align: center; color: rgba(246,240,233,0.65); }

/* ---------- Lead magnet (free guide) ---------- */
.lead-magnet {
  position: relative;
  background-color: var(--navy-800);
  background-size: cover;
  background-position: center;
  color: var(--cream-050);
  padding: 100px 0;
}
.lead-magnet.bg-loaded {
  background-image:
    linear-gradient(180deg, rgba(43,58,69,0.88) 0%, rgba(43,58,69,0.93) 100%),
    url('assets/guide-bg.jpg');
}
.lead-magnet-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: stretch;
}
.lead-magnet-cover {
  height: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
}
.lead-magnet-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}
.lead-magnet-cover:hover img { transform: scale(1.06); }
.lead-magnet-content h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  margin-top: 10px;
  max-width: 520px;
}
.lead-magnet-content p {
  margin-top: 16px;
  max-width: 480px;
  color: rgba(246,240,233,0.72);
  font-style: italic;
}
.lead-magnet-list {
  margin-top: 20px;
  max-width: 520px;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lead-magnet-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.96rem;
  color: rgba(246,240,233,0.85);
  line-height: 1.5;
}
.lead-magnet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blush-500);
}

.guide-form { margin-top: 30px; max-width: 520px; }
.guide-form .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.guide-form .field { margin-bottom: 18px; }
.guide-form label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(246,240,233,0.6);
  margin-bottom: 8px;
}
.guide-form input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 10px 2px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--cream-050);
  outline: none;
  transition: border-color 0.2s;
}
.guide-form input::placeholder { color: rgba(246,240,233,0.4); }
.guide-form input:focus { border-color: var(--blush-500); }
.lead-magnet .form-note { color: rgba(246,240,233,0.65); text-align: left; }
.lead-magnet .form-success {
  background: rgba(224,193,188,0.16);
  color: var(--blush-300);
}

/* ---------- Portfolio ---------- */
.portfolio {
  background: var(--cream-050);
  padding: 120px 0;
}
.portfolio-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.portfolio-head h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); color: var(--navy-800); margin-top: 10px; }
.portfolio-head p { color: #57626b; max-width: 440px; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 190px);
  gap: 14px;
}
.pf-item {
  border-radius: var(--radius);
  overflow: hidden;
}
.pf-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.pf-item:hover img { transform: scale(1.05); }

/* Explicit tiling so the 10 photos lock together into one clean 4x4 rectangle
   (mixed wide/tall tiles can't be trusted to auto-pack without gaps). */
.portfolio-grid .pf-item:nth-child(1)  { grid-column: 3 / span 2; grid-row: 1; }
.portfolio-grid .pf-item:nth-child(2)  { grid-column: 1; grid-row: 1 / span 2; }
.portfolio-grid .pf-item:nth-child(3)  { grid-column: 3; grid-row: 2; }
.portfolio-grid .pf-item:nth-child(4)  { grid-column: 2; grid-row: 1 / span 2; }
.portfolio-grid .pf-item:nth-child(5)  { grid-column: 4; grid-row: 2; }
.portfolio-grid .pf-item:nth-child(6)  { grid-column: 2 / span 2; grid-row: 3; }
.portfolio-grid .pf-item:nth-child(7)  { grid-column: 2; grid-row: 4; }
.portfolio-grid .pf-item:nth-child(8)  { grid-column: 1; grid-row: 3 / span 2; }
.portfolio-grid .pf-item:nth-child(9)  { grid-column: 3; grid-row: 4; }
.portfolio-grid .pf-item:nth-child(10) { grid-column: 4; grid-row: 3 / span 2; }

.portfolio-note {
  margin-top: 28px;
  font-size: 0.85rem;
  color: #525960;
  font-style: italic;
}

/* ---------- Trust bar ---------- */
.trust {
  background: var(--blush-500);
  color: var(--navy-900);
  padding: 56px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-grid .num { font-family: var(--font-display); font-size: 2.2rem; display: inline-block; transition: transform 0.3s ease; }
.trust-grid > div:hover .num { transform: scale(1.08); }
.trust-grid .label { font-size: 0.82rem; margin-top: 6px; letter-spacing: 0.03em; }

/* ---------- Reviews ---------- */
.reviews {
  background: var(--cream-050);
  padding: 100px 0;
}
.reviews-head {
  max-width: 620px;
  margin-bottom: 40px;
}
.reviews-head h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); color: var(--navy-800); margin-top: 10px; }
.reviews-head p { color: #57626b; margin-top: 16px; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.review-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(43,58,69,0.08);
  box-shadow: 0 8px 24px rgba(43,58,69,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.review-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(43,58,69,0.16); }
.review-card-photo { aspect-ratio: 4 / 3; overflow: hidden; }
.review-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.review-card:hover .review-card-photo img { transform: scale(1.05); }
.review-card-body { padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.review-card-head { display: flex; align-items: center; gap: 12px; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.review-who { flex: 1; min-width: 0; }
.review-name { font-family: var(--font-display); font-size: 0.98rem; color: var(--navy-800); line-height: 1.3; }
.review-date { font-size: 0.76rem; color: #9aa2a9; margin-top: 2px; }
.review-stars { color: #d9a441; font-size: 0.82rem; letter-spacing: 2px; flex-shrink: 0; }
.review-text { font-size: 0.92rem; line-height: 1.62; color: var(--ink); }
.reviews-empty { color: #8a9099; font-style: italic; }
.reviews-link { margin-top: 32px; }

/* ---------- FAQ ---------- */
.faq {
  background: var(--navy-800);
}
.faq::before,
.faq::after {
  content: "";
  display: block;
  height: 60px;
}
.faq::before,
.faq::after {
  background-color: var(--navy-800);
  background-size: cover;
  background-position: center;
}
.faq.bg-loaded::before {
  background-image: linear-gradient(rgba(49,63,74,0.55), rgba(49,63,74,0.55)), url('assets/faq-stripe.jpg');
}
.faq.bg-loaded::after {
  background-image: linear-gradient(rgba(49,63,74,0.55), rgba(49,63,74,0.55)), url('assets/faq-stripe.jpg');
}
.faq .container { padding: 56px 32px; }
.faq-head { max-width: 620px; margin-bottom: 24px; }
.faq-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: var(--blush-400); margin-top: 10px; }
.faq-head p { color: rgba(246,240,233,0.72); margin-top: 12px; font-size: 0.94rem; }
.faq-list {
  max-width: 760px;
  display: flex;
  flex-direction: column;
}
.faq-item {
  border-top: 1px solid var(--line);
  padding: 13px 0;
}
.faq-list .faq-item:last-child { border-bottom: none; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.96rem;
  color: var(--cream-050);
  transition: color 0.2s ease;
}
.faq-item summary:hover { color: var(--blush-400); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: var(--blush-500);
  transition: transform 0.2s ease;
}
.faq-item summary:hover::after { transform: scale(1.2); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  margin-top: 8px;
  color: rgba(246,240,233,0.72);
  font-size: 0.86rem;
  line-height: 1.45;
  max-width: 640px;
}

/* ---------- Contact ---------- */
.contact {
  position: relative;
  overflow: hidden;
  background: var(--cream-100);
  padding: 120px 0;
}
.contact::before {
  content: "";
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  filter: blur(2px);
  opacity: 0.3;
}
.contact.bg-loaded::before {
  background-image: url('assets/contact-map.webp');
}
.contact > .container {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 10px rgba(251,247,242,0.7);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.contact-info {
  background: rgba(49,63,74,0.85);
  padding: 40px;
  border-radius: var(--radius) 0 0 var(--radius);
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}
.contact-info h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 500; color: var(--blush-500); margin-top: 10px; }
.contact-info .contact-intro { color: var(--blush-300); margin-top: 16px; max-width: 460px; }

.contact-people {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-person {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.98rem;
}
.contact-avatar {
  display: block;
  width: 106px;
  height: 106px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.contact-person:hover .contact-avatar { transform: scale(1.08); }
.contact-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.contact-person-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-person .who {
  color: var(--blush-500);
  font-size: 0.92rem;
  font-weight: 600;
}
.contact-person a { color: var(--blush-300); font-weight: 500; }
.contact-person a:hover { color: var(--cream-050); }
.contact-person-tg { font-size: 0.84rem; font-weight: 400 !important; opacity: 0.75; }

.contact-meta {
  margin-top: 26px;
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--blush-300);
}
.contact-meta a { display: inline-block; padding: 12px 4px; margin: -12px -4px; }
.contact-meta a:hover { color: var(--cream-050); }

.contact-address {
  margin-top: 26px;
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--blush-300);
}
.contact-address a { color: var(--blush-300); }
.contact-address a:hover { color: var(--cream-050); }

.contact-map-wrap {
  position: relative;
  z-index: 1;
  margin-top: 28px;
}
.contact-map-wrap iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: var(--radius);
}
@media (max-width: 980px) {
  .contact-map-wrap iframe { height: 280px; }
}

.contact-form {
  background: rgba(251,247,242,0.8);
  border: 1px solid rgba(43,58,69,0.1);
  border-left: none;
  padding: 40px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.contact-form .field { margin-bottom: 18px; }
.contact-form label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #525960;
  margin-bottom: 8px;
}
.field-optional {
  text-transform: none;
  letter-spacing: normal;
  color: #b3b8bd;
}
.contact-form select,
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(43,58,69,0.25);
  background: transparent;
  padding: 10px 2px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--navy-900);
  outline: none;
  transition: border-color 0.2s;
}
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%238a9099'%3E%3Cpath d='M5.5 7.5l4.5 5 4.5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 16px;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus { border-color: var(--blush-500); }
.contact-form textarea { resize: vertical; min-height: 90px; }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-note {
  font-size: 0.78rem;
  color: #525960;
  margin-top: 14px;
  text-align: center;
}
.form-success {
  display: none;
  background: #e7f2e9;
  color: #2f5a3a;
  padding: 14px 16px;
  font-size: 0.88rem;
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.form-success.visible { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(246,240,233,0.6);
  padding: 40px 0;
  font-size: 0.92rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-inner .logo-img { height: 102px; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { display: inline-block; padding: 12px 8px; margin: -12px -8px; }
.footer-links a:hover { color: var(--blush-500); }

/* ---------- Sticky CTA (mobile) ---------- */
.mobile-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  display: none;
  background: var(--navy-900);
  border-top: 1px solid var(--line);
  padding: 12px 16px;
}
.mobile-cta .btn { width: 100%; justify-content: center; }

/* ---------- Responsive ---------- */
/* Nav switches to the hamburger drawer earlier than the content breakpoint below —
   the wordmark + full nav + CTA button need more room to stay on one line. */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .header-actions .btn-outline { display: none; }
}

@media (max-width: 980px) {
  /* Desktop vertical rhythm (100-120px top/bottom per section) turns into a lot
     of empty scrolling on a phone-height viewport - tighten it down here to
     roughly match .payment/.trust, which were already sized for mobile. */
  .about, .services, .calculator, .lead-magnet, .portfolio, .reviews, .contact {
    padding: 64px 0;
  }
  /* Both force a headline onto one line - fine on wide screens, but no font-size
     is small enough to fit them at phone widths without becoming unreadable, so
     they were clipping (text literally invisible, not just visually tight). */
  .hero-line, .nowrap { white-space: normal; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .about-grid { grid-template-columns: 1fr; }
  .founders { grid-template-columns: 1fr; }
  .service-cards { grid-template-columns: 1fr; }
  .calc-columns { grid-template-columns: 1fr; gap: 56px; }
  .calc-columns > .calc-top:nth-child(1) { order: 1; }
  .calc-columns > .calc-top:nth-child(2) { order: 3; }
  .calc-columns > .calc-bottom:nth-child(3) { order: 2; }
  .calc-columns > .calc-bottom:nth-child(4) { order: 4; }
  .calc-top { height: auto; }
  .calc-result { padding: 28px; }
  .calc-result-grid { grid-template-columns: 1fr; gap: 18px; }
  .payment-row { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .lead-magnet-grid { grid-template-columns: 1fr; }
  .lead-magnet-cover { max-width: 220px; height: auto; aspect-ratio: 3 / 4; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; grid-auto-rows: 190px; }
  .portfolio-grid .pf-item { grid-column: auto !important; grid-row: auto !important; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { border-radius: var(--radius) var(--radius) 0 0; }
  .contact-form { border-top: none; border-radius: 0 0 var(--radius) var(--radius); }
  .mobile-cta { display: block; }
  body { padding-bottom: 64px; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .hero-inner { padding: 24px 20px; }
  .hero h1 { font-size: clamp(1.1rem, 5.5vw, 1.5rem); }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .payment-row { grid-template-columns: 1fr; }
  .calc-services { grid-template-columns: 1fr; }
  .guide-form .field-row { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .contact-form { padding: 28px 22px; }
}

/* ---------- Mobile nav dropdown ---------- */
/* A compact panel anchored under the header, not a full-screen takeover -
   the page stays visible (dimmed) behind/below it, so opening the menu
   doesn't feel like leaving the page. --header-h keeps the panel's top
   offset and the backdrop's coverage in sync with the real header height. */
:root { --header-h: 76px; }
.nav-backdrop {
  position: fixed;
  top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: rgba(35, 42, 46, 0.4);
  z-index: 199;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.nav-backdrop.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0s linear 0s;
}
.nav-drawer {
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  background: var(--navy-900);
  color: var(--cream-050);
  z-index: 200;
  font-family: var(--font-display);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border-radius: 0 0 var(--radius) var(--radius);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.22s ease, opacity 0.22s ease, visibility 0s linear 0.22s;
}
.nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.22s ease, opacity 0.22s ease, visibility 0s linear 0s;
}
.nav-drawer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 46px 24px 20px;
}
.nav-drawer-links a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 4px;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  line-height: 1.25;
  border-bottom: 1px solid rgba(251,247,242,0.1);
}
.nav-drawer-links a:nth-child(odd) { padding-right: 14px; }
.nav-drawer-links a:nth-child(even) { justify-content: flex-end; text-align: right; padding-left: 14px; }
.nav-drawer-close {
  position: absolute;
  top: 8px; right: 8px;
  background: none;
  border: none;
  color: var(--cream-050);
  opacity: 0.6;
  font-size: 1.4rem;
  cursor: pointer;
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
