:root {
  color-scheme: light;
  --paper: #f6f5f1;
  --surface: #fcfbf8;
  --ink: #202522;
  --muted: #575d57;
  --line: #d9d8d0;
  --brass: #ae8b53;
  --bronze: #76582d;
  --dark: #232b27;
  --radius: 6px;
  --display: Georgia, "Times New Roman", serif;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--bronze); outline-offset: 4px; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
figure, h1, h2, h3, p, dl, dd { margin: 0; }
.wrap { width: min(100% - 80px, 1250px); margin-inline: auto; }
.header {
  min-height: 87px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.13rem;
  font-weight: 800;
  letter-spacing: .015em;
  width: fit-content;
  white-space: nowrap;
}
.brand-accent { color: var(--bronze); }
.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--brass);
  border-radius: 3px;
  background: transparent;
}
.mark i { display: block; width: 3px; height: 16px; background: var(--ink); transform: skew(-29deg); }
nav { display: flex; gap: clamp(22px, 3.5vw, 55px); color: var(--muted); font-size: .95rem; }
nav a:hover, .text-link:hover { color: var(--bronze); }
.button {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  width: fit-content;
  text-align: center;
  padding: 11px 20px;
  border-radius: 3px;
  border: 1px solid transparent;
  font-size: .94rem;
  font-weight: 700;
  cursor: pointer;
}
.button-dark { background: var(--ink); color: #fff; }
.button-dark:hover { background: #39453d; }
.button-accent { background: var(--dark); color: var(--paper); }
.button-accent:hover { background: #39453d; }
.hero {
  display: grid;
  grid-template-columns: .98fr 1.02fr;
  align-items: stretch;
  gap: clamp(24px, 5vw, 72px);
  padding-block: clamp(32px, 5vw, 68px) 0;
}
.hero-copy { padding-block: clamp(28px, 5vw, 74px); align-self: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--bronze);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.location { flex: 0 0 24px; height: 1px; background: var(--brass); }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1; letter-spacing: -.055em; }
h1 { margin-top: 25px; font-size: clamp(3.5rem, 7.2vw, 7rem); }
h1 em { color: var(--bronze); font-weight: inherit; }
.lead { max-width: 34ch; margin-top: 25px; font-size: clamp(1.06rem, 1.55vw, 1.3rem); color: var(--muted); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 24px; margin-top: 29px; }
.text-link { font-size: .94rem; text-decoration: underline; text-underline-offset: 5px; }
.hero-gallery {
  display: grid;
  grid-template: repeat(2, minmax(0, 1fr)) / minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(5px, .7vw, 10px);
  height: clamp(425px, 43vw, 560px);
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--line);
}
.hero-gallery img { min-width: 0; min-height: 0; }
.gallery-main { grid-row: span 2; object-position: 48% 42%; }
.gallery-accent { object-position: 50% 56%; }
.gallery-moldings { object-position: 50% 62%; }
.section { scroll-margin-top: 20px; }
.services { padding-block: clamp(62px, 8vw, 112px); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 30px; }
h2 { font-size: clamp(2.55rem, 4.5vw, 4.6rem); }
.section-heading p { color: var(--muted); max-width: 36ch; }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 24px); }
.service { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-top-color: var(--brass); border-radius: var(--radius); padding: clamp(22px, 3.25vw, 42px); }
.service-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
h3 { font-size: clamp(1.34rem, 2.3vw, 2rem); font-weight: 650; line-height: 1.15; letter-spacing: -.025em; }
.service > p { color: var(--muted); margin-top: 14px; margin-bottom: 24px; max-width: 45ch; }
.service-icon { width: 42px; height: 42px; display: grid; place-items: center; flex-shrink: 0; border: 1px solid #e1d7c6; border-radius: 3px; color: var(--bronze); }
.layers::before { content: ""; width: 18px; height: 14px; border-block: 2px solid; transform: skewY(-20deg); background: linear-gradient(currentColor,currentColor) center / 100% 2px no-repeat; }
.spray::before { content: ""; width: 18px; height: 6px; border-radius: 2px; background: currentColor; transform: translate(-2px, -2px) rotate(-13deg); box-shadow: -6px 5px 0 -1px currentColor; }
.rates { margin-top: auto; }
.rates div { display: flex; justify-content: space-between; gap: 12px; padding-block: 10px; border-top: 1px solid var(--line); }
.rates dd { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rate-note { margin-top: 16px; color: var(--muted); }
.extra-rates { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.extra-rates > summary { padding: 16px; font-weight: 750; cursor: pointer; }
.extra-rates table { width: 100%; border-collapse: collapse; }
.extra-rates th, .extra-rates td { padding: 10px clamp(8px, 2vw, 16px); border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.extra-rates tbody th { font-weight: 500; }
.extra-rates td { white-space: nowrap; }
.extra-rates thead th:last-child, .extra-rates td:last-child { text-align: right; }
.extra-rates .rate-group th { background: #eeebe3; font-weight: 700; }
.extra-rates td.rate-status { width: 8ch; white-space: normal; color: var(--muted); }
.extra-rates > p { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--muted); }
.rate-description summary { color: var(--ink); cursor: pointer; }
.rate-description summary::marker { color: var(--bronze); }
.rate-description summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.rate-description p { margin-top: 7px; color: var(--muted); font-size: .9rem; }
.process { background: var(--dark); color: var(--paper); }
.process-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: clamp(28px, 7vw, 100px); padding-block: clamp(66px, 8vw, 112px); }
.process ol { list-style: none; padding: 0; margin: 26px 0 0; }
.process li { position: relative; padding: 18px 0 18px 23px; border-top: 1px solid #58605a; }
.process li::before { content: ""; position: absolute; top: 29px; left: 1px; width: 10px; height: 1px; background: var(--brass); }
.process li h3, .acceptance h3 { font-size: 1.24rem; }
.process li p, .acceptance p { color: #d9ddd7; margin-top: 5px; }
.acceptance { margin-top: 12px; padding: 14px 0 14px 20px; border-left: 1px solid var(--brass); }
.detail-image { position: relative; min-height: 330px; overflow: hidden; border-radius: var(--radius); background: #626e56; }
.detail-image img { position: absolute; inset: 0; object-position: center 58%; }
.detail-image figcaption { position: absolute; inset: auto auto 12px 14px; padding: 5px 9px; font-size: .875rem; background: var(--dark); border-radius: 5px; }
.estimate { display: grid; grid-template-columns: .75fr 1.25fr; align-items: start; gap: clamp(25px, 5.5vw, 74px); padding-block: 86px; }
.estimate-intro p { color: var(--muted); margin-top: 18px; max-width: 35ch; }
.calculator { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.calculator form { padding: clamp(15px, 2.5vw, 28px); display: grid; grid-template-columns: 1fr minmax(85px, 25%); gap: 10px 14px; align-items: center; }
.calculator label { font-weight: 650; }
.calculator label span { font-size: .88rem; font-weight: 400; color: var(--muted); white-space: nowrap; margin-inline-start: 4px; }
.calculator input[type="number"] { min-width: 0; width: 100%; min-height: 44px; padding: 8px 10px; color: var(--ink); border: 1px solid #aeb0a7; border-radius: 3px; background: #fff; }
.calculator input:invalid { border-color: #a52b32; }
.estimate-modes { grid-column: 1 / -1; display: grid; gap: 5px; min-width: 0; margin: 0 0 8px; padding: 0 0 10px; border: 0; border-bottom: 1px solid var(--line); }
.estimate-modes legend { margin-bottom: 8px; padding: 0; font-weight: 650; }
.estimate-modes label { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0 9px; min-height: 40px; padding: 6px 8px; border: 1px solid transparent; border-radius: 3px; cursor: pointer; }
.estimate-modes label:has(input:checked) { border-color: var(--line); background: #eeebe3; }
.estimate-modes input { width: 17px; height: 17px; margin: 0; accent-color: var(--bronze); }
.estimate-modes small { grid-column: 2; color: var(--muted); font-weight: 400; }
.surface-rate { display: block; color: var(--muted); font-weight: 400; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; white-space: nowrap; clip-path: inset(50%); }
.calculator-extras { grid-column: 1 / -1; min-width: 0; margin: 12px 0 0; padding: 12px 0 0; border: 0; border-top: 1px solid var(--line); }
.calculator-extras legend { padding: 0 8px 0 0; font-weight: 650; }
.extra-picker { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.extra-picker select {
  appearance: none;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 28px 8px 10px;
  border: 1px solid #aeb0a7;
  border-radius: 3px;
  color: var(--ink);
  background: linear-gradient(45deg, transparent 50%, currentColor 50%) right 15px center / 5px 5px no-repeat,
    linear-gradient(135deg, currentColor 50%, transparent 50%) right 10px center / 5px 5px no-repeat #fff;
  font: inherit;
}
.button-outline { min-height: 44px; padding: 8px 12px; border-color: #aeb0a7; background: transparent; color: var(--ink); }
.button-outline:hover { background: #eeebe3; }
.button-outline:disabled { opacity: .58; cursor: default; }
.extra-picker-note { margin-top: 7px; color: var(--muted); font-size: .875rem; }
.extra-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(68px, 23%) auto; gap: 4px 10px; align-items: center; padding-top: 12px; }
.extra-row[hidden] { display: none; }
.extra-price { display: block; color: var(--muted); font-weight: 400; }
.extra-row-description { grid-column: 1 / -1; color: var(--muted); font-size: .875rem; }
.extra-row button { min-height: 44px; padding: 4px 0; border: 0; background: transparent; color: var(--bronze); font-size: .875rem; text-decoration: underline; cursor: pointer; }
.calc-result { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: start; background: #eeebe3; padding: clamp(15px, 2.5vw, 28px); }
.calc-result p, .calc-result small { color: #494a40; }
.calc-result small { font-size: .875rem; }
.calc-result output { display: block; min-width: 0; font-family: var(--display); font-size: clamp(2rem, 5vw, 3.5rem); font-variant-numeric: tabular-nums; font-weight: 400; line-height: 1.1; letter-spacing: -.035em; overflow-wrap: anywhere; }
.total-part { display: inline-block; max-width: 100%; }
#calc-note { max-width: 56ch; }
.calc-result button:disabled { cursor: default; opacity: .62; }
.copy-status { grid-column: 1 / -1; font-size: .875rem; }
.copy-status:empty { display: none; }
.contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px 36px;
  margin-bottom: clamp(48px, 7vw, 86px);
  padding: clamp(24px, 5vw, 60px);
  border: 1px solid var(--dark);
  border-radius: var(--radius);
  background: var(--dark);
  color: var(--paper);
}
.contact-name { margin-top: 16px; font-size: 1.15rem; font-weight: 750; }
.contact-detail { max-width: 46ch; margin-top: 6px; color: #d9ddd7; }
.contact-phone { display: block; width: fit-content; margin-bottom: 12px; font-size: 1.25rem; font-weight: 650; white-space: nowrap; }
.contact-phone:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-phone:focus-visible { outline-color: #e1cda4; }
.contact-actions .button { background: #d0b782; color: #202522; }
.contact-actions .button:hover { background: #e1cda4; }
.contact-actions .button:focus-visible { outline-color: #e1cda4; }
.contact-actions p { margin-top: 6px; color: #d9ddd7; font-size: .9rem; }
.footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 83px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding-block: 15px; }
.footer p { color: var(--muted); font-size: .93rem; }
@media (max-width: 1050px) {
  .hero-gallery { height: clamp(345px, 44vw, 460px); }
  .estimate { grid-template-columns: .8fr 1.2fr; gap: 28px; }
}
@media (max-width: 850px) {
  .wrap { width: min(100% - 40px, 1250px); }
  .hero { gap: 18px; padding-top: 27px; }
  .header nav { gap: 16px; }
  .estimate { grid-template-columns: 1fr; padding-block: 64px; }
  .services { padding-block: 55px 64px; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 32px); }
  .header { min-height: 68px; gap: 9px; }
  .header nav { display: none; }
  .header .button { min-height: 42px; padding-inline: 8px; font-size: .875rem; }
  .wordmark { gap: 6px; font-size: .99rem; }
  .mark { width: 28px; height: 28px; }
  .hero, .service-grid, .process-inner { grid-template-columns: 1fr; }
  .hero-copy { padding-block: 8px 9px; }
  .hero-gallery { height: auto; aspect-ratio: 1.12; }
  .section-heading { display: grid; }
  .process-inner { padding-block: 48px; }
  .detail-image { min-height: 260px; }
  .hero-actions { margin-top: 23px; }
}
@media (max-width: 390px) {
  .header .button { max-width: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
/* Calculation and compact-screen safeguards. */
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 3; transform: translateY(-160%); padding: 10px 16px; background: var(--ink); color: #fff; }
.skip-link:focus { transform: none; }
.narrow-surfaces { grid-column: 1 / -1; min-width: 0; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 3px; }
.narrow-surfaces > summary { cursor: pointer; min-height: 44px; padding-block: 10px; font-weight: 650; }
.narrow-surfaces p, .calc-noscript { color: var(--muted); font-size: .9rem; }
.narrow-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(75px, 25%); gap: 10px 14px; align-items: center; margin-top: 12px; }
.calc-contact, #estimate-copy-fallback { grid-column: 1 / -1; }
.calc-contact { display: inline-flex; align-items: center; width: fit-content; min-height: 44px; }
#estimate-copy-fallback { width: 100%; min-height: 9rem; font: inherit; }
.calc-noscript { padding: 12px 16px; }
.estimate-modes label { min-height: 44px; }
@media (max-width: 650px) {
  .extra-rates table { table-layout: fixed; }
  .extra-rates thead th:nth-child(2) { width: 4.4rem; }
  .extra-rates thead th:nth-child(3) { width: 6rem; }
  .extra-rates th, .extra-rates td { padding-inline: 8px; }
  .extra-rates td { white-space: normal; }
  .extra-rates tbody th { overflow-wrap: anywhere; }
  .extra-picker { grid-template-columns: minmax(0, 1fr); }
  .extra-picker .button { width: 100%; }
  .extra-row { grid-template-columns: minmax(0, 1fr) minmax(72px, 24%); }
  .extra-row > label { overflow-wrap: anywhere; }
  .extra-row button { grid-column: 2; grid-row: 2; }
  .extra-row-description { grid-column: 1; grid-row: 2; }
  .header .button { min-height: 44px; }
}
@media (max-width: 360px) {
  h1 { font-size: clamp(2.6rem, 13vw, 3.2rem); }
  .extra-rates thead th:nth-child(2) { width: 3.8rem; }
  .extra-rates thead th:nth-child(3) { width: 5.3rem; }
}
@media (max-width: 760px) {
  .header nav { display: none; }
}
@media (max-width: 360px) {
  .extra-rates thead th:nth-child(2) { width: 3.15rem; }
  .extra-rates thead th:nth-child(3) { width: 4.8rem; }
}
.materials-estimate { padding: clamp(15px, 2.5vw, 28px); border-top: 1px solid var(--line); background: var(--surface); }
.materials-estimate h3 { font-size: clamp(1.22rem, 2.4vw, 1.65rem); margin-bottom: 8px; }
.materials-estimate p { color: var(--muted); font-size: .9rem; }
.materials-estimate dl { margin-top: 12px; }
.materials-estimate dl > div:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 36%); gap: 8px 12px; align-items: start; padding-block: 9px; border-top: 1px solid var(--line); }
.materials-estimate dt { font-weight: 650; }
.materials-estimate dt small { display: block; color: var(--muted); font-size: .875rem; font-weight: 400; }
.materials-estimate dd { color: var(--ink); text-align: right; overflow-wrap: anywhere; font-weight: 750; font-variant-numeric: tabular-nums; }
#materials-empty { margin-top: 9px; font-weight: 650; }
.material-disclaimer { margin-top: 9px; }
.glass-options { margin-top: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.glass-options label { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; cursor: pointer; }
.glass-options input { width: 18px; height: 18px; flex-shrink: 0; margin: 0; accent-color: var(--bronze); }
.glass-toggle, .glass-options legend { font-weight: 650; }
#glass-method { min-width: 0; margin: 3px 0 0; padding: 0; border: 0; }
#glass-method legend { padding: 0; }
#glass-method label { margin-right: 16px; }
.glass-note { padding-bottom: 4px; }
.service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-complex { background: #eeebe3; }
@media (max-width: 1050px) and (min-width: 651px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-complex { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
  .service-grid { grid-template-columns: 1fr; }
}
.calc-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
#telegram-estimate[hidden] { display: none; }
#telegram-estimate-note { grid-column: 1 / -1; }
.calc-actions .button { min-height: 44px; margin: 0; }
@media (max-width: 460px) {
  .calc-actions .button { width: 100%; }
}
