:root {
  color-scheme: light;
  --paper: #f9f8f4;
  --white: #fff;
  --ink: #172039;
  --muted: #4c566b;
  --blue: #203aa5;
  --deep-blue: #182e89;
  --blue-soft: #e9edfc;
  --section: #eff1f8;
  --line: #d9ddea;
  --lime: #e2ee9a;
  --radius: 15px;
  --heading: "DM Sans", "Aptos", "Arial", sans-serif;
  --body: "Inter", "Aptos", "Arial", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--body); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--heading); line-height: 1.06; margin: 0; letter-spacing: -.05em; }
p { margin: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #4865d3;
  outline-offset: 3px;
}
h1:focus, h2:focus, h3:focus { outline: none; }
.wrap { width: min(1264px, 90%); margin-inline: auto; }
.sr-only { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; z-index: 3; left: 1rem; top: .5rem; background: var(--white); color: var(--blue); padding: .5rem 1rem; transform: translateY(-180%); }
.skip:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 2; background: var(--paper); border-bottom: 1px solid #e6e5e0; }
.header-inner { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; font: 750 22px/1 var(--heading); letter-spacing: -.05em; }
.brand-city { color: var(--blue); margin-left: .18em; }
.brand-mark { width: 35px; height: 35px; border-radius: 10px; background: var(--blue); display: inline-block; position: relative; flex: none; }
.brand-mark i, .icon-sparkle i { position: absolute; display: block; clip-path: polygon(50% 0, 64% 36%, 100% 50%, 64% 64%, 50% 100%, 36% 64%, 0 50%, 36% 36%); }
.brand-mark i { inset: 9px 11px 10px 8px; background: var(--lime); }
.brand-mark i + i { inset: 7px 6px 21px 22px; background: #fff; }
nav { display: flex; align-items: center; gap: clamp(20px, 3.1vw, 42px); color: var(--muted); font-size: 14px; font-weight: 600; }
nav a, .site-footer a { padding-block: 10px; }
nav a:hover, .site-footer a:hover { color: var(--blue); }
.header-quote { justify-self: end; }

.button { min-height: 51px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; border: 1px solid transparent; border-radius: 8px; padding: 10px 19px; font-weight: 700; font-size: 15px; line-height: 1.35; text-align: center; transition: background-color .16s, color .16s, border-color .16s; }
.button span { font-size: 18px; line-height: 1; }
.button-small { min-height: 43px; padding: 8px 14px; font-size: 14px; gap: 10px; }
.button-primary { color: #fff; background: var(--blue); }
.button-primary:hover { background: #15297f; }
.button-outline { color: var(--blue); border-color: #a5b0de; background: transparent; }
.button-outline:hover { background: var(--blue-soft); border-color: var(--blue); }

.hero { display: grid; grid-template-columns: 0.88fr 1.12fr; align-items: center; gap: clamp(28px, 5vw, 75px); padding-block: 45px 55px; }
.hero-copy { padding-block: 12px; }
.eyebrow { color: var(--blue); font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.eyebrow-line { height: 2px; width: 23px; background: var(--blue); flex: none; }
.hero h1 { margin-block: 18px 19px; font-size: clamp(62px, 6.6vw, 106px); font-weight: 750; line-height: .98; letter-spacing: -.075em; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-intro { color: var(--muted); max-width: 27rem; font-size: clamp(16px, 1.48vw, 19px); line-height: 1.55; }
.hero-actions { display: flex; margin-top: 25px; }
.hero-photo { margin: 0; position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 1.31; background: #e8e2d8; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 52% center; }
.hero-photo figcaption { position: absolute; bottom: 14px; right: 14px; padding: 5px 10px; color: var(--ink); background: rgba(249, 248, 244, .96); border-radius: 6px; font-size: 11px; }

.services-section { background: var(--section); border-block: 1px solid #e7e9f2; padding-block: 48px 55px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
h2 { font-size: clamp(32px, 4.1vw, 53px); font-weight: 750; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filters button { padding: 8px 14px; min-height: 42px; color: var(--muted); border: 1px solid #cbd2e5; background: #f9faff; font-size: 14px; font-weight: 650; border-radius: 7px; }
.filters button:hover { border-color: var(--blue); color: var(--blue); }
.filters button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.service-card { display: flex; flex-direction: column; align-items: start; min-height: 242px; border-radius: var(--radius); background: var(--white); border: 1px solid #e0e4f0; padding: clamp(17px, 2vw, 26px); transition: border-color .16s, box-shadow .16s; }
.service-card:hover, .service-card:focus-within { border-color: #9aa9e0; box-shadow: 0 9px 22px #1c30760b; }
.service-icon { display: block; position: relative; width: 43px; height: 43px; margin-bottom: 15px; background: var(--blue-soft); border-radius: 10px; color: var(--blue); flex: none; }
.service-icon i { position: absolute; }
.icon-home i:nth-child(1) { width: 15px; height: 15px; border: solid currentColor; border-width: 2px 0 0 2px; top: 12px; left: 14px; rotate: 45deg; border-radius: 2px; }
.icon-home i:nth-child(2) { width: 16px; height: 13px; border: solid currentColor; border-width: 0 2px 2px; top: 18px; left: 14px; border-radius: 0 0 3px 3px; }
.icon-home i:nth-child(3) { width: 5px; height: 7px; border: solid currentColor; border-width: 1.6px 1.6px 0; bottom: 12px; left: 19px; border-radius: 2px 2px 0 0; }
.icon-sparkle i:nth-child(1) { width: 18px; height: 18px; left: 11px; top: 14px; background: currentColor; }
.icon-sparkle i:nth-child(2) { width: 10px; height: 10px; left: 24px; top: 9px; background: currentColor; }
.icon-office i:nth-child(1) { inset: 10px 11px 11px 11px; border: 2px solid currentColor; border-radius: 3px; }
.icon-office i:nth-child(2) { inset: 15px 17px 15px 17px; background: repeating-linear-gradient(to bottom,currentColor 0 2px,transparent 2px 4px); }
.icon-renovation i:nth-child(1) { top: 12px; left: 10px; width: 19px; height: 7px; border: 2px solid currentColor; border-radius: 2px; }
.icon-renovation i:nth-child(2) { top: 15px; left: 22px; width: 10px; height: 11px; border: solid currentColor; border-width: 2px 2px 2px 0; border-radius: 0 3px 3px 0; }
.icon-renovation i:nth-child(3) { top: 25px; left: 20px; width: 4px; height: 8px; background: currentColor; border-radius: 1px; }
.service-type { color: var(--blue); font-size: 12px; font-weight: 700; margin-bottom: 7px; }
.service-card h3 { font-size: clamp(20px, 2vw, 27px); letter-spacing: -.048em; }
.service-description { color: var(--muted); font-size: 14px; margin-block: 9px 13px; }
.card-link { display: inline-flex; align-items: center; gap: 9px; margin-top: auto; min-height: 36px; color: var(--blue); font-weight: 700; font-size: 14px; }
.card-link:hover, .back-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.process { padding-block: 68px 76px; }
.steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px; margin: 27px 0 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 13px; padding-top: 16px; border-top: 1px solid var(--line); }
.step-number { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-weight: 750; font-size: 13px; flex: none; }
.steps h3 { font-size: 21px; letter-spacing: -.035em; margin: 3px 0 6px; }
.steps p { color: var(--muted); font-size: 15px; }

.quote-section { background: var(--deep-blue); color: #fff; padding-block: 64px; }
.quote-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(28px, 6vw, 85px); align-items: start; }
.quote-copy { padding-top: 13px; }
.quote-copy > p { color: #e8ebff; font-size: 18px; margin-top: 13px; }
.quote-note { display: flex; align-items: start; gap: 9px; margin-top: 24px; max-width: 330px; color: #fff; font-size: 14px; border: 1px solid #7283c7; border-radius: 8px; padding: 13px; }
.quote-note span { color: var(--lime); }
form { background: var(--white); color: var(--ink); padding: clamp(18px, 3vw, 33px); border-radius: var(--radius); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 17px; }
.span-all { grid-column: 1 / -1; }
label { display: block; font-size: 14px; font-weight: 700; }
.optional { font-weight: 400; color: var(--muted); }
input, select, textarea { display: block; width: 100%; border: 1px solid #b8c0d6; border-radius: 6px; min-height: 45px; margin-top: 5px; padding: 8px 10px; color: var(--ink); background: #fff; font-size: 16px; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #646e84; }
.quote-result { margin-top: 20px; padding: 15px; background: var(--section); border: 1px solid var(--line); border-radius: 9px; }
.quote-result h3 { font-size: 23px; }
.quote-result p { margin-top: 7px; color: var(--muted); font-size: 14px; }
.quote-result pre { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); font: inherit; font-size: 14px; }
.copy-status:empty { display: none; }

.faq { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(26px, 6vw, 85px); padding-block: 68px; }
.faq-items { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 57px; padding-block: 11px; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 500; color: var(--blue); font-size: 23px; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); padding: 0 25px 15px 0; font-size: 15px; }

.detail-page { padding-block: 40px 70px; min-height: calc(100vh - 164px); }
.back-link { display: inline-flex; align-items: center; min-height: 44px; gap: 9px; color: var(--blue); font-size: 15px; font-weight: 700; }
.detail-heading { margin-top: 18px; padding: clamp(22px, 5vw, 62px); background: var(--section); border-radius: 20px; }
.detail-heading h1 { margin-block: 10px; font-size: clamp(43px, 6vw, 78px); }
.detail-heading > p:last-child { color: var(--muted); max-width: 37rem; font-size: 18px; }
.detail-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 17px; margin-top: 17px; }
.detail-panel { padding: clamp(20px, 3.7vw, 42px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.detail-panel h2 { font-size: clamp(26px, 3vw, 38px); }
.detail-panel ul { padding-left: 20px; margin: 15px 0 0; }
.detail-panel li { margin-block: 5px; }
.detail-panel p { color: var(--muted); margin-block: 15px 20px; }

.site-footer { border-top: 1px solid #e2e2de; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 15px; }
.footer-inner p, .footer-inner > a:last-child { font-size: 13px; color: var(--muted); }

@media (max-width: 1020px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card { min-height: 205px; }
  .hero { gap: 27px; }
  .hero h1 { font-size: clamp(56px, 8vw, 81px); }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 77px; }
  .header-inner { min-height: 65px; gap: 16px; }
  .wide-nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 22px; padding-block: 26px 31px; }
  .hero h1 { font-size: clamp(52px, 10vw, 75px); margin-block: 12px 14px; }
  .hero-copy { padding: 0; }
  .desktop-break { display: none; }
  .hero-photo { aspect-ratio: 1.48; border-radius: 15px; }
  .hero-actions { margin-top: 17px; }
  .section-heading { align-items: start; flex-direction: column; gap: 15px; margin-bottom: 17px; }
  .services-section, .process, .quote-section, .faq { padding-block: 37px; }
  .steps { grid-template-columns: 1fr; gap: 13px; margin-top: 16px; }
  .quote-layout, .faq, .detail-grid { grid-template-columns: 1fr; }
  .quote-copy { padding-top: 0; }
  .quote-note { margin-top: 14px; }
  .footer-inner { flex-wrap: wrap; }
}

@media (max-width: 460px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { display: flex; justify-content: space-between; gap: 8px; }
  .brand { font-size: 18px; gap: 6px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 8px; }
  .brand-mark i { inset: 7px 9px 9px 7px; }
  .brand-mark i + i { inset: 6px 5px 18px 18px; }
  .header-inner nav { display: none; }
  .header-quote { font-size: 13px; gap: 6px; }
  .hero h1 { font-size: clamp(49px, 12vw, 55px); }
  .service-grid { grid-template-columns: 1fr; gap: 10px; }
  .service-card { min-height: 0; }
  .service-icon { margin-bottom: 11px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner p { order: 3; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

.arrow { display: inline-block; position: relative; flex: none; width: 12px; height: 12px; vertical-align: -1px; }
.arrow::before, .arrow::after { content: ""; position: absolute; }
.arrow::before { width: 10px; height: 1.5px; background: currentColor; left: 1px; top: 5px; border-radius: 1px; }
.arrow::after { width: 6px; height: 6px; border: solid currentColor; border-width: 1.5px 1.5px 0 0; top: 2.5px; right: 1px; rotate: 45deg; }
.arrow-up-right { rotate: -45deg; }
.arrow-down { rotate: 90deg; }
.arrow-left { rotate: 180deg; }
.info-mark { display: grid; place-items: center; width: 15px; height: 15px; margin-top: 3px; border: 1px solid currentColor; border-radius: 50%; flex: none; font-size: 11px; line-height: 1; font-weight: bold; }

#continut:focus { outline: none; }

@media (max-width: 360px) {
  .header-quote { white-space: nowrap; padding-inline: 9px; }
}

.quote-contact { margin: 21px 0 0; padding: 0; list-style: none; }
.quote-contact li + li { margin-top: 5px; }
.quote-contact a { display: inline-block; padding-block: 5px; color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
fieldset.form-grid { min-width: 0; margin-inline: 0; padding: 0; border: 0; }
input[type="date"], input[type="time"] { min-width: 0; }
.field-help { color: var(--muted); font-size: 13px; }
.send-note { margin-bottom: 12px; }
.button .submit-label { font-size: inherit; line-height: inherit; }
#submit-quote:disabled { opacity: .7; cursor: default; }
#send-status:not(:empty) { margin-top: 8px; font-size: 14px; }

.icon-upholstery i:nth-child(1) { top: 12px; left: 13px; width: 17px; height: 13px; border: 2px solid currentColor; border-radius: 5px; }
.icon-upholstery i:nth-child(2) { top: 19px; left: 9px; width: 25px; height: 11px; border: 2px solid currentColor; border-radius: 4px; background: var(--blue-soft); }
.icon-upholstery i:nth-child(3) { top: 28px; left: 12px; width: 19px; height: 4px; border-inline: 2px solid currentColor; }

@media (min-width: 1021px) {
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  .service-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
