@font-face {
    font-family: "KSK Display";
    src: url("../fonts/hisqaida2018_bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Onest";
    src: url("../fonts/onest-cyrillic.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    color-scheme: light;
    --page: #f4f4f1;
    --surface: #ffffff;
    --ink: #1a1a18;
    --muted: #696965;
    --line: #d6d6d1;
    --dark: #565654;
    --deep: #292927;
    --orange: #e96a1a;
    --orange-text: #b84707;
    --orange-on-dark: #ffc28f;
    --trust-circle: #ffffff;
    --on-dark: #ffffff;
    --body-font: "Segoe UI", Arial, sans-serif;
    --display-font: "KSK Display", "Segoe UI", Arial, sans-serif;
    --numbers-font: "Onest", "Segoe UI", Arial, sans-serif;
    --size-hero: 64px;
    --size-h1: 56px;
    --size-h2: 44px;
    --size-h3: 23px;
    --size-body: 17px;
    --size-numbers: 42px;
    --section-space: 88px;
    --radius: 0px;
    --content: min(1180px, calc(100% - 48px));
    --header-height: 82px;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --page: #181817;
    --surface: #222220;
    --ink: #f4f4f0;
    --muted: #b6b6af;
    --line: #454541;
    --dark: #4c4c4a;
    --deep: #151514;
    --orange: #ff8214;
    --orange-text: #ff9b42;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--page);
    color: var(--ink);
    font-family: var(--body-font);
    font-size: var(--size-body);
    line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
a, button, select, summary { touch-action: manipulation; -webkit-tap-highlight-color: rgba(233, 106, 26, .18); }
button, input, select, textarea { color: inherit; font: inherit; }
button, select { cursor: pointer; }
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin-top: 0; }
h1, h2, h3 { margin-bottom: 20px; font-family: var(--display-font); font-weight: 700; letter-spacing: -.02em; line-height: 1.06; overflow-wrap: normal; text-wrap: balance; }
h1 { font-size: clamp(36px, 4.6vw, var(--size-h1)); }
h2 { font-size: clamp(30px, 3.6vw, var(--size-h2)); }
h3 { font-size: clamp(19px, 2vw, var(--size-h3)); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
section[id] { scroll-margin-top: calc(var(--header-height) + 16px); }
.container { width: var(--content); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; z-index: 300; top: 10px; left: 10px; padding: 12px 16px; background: var(--surface); color: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.section-label, .detail-kicker, .hero-kicker { color: var(--orange-text); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

/* Header */
.site-header { position: fixed; z-index: 100; inset: 0 0 auto; color: var(--ink); transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.site-header:not(.site-header--overlay), .site-header.is-scrolled { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--page) 94%, transparent); backdrop-filter: blur(12px); }
.site-header--overlay:not(.is-scrolled) { color: #fff; }
.nav { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; width: var(--content); min-height: var(--header-height); margin-inline: auto; }
.brand { position: relative; display: inline-flex; min-width: 62px; min-height: 60px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-family: var(--display-font); text-align: center; }
.brand img { width: 48px; height: 32px; object-fit: contain; transition: opacity .24s ease; }
.brand-title { display: grid; gap: 2px; justify-items: center; font-size: 11px; font-weight: 700; line-height: .82; letter-spacing: .025em; }
.site-header .brand::before, .admin-topbar .brand::before { position: absolute; top: 0; left: 50%; width: 48px; height: 32px; background: url("../media/logo-on-light.svg") center / contain no-repeat; content: ""; opacity: 0; pointer-events: none; transform: translateX(-50%); transition: opacity .24s ease; }
[data-theme="light"] .site-header:not(.site-header--overlay) .brand::before, [data-theme="light"] .site-header.is-scrolled .brand::before, .admin-topbar .brand::before { opacity: 1; }
[data-theme="light"] .site-header:not(.site-header--overlay) .brand img, [data-theme="light"] .site-header.is-scrolled .brand img, .admin-topbar .brand img { opacity: 0; }
.nav-links { display: flex; align-items: center; justify-content: flex-end; gap: clamp(12px, 1.55vw, 24px); }
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; white-space: nowrap; transition: color .18s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--orange); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle { position: relative; width: 48px; height: 44px; padding: 0; border: 0; background: transparent; }
.theme-toggle::before { content: ""; position: absolute; inset: 9px 1px; border: 1px solid currentColor; border-radius: 14px; }
.theme-toggle > span { position: absolute; top: 14px; left: 5px; width: 16px; height: 16px; border-radius: 50%; background: currentColor; transition: transform .18s ease, background-color .18s ease; }
html[data-theme="dark"] .theme-toggle > span { background: var(--orange); transform: translateX(22px); }
.menu-toggle { display: none; width: 44px; height: 44px; place-items: center; border: 0; background: transparent; }
.menu-toggle svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.mobile-menu { width: min(420px, calc(100% - 24px)); max-height: calc(100dvh - 24px); margin: 12px 12px 12px auto; padding: 0; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.mobile-menu::backdrop { background: rgba(0, 0, 0, .58); }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); font-weight: 800; }
.mobile-menu-head button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 30px; line-height: 1; }
.mobile-menu-links { display: grid; padding: 10px 20px; }
.mobile-menu-links a { display: flex; min-height: 52px; align-items: center; border-bottom: 1px solid var(--line); font-family: var(--display-font); font-size: 22px; }
.mobile-menu-links a[aria-current="page"] { color: var(--orange-text); }
.mobile-theme { width: calc(100% - 40px); min-height: 46px; margin: 14px 20px 20px; border: 1px solid var(--line); background: transparent; }

/* Buttons */
.primary-button, .light-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 22px; border: 1px solid var(--orange); border-radius: var(--radius); background: var(--orange); color: #171715; font-weight: 800; transition: transform .18s ease, background-color .18s ease; }
.primary-button:hover, .light-button:hover { background: color-mix(in srgb, var(--orange) 84%, #000); transform: translateY(-2px); }
.light-button { border-color: #fff; background: #fff; }
.text-button { min-height: 44px; justify-self: start; padding: 6px 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--muted); }

/* Hero */
.hero { position: relative; display: grid; min-height: 600px; height: 78svh; max-height: 760px; place-items: center; overflow: hidden; color: #fff; }
.hero-media { position: absolute; inset: 0; background: #242422; }
.hero-media::after { content: ""; position: absolute; z-index: 1; inset: 0; background: rgba(16, 16, 15, .44); pointer-events: none; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; filter: saturate(.86) contrast(1.04); }
.hero-media-toggle { position: absolute; z-index: 2; right: 20px; bottom: 20px; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(255,255,255,.82); border-radius: 50%; background: rgba(20,20,18,.34); color: #fff; font-family: var(--numbers-font); font-size: 16px; backdrop-filter: blur(6px); }
.hero-media-toggle:hover { border-color: var(--orange); color: var(--orange); }
.hero-content { position: relative; z-index: 1; display: grid; justify-items: center; width: min(980px, calc(100% - 32px)); padding-top: 52px; text-align: center; }
.hero-kicker { margin-bottom: 24px; color: #ff9b42; }
.hero h1 { margin-bottom: 34px; font-size: clamp(42px, 5.2vw, var(--size-hero)); line-height: 1.02; }
.hero h1 span { display: block; }

/* Services */
.services { padding: calc(var(--section-space) * .82) 0 var(--section-space); }
.services h2 { margin-bottom: 28px; color: var(--orange-text); font-family: var(--body-font); font-size: clamp(18px, 2vw, 24px); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-item { min-width: 0; min-height: 280px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); transition: color .18s ease, background-color .18s ease; }
.service-item:hover { background: color-mix(in srgb, var(--orange) 8%, var(--surface)); }
.service-icon { display: block; width: 54px; height: 54px; margin-bottom: 34px; color: var(--orange); }
.service-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-item h3 { margin-bottom: 14px; color: var(--orange-text); }
.service-item p { max-width: 320px; margin: 0; color: var(--muted); font-size: 16px; }

/* Trust */
.trust { padding: var(--section-space) 0; background: var(--dark); color: #fff; }
.trust-intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: end; margin-bottom: 52px; }
.trust-intro h2 { margin-bottom: 0; color: var(--orange); }
.trust .section-label, .trust-intro h2, .proof-grid h3, .detail-hero .detail-kicker, .estimate-section .section-label, .tour .section-label, .request-section .section-label { color: var(--orange-on-dark); }
.trust-intro h2 { color: #ff9b42; }
.trust-intro p:last-child { max-width: 650px; margin: 0; color: #efefe9; font-size: 18px; }
.trust-track { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-bottom: 52px; }
.trust-track::before { content: ""; position: absolute; top: 68px; left: 7%; right: 7%; border-top: 2px dashed var(--orange); }
.trust-fact { position: relative; z-index: 1; min-width: 0; text-align: center; }
.trust-fact strong { display: flex; width: 136px; height: 136px; max-width: 100%; margin: 0 auto 16px; flex-direction: column; align-items: center; justify-content: center; border: 2px solid var(--orange); border-radius: 50%; background: var(--trust-circle); color: #1a1a18; }
.trust-fact strong span { font-family: var(--numbers-font); font-size: clamp(30px, 3.2vw, var(--size-numbers)); font-weight: 700; line-height: .9; font-variant-numeric: tabular-nums; }
.trust-fact strong small { max-width: 100px; margin-top: 7px; font-size: 11px; font-weight: 800; line-height: 1.1; text-transform: uppercase; }
.trust-fact p { max-width: 155px; margin: 0 auto; color: #efefe9; font-size: 13px; line-height: 1.35; }
.proof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.32); border-left: 1px solid rgba(255,255,255,.32); }
.proof-grid article { min-height: 200px; padding: 24px; border-right: 1px solid rgba(255,255,255,.32); border-bottom: 1px solid rgba(255,255,255,.32); }
.proof-grid h3 { color: #ff9b42; font-size: 21px; }
.proof-grid p { margin: 0; color: #efefe9; font-size: 15px; }

/* Advantages */
.advantages { padding: var(--section-space) 0; }
.advantages h2 { margin: 8px 0 32px; }
.benefit-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); list-style: none; }
.benefit-list li { display: flex; min-height: 118px; align-items: center; gap: 18px; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.benefit-list svg { width: 30px; height: 30px; flex: 0 0 auto; fill: none; stroke: var(--orange); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.benefit-list span { min-width: 0; color: var(--orange-text); font-family: var(--display-font); font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; line-height: 1.12; }

/* Process */
.process { padding: var(--section-space) 0; background: var(--surface); }
.process h2 { margin-bottom: 42px; }
.process-timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); list-style: none; }
.process-timeline li { min-width: 0; min-height: 238px; padding: 24px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-timeline > li > span { display: block; margin-bottom: 36px; color: var(--orange); font-family: var(--numbers-font); font-size: 14px; font-weight: 800; }
.process-timeline h3 { font-size: clamp(17px, 1.45vw, 20px); overflow-wrap: anywhere; }
.process-timeline p { margin: 0; color: var(--muted); font-size: 15px; }

/* Calculator */
.estimate-section { padding: var(--section-space) 0; background: var(--deep); color: #fff; }
.estimate-heading { margin-bottom: 36px; }
.estimate-heading h2 { margin: 8px 0 0; }
.estimate-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 38px; align-items: start; }
.estimate-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.estimate-fields label, .request-form label { display: grid; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.estimate-fields label:first-child, .form-error { grid-column: 1 / -1; }
.estimate-fields input, .estimate-fields select, .request-form input, .admin-form input, .admin-form select, .admin-form textarea { width: 100%; min-height: 50px; border: 1px solid #8c8d88; border-radius: var(--radius); padding: 10px 12px; background: #f7f6f1; color: #242320; }
.estimate-fields input[aria-invalid="true"] { border-color: var(--orange); }
.form-error { min-height: 20px; margin: -10px 0 0; color: #ffc28f; font-size: 14px; }
.estimate-result { position: sticky; top: calc(var(--header-height) + 16px); display: grid; gap: 14px; padding: 28px; background: #e6e4db; color: #242320; }
.estimate-result > p { margin: 0; color: #565654; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.estimate-result > strong { font-family: var(--numbers-font); font-size: clamp(36px, 4vw, var(--size-numbers)); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.estimate-result dl { display: grid; gap: 8px; margin: 0; padding: 14px 0; border-top: 1px solid #aaa9a2; border-bottom: 1px solid #aaa9a2; }
.estimate-result dl div { display: flex; justify-content: space-between; gap: 16px; }
.estimate-result dt { color: #66655f; font-size: 13px; }
.estimate-result dd { margin: 0; font-family: var(--numbers-font); font-size: 14px; font-weight: 700; text-align: right; }
.estimate-result > span { color: #66655f; font-size: 13px; }
.estimate-result [aria-disabled="true"] { pointer-events: none; opacity: .48; }
.estimate-note { max-width: 760px; margin: 30px 0 0; color: #d6d5cf; font-size: 15px; }

/* Support, FAQ, request */
.project-support, .faq, .tour, .request-section, .contact-section, .detail-section, .clarification { padding: var(--section-space) 0; }
.project-support .container { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.project-support h2 { margin-top: 8px; }
.support-items { display: grid; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.support-items p { display: grid; gap: 5px; margin: 0; padding: 20px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.support-items strong { color: var(--orange-text); font-family: var(--display-font); font-size: 21px; }
.support-items span { color: var(--muted); font-size: 15px; }
.faq { background: var(--surface); }
.faq-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 68px; }
.faq-layout h2 { margin-top: 8px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 0; color: var(--orange-text); font-family: var(--display-font); font-size: 21px; line-height: 1.18; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--orange); font-family: var(--numbers-font); font-size: 26px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { max-width: 680px; margin: 0; padding: 0 0 20px; color: var(--muted); font-size: 16px; }
.tour { background: var(--dark); color: #fff; }
.tour h2 { max-width: 760px; margin-top: 8px; }
.tour p:not(.section-label) { max-width: 680px; margin-bottom: 26px; }
.request-section { background: var(--deep); color: #fff; }
.request-layout { display: grid; grid-template-columns: 1fr minmax(320px, 430px); gap: 70px; align-items: start; }
.request-section h2 { margin-top: 8px; }
.request-section p { max-width: 600px; }
.direct-max { display: inline-flex; min-height: 44px; align-items: center; color: var(--orange); font-weight: 800; }
.request-form { display: grid; gap: 16px; }
.request-form [data-request-status] { min-height: 22px; margin: 0; color: #ffc28f; font-size: 14px; }

/* Portfolio — 5.2 mosaic in a one-project-per-screen carousel */
.portfolio { padding: var(--section-space) 0; overflow: hidden; }
.portfolio-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.portfolio-heading h2 { margin: 8px 0 0; }
.portfolio-controls { display: flex; gap: 10px; }
.portfolio-controls button { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid var(--orange); border-radius: 50%; background: transparent; color: var(--orange); }
.portfolio-controls svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.portfolio-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.portfolio-track::-webkit-scrollbar { display: none; }
.portfolio-slide { width: 100%; min-width: 0; scroll-snap-align: start; }
.portfolio-project { position: relative; display: block; width: 100%; overflow: hidden; background: var(--deep); }
.portfolio-grid { display: grid; grid-template-columns: 44% repeat(3, minmax(0, 1fr)); height: clamp(470px, 58svh, 600px); }
.portfolio-item { min-width: 0; height: 100%; margin: 0; overflow: hidden; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease, filter .28s ease; }
.portfolio-project:hover .portfolio-item img, .portfolio-project:focus-visible .portfolio-item img { transform: scale(1.015); filter: brightness(.58); }
.portfolio-overlay { position: absolute; left: 26px; bottom: 26px; width: min(510px, calc(100% - 52px)); padding: 24px; background: rgba(24,24,23,.92); color: #fff; opacity: 0; transform: translateY(12px); transition: opacity .22s ease, transform .22s ease; }
.portfolio-project:hover .portfolio-overlay, .portfolio-project:focus-visible .portfolio-overlay { opacity: 1; transform: none; }
.portfolio-overlay span { color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.portfolio-overlay h3 { margin: 9px 0 10px; font-size: 30px; }
.portfolio-overlay p { margin-bottom: 12px; color: #d8d7d0; }
.portfolio-overlay strong { display: block; font-family: var(--numbers-font); }
.portfolio-overlay em { display: inline-flex; min-height: 44px; align-items: center; margin-top: 10px; color: var(--orange); font-style: normal; font-weight: 800; }
.portfolio-empty { display: grid; min-height: 280px; place-items: center; margin: 0; border: 1px solid var(--line); background: var(--surface); }

/* Contacts and footer */
.contact-section { background: var(--surface); }
.contact-grid { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: 76px; align-items: center; }
.contact-photo { width: 100%; height: 520px; object-fit: cover; }
.contact-copy h2 { margin: 8px 0 22px; }
.contact-copy > p:not(.section-label) { max-width: 560px; color: var(--muted); }
.contact-copy address, .site-footer-contacts { display: grid; gap: 6px; font-style: normal; }
.contact-copy address a { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.contact-copy address strong { font-family: var(--numbers-font); font-size: clamp(19px, 2.2vw, 28px); font-weight: 600; }
.contact-copy address span { color: var(--muted); font-size: 14px; }
.social-icons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.social-link { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border: 1px solid var(--orange); border-radius: 50%; color: var(--orange); transition: background-color .18s ease, color .18s ease; }
.social-link:hover { background: var(--orange); color: #171715; }
.social-link:not([href]) { display: none; }
.social-link img { width: 22px; height: 22px; filter: brightness(0) saturate(100%) invert(47%) sepia(96%) saturate(2927%) hue-rotate(353deg) brightness(96%) contrast(91%); }
.social-link:hover img { filter: brightness(0) saturate(100%); }
.site-footer { padding: 42px 0; background: var(--deep); color: #fff; }
.site-footer-grid { display: grid; grid-template-columns: .8fr 1.2fr .8fr; gap: 48px; align-items: start; }
.site-footer-brand .brand { color: #fff; }
.site-footer-brand .brand::before { content: none; }
.site-footer-brand .brand img { width: 72px; height: 48px; }
.site-footer-brand .brand-title { gap: 4px; font-size: 16px; line-height: .84; }
.site-footer-brand p { max-width: 280px; margin: 18px 0 0; color: #c9c9c3; font-size: 14px; }
.site-footer-cta { text-align: center; }
.site-footer-cta > p { margin-bottom: 10px; color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.site-footer-cta h2 { margin-bottom: 20px; font-size: clamp(26px, 2.8vw, 38px); }
.site-footer-cta h2 span { display: block; }
.site-footer-contacts a { display: flex; min-height: 44px; align-items: center; justify-content: flex-end; color: #deded8; font-size: 14px; text-align: right; }
.site-footer .social-icons { justify-content: flex-end; margin-top: 12px; }
.site-footer .social-link { width: 44px; height: 44px; flex-basis: 44px; }

/* Detail pages */
.subpage { padding-top: var(--header-height); }
.detail-hero { padding: 58px 0 64px; background: var(--dark); color: #fff; }
.detail-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 66px; align-items: center; }
.detail-hero-grid > *, .object-hero-grid > *, .contact-grid > * { min-width: 0; }
.detail-hero h1 { max-width: 720px; margin: 12px 0 22px; font-size: clamp(36px, 4.4vw, var(--size-h1)); }
.detail-hero p { max-width: 680px; font-size: 18px; }
.detail-hero .primary-button { margin-top: 12px; }
.detail-photo { width: 100%; height: 500px; object-fit: cover; }
.detail-photo--process { height: 420px; }
.detail-section h2, .clarification h2 { max-width: 820px; margin: 8px 0 30px; }
.detail-section--alt, .clarification { background: var(--surface); }
.detail-grid, .clarification-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.detail-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail-grid--four, .clarification-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.detail-grid article, .clarification-grid article { min-width: 0; min-height: 210px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--page); }
.detail-grid h3, .clarification-grid h3 { color: var(--orange-text); }
.detail-grid p, .clarification-grid p { margin: 0; color: var(--muted); font-size: 15px; }
.detail-actions { margin-top: 28px; }

/* Object */
.object-error { min-height: 70svh; padding: 100px 0; }
.object-hero { padding: 56px 0 70px; }
.back-link { display: inline-flex; min-height: 44px; align-items: center; margin-bottom: 24px; color: var(--orange-text); font-weight: 800; }
.object-hero-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.object-hero h1 { margin-top: 10px; }
.object-summary { color: var(--muted); font-size: 18px; }
.object-hero img { width: 100%; height: min(62svh, 620px); object-fit: cover; }
.object-details { padding: 64px 0; background: var(--deep); color: #fff; }
.object-details-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.object-details dl { margin: 0; }
.object-details dl div { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.24); }
.object-details dt { color: #c8c8c1; }
.object-details dd { margin: 0; font-family: var(--numbers-font); text-align: right; }
.object-gallery-section { padding: var(--section-space) 0; }
.object-gallery-section h2 { margin-top: 8px; }
.object-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.object-gallery-item { height: 480px; padding: 0; border: 0; background: var(--deep); overflow: hidden; }
.object-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.object-gallery-item:hover img { transform: scale(1.015); }
.lightbox { width: min(1100px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; background: #111; }
.lightbox::backdrop { background: rgba(0,0,0,.86); }
.lightbox img { width: 100%; max-height: calc(100dvh - 32px); object-fit: contain; }
.lightbox button { position: absolute; z-index: 2; top: 10px; right: 10px; width: 44px; height: 44px; border: 1px solid #fff; border-radius: 50%; background: #111; color: #fff; font-size: 26px; }

/* Admin */
.admin-body { background: #efefeb; color: #20201e; font-family: "Onest", "Segoe UI", sans-serif; }
.admin-shell { width: min(1240px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 70px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.admin-topbar .brand { color: #20201e; }
.admin-login { width: min(460px, 100%); margin: 10svh auto 0; padding: 28px; border: 1px solid #cccac2; background: #fff; }
.admin-login h1 { margin-bottom: 10px; font-size: 34px; }
.admin-login p { color: #676760; }
.admin-form { display: grid; gap: 16px; }
.admin-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 750; }
.admin-form textarea { min-height: 110px; resize: vertical; }
.admin-form button, .admin-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 10px 16px; border: 1px solid #d85d10; background: #e96a1a; color: #171715; font-weight: 800; }
.admin-status { min-height: 22px; margin: 0; font-size: 14px; }
.admin-status[data-status="error"] { color: #a31616; }
.admin-status[data-status="success"] { color: #187345; }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 20px; overflow-x: auto; }
.admin-tabs button { min-height: 44px; padding: 9px 15px; border: 1px solid #c9c8c0; background: #fff; white-space: nowrap; }
.admin-tabs button[aria-selected="true"] { border-color: #e96a1a; background: #e96a1a; font-weight: 800; }
.admin-panel { padding: 26px; border: 1px solid #cfcec6; background: #fff; }
.admin-panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.admin-panel h2 { margin: 4px 0 0; font-family: "Onest", sans-serif; font-size: 28px; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.admin-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-color { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; }
.admin-color input[type="color"] { width: 52px; height: 44px; padding: 3px; }
.content-toolbar { display: flex; gap: 12px; margin-bottom: 20px; }
.content-toolbar select { min-height: 44px; min-width: 260px; padding: 8px 12px; border: 1px solid #aaa; background: #fff; }
.content-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.content-fields label { display: grid; gap: 6px; }
.content-fields textarea { min-height: 90px; }
.project-admin-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; }
.project-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.project-list-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.project-list button { width: 100%; min-height: 58px; padding: 10px 12px; border: 1px solid #d2d1ca; background: #f6f6f2; text-align: left; }
.project-list button[aria-current="true"] { border-color: #e96a1a; }
.project-order { display: grid; grid-template-rows: 1fr 1fr; gap: 4px; }
.project-order button { width: 48px; min-height: 44px; padding: 0; text-align: center; }
.image-preview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.image-preview { position: relative; }
.image-preview img { width: 100%; height: 120px; object-fit: cover; }
.image-preview button { position: absolute; top: 5px; right: 5px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: #a31616; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.danger-button { border-color: #a31616 !important; background: #fff !important; color: #a31616 !important; }

@media (max-width: 1080px) {
    .nav-links { display: none; }
    .menu-toggle { display: grid; }
    .nav { grid-template-columns: auto 1fr auto; }
    .trust-track { grid-template-columns: repeat(3, 1fr); gap: 30px 16px; }
    .trust-track::before { display: none; }
    .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process-timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .detail-grid--four, .clarification-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer-grid { grid-template-columns: 1fr 1fr; }
    .site-footer-contacts { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
    .site-footer-contacts a { justify-content: center; text-align: center; }
}

@media (max-width: 760px) {
    :root { --content: min(100% - 28px, 1180px); --header-height: 70px; }
    body { font-size: min(var(--size-body), 16px); }
    h1 { font-size: min(var(--size-h1), 40px); }
    h2 { font-size: min(var(--size-h2), 34px); }
    h1, h2, h3 { overflow-wrap: normal; word-break: normal; hyphens: none; }
    .brand { min-width: 54px; min-height: 54px; }
    .brand img { width: 42px; height: 28px; }
    .site-header .brand::before, .admin-topbar .brand::before { width: 42px; height: 28px; }
    .brand-title { font-size: 10px; }
    .hero { min-height: 560px; height: 76svh; max-height: 680px; }
    .hero h1 { font-size: min(var(--size-hero), 46px); }
    .hero-kicker { max-width: 290px; line-height: 1.45; }
    .services, .trust, .advantages, .process, .estimate-section, .project-support, .faq, .tour, .request-section, .contact-section, .detail-section, .clarification, .object-gallery-section { padding-block: min(var(--section-space), 62px); }
    .services-grid, .benefit-list, .process-timeline, .detail-grid, .detail-grid--two, .detail-grid--four, .clarification-grid { grid-template-columns: 1fr; }
    .service-item { min-height: 0; padding: 24px; }
    .service-icon { margin-bottom: 22px; }
    .trust-intro, .project-support .container, .faq-layout, .request-layout, .contact-grid, .detail-hero-grid, .object-hero-grid, .object-details-grid { grid-template-columns: 1fr; gap: 30px; }
    .trust-track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 8px; }
    .trust-fact strong { width: 126px; height: 126px; }
    .trust-fact p { font-size: 12px; }
    .proof-grid { grid-template-columns: 1fr; }
    .proof-grid article { min-height: 0; }
    .benefit-list li { min-height: 86px; }
    .process-timeline li { min-height: 0; }
    .estimate-layout, .estimate-fields { grid-template-columns: 1fr; }
    .estimate-layout { gap: 24px; }
    .estimate-fields label:first-child, .form-error { grid-column: auto; }
    .estimate-result { position: static; }
    .portfolio-heading { align-items: flex-start; flex-direction: column; }
    .portfolio-controls { align-self: flex-end; }
    .portfolio-grid { grid-template-columns: 56% 44%; grid-template-rows: repeat(3, 1fr); height: min(72svh, 590px); }
    .portfolio-featured { grid-row: 1 / -1; }
    .portfolio-item:nth-child(n + 5) { display: none; }
    .portfolio-overlay { left: 14px; right: 14px; bottom: 14px; width: auto; padding: 18px; opacity: 1; transform: none; }
    .portfolio-overlay h3 { font-size: 23px; }
    .portfolio-overlay p { font-size: 13px; }
    .portfolio-overlay strong { font-size: 14px; }
    .contact-photo { height: 380px; }
    .contact-copy address a { align-items: flex-start; flex-direction: column; justify-content: center; gap: 2px; }
    .site-footer-grid { grid-template-columns: 1fr; gap: 34px; text-align: center; }
    .site-footer-brand .brand { justify-content: center; }
    .site-footer-brand p { margin-inline: auto; }
    .site-footer-contacts { grid-column: auto; grid-template-columns: 1fr; }
    .site-footer-contacts a { justify-content: center; }
    .detail-hero { padding: 44px 0 50px; }
    .detail-hero h1 { font-size: clamp(28px, 7.5vw, min(var(--size-h1), 40px)); }
    .detail-photo, .detail-photo--process { height: 390px; }
    .object-gallery { grid-template-columns: 1fr; }
    .object-gallery-item { height: 420px; }
    .admin-grid, .admin-grid--three, .content-fields, .project-admin-layout { grid-template-columns: 1fr; }
    .admin-panel { padding: 18px; }
    .admin-panel-heading { align-items: stretch; flex-direction: column; }
    .content-toolbar { align-items: stretch; flex-direction: column; }
    .content-toolbar select { min-width: 0; }
    .image-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
    h2 { font-size: min(var(--size-h2), 31px); }
    .hero h1 { font-size: min(var(--size-hero), 42px); }
    .trust-track { grid-template-columns: 1fr 1fr; }
    .trust-fact strong { width: 118px; height: 118px; }
    .portfolio-grid { height: 520px; }
    .portfolio-overlay p { display: none; }
    .portfolio-overlay h3 { margin-bottom: 7px; }
}

@media (hover: none) {
    .portfolio-overlay { opacity: 1; transform: none; }
}

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