/* «Квадрат» — тёплый беж + терракота */
:root {
  --bg: #fbf7f1;
  --surface: #f2e9dd;
  --surface-2: #e6d8c6;
  --text: #2a201a;
  --muted: #7a6a5d;
  --line: rgba(42, 32, 26, .12);
  --accent: #c2603c;
  --accent-hover: #a54d2d;
  --accent-ink: #fff;
  --accent-2: #e3a24f;
  --dark: #2a201a;
  --radius: 18px;
  --font-head: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}
.h1 { font-size: clamp(30px, 4.6vw, 56px); font-weight: 700; }
.h2 { font-weight: 700; }
.h3 { font-family: var(--font-body); font-weight: 800; }

/* hero */
.hero { padding: 48px 0 40px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero__mark { color: var(--accent); position: relative; white-space: nowrap; }
.hero__mark::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em; background: var(--accent-2); opacity: .45; border-radius: 4px; z-index: -1; }
.hero__bullets { margin-top: 28px; display: grid; gap: 12px; }
.hero__bullets li { position: relative; padding-left: 34px; font-weight: 600; }
.hero__bullets li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 6px; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__media { position: relative; }
.hero__img { aspect-ratio: 4 / 4.6; border-radius: 28px 28px 28px 120px; }
.hero__float { position: absolute; background: var(--bg); border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow-lg); animation: floaty 5s ease-in-out infinite; }
.hero__float--a { left: -36px; bottom: 48px; max-width: 220px; }
.hero__float--a b { display: block; font-family: var(--font-head); font-size: 30px; color: var(--accent); line-height: 1.1; }
.hero__float--a span { font-size: 14px; color: var(--muted); }
.hero__float--b { right: -12px; top: 28px; font-size: 14px; display: flex; align-items: center; gap: 8px; animation-delay: -2.5s; }
.hero__dot { width: 10px; height: 10px; border-radius: 50%; background: #3dbb6b; box-shadow: 0 0 0 0 rgba(61,187,107,.6); animation: pulse 1.8s infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { to { box-shadow: 0 0 0 10px rgba(61,187,107,0); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; border-top: 1px solid var(--line); }
.stats > div { padding: 24px 20px 0 0; }
.stats b { display: block; font-family: var(--font-head); font-size: clamp(26px, 3vw, 38px); font-weight: 700; }
.stats span { color: var(--muted); font-size: 15px; }

/* tariffs */
.tariff { display: flex; flex-direction: column; }
.tariff__price { margin: 8px 0 20px; font-size: 18px; color: var(--muted); }
.tariff__price b { font-family: var(--font-head); font-size: 30px; color: var(--text); }
.tick-list { display: grid; gap: 10px; margin-bottom: 28px; flex: 1; }
.tick-list li { padding-left: 26px; position: relative; color: var(--muted); }
.tick-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.tariff--hit { background: var(--dark); color: #fff; border-color: var(--dark); }
.tariff--hit .tariff__price, .tariff--hit .tick-list li { color: rgba(255,255,255,.72); }
.tariff--hit .tariff__price b { color: #fff; }
.tag--hot { background: var(--accent); color: #fff; }

/* calc */
.calc { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.calc__form { background: var(--bg); border-radius: 24px; padding: 36px; display: grid; gap: 32px; }
.calc__label { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 800; margin-bottom: 14px; }
.calc__area { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-size: 20px; }
.calc__area input { width: 92px; padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; text-align: right; }
.calc__area input:focus { outline: none; border-color: var(--accent); }
.calc__scale { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 8px; }
.type-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.type-card { position: relative; cursor: pointer; }
.type-card input { position: absolute; opacity: 0; }
.type-card span { display: grid; gap: 2px; padding: 16px; border: 1.5px solid var(--line); border-radius: 14px; transition: all .2s; height: 100%; }
.type-card small { color: var(--muted); }
.type-card:hover span { border-color: var(--accent); }
.type-card input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--bg)); box-shadow: inset 0 0 0 1px var(--accent); }
.type-card input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.calc__result { position: sticky; top: calc(var(--header-h) + 20px); background: var(--accent); color: #fff; border-radius: 24px; padding: 32px; overflow: hidden; }
.calc__result::before { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border: 30px solid rgba(255,255,255,.1); border-radius: 30px; transform: rotate(20deg); }
.calc__res-label { font-size: 14px; opacity: .85; font-weight: 600; }
.calc__total { font-family: var(--font-head); font-size: clamp(32px, 4vw, 46px); font-weight: 700; line-height: 1.1; margin: 6px 0 20px; }
.calc__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.25); border-bottom: 1px solid rgba(255,255,255,.25); }
.calc__meta span { display: block; font-size: 13px; opacity: .8; }
.calc__meta b { font-size: 18px; }
.calc__lines { display: grid; gap: 6px; margin: 16px 0 24px; font-size: 14px; }
.calc__lines li { display: flex; justify-content: space-between; gap: 10px; opacity: .9; }
.calc__note { font-size: 13px; opacity: .8; text-align: center; margin-top: 12px; }
.calc__result .btn--light { color: var(--accent); }

/* works */
.works-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; max-width: none; flex-wrap: wrap; }
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.work .media { aspect-ratio: 4 / 3; border-radius: 0; height: 100%; }
.work--wide { grid-column: span 2; }
.work--wide .media { aspect-ratio: auto; min-height: 100%; }
.work__info { position: absolute; left: 12px; right: 12px; bottom: 12px; background: rgba(251,247,241,.94); border-radius: 12px; padding: 12px 16px; transform: translateY(8px); opacity: .95; transition: transform .35s var(--ease); }
.work__info b { display: block; }
.work__info span { font-size: 14px; color: var(--muted); }
.work:hover .work__info { transform: none; }
.work.is-hidden { display: none; }

/* contacts */
.lead-card { background: var(--surface); border-radius: 24px; padding: 40px; }

@media (max-width: 1080px) {
  .hero__float--a { left: 12px; }
}
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__img { aspect-ratio: 4 / 3; border-radius: 24px 24px 24px 80px; }
  .hero__float--b { right: 12px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .calc { grid-template-columns: 1fr; }
  .calc__result { position: static; }
  .works { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero { padding-top: 28px; }
  .hero__actions .btn { width: 100%; }
  .hero__float--a { padding: 12px 14px; max-width: 180px; bottom: 16px; }
  .hero__float--a b { font-size: 22px; }
  .hero__float--b { top: 12px; }
  .calc__form { padding: 22px; }
  .type-cards { grid-template-columns: 1fr; }
  .calc__result { padding: 24px; }
  .works { grid-template-columns: 1fr; }
  .work--wide { grid-column: auto; }
  .work--wide .media { aspect-ratio: 4 / 3; }
  .lead-card { padding: 24px; }
}
