:root {
  color-scheme: light;
  --paper: #f7f7f5;
  --white: #fff;
  --ink: #171717;
  --muted: #5e5e5b;
  --line: #d6d6d2;
  --panel: #ececea;
  --dark: #1b1b1a;
  --radius: 15px;
  --width: 1200px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--font); }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.05em; }
h1 { font-size: clamp(2.8rem, 5.5vw, 5.05rem); font-weight: 760; max-width: 11ch; }
h2 { font-size: clamp(2.15rem, 4.2vw, 3.65rem); font-weight: 740; }
h3 { font-size: 1.35rem; font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
button, summary, select, input[type="range"], input[type="checkbox"] { cursor: pointer; }
input[type="range"], input[type="checkbox"] { accent-color: var(--ink); }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 24px; }
.wrap { width: min(calc(100% - 72px), var(--width)); margin-inline: auto; }
.skip { position: fixed; z-index: 2; top: 12px; left: 12px; transform: translateY(-180%); background: var(--white); padding: 10px 16px; }
.skip:focus { transform: none; }

.header { border-bottom: 1px solid var(--line); }
.header-row { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 750; letter-spacing: -.025em; }
.brand-mark { flex: none; display: grid; place-items: center; border-radius: 9px; width: 34px; height: 34px; background: var(--ink); color: var(--white); font-size: 1.3rem; }
.header nav { display: flex; gap: clamp(12px, 2.4vw, 32px); font-size: .88rem; }
.header nav a, .header-contact { text-decoration: none; }
.header nav a:hover, a.header-contact:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-contact { font-weight: 650; font-size: .86rem; color: var(--muted); }

.hero { display: grid; grid-template-columns: 1fr 1.02fr; gap: clamp(26px, 5vw, 72px); padding-block: clamp(44px, 6vw, 88px); align-items: center; }
.hero-copy { display: grid; gap: 25px; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: .73rem; font-weight: 720; letter-spacing: .12em; text-transform: uppercase; }
.dot { display: block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hero-description { max-width: 44ch; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.13rem); }
.hero-actions { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; margin-top: 5px; }
.button { min-height: 49px; display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; padding: 10px 17px; border: 1px solid transparent; border-radius: 7px; font-size: .9rem; font-weight: 680; text-decoration: none; text-align: left; }
.button-dark { background: var(--ink); color: var(--white); }
.button-dark:hover { background: #373735; }
.button-light { background: var(--white); color: var(--ink); }
.button-light:hover { background: #e6e6df; }
.button-outline { border-color: #747471; color: var(--white); background: transparent; }
.button-outline:hover { background: #393937; }
.text-link { display: inline-flex; gap: 8px; align-items: center; text-underline-offset: 5px; font-size: .87rem; font-weight: 650; }
.media-slot { position: relative; display: grid; place-items: center; min-width: 0; overflow: hidden; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); color: var(--muted); }
.media-slot img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.hero-media { min-height: 350px; aspect-ratio: 1.14; }
.placeholder-content { align-self: stretch; justify-self: stretch; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 20px; background-image: linear-gradient(#00000009 1px, transparent 1px), linear-gradient(90deg, #00000009 1px, transparent 1px); background-size: 25px 25px; text-align: center; font-size: .82rem; font-weight: 650; }
.placeholder-icon { width: 31px; height: 24px; border: 1px solid currentColor; border-radius: 3px; background: #f6f6f3; display: grid; place-items: center; font-size: 1rem; }
.placeholder-label { padding: 3px 8px; border-radius: 4px; background: var(--panel); }

.section { padding-block: clamp(52px, 6.8vw, 94px); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px 35px; margin-bottom: 31px; }
.section-heading p { color: var(--muted); max-width: 37ch; }
.services, .works, .reviews { border-top: 1px solid var(--line); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.service-card { min-height: 205px; padding: 21px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; display: flex; flex-direction: column; gap: 10px; transition: background .18s, border-color .18s; }
.service-card:hover { background: #eeeeea; border-color: #999995; }
.service-card-header, .service-card-price { display: flex; justify-content: space-between; align-items: start; gap: 9px; }
.service-card-header h3 { font-size: clamp(1.13rem, 1.9vw, 1.48rem); line-height: 1.16; }
.service-card-header span { line-height: 1; font-size: 1.25rem; }
.service-card p { color: var(--muted); font-size: .88rem; }
.service-card-price { padding-top: 13px; border-top: 1px solid var(--line); margin-top: auto; font-size: .8rem; font-weight: 650; }
details summary { list-style: none; display: flex; align-items: center; gap: 10px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; margin-left: auto; font-size: 1.35rem; font-weight: 400; }
details[open] summary::after { content: "−"; }
.catalog-details { margin-top: 25px; border-block: 1px solid var(--line); }
.catalog-details summary { padding: 17px 0; font-weight: 700; }
.catalog-list { margin: 0; padding: 0 0 16px; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 25px; }
.catalog-list li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: .9rem; }
.catalog-list li span:last-child { text-align: right; color: var(--muted); }

.calculator-band { background: var(--panel); }
.calculator { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3.3vw, 42px); align-items: start; }
.calculator-controls { padding-top: 6px; }
.field-label { font-weight: 680; font-size: .93rem; }
select, input[type="number"] { border: 1px solid #bdbdb8; border-radius: 6px; min-height: 47px; background: var(--white); padding: 8px 12px; }
select { display: block; margin-top: 8px; width: 100%; }
.quantity-field { margin-top: 26px; }
.quantity-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.quantity-label input { width: 91px; flex: none; }
input[type="range"] { display: block; width: 100%; margin: 15px 0 7px; min-height: 24px; }
.range-limits { display: flex; justify-content: space-between; font-size: .79rem; color: var(--muted); }
.calculator-extras { border-top: 1px solid var(--line); margin-top: 24px; }
.calculator-extras summary { padding: 15px 0; font-weight: 700; }
#extra-count { font-size: .78rem; color: var(--muted); }
.extra-option { display: grid; grid-template-columns: minmax(0, 1fr) 73px; align-items: center; gap: 10px; min-height: 55px; border-bottom: 1px solid var(--line); }
.extra-option label, .demo-switch { display: flex; align-items: center; gap: 9px; }
.extra-option label { min-height: 44px; font-size: .9rem; cursor: pointer; }
.extra-option input[type="number"] { min-height: 38px; width: 100%; }
.demo-switch { width: fit-content; margin-top: 16px; color: var(--muted); font-size: .83rem; cursor: pointer; }
.extra-option input[type="checkbox"], .demo-switch input { flex: none; width: 17px; height: 17px; margin: 0; }
.quote { background: var(--dark); color: var(--white); padding: clamp(21px, 3vw, 34px); border-radius: 12px; }
.quote .eyebrow { color: #cecec8; }
.quote h3 { margin: 14px 0 19px; font-size: clamp(1.35rem, 2.7vw, 1.8rem); }
.quote-line { display: grid; grid-template-columns: 1fr auto; gap: 10px; font-size: .82rem; margin-bottom: 9px; }
.quote-line dt { color: #d7d7d1; }
.quote-line dd { text-align: right; }
.total { display: grid; gap: 6px; padding: 16px 0 10px; margin-top: 16px; border-top: 1px solid #535350; }
.total span { font-size: .82rem; color: #deded7; }
.total output { font-size: clamp(1.75rem, 4vw, 3.05rem); font-weight: 750; letter-spacing: -.055em; line-height: 1.08; overflow-wrap: anywhere; }
.quote-note, .copy-status { color: #cecec8; font-size: .82rem; }
.quote .button { width: 100%; margin-top: 9px; }
.quote-note { margin: 4px 0 11px; }
.copy-status { margin-top: 10px; }
.copy-text { width: 100%; margin-top: 9px; min-height: 100px; resize: vertical; color: var(--ink); padding: 8px; }

.about { display: grid; grid-template-columns: 1fr 1.03fr; gap: clamp(28px, 6vw, 83px); align-items: center; }
.team-media { min-height: 305px; aspect-ratio: 1.33; }
.about-copy > p { color: var(--muted); margin-top: 17px; max-width: 49ch; }
.about-facts { margin-top: 25px; }
.about-facts > div, .contact-details > div { display: grid; grid-template-columns: minmax(80px, 1fr) 2fr; gap: 10px; border-top: 1px solid var(--line); padding: 11px 0; font-size: .88rem; }
.about-facts dt, .contact-details dt { font-weight: 690; }
.about-facts dd { color: var(--muted); }
.work-grid { display: grid; gap: 26px; }
.work-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.work-media { min-height: 180px; aspect-ratio: 1.74; }
.image-tag { position: absolute; top: 11px; left: 11px; z-index: 1; color: var(--ink); background: var(--white); padding: 4px 10px; border-radius: 5px; font-size: .82rem; font-weight: 680; }
.work-caption { display: grid; gap: 5px; margin-top: 16px; }
.work-caption p { color: var(--muted); }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.review-group { display: grid; align-content: start; gap: 10px; }
.review-group > h3 { font-size: 1.23rem; margin-bottom: 4px; }
.review-card { display: grid; grid-template-columns: 70px 1fr; gap: 14px; align-items: center; padding: 19px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.review-photo { aspect-ratio: 1; border-radius: 7px; }
.review-photo .placeholder-content { padding: 5px; gap: 2px; font-size: .61rem; line-height: 1.15; }
.review-photo .placeholder-icon { width: 19px; height: 16px; font-size: .64rem; }
.review-photo .placeholder-label { padding: 2px; }
.review-card p { color: var(--muted); font-size: .88rem; margin: 3px 0 0; }
.contacts-band { background: var(--dark); color: var(--white); }
.contacts { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(25px, 5vw, 72px); }
.contact-details { margin-top: 22px; }
.contact-details > div { border-color: #535350; }
.contact-details dd { color: #deded7; overflow-wrap: anywhere; }
.contact-social { display: flex; flex-wrap: wrap; gap: 8px 13px; margin: 10px 0 22px; font-size: .85rem; color: #deded7; }
.map-media { min-height: 250px; aspect-ratio: 1.67; }
.footer { background: var(--dark); color: #deded7; border-top: 1px solid #535350; font-size: .82rem; }
.footer-row { display: flex; justify-content: space-between; gap: 10px; padding-block: 18px; }

@media (max-width: 900px) {
  .header-row { gap: 16px; }
  .header-contact { display: none; }
  .service-card { min-height: 174px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 690px) {
  .wrap { width: calc(100% - 36px); }
  .header-row { flex-wrap: wrap; gap: 11px; padding-block: 12px; min-height: auto; }
  .header nav { width: 100%; flex-wrap: wrap; gap: 7px 16px; font-size: .79rem; }
  .header nav a { padding-block: 3px; }
  .hero, .about, .contacts, .calculator, .review-grid, .catalog-list { grid-template-columns: 1fr; }
  .hero { padding-block: 35px 44px; }
  .hero-copy { gap: 17px; }
  h1 { max-width: 13ch; }
  .hero-media, .team-media, .map-media { min-height: 0; }
  .hero-media { aspect-ratio: 1.5; }
  .section-heading { display: grid; margin-bottom: 21px; }
  .about-copy { grid-row: 1; }
  .work-media { min-height: 120px; }
}
@media (max-width: 360px) {
  .service-card { padding: 12px; }
  .service-card-header h3 { font-size: 1rem; }
  .service-card-price { gap: 3px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Визуальная тема «Золушки» поверх базового шаблона. */
:root {
  --paper: #f3eee5;
  --white: #fffaf2;
  --ink: #201d19;
  --muted: #625a50;
  --line: #d9cdbd;
  --panel: #e8dfd2;
  --dark: #161819;
  --gold: #d8b47e;
  --gold-ink: #795629;
  --light-text: #f5eee3;
  --hairline: #ffffff26;
  --radius: 5px;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --width: 1220px;
}
h1, h2, h3 { font-family: var(--display); letter-spacing: -.033em; font-weight: 500; }
h2 { font-size: clamp(2.55rem, 5.1vw, 4.15rem); }
.header { color: var(--light-text); background: #101212; border-color: var(--hairline); }
.header-row { min-height: 82px; }
.brand { gap: 12px; }
.brand-mark { color: var(--gold); border: 1px solid #d8b47e70; border-radius: 2px; background: none; width: 39px; height: 39px; }
.brand-word { display: grid; line-height: 1; font-family: var(--display); font-weight: 500; font-size: 1.65rem; }
.brand-word small { margin-top: 6px; color: #ded0bd; font: 600 .56rem/1.2 var(--font); letter-spacing: .1em; text-transform: uppercase; }
.header nav { color: #ded7cc; }
.header-contact { color: var(--gold); font-weight: 620; }
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  --hero-gutter: max(36px, (100% - var(--width)) / 2);
  grid-template-columns: calc(var(--hero-gutter) + min(43vw, 545px)) minmax(0, 1fr);
  align-items: stretch;
  min-height: clamp(560px, 75vh, 710px);
  padding: 0;
  background: #141615;
  color: var(--light-text);
}
.hero-media {
  position: relative;
  grid-area: 1 / 2;
  aspect-ratio: auto;
  min-height: 0;
  overflow: hidden;
}
.hero-media img, .hero-media::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 83% 56%; }
.hero-media::after { content: ""; background: linear-gradient(90deg, #141615a0, transparent 18%), linear-gradient(0deg, #1416159e, transparent 36%); }
.hero-copy {
  grid-area: 1 / 1;
  align-content: center;
  margin: 0;
  width: auto;
  min-width: 0;
  padding: 63px clamp(24px, 3vw, 45px) 112px max(36px, (100vw - var(--width)) / 2);
  gap: 23px;
}
.hero .eyebrow { color: var(--gold); }
.hero h1 { font-size: clamp(2.95rem, 6.15vw, 6.25rem); max-width: none; line-height: 1.02; }
.hero h1 em { color: var(--gold); font-style: normal; white-space: nowrap; }
.hero-description { max-width: 41ch; color: #e0d7cb; }
.hero .text-link { color: var(--light-text); }
.hero .button-dark, .contacts .button-light, .quote .button-light { background: var(--gold); color: #20170d; }
.hero .button-dark:hover, .contacts .button-light:hover, .quote .button-light:hover { background: #e6c89c; }
.button { border-radius: 3px; }
.highlights {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 84px;
  margin-top: -43px;
  margin-bottom: 28px;
  background: #191b1b;
  color: var(--light-text);
  border: 1px solid #d8b47e36;
  border-radius: 7px;
  box-shadow: 0 12px 35px #20160c25;
}
.highlights span { padding: 16px 22px; display: flex; align-items: center; justify-content: center; gap: 14px; font-family: var(--display); font-size: clamp(1.05rem, 1.8vw, 1.32rem); }
.highlights span + span { border-left: 1px solid var(--hairline); }
.highlights i { font: normal 1.45rem/1 var(--font); color: var(--gold); }
.services { border: 0; }
.service-band { padding-top: 30px; }
.service-grid { grid-template-columns: repeat(3, 1fr); gap: 13px; }
.service-card { min-height: 153px; padding: 18px 20px; background: #1d1f1f; color: var(--light-text); border-color: #ad916745; }
.service-card:hover { background: #31302b; border-color: #b99761; }
.service-card-header h3 { font-size: clamp(1.35rem, 2.35vw, 1.85rem); }
.service-card-header span, .service-card-price span:first-child { color: var(--gold); }
.service-card p, .service-card-price span:last-child { color: #ded3c3; }
.service-card-price { border-color: var(--hairline); }
.catalog-details { border-block: none; border-bottom: 1px solid var(--line); }
.catalog-details summary { font-family: var(--display); font-size: 1.47rem; font-weight: 500; }
.catalog-details summary::after, .calculator-extras summary::after { color: var(--gold-ink); }
.full-price { margin-top: 0; }
.price-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.price-group { background: #fffaf3; border: 1px solid var(--line); padding: 16px; }
.price-group h3 { margin-bottom: 9px; }
.price-group dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(90px, auto); gap: 12px; padding: 9px 0; font-size: .83rem; }
.price-group dl > div + div { border-top: 1px solid var(--line); }
.price-group dd { color: var(--gold-ink); text-align: right; }
.source-note { margin-block: 14px; font-size: .83rem; color: var(--muted); }
.calculator-band { background: #e7ddce; }
.calculator { border-color: #beaa92; }
.quote { background: #1c1e1e; border: 1px solid #af895254; border-radius: 4px; color: var(--light-text); }
.quote .eyebrow, .quote .total output { color: var(--gold); }
.quote h3 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.quote .total output { font: 500 clamp(2.1rem, 4vw, 3.15rem)/1.08 var(--display); }
.quote-note, .quote-line dt, .quote .total span { color: #e0d4c3; }
.button-outline { border-color: #aa906d; color: var(--light-text); }
input[type="range"], input[type="checkbox"] { accent-color: #967044; }
.about-media > span { display: block; color: var(--muted); margin-top: 6px; font-size: .72rem; }
.team-media { min-height: 0; aspect-ratio: 1.5; }
.team-media img { object-position: 100% 48%; width: 145%; max-width: none; left: auto; }
.work-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.work-card { color: var(--light-text); background: #1d1f1f; border: 1px solid var(--hairline); border-radius: 5px; overflow: hidden; text-decoration: none; }
.work-card:hover .work-caption { color: var(--gold); }
.work-media { min-height: 0; border: 0; border-radius: 0; aspect-ratio: 1.5; }
.image-tag { top: auto; bottom: 9px; left: 9px; color: var(--light-text); background: #151410da; font-size: .7rem; }
.image-tag-after { left: auto; right: 9px; }
.work-caption { display: flex; align-items: center; justify-content: space-between; margin: 0; gap: 7px; padding: 13px; }
.work-caption h3 { font-size: 1.2rem; }
.work-caption span { color: var(--gold); }
.section-link { display: inline-flex; margin-top: 23px; color: var(--gold-ink); }
.review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.review-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; background: #fdf8ef; padding: 20px; }
.review-card p { font-size: .94rem; }
.review-service { color: var(--gold-ink); font-size: .7rem; letter-spacing: .08em; font-weight: 700; text-transform: uppercase; }
.review-author { margin-top: auto; font-family: var(--display); font-size: 1.23rem; text-decoration: none; }
.review-author:hover { text-decoration: underline; }
.contacts-band, .footer { color: var(--light-text); }
.contact-details dt { color: var(--gold); }
.contact-social a, .footer a { text-underline-offset: 4px; }
.map-card { position: relative; isolation: isolate; min-height: 270px; display: flex; align-items: flex-end; border: 1px solid #d8b47e60; border-radius: 5px; overflow: hidden; text-decoration: none; background: #242624; }
.map-decoration { position: absolute; inset: 0; z-index: -1; opacity: .7; background: linear-gradient(0deg, #151617, transparent 62%), repeating-linear-gradient(37deg, transparent 0 43px, #a8926744 44px 45px, transparent 46px 60px), repeating-linear-gradient(-53deg, transparent 0 56px, #a8926744 57px 59px, transparent 60px 75px); }
.map-caption { display: grid; gap: 5px; width: 100%; padding: 17px 22px; background: #1617179e; }
.map-caption b { font: 500 2.15rem/1.08 var(--display); }
.map-caption span { color: var(--gold); font-size: .87rem; }
.map-card:hover .map-caption span { text-decoration: underline; }

@media (max-width: 950px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 690px) {
  .header-row { min-height: 0; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 0; }
  .hero-copy { padding: 45px 18px 28px; }
  .hero h1 { font-size: clamp(2.85rem, 10vw, 4.5rem); }
  .hero-media { grid-area: 2 / 1; height: clamp(200px, 58vw, 350px); }
  .hero-media img { object-position: 76% 55%; }
  .hero-media::after { background: linear-gradient(0deg, #1416159e, transparent 42%); }
  .highlights { grid-template-columns: 1fr; padding: 1px 14px; margin-top: -35px; margin-bottom: 14px; }
  .highlights span { min-height: 42px; justify-content: flex-start; padding: 6px 2px; font-size: 1.06rem; }
  .highlights span + span { border-left: 0; border-top: 1px solid var(--hairline); }
  .highlights i { width: 24px; text-align: center; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .service-card { padding: 13px; min-height: 148px; }
  .service-card-header h3 { font-size: clamp(1.08rem, 4.5vw, 1.48rem); }
  .price-groups, .review-grid { grid-template-columns: 1fr; }
  .map-card { min-height: 190px; }
}
@media (max-width: 365px) {
  .work-grid { grid-template-columns: 1fr; }
  .hero .hero-actions { gap: 10px; }
}
