:root {
  --ink: #071b2b;
  --ink-2: #102c40;
  --blue: #1769ff;
  --blue-2: #0b4fd5;
  --red: #ff3b46;
  --paper: #f4f7fa;
  --line: #dbe4eb;
  --muted: #627180;
  --white: #fff;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(0, 26, 48, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; background: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(219, 228, 235, .82); background: rgba(255,255,255,.94); backdrop-filter: blur(16px); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 230px; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.05; }
.brand b { font-size: 14px; font-weight: 900; letter-spacing: .02em; }
.brand small { margin-top: 6px; color: var(--muted); font-size: 10px; letter-spacing: .02em; }
.brand-mark { position: relative; width: 37px; height: 31px; display: inline-block; flex: none; overflow: hidden; border-radius: 5px; transform: skewY(-5deg); }
.brand-mark i { position: absolute; left: 0; width: 100%; height: 33.34%; }
.brand-mark i:nth-child(1) { top: 0; background: #fff; border: 1px solid #dfe7ed; }
.brand-mark i:nth-child(2) { top: 33.33%; background: var(--blue); }
.brand-mark i:nth-child(3) { bottom: 0; background: var(--red); }
.main-nav { display: flex; gap: 24px; margin-left: auto; }
.main-nav a { font-size: 14px; font-weight: 600; transition: color .2s; }
.main-nav a:hover { color: var(--blue); }
.header-contact { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.header-contact small { color: var(--muted); font-size: 11px; }
.header-contact a { margin-top: 5px; font-size: 14px; font-weight: 800; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 52px; padding: 0 25px; border: 0; border-radius: 12px; background: var(--blue); color: #fff; font-weight: 800; cursor: pointer; box-shadow: 0 9px 28px rgba(23,105,255,.24); transition: transform .2s, background .2s, box-shadow .2s; }
.button:hover { background: var(--blue-2); transform: translateY(-2px); box-shadow: 0 13px 32px rgba(23,105,255,.32); }
.button-small { min-height: 40px; padding-inline: 18px; font-size: 13px; border-radius: 9px; }

.hero { position: relative; overflow: hidden; padding: 70px 0 76px; color: #fff; background: var(--ink); }
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 25% 20%, rgba(23,105,255,.23), transparent 33%), linear-gradient(120deg, rgba(255,255,255,.04), transparent 35%); }
.hero-art { position: absolute; left: 0; bottom: 0; width: 58%; height: 63%; opacity: .44; background: linear-gradient(90deg, var(--ink) 0%, rgba(7,27,43,.22) 42%, rgba(7,27,43,.28) 100%), url('assets/hero.webp') center 50% / cover; mask-image: linear-gradient(to top, #000 0, transparent 96%); }
.hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(165deg, transparent 52%, rgba(255,59,70,.25) 53%, rgba(255,59,70,.25) 58%, transparent 59%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, .92fr) minmax(500px, 1.08fr); gap: 64px; align-items: center; }
.hero-copy { padding: 18px 0 42px; }
.eyebrow, .kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow { color: #a9c6ff; }
.eyebrow span { width: 30px; height: 2px; background: var(--red); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; font-size: clamp(42px, 5vw, 70px); font-weight: 900; line-height: 1.02; letter-spacing: -.055em; }
h1 em { color: #8db7ff; font-style: normal; }
.hero-lead { max-width: 620px; margin-bottom: 32px; color: #d2dee7; font-size: 18px; line-height: 1.65; }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; max-width: 610px; margin-bottom: 30px; }
.trust-row div { padding: 14px 15px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.06); backdrop-filter: blur(7px); }
.trust-row strong, .trust-row span { display: block; }
.trust-row strong { font-size: 15px; }
.trust-row span { margin-top: 4px; color: #aebdcc; font-size: 10px; }
.text-link { display: inline-flex; gap: 13px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.36); padding-bottom: 6px; font-weight: 700; font-size: 14px; }

.hero-price-card { color: var(--ink); border: 1px solid rgba(255,255,255,.3); border-radius: 26px; padding: 27px; background: rgba(255,255,255,.98); box-shadow: var(--shadow); }
.price-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.price-card-head h2 { margin: 6px 0 0; font-size: 27px; line-height: 1.15; letter-spacing: -.035em; }
.price-badge { padding: 7px 10px; border-radius: 999px; color: #1557b8; background: #e4efff; font-size: 10px; font-weight: 800; white-space: nowrap; }
.price-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.price-group { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.price-group-title { display: flex; align-items: center; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); background: var(--paper); }
.price-group-title > div { display: flex; flex-direction: column; }
.price-group-title strong { font-size: 13px; }
.price-group-title small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.price-shape { position: relative; display: block; flex: none; background: linear-gradient(145deg, #1769ff 0 55%, #8db7ff 55% 74%, #ff3b46 74%); }
.rectangle-shape { width: 32px; height: 22px; border-radius: 2px; }
.winder-shape { width: 16px; height: 34px; border-radius: 2px 10px 11px 2px; }
.price-row { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 13px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: #fff; cursor: pointer; text-align: left; transition: color .2s, background .2s; }
.price-row:last-child { border-bottom: 0; }
.price-row:hover { color: var(--blue); background: #f3f7ff; }
.price-row.selected { position: relative; z-index: 1; color: var(--blue); background: #eaf1ff; box-shadow: inset 0 0 0 2px var(--blue); }
.price-size { display: flex; flex-direction: column; font-size: 11px; font-weight: 700; }
.price-size small { margin-top: 2px; color: var(--red); font-size: 8px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.price-pick { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.price-row strong { font-size: 13px; white-space: nowrap; }
.price-pick em { padding: 3px 7px; border-radius: 5px; color: #fff; background: var(--blue); font-size: 8px; font-style: normal; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.price-row:hover .price-pick em, .price-row.selected .price-pick em { background: var(--blue-2); }
.price-row.popular-price { background: #edf4ff; }
.price-basis { margin: 15px 2px 8px; color: var(--muted); font-size: 10px; }
.price-warning { margin-bottom: 14px; padding: 12px 13px; border-left: 3px solid var(--red); border-radius: 8px; color: #536574; background: #fff3f4; font-size: 11px; line-height: 1.5; }
.price-warning b { color: var(--ink); }

.calculator { color: var(--ink); border: 1px solid rgba(255,255,255,.3); border-radius: 26px; padding: 27px; background: rgba(255,255,255,.98); box-shadow: var(--shadow); }
.calc-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 22px; }
.step-label { color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.calc-head h2 { margin: 6px 0 0; font-size: 25px; line-height: 1.2; letter-spacing: -.035em; }
.live-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; background: #eaf8f0; color: #16704a; font-size: 10px; font-weight: 800; white-space: nowrap; }
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: #20ac70; box-shadow: 0 0 0 4px rgba(32,172,112,.12); }
.calc-section { border-top: 1px solid var(--line); padding: 18px 0 17px; }
.field-title { margin-bottom: 13px; color: var(--ink); font-size: 13px; font-weight: 800; }
.field-title span { color: var(--blue); margin-right: 7px; }
.size-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.size-pill { min-height: 35px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; color: #415262; background: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.size-pill:hover, .size-pill.active { color: var(--blue); border-color: var(--blue); background: #edf4ff; }
.dimension-row { display: grid; grid-template-columns: 1fr 18px 1fr 1fr; align-items: end; gap: 8px; margin-top: 12px; }
.dimension-row > span { padding-bottom: 12px; color: #95a4b1; text-align: center; }
.calculator label { color: #647482; font-size: 11px; font-weight: 700; }
.calculator input[type=number], .calculator select { width: 100%; height: 42px; margin-top: 5px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; outline: none; font-size: 13px; font-weight: 700; }
.calculator input:focus, .calculator select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,105,255,.1); }
.form-grid { display: grid; grid-template-columns: 1.18fr .82fr; gap: 9px; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 11px; }
.design-choice-row { grid-template-columns: repeat(3, 1fr); }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: flex; min-height: 51px; flex-direction: column; justify-content: center; padding: 7px 11px 7px 34px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); font-size: 12px; font-weight: 800; }
.choice span::before { content: ''; position: absolute; left: 11px; top: 17px; width: 11px; height: 11px; border: 2px solid #a7b4bf; border-radius: 50%; }
.choice small { color: var(--muted); font-size: 9px; font-weight: 500; }
.choice input:checked + span { border-color: var(--blue); background: #edf4ff; }
.choice input:checked + span::before { border-color: var(--blue); box-shadow: inset 0 0 0 3px #edf4ff; background: var(--blue); }
.variant-choice-row { margin-top: 0; }
.choice.disabled { cursor: not-allowed; opacity: .48; }
.choice.disabled span { background: #f1f4f6; }
.print-note { margin: 9px 0 0; padding: 9px 11px; border-radius: 8px; color: #735a00; background: #fff3c7; font-size: 11px; font-weight: 700; }
.sewn-note { margin: 9px 0 0; padding: 10px 11px; border-left: 3px solid var(--blue); border-radius: 8px; color: #405565; background: #edf4ff; font-size: 11px; line-height: 1.45; }
.sewn-note b { color: var(--ink); }
.check-row { display: flex; gap: 18px; margin-top: 13px; }
.check-row label { display: flex; align-items: center; gap: 7px; color: var(--ink); cursor: pointer; font-size: 11px; }
.check-row input { accent-color: var(--blue); width: 15px; height: 15px; }
.single-check { margin-top: 12px; }
.option-panel { display: grid; grid-template-columns: 1fr 165px; gap: 16px; align-items: end; margin-bottom: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #f8fafc; }
.option-panel > div:first-child { display: flex; flex-direction: column; }
.option-panel strong { color: var(--ink); font-size: 12px; }
.option-panel small { margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 500; }
.compact-fields { display: grid; grid-template-columns: 1.2fr .8fr; gap: 8px; }
.option-panel-compact { grid-template-columns: 1fr; margin-top: 8px; }
.option-toggle { display: flex; align-items: center; gap: 10px; margin-top: 11px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink) !important; cursor: pointer; }
.option-toggle input { width: 17px; height: 17px; accent-color: var(--blue); }
.option-toggle span { display: flex; flex-direction: column; }
.option-toggle b { font-size: 12px; }
.option-toggle small { margin-top: 2px; color: var(--muted); font-size: 9px; font-weight: 500; }
.extra-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 11px; }
.extra-options label { display: flex; align-items: flex-start; gap: 8px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); cursor: pointer; }
.extra-options input { width: 15px; height: 15px; flex: none; accent-color: var(--blue); }
.extra-options span { display: flex; flex-direction: column; font-size: 10px; font-weight: 800; }
.extra-options small { margin-top: 3px; color: var(--muted); font-size: 8px; font-weight: 500; }
.options-note { margin: 9px 3px 0; color: #7b8994; font-size: 9px; line-height: 1.45; }
.calc-result { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 2px 0 16px; padding: 17px; border-radius: 13px; color: #fff; background: var(--ink); }
.calc-result span, .calc-result strong, .calc-result small { display: block; }
.calc-result span { color: #b7c5d0; font-size: 10px; }
.calc-result strong { margin: 2px 0; font-size: 28px; line-height: 1.15; letter-spacing: -.04em; }
.calc-result small { color: #a6b6c2; font-size: 9px; }
.calc-result .discount { padding: 7px 9px; border-radius: 7px; color: #fff; background: var(--red); font-size: 10px; font-weight: 800; }
.button-wide { width: 100%; }
.calc-note { margin: 10px 10px 0; color: #8997a2; font-size: 9px; line-height: 1.4; text-align: center; }

.audience-strip { color: #d9e3eb; background: #03121d; }
.audience-strip .container { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.audience-strip span { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.audience-strip i { width: 5px; height: 5px; border-radius: 50%; background: var(--red); }

.section { padding: 96px 0; }
.section-heading { max-width: 700px; margin-bottom: 42px; }
.section-heading h2, .process h2, .delivery h2, .reviews h2, .faq h2, .order-section h2 { margin-bottom: 16px; font-size: clamp(30px, 4vw, 50px); font-weight: 900; line-height: 1.12; letter-spacing: -.045em; }
.section-heading > p, .split-heading > p, .process-copy > p, .faq-grid > div > p { color: var(--muted); font-size: 17px; }
.split-heading { max-width: none; display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: end; }
.split-heading h2 { margin-bottom: 0; }
.split-heading p { margin-bottom: 2px; }
.kicker { margin-bottom: 14px; }
.kicker.light { color: #91b6ff; }

.site-guide { background: var(--paper); }
.guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.guide-grid li { min-height: 250px; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.guide-grid li > span { color: var(--blue); font-size: 11px; font-weight: 900; }
.guide-grid li div { margin-top: auto; }
.guide-grid h3 { margin-bottom: 9px; font-size: 20px; line-height: 1.2; }
.guide-grid p { margin: 0; color: var(--muted); font-size: 13px; }
.guide-button { margin-top: 22px; }

.flag-forms { background: #fff; }
.flag-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.flag-form-card { overflow: hidden; display: grid; grid-template-columns: 42% 1fr; min-height: 330px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); transition: transform .2s, border-color .2s, box-shadow .2s; }
.flag-form-card:hover, .flag-form-card.selected { border-color: var(--blue); transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0, 42, 82, .08); }
.flag-form-card.selected { box-shadow: 0 0 0 2px var(--blue), 0 18px 44px rgba(0, 42, 82, .10); }
.variant-preview { display: grid; place-items: center; min-height: 330px; background: var(--ink); }
.variant-preview span { position: relative; display: block; background: linear-gradient(145deg, #1769ff 0 48%, #8db7ff 48% 72%, #ff3b46 72%); box-shadow: 0 18px 32px rgba(0,0,0,.25); }
.variant-rectangle span { width: 135px; aspect-ratio: 3 / 2; }
.variant-rectangle span::before, .variant-winder span::before { content: ''; position: absolute; top: -16px; bottom: -24px; left: -7px; width: 4px; border-radius: 4px; background: #b7c5d0; }
.variant-winder span { width: 72px; height: 215px; border-radius: 7px 42px 45px 7px; transform: skewY(-3deg); }
.flag-form-card > div:last-child { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; }
.form-number { color: var(--blue); font-size: 11px; font-weight: 900; }
.flag-form-card h3 { margin: 54px 0 11px; font-size: 25px; line-height: 1.15; letter-spacing: -.03em; }
.flag-form-card p { color: var(--muted); font-size: 14px; }
.flag-form-card button { min-height: 38px; margin-top: auto; padding: 0 17px; border: 1px solid var(--blue); border-radius: 9px; color: var(--blue); background: #fff; cursor: pointer; font-size: 12px; font-weight: 900; transition: color .2s, background .2s, border-color .2s; }
.flag-form-card button:hover, .flag-form-card.selected button { color: #fff; border-color: var(--blue); background: var(--blue); }

.product-types { background: var(--paper); }
.type-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.type-card { min-height: 270px; grid-column: span 2; display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: transform .2s, box-shadow .2s; }
.type-card:nth-child(4), .type-card:nth-child(5) { grid-column: span 3; }
.type-card:hover { transform: translateY(-5px); box-shadow: 0 18px 42px rgba(6, 36, 60, .09); }
.type-card.featured { color: #fff; border-color: var(--blue); background: var(--blue); }
.type-number { color: var(--blue); font-size: 11px; font-weight: 900; }
.featured .type-number { color: #c6d8ff; }
.type-card h3 { margin: auto 0 10px; font-size: 23px; letter-spacing: -.03em; }
.type-card p { color: var(--muted); font-size: 14px; }
.featured p { color: #d8e4ff; }
.type-card a { display: flex; justify-content: space-between; margin-top: 13px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 800; }
.featured a { border-color: rgba(255,255,255,.25); }

.materials { color: #fff; background: var(--ink); }
.materials .section-heading p { color: #aebdca; }
.materials-heading { max-width: 820px; }
.comparison-toggle { min-height: 52px; display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 22px; padding: 0 18px; border: 1px solid #6f9eff; border-radius: 11px; color: #fff; background: var(--blue); cursor: pointer; font-size: 14px; font-weight: 900; transition: background .2s, border-color .2s, transform .2s; }
.comparison-toggle:hover { border-color: #8db7ff; background: var(--blue-2); transform: translateY(-2px); }
.comparison-toggle i { font-size: 20px; font-style: normal; font-weight: 500; transition: transform .2s; }
.comparison-toggle[aria-expanded="true"] i { transform: rotate(45deg); }
.material-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.material-card { display: grid; grid-template-columns: 185px 1fr; overflow: hidden; min-height: 260px; border: 1px solid rgba(255,255,255,.12); border-radius: 17px; background: rgba(255,255,255,.055); transition: border .2s, transform .2s, box-shadow .2s; }
.material-card:hover, .material-card.selected { border-color: #5c91ff; transform: translateY(-3px); }
.material-card.selected { box-shadow: 0 0 0 2px #5c91ff, 0 18px 44px rgba(0, 0, 0, .18); }
.material-card img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.material-card > div { display: flex; flex-direction: column; align-items: flex-start; padding: 23px; }
.material-card .tag { padding: 5px 8px; border-radius: 5px; color: #a9c6ff; background: rgba(23,105,255,.17); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.material-card h3 { margin: 15px 0 7px; font-size: 20px; }
.material-card p { color: #aebdca; font-size: 12px; }
.material-card ul { display: flex; flex-wrap: wrap; gap: 7px; margin: auto 0 17px; padding: 0; list-style: none; }
.material-card li { padding: 5px 8px; border: 1px solid rgba(255,255,255,.14); border-radius: 6px; color: #d9e3eb; font-size: 9px; }
.material-card button { min-height: 38px; padding: 0 17px; border: 1px solid #79a6ff; border-radius: 9px; color: #fff; background: rgba(23,105,255,.18); cursor: pointer; font-size: 11px; font-weight: 900; transition: background .2s, border-color .2s; }
.material-card button:hover, .material-card.selected button { border-color: var(--blue); background: var(--blue); }

.material-comparison { margin: 0 0 42px; }
.comparison-heading { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: end; margin-bottom: 26px; }
.comparison-heading h3 { margin: 0; font-size: clamp(27px, 3vw, 40px); line-height: 1.12; letter-spacing: -.04em; }
.comparison-heading p { margin: 0 0 3px; color: #aebdca; font-size: 15px; line-height: 1.65; }
.comparison-scroll { overflow-x: auto; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.18); scrollbar-color: #7c93a5 #e8edf1; scrollbar-width: thin; }
.comparison-scroll:focus-visible { outline: 3px solid #8db7ff; outline-offset: 4px; }
.materials-table { width: 100%; min-width: 1180px; border-collapse: separate; border-spacing: 0; color: var(--ink); font-size: 13px; line-height: 1.45; }
.materials-table thead th { padding: 17px 16px; color: #c3d2dd; background: #102c40; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.materials-table thead th:first-child { position: sticky; z-index: 3; left: 0; background: #102c40; }
.materials-table tbody th, .materials-table tbody td { padding: 18px 16px; border-bottom: 1px solid var(--line); background: #fff; text-align: left; vertical-align: middle; }
.materials-table tbody tr:last-child > * { border-bottom: 0; }
.materials-table tbody tr:hover > * { background: #f4f8ff; }
.materials-table tbody th { position: sticky; z-index: 2; left: 0; width: 190px; border-right: 1px solid var(--line); font-size: 14px; }
.materials-table tbody th small { display: block; margin: 3px 0 0 21px; color: var(--muted); font-size: 10px; font-weight: 600; }
.materials-table td:nth-child(2) { width: 190px; }
.materials-table td:nth-child(3) { width: 170px; }
.materials-table td:nth-child(4) { width: 205px; }
.materials-table td:nth-child(5) { width: 155px; }
.materials-table td:nth-child(6) { width: 230px; color: #4b5f6f; }
.materials-table td:last-child { width: 92px; text-align: right; }
.material-dot { display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 50%; box-shadow: 0 0 0 4px rgba(23,105,255,.08); }
.dot-silk { background: #1769ff; }
.dot-mesh { background: #1bb98a; }
.dot-gabardine { background: #687a88; }
.dot-blackout { background: #071b2b; }
.dot-oxford { background: #db7d21; }
.dot-atlas { background: #d12ee5; }
.dot-satin { background: #7b61ff; }
.suitability { display: inline-flex; min-height: 28px; align-items: center; padding: 5px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.suitability.high { color: #08714d; background: #dff8ee; }
.suitability.medium { color: #1557b8; background: #e4efff; }
.suitability.caution { color: #8a5700; background: #fff0cc; }
.suitability.low { color: #9c3440; background: #ffe5e8; }
.materials-table button { min-height: 34px; padding: 0 12px; border: 1px solid #b9c8d4; border-radius: 8px; color: var(--blue); background: #fff; cursor: pointer; font-size: 11px; font-weight: 800; }
.materials-table button:hover, .materials-table button.selected { color: #fff; border-color: var(--blue); background: var(--blue); }
.comparison-note { margin: 18px 4px 0; color: #aebdca; font-size: 12px; line-height: 1.65; }
.comparison-note b { color: #fff; }

.finishing { background: var(--paper); }
.finishing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.finishing-card { min-height: 310px; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 17px; background: #fff; transition: transform .2s, border-color .2s, box-shadow .2s; }
.finishing-card:hover, .finishing-card.selected { border-color: var(--blue); transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0, 42, 82, .08); }
.finishing-card.selected { box-shadow: 0 0 0 2px var(--blue), 0 18px 44px rgba(0, 42, 82, .10); }
.finishing-card-wide { grid-column: 1 / -1; min-height: 0; }
.option-state-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.finish-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.finish-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; color: var(--blue); background: #eaf1ff; font-size: 20px; font-weight: 900; }
.finishing-card h3 { margin: 30px 0 10px; font-size: 20px; line-height: 1.2; }
.finishing-card p { margin-bottom: 24px; color: var(--muted); font-size: 13px; }
.option-select-button { min-height: 40px; align-self: flex-start; margin-top: auto; padding: 0 18px; border: 1px solid var(--blue); border-radius: 9px; color: var(--blue); background: #fff; cursor: pointer; font-size: 12px; font-weight: 900; transition: color .2s, background .2s, border-color .2s; }
.option-select-button:hover, .finishing-card.selected .option-select-button { color: #fff; border-color: var(--blue); background: var(--blue); }
.info-tip { position: relative; z-index: 3; width: 28px; height: 28px; display: grid; flex: none; place-items: center; padding: 0; border: 1px solid #b8c8d5; border-radius: 50%; color: var(--blue); background: #fff; cursor: help; font-size: 12px; font-weight: 900; }
.info-tip::after { position: absolute; z-index: 20; right: -5px; bottom: calc(100% + 10px); width: 245px; padding: 11px 12px; border-radius: 9px; color: #fff; background: #071b2b; box-shadow: 0 12px 30px rgba(0,0,0,.22); content: attr(data-tooltip); font-size: 11px; font-weight: 600; line-height: 1.45; text-align: left; opacity: 0; pointer-events: none; transform: translateY(5px); transition: opacity .18s, transform .18s; }
.info-tip:hover::after, .info-tip:focus::after, .info-tip:focus-visible::after { opacity: 1; transform: translateY(0); }
.mini-tip { width: 24px; height: 24px; margin-left: auto; font-size: 10px; }
.finish-config { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }
.config-label { display: block; margin-bottom: 9px; color: #536675; font-size: 11px; font-weight: 900; }
.finish-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.edge-choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; }
.finish-choice { display: flex; align-items: center; gap: 9px; min-height: 64px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.finish-choice:has(input:checked) { border-color: var(--blue); background: #edf4ff; box-shadow: inset 0 0 0 1px var(--blue); }
.finish-choice input { width: 16px; height: 16px; flex: none; accent-color: var(--blue); }
.finish-choice > span:not(.info-tip) { display: flex; flex-direction: column; }
.finish-choice b { font-size: 12px; line-height: 1.25; }
.finish-choice small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.choice-action { display: inline-flex; align-self: flex-start; margin-top: 7px; padding: 3px 7px; border-radius: 5px; color: var(--blue); background: #e8f0ff; font-size: 0; font-style: normal; font-weight: 900; letter-spacing: .03em; text-transform: uppercase; }
.choice-action::after { content: 'Выбрать'; font-size: 8px; }
.finish-choice:has(input:checked) .choice-action { color: #fff; background: var(--blue); }
.finish-choice:has(input:checked) .choice-action::after { content: 'Выбрано ✓'; }
.config-field { display: flex; flex-direction: column; margin-top: 12px; color: var(--ink); font-size: 11px; font-weight: 900; }
.config-field > span { margin: 3px 0 7px; color: var(--muted); font-size: 9px; font-weight: 600; }
.config-field input { height: 42px; padding: 0 12px; border: 1px solid #c5d2dc; border-radius: 9px; color: var(--ink); background: #fff; font: inherit; }
.finishing-note { margin: 22px 2px 0; padding: 16px 18px; border-left: 3px solid var(--blue); color: #546978; background: #fff; font-size: 13px; line-height: 1.55; }
.finishing-note b { color: var(--ink); }

.portfolio { background: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 250px; gap: 12px; }
.gallery-item { position: relative; overflow: hidden; margin: 0; border-radius: 16px; background: #dbe4eb; }
.gallery-large { grid-row: span 2; }
.gallery-wide { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery-item:hover img { transform: scale(1.035); }
.gallery-item::after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(3,18,29,.82)); }
.gallery-item figcaption { position: absolute; z-index: 2; right: 20px; bottom: 18px; left: 20px; color: #fff; }
.gallery-item figcaption span, .gallery-item figcaption small { display: block; }
.gallery-item figcaption span { font-size: 15px; font-weight: 800; }
.gallery-item figcaption small { margin-top: 3px; color: #d3dce3; font-size: 10px; }

.popular-flags { background: var(--paper); }
.popular-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.popular-card { overflow: hidden; display: flex; min-height: 0; flex-direction: column; border: 1px solid var(--line); border-radius: 17px; background: #fff; transition: transform .2s, box-shadow .2s; }
.popular-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0, 42, 82, .08); }
.popular-card img { width: 100%; height: auto; aspect-ratio: 1.55 / 1; padding: 14px; object-fit: contain; background: linear-gradient(145deg, #f7f9fb, #edf2f6); }
.popular-card > div { display: flex; flex: 1; flex-direction: column; padding: 18px 20px 20px; }
.popular-card h3 { min-height: 46px; margin: 0 0 15px; font-size: 19px; line-height: 1.2; }
.popular-card a { display: flex; min-height: 43px; align-items: center; justify-content: space-between; margin-top: auto; padding: 0 13px; border: 1px solid #b7caee; border-radius: 9px; color: var(--blue); background: #edf4ff; font-size: 12px; font-weight: 900; }
.popular-card a:hover { color: #fff; border-color: var(--blue); background: var(--blue); }
.popular-card b { color: var(--blue); }
.popular-card a:hover b { color: #fff; }

.flag-designs { overflow: hidden; color: #fff; background: var(--ink); }
.flag-designs .section-heading p { color: #aebdca; }
.design-viewport { overflow: hidden; }
.design-track { display: flex; gap: 14px; transition: transform .55s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.flag-design-card { flex: 0 0 calc((100% - 28px) / 3); overflow: hidden; margin: 0; border: 1px solid rgba(255,255,255,.13); border-radius: 17px; background: rgba(255,255,255,.055); }
.flag-design-card img { width: 100%; height: auto; aspect-ratio: 30 / 19; object-fit: contain; background: #f1f5f8; }
.flag-design-card figcaption { display: flex; gap: 12px; align-items: center; padding: 16px 18px; font-size: 13px; font-weight: 800; }
.flag-design-card figcaption span { color: #8db7ff; font-size: 10px; }
.design-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 23px; }
.design-controls > div { display: flex; gap: 8px; }
.design-arrow { width: 46px; height: 42px; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; color: #fff; background: rgba(255,255,255,.07); cursor: pointer; font-size: 17px; transition: background .2s, border-color .2s; }
.design-arrow:hover { border-color: #8db7ff; background: rgba(23,105,255,.22); }
#designCounter { color: #9eafbc; font-size: 12px; font-weight: 800; letter-spacing: .08em; }

.design-service { background: #fff; }
.design-service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.design-service-grid article { min-height: 380px; display: grid; grid-template-rows: auto 1fr auto; padding: 32px; border-radius: 20px; color: #fff; background: var(--blue); }
.design-service-grid article:nth-child(2) { color: var(--ink); border: 1px solid var(--line); background: var(--paper); }
.service-number { color: #bad0ff; font-size: 11px; font-weight: 900; }
.design-service-grid article:nth-child(2) .service-number { color: var(--blue); }
.design-service-grid h3 { margin: 46px 0 12px; font-size: 28px; letter-spacing: -.035em; }
.design-service-grid p { max-width: 500px; color: #dbe6ff; font-size: 14px; }
.design-service-grid article:nth-child(2) p { color: var(--muted); }
.design-service-grid ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.design-service-grid li { padding: 6px 9px; border: 1px solid rgba(255,255,255,.26); border-radius: 7px; font-size: 10px; }
.design-service-grid article:nth-child(2) li { border-color: #c7d3dc; }
.design-service-grid .button { justify-self: start; margin-top: 28px; color: var(--blue); background: #fff; box-shadow: none; }
.design-service-grid .button:hover { color: #fff; background: var(--ink); }
.design-service-grid .button-outline-dark { color: #fff; background: var(--ink); }
.design-service-grid .button-outline-dark:hover { background: #16384f; }

.process { background: var(--paper); }
.process-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 85px; }
.process-copy { position: sticky; top: 120px; align-self: start; }
.quality-note { margin-top: 35px; padding: 19px; border-left: 3px solid var(--red); background: #fff; }
.quality-note strong, .quality-note span { display: block; }
.quality-note strong { font-size: 13px; }
.quality-note span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid #cbd6df; }
.steps li { display: grid; grid-template-columns: 55px 1fr; gap: 22px; padding: 28px 0; border-bottom: 1px solid #cbd6df; }
.steps li > span { color: var(--blue); font-size: 12px; font-weight: 900; }
.steps h3 { margin-bottom: 7px; font-size: 19px; }
.steps p { margin: 0; color: var(--muted); font-size: 13px; }

.delivery { color: #fff; background: var(--blue); }
.delivery-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 12px; align-items: stretch; }
.delivery-grid > div:first-child { padding: 18px 34px 0 0; }
.delivery-card { min-height: 260px; padding: 23px; border: 1px solid rgba(255,255,255,.25); border-radius: 16px; background: rgba(255,255,255,.08); }
.delivery-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 50%; color: var(--blue); background: #fff; font-size: 11px; font-weight: 900; }
.delivery-card h3 { margin: 70px 0 10px; font-size: 18px; line-height: 1.25; }
.delivery-card p { margin: 0; color: #d8e5ff; font-size: 12px; }

.reviews { background: var(--paper); }
.reviews-heading { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 70px; align-items: end; margin-bottom: 34px; }
.reviews-heading > div:first-child { max-width: 700px; }
.reviews-heading h2 { margin-bottom: 16px; }
.reviews-heading p { margin: 0; color: var(--muted); font-size: 17px; }
.avito-rating { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px; border-radius: 17px; color: #fff; background: var(--ink); box-shadow: 0 18px 45px rgba(0, 26, 48, .13); }
.rating-score { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 10px; }
.rating-score strong { grid-row: span 2; font-size: 42px; line-height: 1; letter-spacing: -.05em; }
.rating-stars, .review-stars { color: #ffc400; font-size: 13px; letter-spacing: .05em; }
.rating-score small { color: #aebdca; font-size: 10px; }
.avito-rating a { max-width: 120px; color: #b8d0ff; font-size: 12px; font-weight: 800; line-height: 1.35; }
.avito-rating a:hover { color: #fff; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.review-card { min-height: 280px; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 13px 35px rgba(0, 26, 48, .055); }
.review-card-head { display: flex; align-items: center; gap: 12px; }
.review-avatar { display: grid; width: 42px; height: 42px; flex: none; place-items: center; border-radius: 50%; color: #fff; background: var(--blue); font-size: 14px; font-weight: 900; }
.review-card:nth-child(3n+2) .review-avatar { background: var(--red); }
.review-card:nth-child(3n) .review-avatar { color: var(--blue); background: #dfeaff; }
.review-card h3 { margin: 0 0 2px; font-size: 15px; line-height: 1.25; }
.review-card blockquote { margin: 25px 0 22px; color: #334859; font-size: 14px; line-height: 1.65; }
.verified-review { margin-top: auto; padding-top: 15px; border-top: 1px solid var(--line); color: #718290; font-size: 10px; }

.faq { background: #fff; }
.faq-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 85px; }
.accordion { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { position: relative; padding: 23px 50px 23px 0; cursor: pointer; list-style: none; font-size: 16px; font-weight: 800; }
summary::-webkit-details-marker { display: none; }
summary span { position: absolute; top: 21px; right: 8px; color: var(--blue); font-size: 22px; transition: transform .2s; }
details[open] summary span { transform: rotate(45deg); }
details p { padding: 0 50px 22px 0; color: var(--muted); font-size: 13px; }

.calculator-section { background: var(--paper); }
.calculator-section-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 80px; align-items: start; }
.calculator-intro { position: sticky; top: 120px; }
.calculator-intro h2 { margin-bottom: 18px; font-size: clamp(32px, 4vw, 50px); line-height: 1.1; letter-spacing: -.045em; }
.calculator-intro > p { color: var(--muted); font-size: 17px; }
.calculator-intro-note { margin-top: 34px; padding: 20px; border-left: 3px solid var(--blue); background: #fff; }
.calculator-intro-note strong, .calculator-intro-note span { display: block; }
.calculator-intro-note strong { font-size: 14px; }
.calculator-intro-note span { margin-top: 5px; color: var(--muted); font-size: 12px; }
.calculator-section .calculator { width: 100%; border-color: var(--line); }
.selected-popular-note { margin: -5px 0 14px; padding: 10px 12px; border-left: 3px solid var(--blue); border-radius: 7px; color: #24508c; background: #edf4ff; font-size: 11px; font-weight: 800; }
.form-grid-single { grid-template-columns: 1fr; }
.processing-summary { display: flex; flex-wrap: wrap; gap: 8px; }
.processing-summary span { padding: 8px 10px; border: 1px solid #b9ccec; border-radius: 8px; color: #174b9f; background: #edf4ff; font-size: 10px; font-weight: 800; }
.processing-edit { display: inline-flex; gap: 8px; align-items: center; margin-top: 14px; color: var(--blue); font-size: 12px; font-weight: 900; }
.processing-edit:hover { color: var(--blue-2); }

.order-section { padding: 90px 0; color: #fff; background: #041522; }
.order-grid { display: grid; grid-template-columns: 1fr .8fr; gap: 80px; align-items: center; }
.order-grid > div:first-child > p { max-width: 650px; color: #aebdca; font-size: 17px; }
.contact-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 35px; }
.contact-list > * { display: flex; flex-direction: column; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.16); }
.contact-list > *:last-child { grid-column: span 2; }
.contact-list span { color: #8193a1; font-size: 10px; text-transform: uppercase; }
.contact-list strong { margin-top: 5px; font-size: 14px; }
.order-card { padding: 27px; border: 1px solid rgba(255,255,255,.18); border-radius: 20px; background: rgba(255,255,255,.07); }
.order-summary { margin-bottom: 18px; padding: 16px; border-radius: 11px; color: var(--ink); background: #fff; }
.order-summary strong, .order-summary span { display: block; }
.order-summary strong { font-size: 20px; }
.order-summary span { color: var(--muted); font-size: 11px; }
.order-fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.contact-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 13px; color: #dbe5ec; font-size: 11px; font-weight: 800; }
.contact-field > span { color: #8395a2; font-size: 9px; font-weight: 600; }
.contact-field input, .contact-field textarea { width: 100%; padding: 0 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 10px; color: #fff; color-scheme: dark; background: rgba(255,255,255,.08); font: inherit; font-size: 14px; outline: none; }
.contact-field input { height: 48px; }
.contact-field textarea { min-height: 86px; padding-block: 12px; resize: vertical; line-height: 1.45; }
.contact-field input::placeholder, .contact-field textarea::placeholder { color: #7e919f; }
.contact-field input:focus, .contact-field textarea:focus { border-color: #7ba5ff; box-shadow: 0 0 0 3px rgba(23,105,255,.18); }
.contact-messengers { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 0 0 13px; padding: 0; border: 0; }
.contact-messengers legend { grid-column: 1 / -1; margin-bottom: 7px; color: #dbe5ec; font-size: 11px; font-weight: 800; }
.contact-messengers legend span { margin-left: 5px; color: #8395a2; font-size: 9px; font-weight: 600; }
.contact-messengers label { min-height: 44px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 9px; cursor: pointer; background: rgba(255,255,255,.06); }
.contact-messengers label:has(input:checked) { border-color: #7ba5ff; background: rgba(23,105,255,.22); }
.contact-messengers input { width: 16px; height: 16px; accent-color: var(--blue); }
.contact-messengers label span { font-size: 12px; font-weight: 900; }
.order-consent { display: flex; align-items: flex-start; gap: 10px; margin: 15px 2px 0; color: #b8c6d0; font-size: 10px; line-height: 1.5; cursor: pointer; }
.order-consent input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; accent-color: var(--blue); }
.order-consent a { color: #c8d9ff; text-decoration: underline; text-underline-offset: 2px; }
.order-consent.invalid { color: #ff9ca4; }
.order-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.upload-box { display: flex; align-items: center; gap: 13px; padding: 15px; border: 1px dashed rgba(255,255,255,.35); border-radius: 11px; cursor: pointer; }
.upload-box input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-icon { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 8px; color: #fff; background: var(--blue); font-weight: 800; }
.upload-box > span:last-child { display: flex; flex-direction: column; }
.upload-box b { font-size: 12px; }
.upload-box small { color: #91a1ae; font-size: 9px; }
.messenger-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 16px; }
.messenger-button { min-height: 52px; padding-inline: 15px; font-size: 12px; box-shadow: none; }
.messenger-max { color: #071b2b; background: #ffffff; }
.messenger-max:hover { color: #fff; background: #5a42f5; }
.messenger-telegram { background: #229ed9; }
.messenger-telegram:hover { background: #147fad; }
.order-card > p { margin: 11px 5px 0; color: #80919e; font-size: 9px; text-align: center; }

footer { padding: 55px 0 85px; color: #b6c3cd; background: #020c13; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .6fr 1fr 1.1fr; gap: 50px; }
.footer-brand { color: #fff; align-self: start; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 8px; }
.footer-grid > div > span { margin-bottom: 9px; color: #667b8a; font-size: 10px; text-transform: uppercase; }
.footer-grid a, .footer-grid p { margin: 0; font-size: 12px; }
.footer-grid small { margin-top: 12px; color: #536674; font-size: 9px; }
.mobile-bar { display: none; }

@media (max-width: 1040px) {
  .main-nav { display: none; }
  .header-contact { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-copy { max-width: 780px; padding-bottom: 0; }
  .hero-art { width: 100%; height: 40%; opacity: .25; }
  .hero-price-card, .calculator { max-width: 720px; }
  .finishing-grid { grid-template-columns: repeat(2, 1fr); }
  .popular-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .delivery-grid { grid-template-columns: repeat(3, 1fr); }
  .delivery-grid > div:first-child { grid-column: span 3; max-width: 720px; }
}

@media (max-width: 820px) {
  .section { padding: 72px 0; }
  .split-heading { grid-template-columns: 1fr; gap: 18px; }
  .material-grid { grid-template-columns: 1fr; }
  .comparison-heading { grid-template-columns: 1fr; gap: 14px; }
  .flag-form-card { grid-template-columns: 36% 1fr; }
  .flag-design-card { flex-basis: calc((100% - 14px) / 2); }
  .reviews-heading { grid-template-columns: 1fr; gap: 26px; }
  .avito-rating { max-width: 430px; }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid, .faq-grid, .order-grid, .calculator-section-grid { grid-template-columns: 1fr; gap: 45px; }
  .design-service-grid { grid-template-columns: 1fr; }
  .process-copy { position: static; }
  .calculator-intro { position: static; max-width: 720px; }
  .footer-grid { grid-template-columns: 1.3fr 1fr; }
  .audience-strip .container { overflow-x: auto; justify-content: flex-start; padding-block: 18px; }
  .audience-strip span { min-width: max-content; }
}

@media (max-width: 620px) {
  body { padding-bottom: 62px; }
  .container { width: min(100% - 28px, 1180px); }
  .header-inner { min-height: 67px; }
  .brand { min-width: 0; }
  .brand b { font-size: 12px; }
  .brand small { font-size: 8px; }
  .brand-mark { width: 30px; height: 26px; }
  .header-contact, .header-inner > .button { display: none; }
  .hero { padding: 47px 0 54px; }
  .hero-grid { gap: 28px; }
  h1 { font-size: 38px; }
  .hero-lead { font-size: 16px; }
  .trust-row { grid-template-columns: 1fr 1fr; }
  .trust-row div:last-child { grid-column: span 2; }
  .hero-price-card { margin-inline: -5px; padding: 20px 16px; border-radius: 20px; }
  .price-columns { grid-template-columns: 1fr; }
  .price-card-head h2 { font-size: 23px; }
  .calculator { margin-inline: -5px; padding: 20px 16px; border-radius: 20px; }
  .calc-head h2 { font-size: 21px; }
  .live-badge { display: none; }
  .dimension-row { grid-template-columns: 1fr 12px 1fr; }
  .dimension-row label:last-child { grid-column: span 3; }
  .form-grid, .choice-row { grid-template-columns: 1fr; }
  .option-panel { grid-template-columns: 1fr; }
  .compact-fields { grid-template-columns: 1fr; }
  .extra-options { grid-template-columns: 1fr; }
  .calc-result strong { font-size: 25px; }
  .section-heading h2, .process h2, .delivery h2, .reviews h2, .faq h2, .calculator-intro h2, .order-section h2 { font-size: 31px; }
  .section-heading > p, .split-heading > p, .process-copy > p, .reviews-heading p, .faq-grid > div > p, .order-grid > div:first-child > p { font-size: 15px; }
  .type-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-grid li { min-height: 210px; }
  .flag-form-grid { grid-template-columns: 1fr; }
  .flag-form-card { grid-template-columns: 118px 1fr; min-height: 270px; }
  .variant-preview { min-height: 270px; }
  .variant-rectangle span { width: 88px; }
  .variant-winder span { width: 54px; height: 175px; }
  .flag-form-card > div:last-child { padding: 22px 18px; }
  .flag-form-card h3 { margin-top: 34px; font-size: 21px; }
  .type-card, .type-card:nth-child(4), .type-card:nth-child(5) { grid-column: auto; min-height: 225px; }
  .material-card { grid-template-columns: 118px 1fr; min-height: 290px; }
  .material-card img { min-height: 290px; }
  .material-card > div { padding: 19px 16px; }
  .material-comparison { margin: 0 0 34px; }
  .comparison-scroll { margin-inline: -2px; border-radius: 14px; }
  .materials-table { min-width: 1080px; }
  .materials-table tbody th { width: 170px; }
  .finishing-grid, .popular-grid { grid-template-columns: 1fr; }
  .finishing-card, .finishing-config-grid .finishing-card { min-height: 0; }
  .finishing-card h3 { margin-top: 34px; }
  .finish-choice-grid, .edge-choice-grid { grid-template-columns: 1fr; }
  .info-tip::after { right: -8px; width: min(235px, 72vw); }
  .popular-card { min-height: 0; }
  .flag-design-card { flex-basis: 100%; }
  .design-service-grid article { min-height: 360px; padding: 25px; }
  .design-service-grid h3 { margin-top: 34px; font-size: 25px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .gallery-large { grid-row: auto; grid-column: span 2; }
  .gallery-wide { grid-column: span 2; }
  .delivery-grid { grid-template-columns: 1fr; }
  .delivery-grid > div:first-child { grid-column: auto; padding: 0; }
  .delivery-card { min-height: 220px; }
  .delivery-card h3 { margin-top: 48px; }
  .avito-rating { align-items: flex-start; }
  .review-grid { grid-template-columns: 1fr; }
  .review-card { min-height: 0; }
  .contact-list { grid-template-columns: 1fr; }
  .contact-list > *:last-child { grid-column: auto; }
  .order-fields-grid { grid-template-columns: 1fr; }
  .contact-messengers { grid-template-columns: 1fr; }
  .messenger-choice { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .mobile-bar { position: fixed; z-index: 50; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: .75fr 1.25fr; padding: 8px; border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -8px 30px rgba(0,0,0,.12); }
  .mobile-bar a { display: grid; min-height: 46px; place-items: center; border-radius: 8px; font-size: 12px; font-weight: 800; }
  .mobile-bar a:last-child { color: #fff; background: var(--blue); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* 2026 visual refresh and requested content flow */
main { display: flex; flex-direction: column; }
main > .hero { order: 1; }
main > .audience-strip { order: 2; }
main > .product-types { order: 3; }
main > .site-guide { order: 4; }
main > .delivery { order: 5; }
main > .flag-forms { order: 6; }
main > .flag-designs { order: 12; }
main > .materials { order: 8; }
main > .finishing { order: 9; }
main > .design-service { order: 10; }
main > .portfolio { order: 11; }
main > .popular-flags { order: 13; }
main > .process { order: 14; }
main > .reviews { order: 15; }
main > .faq { order: 16; }
main > .calculator-section { order: 17; }
main > .order-section { order: 18; }

.hero {
  min-height: 720px;
  background:
    radial-gradient(circle at 7% 8%, rgba(255,59,70,.34), transparent 24%),
    radial-gradient(circle at 72% 14%, rgba(23,105,255,.43), transparent 35%),
    linear-gradient(128deg, #031421 0%, #092f55 52%, #061827 100%);
}
.hero::before {
  background:
    linear-gradient(118deg, rgba(255,255,255,.07), transparent 33%),
    repeating-linear-gradient(135deg, transparent 0 70px, rgba(255,255,255,.025) 70px 71px);
}
.hero-art { width: 64%; height: 78%; opacity: .62; filter: saturate(1.22) contrast(1.04); }
.hero-copy { padding-bottom: 16px; }
.hero-proof-images { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 540px; margin: 0 0 24px; }
.hero-proof-images figure { position: relative; overflow: hidden; aspect-ratio: 1.75 / 1; margin: 0; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; box-shadow: 0 12px 28px rgba(0,0,0,.2); }
.hero-proof-images img { width: 100%; height: 100%; object-fit: cover; }
.hero-proof-images figure::after { content: ''; position: absolute; inset: 42% 0 0; background: linear-gradient(transparent, rgba(3,15,24,.82)); }
.hero-proof-images figcaption { position: absolute; z-index: 1; right: 9px; bottom: 7px; left: 9px; font-size: 9px; font-weight: 800; }
.hero-price-card { position: relative; border: 2px solid rgba(255,255,255,.72); background: linear-gradient(180deg, rgba(255,255,255,1), rgba(244,249,255,.98)); box-shadow: 0 32px 90px rgba(0, 17, 36, .38); }
.hero-price-card::before { content: ''; position: absolute; top: -2px; right: 32px; left: 32px; height: 4px; border-radius: 0 0 6px 6px; background: linear-gradient(90deg, var(--blue), #7aa8ff 62%, var(--red)); }
.price-group:first-child .price-group-title { background: linear-gradient(135deg, #e9f1ff, #f7faff); }
.price-group:last-child .price-group-title { background: linear-gradient(135deg, #fff0f1, #fff8f8); }
.price-pick em { min-width: 64px; padding-block: 5px; text-align: center; }

.guide-grid li { position: relative; overflow: hidden; min-height: 340px; padding-top: 188px; background: #fff; box-shadow: 0 15px 38px rgba(7, 27, 43, .06); }
.guide-grid li > img { position: absolute; inset: 0 0 auto; width: 100%; height: 170px; object-fit: cover; }
.guide-grid li::after { content: ''; position: absolute; top: 122px; right: 0; left: 0; height: 48px; background: linear-gradient(transparent, rgba(7,27,43,.34)); pointer-events: none; }
.guide-grid li > span { position: relative; z-index: 1; align-self: flex-start; margin-top: -27px; padding: 6px 9px; border-radius: 7px; color: #fff; background: var(--blue); box-shadow: 0 8px 18px rgba(23,105,255,.27); }

.finishing { background: linear-gradient(180deg, #f5f8fb 0%, #eef3f7 100%); }
.finishing-heading { align-items: end; }
.finishing .finishing-grid { grid-template-columns: repeat(6, 1fr); gap: 18px; align-items: start; }
.finishing .finishing-card { position: relative; min-height: 0; display: block; grid-column: span 3; overflow: visible; padding: 0; border: 1px solid #cfdbe4; border-radius: 22px; background: #fff; box-shadow: 0 18px 45px rgba(7, 27, 43, .065); transform: none; }
.finishing .finishing-card:hover { border-color: #8cb2ff; transform: none; box-shadow: 0 22px 52px rgba(7, 27, 43, .09); }
.finishing .finishing-card.selected { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue), 0 22px 52px rgba(23,105,255,.13); }
.finishing .finishing-card-wide { grid-column: 1 / -1; }
.finishing .finishing-card-addon { grid-column: span 2; }
.finish-card-media { position: relative; overflow: hidden; height: 230px; border-radius: 21px 21px 0 0; background: linear-gradient(135deg, #f8fbfd, #eaf0f5); }
.finish-card-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.finish-card-media > span { position: absolute; top: 16px; left: 16px; padding: 6px 9px; border-radius: 999px; color: #fff; background: rgba(7,27,43,.82); font-size: 9px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.finish-card-content { padding: 25px; }
.finish-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.finish-step { display: block; margin-bottom: 8px; color: var(--blue); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.finishing .finishing-card h3 { margin: 0; font-size: 24px; letter-spacing: -.025em; }
.finishing .finishing-card p { margin: 10px 0 18px; font-size: 13px; }
.finishing .option-select-button { width: 100%; min-height: 46px; justify-content: center; margin: 0; }
.finishing .finish-config { margin-top: 20px; padding-top: 20px; }
.finishing .visual-choice { position: relative; min-height: 148px; align-items: stretch; overflow: visible; padding: 0; }
.visual-choice > img { width: 42%; height: auto; min-width: 112px; object-fit: contain; border-radius: 9px 0 0 9px; background: #f4f7f9; mix-blend-mode: multiply; }
.visual-choice > span:not(.info-tip) { justify-content: center; padding: 14px 8px 14px 2px; }
.visual-choice > .mini-tip { position: absolute; top: 10px; right: 10px; }
.finishing .finish-choice b { font-size: 13px; }
.finishing .finish-choice small { max-width: 160px; font-size: 10px; line-height: 1.35; }
.finishing .choice-action { font-size: 0; }
.edge-builder { padding: 28px !important; }
.edge-builder-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; margin-bottom: 21px; }
.edge-builder-head > div { max-width: 760px; }
.edge-builder .edge-builder-head h3 { margin: 0 0 8px; font-size: 28px; }
.edge-builder .edge-builder-head p { margin: 0; font-size: 14px; }
.edge-builder .visual-choice { min-height: 210px; flex-direction: column; }
.edge-builder .visual-choice > img { width: 100%; height: 126px; min-width: 0; border-radius: 9px 9px 0 0; }
.edge-builder .visual-choice > span:not(.info-tip) { padding: 15px 17px 17px; }
.finishing .finishing-card-addon .finish-card-media { height: 170px; }
.finishing .finishing-card-addon .finish-card-content { padding: 21px; }
.finishing .finishing-card-addon h3 { font-size: 20px; }
.finishing .finishing-card-addon p { min-height: 40px; margin-bottom: 14px; }
.finishing-note { margin-top: 26px; border-left: 0; border-radius: 14px; background: #071b2b; color: #d7e0e7; }
.finishing-note b { color: #fff; }

.design-service-grid article { transition: border-color .2s, box-shadow .2s, transform .2s; }
.design-service-grid article.selected { transform: translateY(-3px); box-shadow: 0 0 0 3px #83aaff, 0 22px 56px rgba(23,105,255,.18); }
.design-service-grid .service-select { min-width: 155px; }

.portfolio { padding-bottom: 0; color: #fff; background: #061723; }
.portfolio > .container { width: 100%; max-width: none; }
.portfolio .section-heading { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.portfolio .section-heading .kicker { color: #8db7ff; }
.portfolio .section-heading p { color: #b7c4ce; }
.portfolio .gallery-grid { grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(2, minmax(260px, 28vw)); grid-auto-rows: auto; gap: 5px; }
.portfolio .gallery-item { grid-column: span 3; grid-row: span 1; border-radius: 0; background: #0a2639; }
.portfolio .gallery-large { grid-column: span 6; grid-row: span 1; }
.portfolio .gallery-wide { grid-column: span 6; }
.portfolio .gallery-item figcaption { right: 24px; bottom: 22px; left: 24px; }
.portfolio .gallery-item figcaption span { font-size: 18px; }

.flag-design-card { flex-basis: calc((100% - 56px) / 5); }
.flag-design-card figcaption { min-height: 58px; padding: 12px 13px; font-size: 11px; }
.size-type-hint { margin-bottom: 10px; color: #486071; font-size: 11px; font-weight: 800; }
.design-choice-row { grid-template-columns: repeat(2, 1fr); }
.quantity-field { width: min(260px, 100%); display: flex; flex-direction: column; gap: 6px; margin-top: 13px; color: #536675; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.calculator .quantity-field input { height: 48px; padding: 0 14px; border: 1px solid #c5d2dc; border-radius: 10px; color: var(--ink); background: #fff; outline: none; }
.quantity-field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,105,255,.12); }
.design-options-note { margin: 10px 0 0; color: var(--muted); font-size: 11px; }
.upload-box-calc { margin-top: 12px; border-color: #b8c9d6; color: var(--ink); background: linear-gradient(135deg, #f8fbfd, #eef5ff); }
.upload-box-calc:hover { border-color: var(--blue); background: #edf4ff; }
.upload-box-calc small { color: var(--muted); }
.send-order-button { width: 100%; margin-top: 16px; background: linear-gradient(135deg, var(--blue), #0b4fd5); }
.send-order-button:disabled { cursor: wait; opacity: .72; }
.contact-field.invalid input, .contact-field.invalid textarea { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,59,70,.16); }
.contact-messengers.invalid label { border-color: var(--red); background: rgba(255,59,70,.12); }
.order-card > p.is-success { color: #8ee6b5; }
.order-card > p.is-error { color: #ffabb1; }
.footer-cookie-button { align-self: flex-start; padding: 0; border: 0; color: #b6c3cd; background: transparent; cursor: pointer; font: inherit; font-size: 12px; text-align: left; }
.footer-cookie-button:hover { color: #fff; }

/* Shared legal pages */
.legal-page { min-height: 100vh; color: var(--ink); background: #f4f7fa; }
.legal-page .site-header { position: sticky; }
.legal-page .brand { color: var(--ink); }
.legal-page .brand-mark i:nth-child(1) { background: #fff; }
.legal-hero { position: relative; overflow: hidden; padding: 105px 0 76px; color: #fff; background: linear-gradient(128deg, #031421 0%, #0b3762 58%, #071b2b 100%); }
.legal-hero::after { position: absolute; width: 440px; height: 440px; right: -100px; top: -190px; border-radius: 50%; background: radial-gradient(circle, rgba(23,105,255,.52), transparent 67%); content: ''; }
.legal-hero .container { position: relative; z-index: 1; }
.legal-hero .eyebrow { margin-bottom: 18px; }
.legal-hero h1 { max-width: 900px; margin: 0; font-size: clamp(42px, 7vw, 78px); }
.legal-hero p { max-width: 760px; margin: 22px 0 0; color: #c1cfda; font-size: 18px; line-height: 1.65; }
.legal-main { padding: 64px 0 95px; }
.legal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; align-items: start; }
.legal-content { display: grid; gap: 18px; }
.legal-card { padding: 31px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 18px 44px rgba(7,27,43,.055); }
.legal-card h2 { margin: 0 0 14px; font-size: 25px; letter-spacing: -.025em; }
.legal-card h3 { margin: 21px 0 9px; font-size: 17px; }
.legal-card p, .legal-card li { color: #506575; font-size: 14px; line-height: 1.72; }
.legal-card p { margin: 0 0 12px; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-card ul { margin: 10px 0 0; padding-left: 20px; }
.legal-card li + li { margin-top: 7px; }
.legal-card a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.legal-side { position: sticky; top: 104px; display: grid; gap: 14px; }
.legal-side-card { padding: 24px; border-radius: 18px; color: #fff; background: #071b2b; }
.legal-side-card.light { color: var(--ink); border: 1px solid var(--line); background: #fff; }
.legal-side-card span { display: block; margin-bottom: 10px; color: #84a9eb; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.legal-side-card.light span { color: var(--blue); }
.legal-side-card strong { display: block; font-size: 18px; line-height: 1.35; }
.legal-side-card p { margin: 10px 0 0; color: #aebdca; font-size: 12px; line-height: 1.55; }
.legal-side-card.light p { color: var(--muted); }
.legal-side-card a { display: inline-flex; margin-top: 14px; color: #fff; font-size: 13px; font-weight: 800; }
.legal-side-card.light a { color: var(--blue); }
.details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.detail-item { padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #f8fafc; }
.detail-item.wide { grid-column: 1 / -1; }
.detail-item span { display: block; margin-bottom: 7px; color: #768897; font-size: 9px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.detail-item strong, .detail-item a { color: var(--ink); font-size: 14px; line-height: 1.55; }
.detail-item a { text-decoration: none; }
.contact-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 18px; }
.contact-action { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 18px; border-radius: 12px; color: #fff !important; background: var(--blue); text-decoration: none !important; font-size: 13px; font-weight: 900; }
.contact-action.secondary { color: var(--ink) !important; border: 1px solid var(--line); background: #f4f7fa; }
.policy-date { display: inline-flex; margin-top: 20px; padding: 8px 11px; border-radius: 999px; color: #bad0f7; background: rgba(255,255,255,.09); font-size: 11px; font-weight: 800; }

/* Cookie and analytics notice */
.cookie-notice { position: fixed; z-index: 100; right: 24px; bottom: 24px; left: 24px; max-width: 1180px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; margin-inline: auto; padding: 20px 22px; border: 1px solid rgba(255,255,255,.16); border-radius: 17px; color: #fff; background: rgba(4,21,34,.97); box-shadow: 0 24px 70px rgba(0,0,0,.3); backdrop-filter: blur(16px); opacity: 0; transform: translateY(20px); transition: opacity .24s, transform .24s; }
.cookie-notice.is-visible { opacity: 1; transform: translateY(0); }
.cookie-notice-copy strong { display: block; margin-bottom: 5px; font-size: 16px; }
.cookie-notice-copy p { margin: 0; color: #aebdca; font-size: 12px; line-height: 1.55; }
.cookie-notice-copy a { color: #9cbcff; text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 9px; }
.cookie-actions button { min-height: 44px; padding: 0 15px; border: 1px solid rgba(255,255,255,.28); border-radius: 9px; color: #fff; background: transparent; cursor: pointer; font: inherit; font-size: 11px; font-weight: 900; white-space: nowrap; }
.cookie-actions .cookie-accept { border-color: var(--blue); background: var(--blue); }
.cookie-actions button:hover { border-color: #83aaff; }

@media (max-width: 820px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cookie-notice { grid-template-columns: 1fr; gap: 15px; }
}

@media (max-width: 620px) {
  .legal-hero { padding: 68px 0 52px; }
  .legal-hero h1 { font-size: 39px; }
  .legal-hero p { font-size: 15px; }
  .legal-main { padding: 36px 0 70px; }
  .legal-card { padding: 23px 19px; }
  .legal-side, .details-grid, .contact-action-grid { grid-template-columns: 1fr; }
  .detail-item.wide { grid-column: auto; }
  .cookie-notice { right: 10px; bottom: 72px; left: 10px; padding: 17px; }
  .cookie-actions { display: grid; grid-template-columns: 1fr; }
  .cookie-actions button { white-space: normal; }
}

@media (max-width: 1040px) {
  .hero { min-height: 0; }
  .hero-proof-images { max-width: 620px; }
  .flag-design-card { flex-basis: calc((100% - 28px) / 3); }
}

@media (max-width: 820px) {
  .finishing .finishing-grid { grid-template-columns: 1fr 1fr; }
  .finishing .finishing-card, .finishing .finishing-card-addon { grid-column: span 1; }
  .finishing .finishing-card-wide { grid-column: 1 / -1; }
  .finishing .edge-choice-grid { grid-template-columns: 1fr; }
  .edge-builder .visual-choice { min-height: 150px; flex-direction: row; }
  .edge-builder .visual-choice > img { width: 38%; height: auto; }
  .flag-design-card { flex-basis: calc((100% - 14px) / 2); }
  .portfolio .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 250px); }
  .portfolio .gallery-item { grid-column: span 1; grid-row: span 1; }
  .portfolio .gallery-large { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 620px) {
  .hero-proof-images { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-proof-images figcaption { font-size: 7px; }
  .guide-grid li { min-height: 330px; }
  .finishing .finishing-grid { grid-template-columns: 1fr; }
  .finishing .finishing-card, .finishing .finishing-card-addon, .finishing .finishing-card-wide { grid-column: 1; }
  .finish-card-media { height: 190px; }
  .finish-card-content { padding: 20px; }
  .finishing .finish-choice-grid { grid-template-columns: 1fr; }
  .edge-builder { padding: 20px !important; }
  .edge-builder .visual-choice { min-height: 142px; }
  .flag-design-card { flex-basis: 100%; }
  .portfolio .section-heading { width: min(100% - 28px, 1180px); }
  .portfolio .gallery-grid { grid-template-columns: 1fr; grid-template-rows: repeat(6, 260px); gap: 4px; }
  .portfolio .gallery-item, .portfolio .gallery-large, .portfolio .gallery-wide { grid-column: 1; grid-row: span 1; }
}

/* Motion system: calm on entry, lively on interaction */
@keyframes heroDrift {
  0% { transform: scale(1.02) translate3d(-1.2%, 0, 0); }
  50% { transform: scale(1.07) translate3d(1.4%, -1.2%, 0); }
  100% { transform: scale(1.035) translate3d(.4%, 1%, 0); }
}
@keyframes panelFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes softPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(23,105,255,.18); }
  50% { box-shadow: 0 0 0 7px rgba(23,105,255,0); }
}
@keyframes selectionPop {
  0% { scale: .985; }
  55% { scale: 1.012; }
  100% { scale: 1; }
}
@keyframes resultPop {
  0% { transform: scale(.985); }
  55% { transform: scale(1.012); }
  100% { transform: scale(1); }
}

.hero-art { animation: heroDrift 18s ease-in-out infinite alternate; will-change: transform; }
.hero-price-card { animation: panelFloat 7s ease-in-out infinite; }
.hero-proof-images figure { transition: transform .45s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s; }
.hero-proof-images figure:hover { z-index: 2; border-color: #8db7ff; transform: translateY(-6px) rotate(-1deg) scale(1.04); box-shadow: 0 20px 38px rgba(0,0,0,.3); }
.hero-proof-images figure:nth-child(2):hover { transform: translateY(-6px) rotate(1deg) scale(1.04); }
.hero-proof-images img { transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .5s; }
.hero-proof-images figure:hover img { transform: scale(1.09); filter: saturate(1.18); }
.audience-strip i { animation: softPulse 2.8s ease-in-out infinite; }
.audience-strip i:nth-of-type(even) { animation-delay: 1.1s; }
.button span, .text-link span, .popular-card b { display: inline-block; transition: transform .25s ease; }
.button:hover span, .text-link:hover span, .popular-card a:hover b { transform: translateX(4px); }
.type-card, .guide-grid li, .delivery-card, .flag-form-card, .material-card,
.finishing-card, .design-service-grid article, .popular-card, .review-card, .accordion details {
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .3s, background-color .3s;
}
.type-card:hover, .guide-grid li:hover, .delivery-card:hover, .review-card:hover { transform: translateY(-7px); }
.guide-grid li img, .delivery-card::before, .material-card img, .finish-card-media img,
.gallery-item img, .popular-card img, .flag-design-card img { transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .45s; }
.guide-grid li:hover img, .gallery-item:hover img, .material-card:hover img, .popular-card:hover img, .flag-design-card:hover img { transform: scale(1.065); filter: saturate(1.1); }
.finish-card-media:hover img { transform: scale(1.045); }
.delivery-card { position: relative; overflow: hidden; }
.delivery-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,.17) 48%, transparent 70%); transform: translateX(-120%); }
.delivery-card:hover::before { transform: translateX(120%); }
.price-row.selected, .flag-form-card.selected, .material-card.selected,
.finishing-card.selected, .design-service-grid article.selected { animation: selectionPop .38s cubic-bezier(.2,.8,.2,1); }
.calc-result.price-pop { animation: resultPop .38s cubic-bezier(.2,.8,.2,1); }
.gallery-item:hover img { transform: scale(1.075); filter: saturate(1.14) contrast(1.03); }
.flag-design-card { transition: border-color .3s, background-color .3s, box-shadow .35s; }
.flag-design-card:hover { border-color: rgba(141,183,255,.78); background: rgba(23,105,255,.16); box-shadow: 0 18px 36px rgba(0,0,0,.24); }
.accordion details[open] { padding-left: 18px; border-left: 3px solid var(--blue); background: linear-gradient(90deg, #f4f8ff, transparent 72%); }
.send-order-button { position: relative; overflow: hidden; }
.send-order-button::before { content: ''; position: absolute; top: -80%; left: -25%; width: 22%; height: 260%; background: rgba(255,255,255,.3); transform: rotate(24deg) translateX(-230%); transition: transform .65s ease; }
.send-order-button:hover::before { transform: rotate(24deg) translateX(650%); }

.reveal-on-scroll {
  opacity: 0;
  translate: 0 30px;
  scale: .985;
  filter: blur(5px);
  transition: opacity .7s ease var(--reveal-delay, 0ms), translate .75s cubic-bezier(.2,.8,.2,1) var(--reveal-delay, 0ms), scale .75s cubic-bezier(.2,.8,.2,1) var(--reveal-delay, 0ms), filter .6s ease var(--reveal-delay, 0ms), box-shadow .35s, border-color .3s;
  will-change: opacity, translate, scale;
}
.reveal-on-scroll.is-visible { opacity: 1; translate: 0 0; scale: 1; filter: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .reveal-on-scroll { opacity: 1 !important; translate: none !important; scale: 1 !important; filter: none !important; }
}

/* Stable card proportions: prevent content and wide screens from stretching blocks. */
.portfolio .gallery-grid {
  grid-template-rows: repeat(2, clamp(250px, 22vw, 340px));
}

.guide-grid li { min-height: 320px; }
.design-service-grid article { min-height: 340px; }
.delivery-card { min-height: 220px; }
.delivery-card h3 { margin-top: 42px; }
.review-card { min-height: 260px; }

.order-card { align-self: center; padding: 24px; }
.order-summary { margin-bottom: 13px; padding: 13px 15px; }
.contact-field { gap: 5px; margin-bottom: 10px; }
.contact-field input { height: 44px; }
.contact-field textarea { min-height: 68px; }
.contact-messengers { margin-bottom: 10px; }
.contact-messengers label { min-height: 44px; }
.order-consent { margin-top: 11px; }
.send-order-button { margin-top: 12px; }

@media (max-width: 820px) {
  .portfolio .gallery-grid { grid-template-rows: repeat(3, 240px); }
  .design-service-grid article { min-height: 0; }
  .delivery-card { min-height: 0; }
  .review-card { min-height: 0; }
}

@media (max-width: 620px) {
  .guide-grid li { min-height: 0; }
  .type-card, .type-card:nth-child(4), .type-card:nth-child(5) { min-height: 0; }
  .material-card { min-height: 0; }
  .material-card img { min-height: 0; }
  .delivery-card h3 { margin-top: 30px; }
  .portfolio .gallery-grid { grid-template-rows: repeat(6, 240px); }
  .order-card { padding: 20px 16px; }
}
