:root {
  --paper: #f7f4ed;
  --paper-deep: #eee9de;
  --ink: #1d2822;
  --muted: #687069;
  --forest: #24352d;
  --forest-soft: #31463b;
  --accent: #d68455;
  --accent-dark: #b8683d;
  --line: rgba(29, 40, 34, 0.16);
  --white: #fffdf8;
  --container: min(1240px, calc(100% - 48px));
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* Каталог и быстрые контакты */
body { padding-bottom: 96px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.contact-dock { position: fixed; z-index: 110; right: 24px; bottom: 18px; display: flex; gap: 5px; padding: 7px; border: 1px solid rgba(255,255,255,.25); border-radius: 18px; background: var(--forest); color: white; box-shadow: 0 8px 32px #10251a35; }
.contact-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 13px; border-radius: 10px; font-family: var(--sans); font-size: 13px; font-weight: 600; line-height: 1.2; }
.contact-button svg, .social-button svg { flex: 0 0 21px; width: 21px; height: 21px; }
.contact-dock .contact-button:hover { background: #ffffff18; }
.contact-dock .contact-phone { background: var(--accent-dark); }
.contact-dock .contact-phone:hover { background: #a95732; }
.contact-dialog { width: min(460px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 38px; border: 0; border-radius: 18px; color: var(--ink); background: var(--paper); box-shadow: 0 24px 100px #0004; }
.contact-dialog::backdrop { background: #13241ddd; backdrop-filter: blur(5px); }
.contact-dialog h2 { margin: 0; font: 40px/1.1 var(--serif); }
.contact-dialog p:not(.eyebrow) { color: var(--muted); margin: 22px 0 28px; }
.contact-dialog__close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: transparent; font-size: 28px; cursor: pointer; }
.social-section { padding-block: 58px; }
.social-section__inner { display: flex; justify-content: space-between; align-items: center; gap: 36px; }
.social-section h2 { margin: 0; font: 36px/1.15 var(--serif); }
.social-section p:not(.eyebrow) { max-width: 610px; color: var(--muted); }
.social-button { flex-shrink: 0; border-color: var(--line); }
.social-button:hover { background: var(--white); }
.gallery-note { color: var(--muted); font-size: 12px; max-width: 410px; margin-top: 20px; }
.category-hero { padding-block: 24px 80px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 42px; font-size: 12px; color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent-dark); }
.category-hero__grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 60px; }
.category-hero h1, .contact-page h1 { font: clamp(42px, 4.4vw, 64px)/1.04 var(--serif); letter-spacing: -.035em; margin: 0 0 24px; }
.category-lead { max-width: 500px; color: var(--muted); font-size: 18px; margin-bottom: 28px; }
.category-price { margin: -10px 0 26px; color: var(--accent-dark); font-family: var(--serif); font-size: 25px; }
.category-hint { max-width: 310px; font-size: 12px; color: var(--muted); margin-top: 18px; }
.category-figure { margin: 0; min-width: 0; }
.category-figure .project__image-wrap img { aspect-ratio: 5 / 4; }
.category-figure figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--muted); margin-top: 13px; }
.category-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.category-details article { border-top: 1px solid var(--line); padding-top: 24px; }
.category-details article > span { color: var(--accent-dark); font-size: 12px; }
.category-details h3 { font: 28px/1.15 var(--serif); margin: 25px 0 12px; }
.category-details p { color: var(--muted); font-size: 14px; }
.category-cta h2 { font: clamp(38px, 4vw, 58px)/1.1 var(--serif); margin: 0; }
.category-cta p:not(.eyebrow) { max-width: 580px; color: var(--muted); }
.category-cta__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.category-cta__actions .contact-button { border: 1px solid var(--line); }
.related-section { padding-bottom: 80px; }
.category-links { display: flex; flex-wrap: wrap; gap: 12px; }
.category-links a { padding: 12px 20px; border: 1px solid var(--line); border-radius: 40px; font-size: 13px; }
.category-links a:hover { color: var(--white); background: var(--forest); }
.category-links span { margin-left: 12px; }
.reference-section { padding-top: 88px; }
.reference-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 18px; }
.reference-card { min-width: 0; margin: 0; }
.reference-card .project__image-wrap img { aspect-ratio: 4 / 3; }
.reference-card figcaption { padding-top: 12px; color: var(--muted); font-size: 12px; }
.material-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.material-card { min-height: 270px; padding: 28px 34px 34px 0; border-right: 1px solid var(--line); }
.material-card:not(:first-child) { padding-left: 34px; }
.material-card:last-child { border-right: 0; }
.material-card > span { color: var(--accent-dark); font-size: 11px; }
.material-card h3 { margin: 62px 0 14px; font: 30px/1.1 var(--serif); }
.material-card p { margin: 0; color: var(--muted); font-size: 14px; }
.contact-page { max-width: 850px; }
.contact-page__details { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.contact-page__details a { border-bottom: 1px solid currentColor; }

.reviews { position: relative; overflow: hidden; color: var(--white); background: var(--forest); }
.reviews::after { content: ""; position: absolute; top: -180px; right: -140px; width: 460px; height: 460px; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; }
.reviews .section-top { position: relative; z-index: 1; }
.reviews .section-heading h2 { color: var(--white); }
.reviews .section-top > p { color: rgba(255,255,255,.72); font-size: 18px; line-height: 1.65; }
.proof-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; }
.proof-card { min-height: 270px; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(26px, 4vw, 42px); border: 1px solid rgba(255,255,255,.17); background: rgba(255,255,255,.035); }
.proof-card--large { min-height: 390px; }
.proof-card__label { color: #efaa80; font-size: 13px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.proof-card__mark { width: 58px; height: 58px; display: grid; place-items: center; margin-left: auto; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: rgba(255,255,255,.7); font: 31px/1 var(--serif); }
.proof-card h3 { max-width: 560px; margin: auto 0 12px; font: clamp(30px, 3.2vw, 46px)/1.08 var(--serif); font-weight: 400; }
.proof-card p { max-width: 560px; margin: 0; color: rgba(255,255,255,.7); font-size: 16px; }
.review-carousel { min-width: 0; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.17); background: rgba(255,255,255,.035); }
.review-carousel__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 26px; border-bottom: 1px solid rgba(255,255,255,.14); }
.review-carousel__head > span { color: #efaa80; font-size: 13px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.review-carousel__controls { display: flex; align-items: center; gap: 8px; }
.review-carousel__controls button { width: 42px; height: 42px; padding: 0; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: var(--white); background: transparent; cursor: pointer; transition: color .2s, background .2s; }
.review-carousel__controls button:hover { color: var(--forest); background: var(--white); }
.review-carousel__counter { min-width: 42px; color: rgba(255,255,255,.6); font-size: 13px; text-align: center; }
.review-carousel__viewport { min-width: 0; flex: 1; overflow: hidden; }
.review-carousel__track { height: 100%; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.review-carousel__track::-webkit-scrollbar { display: none; }
.review-slide { min-width: 100%; min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(28px, 4vw, 42px); scroll-snap-align: start; }
.review-slide__number { color: rgba(255,255,255,.42); font: 26px/1 var(--serif); }
.review-slide h3 { margin: auto 0 14px; font: 30px/1.12 var(--serif); font-weight: 400; }
.review-slide p { margin: 0; color: rgba(255,255,255,.7); font-size: 16px; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; overflow-x: clip; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body.menu-open, body.dialog-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.container { width: var(--container); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 10px 16px; color: white; background: var(--forest); transform: translateY(-150%); }
.skip-link:focus { transform: none; }


.site-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid rgba(29,40,34,.08); background: rgba(247,244,237,.91); backdrop-filter: blur(16px); transition: box-shadow .25s ease; }
.site-header.is-scrolled { box-shadow: 0 10px 40px rgba(28, 34, 30, .08); }
.header-inner { min-height: 76px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 42px; }
.logo { display: inline-flex; align-items: center; gap: 10px; width: max-content; }
.logo__mark { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.logo span { display: grid; line-height: .94; text-transform: uppercase; }
.logo strong { font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: .08em; }
.logo small { justify-self: end; margin-top: 5px; color: var(--accent-dark); font-size: 9px; font-weight: 700; letter-spacing: .42em; }
.main-nav { display: flex; justify-content: center; gap: clamp(18px, 2.3vw, 36px); }
.main-nav a { position: relative; font-size: 13px; }
.main-nav a::after { content: ""; position: absolute; right: 0; bottom: -8px; left: 0; height: 1px; background: var(--accent); transform: scaleX(0); transition: transform .25s ease; transform-origin: right; }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-contact { display: grid; justify-items: end; line-height: 1.2; }
.header-contact a { font-weight: 650; font-size: 14px; }
.header-contact span { margin-top: 5px; color: var(--muted); font-size: 10px; }
.menu-button { display: none; width: 42px; height: 42px; padding: 9px; border: 0; background: transparent; cursor: pointer; }
.menu-button span { display: block; height: 1px; margin: 6px 0; background: currentColor; transition: transform .2s, opacity .2s; }

.hero { position: relative; min-height: calc(100vh - 76px); max-height: 900px; overflow: hidden; display: grid; align-items: center; color: white; background: var(--forest); }
.hero__image, .hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__image { object-fit: cover; object-position: center; animation: hero-in 1.4s cubic-bezier(.2,.7,.2,1) both; }
.hero__shade { background: linear-gradient(90deg, rgba(18,29,23,.82) 0%, rgba(20,30,25,.54) 37%, rgba(20,30,25,.10) 72%, rgba(20,30,25,.03) 100%); }
.hero__content { position: relative; z-index: 1; padding-block: 76px 48px; }
.eyebrow { margin: 0 0 18px; color: var(--accent-dark); font-size: 11px; font-weight: 750; letter-spacing: .17em; text-transform: uppercase; }
.hero .eyebrow, .section--dark .eyebrow { color: #efaa80; }
.hero h1 { max-width: 800px; margin: 0; font-family: var(--serif); font-size: clamp(54px, 6.6vw, 96px); font-weight: 400; line-height: .98; letter-spacing: -.045em; }
.hero__lead { max-width: 565px; margin: 28px 0 0; color: rgba(255,255,255,.83); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; }
.hero__actions { display: flex; align-items: center; gap: 34px; margin-top: 34px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 13px 24px; border: 1px solid transparent; border-radius: 1px; font-weight: 650; font-size: 13px; letter-spacing: .04em; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button--light { color: var(--forest); background: var(--white); }
.button--light:hover { background: #ede5d7; }
.button--accent { color: #fff; background: var(--accent-dark); }
.button--accent:hover { background: #a95732; }
.button--full { width: 100%; justify-content: space-between; }
.text-link { width: max-content; display: inline-flex; align-items: center; gap: 10px; border-bottom: 1px solid currentColor; padding-bottom: 4px; font-size: 13px; font-weight: 600; }
.text-link span { transition: transform .2s; }
.text-link:hover span { transform: translateX(3px); }
.text-link--light { color: white; }
.hero__facts { max-width: 630px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 70px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(255,255,255,.25); list-style: none; }
.hero__facts li { display: grid; gap: 2px; }
.hero__facts strong { font-family: var(--serif); font-size: 22px; font-weight: 400; }
.hero__facts span { color: rgba(255,255,255,.62); font-size: 11px; }

.section { padding-block: 116px; }
.section--tint { background: var(--paper-deep); }
.section--dark { color: var(--white); background: var(--forest); }
.section-heading h2, .estimate h2, .values h2 { margin: 0; font-family: var(--serif); font-size: clamp(40px, 4.5vw, 66px); font-weight: 400; line-height: 1.04; letter-spacing: -.035em; }
.intro__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: clamp(60px, 9vw, 150px); align-items: start; }
.intro__copy { padding-top: 42px; }
.intro__copy p { color: var(--muted); }
.intro__copy .lead { margin-top: 0; color: var(--ink); font-family: var(--serif); font-size: 25px; line-height: 1.35; }
.intro__copy .text-link { margin-top: 16px; }
.section-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 430px); gap: 60px; align-items: end; margin-bottom: 58px; }
.section-top > p { margin: 0 0 8px; color: var(--muted); }
.section-top--light > p { color: rgba(255,255,255,.65); }

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { min-height: 350px; position: relative; display: flex; flex-direction: column; padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: color .25s, background .25s, transform .25s; }
.service-card:hover { z-index: 1; color: var(--white); background: var(--forest); transform: translateY(-7px); }
.service-card__number { position: absolute; top: 24px; right: 24px; color: var(--muted); font-size: 10px; }
.service-card__icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 42px 0 auto; border: 1px solid currentColor; border-radius: 50%; font-family: var(--serif); font-size: 27px; }
.service-card h3 { margin: 30px 0 8px; font-family: var(--serif); font-size: 29px; font-weight: 400; }
.service-card p { min-height: 70px; margin: 0; color: var(--muted); font-size: 13px; transition: color .25s; }
.service-card:hover p, .service-card:hover .service-card__number { color: rgba(255,255,255,.68); }
.service-card__price { margin-top: 20px; color: var(--accent-dark); font-weight: 700; font-size: 13px; }
.service-card:hover .service-card__price { color: #ffc29c; }
.price-note { margin: 18px 0 0; color: var(--muted); font-size: 11px; }

.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filter { padding: 8px 13px; border: 1px solid var(--line); border-radius: 40px; background: transparent; font-size: 12px; cursor: pointer; transition: .2s; }
.filter:hover, .filter.is-active { color: white; border-color: var(--forest); background: var(--forest); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 58px 24px; }
.project.is-hidden { display: none; }
.project__image-wrap { width: 100%; position: relative; overflow: hidden; padding: 0; border: 0; background: #ddd; cursor: zoom-in; }
.project__image-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,30,25,.20), transparent 44%); opacity: 0; transition: opacity .35s; }
.project__image-wrap img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.project--wide .project__image-wrap img { aspect-ratio: 16 / 9; }
.project__image-wrap:hover img { transform: scale(1.025); }
.project__image-wrap:hover::after { opacity: 1; }
.project__zoom { position: absolute; z-index: 2; right: 20px; bottom: 20px; width: 44px; height: 44px; display: grid; place-items: center; color: var(--forest); border-radius: 50%; background: rgba(255,255,255,.9); opacity: 0; transform: translateY(8px); transition: .3s; }
.project__image-wrap:hover .project__zoom { opacity: 1; transform: none; }
.project__meta { display: flex; justify-content: space-between; gap: 24px; padding-top: 18px; }
.project__meta h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 24px; font-weight: 400; }
.project__meta p, .project__meta > span { margin: 0; color: var(--muted); font-size: 11px; }
.project__meta > span { padding-top: 7px; white-space: nowrap; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.18); list-style: none; counter-reset: step; }
.steps li { min-height: 250px; padding: 28px 26px 0 0; border-right: 1px solid rgba(255,255,255,.18); }
.steps li:not(:first-child) { padding-left: 26px; }
.steps li:last-child { border-right: 0; }
.steps span { color: #efaa80; font-size: 11px; }
.steps h3 { margin: 72px 0 10px; font-family: var(--serif); font-size: 25px; font-weight: 400; }
.steps p { margin: 0; color: rgba(255,255,255,.6); font-size: 13px; }

.values__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(60px, 10vw, 150px); }
.values__sticky { align-self: start; position: sticky; top: 130px; }
.values__sticky > p:last-child { max-width: 470px; margin-top: 26px; color: var(--muted); }
.values__list { border-top: 1px solid var(--line); }
.value { display: grid; grid-template-columns: 50px 1fr; gap: 24px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.value > span { color: var(--accent-dark); font-size: 10px; }
.value h3 { margin: 0 0 9px; font-family: var(--serif); font-size: 25px; font-weight: 400; }
.value p { margin: 0; color: var(--muted); }

.estimate { color: var(--white); background: #23372e; }
.estimate__shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, .78fr); gap: clamp(60px, 9vw, 130px); align-items: start; }
.estimate__copy > p:nth-of-type(2) { max-width: 570px; color: rgba(255,255,255,.68); font-size: 17px; }
.contact-card { display: grid; gap: 4px; margin-top: 65px; }
.contact-card span { margin-bottom: 8px; color: rgba(255,255,255,.45); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.contact-card a { width: max-content; font-family: var(--serif); font-size: 22px; }
.mvp-contact-panel { padding: clamp(28px, 4vw, 48px); color: var(--ink); background: var(--white); }
.mvp-contact-panel dl { margin: 0; border-top: 1px solid var(--line); }
.mvp-contact-panel dl > div { display: flex; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.mvp-contact-panel dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.mvp-contact-panel dd { margin: 0; font-family: var(--serif); font-size: 20px; }
.mvp-contact-panel > p:last-child { margin: 24px 0 0; color: var(--muted); font-size: 12px; }
.lead-form { padding: clamp(28px, 4vw, 48px); color: var(--ink); background: var(--white); }
.lead-form label { display: grid; gap: 8px; margin-bottom: 21px; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.lead-form input, .lead-form select, .lead-form textarea { width: 100%; min-height: 48px; padding: 11px 0; color: var(--ink); border: 0; border-bottom: 1px solid var(--line); border-radius: 0; outline: 0; background: transparent; font-size: 15px; font-weight: 400; letter-spacing: normal; text-transform: none; transition: border-color .2s; }
.lead-form textarea { resize: vertical; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { border-color: var(--accent-dark); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.optional { color: var(--muted); font-size: 9px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.lead-form .consent { display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 10px; color: var(--muted); font-size: 10px; font-weight: 400; line-height: 1.45; letter-spacing: 0; text-transform: none; }
.consent input { width: 16px; min-height: 16px; margin: 2px 0 0; accent-color: var(--forest); }
.consent a { border-bottom: 1px solid currentColor; }
.honeypot { position: absolute !important; left: -9999px !important; }
.form-status { min-height: 22px; margin: 12px 0 0; font-size: 12px; text-align: center; }
.form-status.is-success { color: #2e6b45; }
.form-status.is-error { color: #a3392a; }

.faq__grid { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(60px, 10vw, 150px); }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0; font-family: var(--serif); font-size: 21px; list-style: none; cursor: pointer; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary span { font-family: var(--sans); font-size: 22px; font-weight: 300; transition: transform .25s; }
.accordion details[open] summary span { transform: rotate(45deg); }
.accordion details p { max-width: 680px; margin: -5px 50px 27px 0; color: var(--muted); }

.site-footer { color: rgba(255,255,255,.72); background: #17221c; }
.footer__top { display: grid; grid-template-columns: 1.25fr .7fr .8fr; gap: 70px; padding-block: 72px; }
.logo--footer { color: var(--white); }
.footer__top > div:first-child > p { max-width: 350px; margin-top: 22px; font-size: 13px; }
.footer__nav, .footer__contacts { display: grid; align-content: start; justify-items: start; gap: 9px; font-size: 13px; }
.footer__nav > span, .footer__contacts > span { margin-bottom: 11px; color: rgba(255,255,255,.38); font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.footer__nav a:hover, .footer__contacts a:hover { color: white; }
.footer__contacts p { margin: 10px 0 0; color: rgba(255,255,255,.42); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-block: 20px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.38); font-size: 10px; }
.footer__bottom a { border-bottom: 1px solid currentColor; }
.floating-call { position: fixed; z-index: 50; right: 24px; bottom: 22px; width: 96px; height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: white; border-radius: 50%; background: var(--accent-dark); box-shadow: 0 12px 35px rgba(80,50,30,.28); font-size: 11px; line-height: 1.15; text-align: center; transition: transform .25s, background .25s; }
.floating-call:hover { background: #a95732; transform: rotate(-4deg) scale(1.04); }

.lightbox { width: min(1100px, calc(100% - 40px)); max-width: none; padding: 0; color: white; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(8,14,11,.91); backdrop-filter: blur(6px); }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; background: #111; }
.lightbox p { margin: 14px 0 0; font-family: var(--serif); font-size: 20px; }
.lightbox__close { position: absolute; z-index: 1; top: -46px; right: 0; width: 40px; height: 40px; color: white; border: 0; background: transparent; font-size: 32px; cursor: pointer; }

.reveal { opacity: 1; transform: none; }
@keyframes hero-in { from { opacity: .3; transform: scale(1.05); } to { opacity: 1; transform: scale(1); } }

.legal-page { background: var(--paper); }
.legal-header { border-bottom: 1px solid var(--line); }
.legal-header .container { min-height: 86px; display: flex; align-items: center; justify-content: space-between; }
.legal-content { max-width: 850px; padding-block: 90px; }
.legal-content h1 { margin: 0 0 36px; font-family: var(--serif); font-size: clamp(44px, 7vw, 72px); font-weight: 400; line-height: 1; }
.legal-content h2 { margin-top: 40px; font-family: var(--serif); font-size: 25px; font-weight: 400; }
.legal-content p { color: var(--muted); }
.legal-warning { margin-bottom: 50px; padding: 22px; border-left: 3px solid var(--accent); background: var(--paper-deep); }
.legal-date { margin-top: 60px; font-size: 12px; }
.not-found { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; }
.not-found main > span { color: var(--accent-dark); font-family: var(--serif); font-size: 100px; line-height: 1; }
.not-found h1 { margin: 10px 0; font-family: var(--serif); font-size: 42px; font-weight: 400; }
.not-found p { color: var(--muted); }
.not-found .button { margin-top: 20px; }

@media (max-width: 1060px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .header-contact { display: none; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { min-height: 315px; }
  .hero h1 { font-size: clamp(54px, 8.5vw, 82px); }
}

@media (max-width: 780px) {
  :root { --container: min(100% - 32px, 640px); }
  html { scroll-padding-top: 70px; }
  .header-inner { min-height: 68px; }
  .menu-button { display: block; justify-self: end; }
  .menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { position: absolute; top: 100%; right: 0; left: 0; min-height: calc(100dvh - 98px); display: grid; align-content: start; justify-content: stretch; gap: 0; padding: 35px 24px; background: var(--paper); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px); transition: opacity .22s ease, transform .22s ease, visibility .22s; }
  .main-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .main-nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 25px; }
  .main-nav a::after { display: none; }
  .hero { min-height: 720px; max-height: none; align-items: end; }
  .hero__image { object-position: 63% center; }
  .hero__shade { background: linear-gradient(90deg, rgba(18,29,23,.8), rgba(18,29,23,.3)), linear-gradient(0deg, rgba(18,29,23,.75), transparent 60%); }
  .hero__content { padding-block: 70px 35px; }
  .hero h1 { font-size: clamp(48px, 13vw, 70px); }
  .hero__lead { max-width: 520px; font-size: 16px; }
  .hero__facts { margin-top: 48px; }
  .section { padding-block: 78px; }
  .intro__grid, .section-top, .values__grid, .estimate__shell, .faq__grid, .proof-grid { grid-template-columns: 1fr; gap: 40px; }
  .intro__copy { padding-top: 0; }
  .section-top { align-items: start; margin-bottom: 38px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .project-grid { gap: 38px 16px; }
  .reference-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .material-grid { grid-template-columns: 1fr; }
  .material-card, .material-card:not(:first-child) { min-height: 0; padding: 26px 0 30px; border-right: 0; border-bottom: 1px solid var(--line); }
  .material-card h3 { margin-top: 34px; }
  .project--wide .project__image-wrap img, .project__image-wrap img { aspect-ratio: 4 / 3; }
  .project__meta { display: grid; gap: 5px; }
  .project__meta > span { padding: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li { min-height: 220px; border-bottom: 1px solid rgba(255,255,255,.18); }
  .steps li:nth-child(2) { border-right: 0; }
  .steps li:nth-child(3) { padding-left: 0; }
  .steps h3 { margin-top: 52px; }
  .values__sticky { position: static; }
  .estimate__shell { gap: 55px; }
  .contact-card { margin-top: 40px; }
  .proof-card--large { min-height: 330px; }
  .review-carousel { min-height: 330px; }
  .footer__top { grid-template-columns: 1.2fr .8fr; }
  .footer__contacts { grid-column: 1 / -1; }
  .footer__bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (max-width: 520px) {
  :root { --container: calc(100% - 28px); }
  .hero { min-height: 690px; }
  .hero__actions { align-items: flex-start; flex-direction: column; gap: 22px; }
  .hero__facts { grid-template-columns: 1fr 1fr; gap: 20px 5px; }
  .hero__facts li:last-child { display: none; }
  .section-heading h2, .estimate h2, .values h2 { font-size: 40px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 290px; }
  .project-grid { grid-template-columns: 1fr; }
  .reference-grid { grid-template-columns: 1fr; gap: 28px; }
  .project__meta h3 { font-size: 22px; }
  .filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .filter { white-space: nowrap; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li:not(:first-child), .steps li:nth-child(3) { min-height: auto; padding: 26px 0 30px; border-right: 0; }
  .steps h3 { margin-top: 38px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .lead-form { margin-inline: -14px; }
  .faq__grid { gap: 20px; }
  .proof-card, .proof-card--large { min-height: 260px; }
  .reviews .section-top > p { font-size: 17px; }
  .review-slide { min-height: 270px; }
  .accordion summary { font-size: 19px; }
  .footer__top { grid-template-columns: 1fr; gap: 42px; }
  .footer__contacts { grid-column: auto; }
  .floating-call { right: 14px; bottom: 14px; width: 79px; height: 79px; font-size: 10px; }
  .legal-header .text-link { font-size: 0; }
  .legal-header .text-link::after { content: "← Назад"; font-size: 13px; }
}

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

/* Фото-карточки заменяют декоративные плитки прежнего макета. */
.service-grid { border: 0; gap: 28px 20px; }
.service-card { min-height: 0; padding: 0; border: 0; background: var(--paper); }
.service-card__photo { position: relative; overflow: hidden; }
.service-card__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.service-card__number { top: 14px; right: 14px; padding: 5px 9px; border-radius: 20px; color: var(--ink); background: var(--paper); }
.service-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.service-card h3 { margin: 0 0 12px; font-size: 27px; }
.service-card p { min-height: 82px; }
.service-card__price { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 20px; }
.service-card:hover { transform: translateY(-4px); }
.service-card:hover img { transform: scale(1.04); }
.service-card:hover .service-card__number { color: var(--ink); }
.contact-card { justify-items: start; }
.contact-card .contact-button { font-family: var(--sans); font-size: 15px; }
.contact-card .contact-button span { margin: 0; font-size: inherit; color: inherit; text-transform: none; letter-spacing: 0; }
.header-contact .contact-button { padding: 0; }
.header-contact .contact-button span { margin: 0; font-size: 14px; color: var(--ink); }
.footer__contacts .contact-button { padding: 0; }
@media (max-width: 1060px) {
  .category-hero__grid { gap: 32px; }
  .service-card p { min-height: 60px; }
}
@media (max-width: 780px) {
  .header-inner { grid-template-columns: 1fr auto; gap: 16px; }
  .category-hero { padding-bottom: 54px; }
  .category-hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .category-hero__copy { max-width: 580px; }
  .category-hero h1 { font-size: clamp(40px, 9vw, 62px); }
  .breadcrumbs { margin-bottom: 30px; }
  .category-details { grid-template-columns: 1fr; gap: 24px; }
  .category-details h3 { margin-top: 16px; }
  .social-section__inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .contact-dock { right: 12px; left: 12px; bottom: max(10px, env(safe-area-inset-bottom)); justify-content: center; padding: 6px; border-radius: 14px; }
  .contact-dock .contact-button { flex: 1; min-width: 0; padding: 10px 8px; font-size: 12px; }
  body { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .main-nav { padding-bottom: 110px; }
}
@media (max-width: 520px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .service-card__body { padding: 15px 12px; }
  .service-card h3 { font-size: 22px; }
  .service-card p { font-size: 12px; min-height: 0; margin-bottom: 18px; }
  .service-card__price { font-size: 11px; padding-top: 0; }
  .service-card__photo img { aspect-ratio: 1; }
  .social-section h2 { font-size: 32px; }
  .contact-dialog { padding: 32px 24px; }
}
