/* «Небо» — белый + небесно-голубой */
:root {
  --bg: #ffffff;
  --surface: #f0f7fe;
  --surface-2: #dcebf9;
  --text: #13263a;
  --muted: #5f7489;
  --line: rgba(19, 38, 58, .1);
  --accent: #2b8de3;
  --accent-hover: #1c74c2;
  --accent-ink: #fff;
  --accent-2: #ffbf3c;
  --dark: #0f2236;
  --radius: 24px;
  --font-head: "Comfortaa", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}
.h1 { font-weight: 700; letter-spacing: -.03em; }
.h2 { font-weight: 700; letter-spacing: -.02em; }
.card { border-color: transparent; background: var(--bg); box-shadow: 0 6px 24px rgba(43,141,227,.08); }
.section--alt .card { background: #fff; }
.card__icon { border-radius: 50%; }

/* hero */
.hero { position: relative; padding: 64px 0 0; background: linear-gradient(180deg, #cfe6fb 0%, #e9f4fe 45%, #fff 100%); overflow: hidden; }
.hero__inner { text-align: center; position: relative; z-index: 2; max-width: 920px; }
.hero__badge { display: inline-block; padding: 8px 18px; border-radius: 999px; background: #fff; font-weight: 700; font-size: 14px; color: var(--accent); box-shadow: 0 6px 20px rgba(43,141,227,.15); margin-bottom: 24px; }
.hero .lead { max-width: 640px; margin-left: auto; margin-right: auto; }
.hero__form { display: grid; gap: 12px; max-width: 520px; margin: 32px auto 0; }
.hero__form-row { display: flex; gap: 10px; padding: 8px; background: #fff; border-radius: 999px; box-shadow: 0 16px 40px rgba(43,141,227,.18); }
.hero__form .consent { max-width: 460px; margin: 0 auto; }
.hero__form-row input { flex: 1; min-width: 0; border: 0; padding: 0 20px; border-radius: 999px; font-size: 17px; background: transparent; }
.hero__form-row input:focus { outline: none; }
.hero__form-row input.is-invalid { box-shadow: inset 0 0 0 2px #e5484d; }
.hero__form .form-success { width: 100%; padding: 12px; }
.hero__form .form-success__icon { width: 40px; height: 40px; }
.hero__form .form-success h3 { font-size: 18px; }
.hero__form:has(.form-success) { border-radius: 24px; }
.hero__pills { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px; color: var(--muted); }
.hero__pills b { color: var(--text); }
.hero__photo { margin-top: 56px; aspect-ratio: 16 / 7; border-radius: 32px 32px 0 0; position: relative; z-index: 2; }
.cloud { position: absolute; z-index: 1; opacity: .9; filter: drop-shadow(0 10px 20px rgba(43,141,227,.12)); animation: drift 30s linear infinite alternate; }
.cloud--1 { width: 220px; top: 60px; left: -40px; }
.cloud--2 { width: 160px; top: 200px; right: 2%; animation-duration: 24s; animation-direction: alternate-reverse; }
.cloud--3 { width: 120px; top: 30px; right: 22%; opacity: .7; animation-duration: 36s; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(80px); } }

/* textures */
.texture { text-align: left; }
.texture__swatch { height: 140px; border-radius: 16px; margin-bottom: 20px; }
.texture__swatch--mat { background: linear-gradient(135deg, #f4f4f2, #e6e6e3); }
.texture__swatch--satin { background: linear-gradient(120deg, #f2efe9 0%, #fffdf8 40%, #e9e3d8 70%, #faf7f0 100%); }
.texture__swatch--gloss { background: linear-gradient(160deg, #e9f3ff 0%, #ffffff 30%, #bcd7f2 55%, #f5faff 70%, #d4e6f8 100%); }
.texture__price { margin-top: 18px; font-family: var(--font-head); font-size: 32px; font-weight: 700; color: var(--accent); }
.texture__price small { font-size: 16px; color: var(--muted); }
.extras { margin-top: 48px; background: #fff; border-radius: var(--radius); padding: 32px; }
.extras h3 { margin-bottom: 8px; }

/* calc */
.calc { display: grid; grid-template-columns: 1.5fr 1fr; gap: 0; border-radius: 32px; overflow: hidden; box-shadow: 0 30px 80px rgba(43,141,227,.16); }
.calc__body { padding: 40px; display: grid; gap: 30px; background: #fff; }
.calc__head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; margin-bottom: 14px; }
.calc__head output { font-family: var(--font-head); font-size: 24px; color: var(--accent); }
.calc__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tex-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tex-pick label { position: relative; cursor: pointer; }
.tex-pick input { position: absolute; opacity: 0; }
.tex-pick span { display: grid; justify-items: center; gap: 10px; padding: 14px; border-radius: 18px; border: 2px solid var(--line); font-weight: 700; transition: all .2s; }
.tex-pick i { width: 100%; height: 48px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.tex-pick label:hover span { border-color: var(--accent); }
.tex-pick input:checked + span { border-color: var(--accent); background: var(--surface); color: var(--accent); }
.tex-pick input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); }
.stepper button { width: 44px; height: 44px; border-radius: 50%; background: #fff; font-size: 22px; font-weight: 700; color: var(--accent); box-shadow: 0 2px 8px rgba(43,141,227,.15); transition: transform .2s, background .2s; }
.stepper button:hover { transform: scale(1.08); background: var(--accent); color: #fff; }
.stepper output { min-width: 48px; text-align: center; font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.calc__sum { position: relative; padding: 40px 36px; background: var(--surface); display: flex; flex-direction: column; overflow: hidden; }
.calc__sky { position: absolute; right: -40px; top: -30px; width: 200px; height: 100px; background: radial-gradient(circle at 30% 60%, #fff 30px, transparent 31px), radial-gradient(circle at 55% 45%, #fff 42px, transparent 43px), radial-gradient(circle at 78% 62%, #fff 30px, transparent 31px); opacity: .9; }
.calc__total { font-family: var(--font-head); font-size: clamp(34px, 4vw, 48px); font-weight: 700; color: var(--text); line-height: 1.15; margin-top: 4px; position: relative; }
.calc__old { color: var(--muted); text-decoration: line-through; min-height: 24px; }
.calc__list { display: grid; gap: 8px; margin: 18px 0; padding: 18px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); font-size: 15px; flex: 1; }
.calc__list li { display: flex; justify-content: space-between; gap: 12px; }
.calc__list li span:last-child { font-weight: 700; white-space: nowrap; }
.calc__list .gift { color: #1f9d55; }
.calc__inst { margin-bottom: 18px; color: var(--muted); }
.calc__inst b { color: var(--text); }

/* before/after */
.ba--ceiling { aspect-ratio: 4 / 3; border-radius: 28px; box-shadow: var(--shadow-lg); }
.ba__img--old { filter: grayscale(.7) sepia(.35) brightness(.78) contrast(.92); }
.ba__stains { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 120px 50px at 30% 12%, rgba(140, 100, 40, .45), transparent 70%),
    radial-gradient(ellipse 80px 40px at 70% 8%, rgba(120, 90, 50, .35), transparent 70%),
    linear-gradient(170deg, transparent 49.6%, rgba(60,50,40,.55) 50%, transparent 50.4%) 0 0 / 100% 30% no-repeat,
    linear-gradient(10deg, transparent 49.6%, rgba(60,50,40,.45) 50%, transparent 50.4%) 40% 0 / 60% 22% no-repeat;
}
.ba-facts { display: flex; gap: 32px; margin-top: 28px; flex-wrap: wrap; }
.ba-facts b { display: block; font-family: var(--font-head); font-size: 26px; color: var(--accent); }
.ba-facts span { color: var(--muted); font-size: 14px; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 16px; }
.gallery__item { position: relative; border-radius: var(--radius); overflow: hidden; }
.gallery__item .media { height: 100%; border-radius: 0; }
.gallery__item--big { grid-column: span 2; grid-row: span 2; }
.gallery__item figcaption { position: absolute; left: 12px; bottom: 12px; right: 12px; background: rgba(255,255,255,.92); padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; transform: translateY(70px); transition: transform .4s var(--ease); width: fit-content; max-width: calc(100% - 24px); }
.gallery__item:hover figcaption { transform: none; }

.form-card { background: var(--surface); border-radius: 32px; padding: 40px; }

@media (max-width: 920px) {
  .calc { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .hero__photo { aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .hero { padding-top: 40px; }
  .hero__form-row { flex-direction: column; border-radius: 24px; }
  .hero__form-row input { min-height: 52px; text-align: center; }
  .cloud--1 { width: 140px; }
  .cloud--2 { display: none; }
  .calc__body, .calc__sum { padding: 24px; }
  .calc__row--2 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stepper button { width: 38px; height: 38px; }
  .stepper output { min-width: 32px; }
  .tex-pick { gap: 8px; }
  .tex-pick span { padding: 10px 6px; font-size: 14px; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery__item--big { grid-column: auto; grid-row: span 1; }
  .gallery__item figcaption { transform: none; }
  .form-card, .extras { padding: 24px; }
}
