:root {
  color-scheme: dark;
  --paper: #111215;
  --ink: #f8f7f1;
  --muted: #bdbdb8;
  --line: #5a5b58;
  --quiet: #262729;
  --focus: #f5dd52;
  --button: #f5dd52;
  --button-ink: #1a170d;
  --field-bg: #151619;
  --error: #ffae9c;
  --button-radius: 0.22rem;
  --field-radius: 0.22rem;
  --max-width: 80rem;
}

.masthead {
  background: #0d0e10;
  border-bottom: 1px solid #303136;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 790;
  letter-spacing: 0.1em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img { object-fit: contain; }
.topbar nav { column-gap: clamp(0.9rem, 3vw, 2.3rem); }
.topbar nav a { color: #e8e7df; }

.hero {
  background: radial-gradient(ellipse at 80% 30%, #28191d, transparent 64%), #101113;
  border-bottom: 1px solid #36363a;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding-block: clamp(1.55rem, 4vw, 3.55rem);
}

.hero-copy { position: relative; padding-block: 1rem; }
.hero-copy::before {
  display: block;
  width: clamp(2.75rem, 5vw, 5.25rem);
  height: 0.24rem;
  margin-bottom: clamp(0.95rem, 2vw, 1.65rem);
  background: var(--button);
  content: '';
  transform: skewX(-22deg);
  transform-origin: left;
  animation: accent-in 750ms cubic-bezier(.2, .7, .2, 1) both;
}

.hero h1 {
  font-size: clamp(2.95rem, 5.15vw, 5.1rem);
  font-weight: 800;
  letter-spacing: -0.078em;
  line-height: 0.98;
  animation: enter 680ms cubic-bezier(.2, .7, .2, 1) both;
}

.hero h1 span { display: block; color: #f5dd52; }
.hero-copy p {
  max-width: 27ch;
  margin-block: 1.28rem 1.55rem;
  color: #dddbd3;
  font-size: clamp(1rem, 1.62vw, 1.26rem);
  animation: enter 680ms 90ms cubic-bezier(.2, .7, .2, 1) both;
}

.hero-button {
  gap: 0.9rem;
  min-height: 3.15rem;
  padding-inline: clamp(0.8rem, 1.6vw, 1.35rem);
  animation: enter 680ms 180ms cubic-bezier(.2, .7, .2, 1) both;
}

.hero-button span, .service-copy a span { transition: transform 180ms ease; }
.hero-button:hover span { transform: translateY(0.16rem); }
.hero-image {
  position: relative;
  aspect-ratio: 1.38;
  overflow: hidden;
  isolation: isolate;
  background: #262224;
  border: 1px solid #555052;
  border-radius: 0.32rem;
  box-shadow: 0 1.2rem 4rem #0006;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-position: 54% 54%;
  animation: photo-in 1.15s cubic-bezier(.22, .65, .25, 1) both;
}

.hero-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, transparent 26%, #fff0 43%, #fff5 50%, #fff0 57%, transparent 74%);
  mix-blend-mode: screen;
  pointer-events: none;
  content: '';
  opacity: 0;
  animation: scan 1.45s 240ms ease-in-out both;
}

@keyframes enter {
  from { opacity: 0.45; transform: translateY(0.85rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes accent-in {
  from { transform: skewX(-22deg) scaleX(0.25); }
  to { transform: skewX(-22deg) scaleX(1); }
}

@keyframes photo-in {
  from { transform: scale(1.055); filter: brightness(0.72); }
  to { transform: scale(1); filter: brightness(1); }
}

@keyframes scan {
  from { opacity: 0; transform: translateX(-100%); }
  35%, 60% { opacity: 0.73; }
  to { opacity: 0; transform: translateX(100%); }
}

h2 {
  font-size: clamp(2.2rem, 4.25vw, 4.05rem);
  letter-spacing: -0.067em;
  font-weight: 760;
  line-height: 1.02;
  text-wrap: balance;
}

.estimate, .service-section { padding-block: clamp(2.2rem, 5.1vw, 4.7rem); }
.estimate h2, .service-section h2 { margin-bottom: clamp(1.25rem, 2.4vw, 2.1rem); }
.estimate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr);
  align-items: start;
  gap: clamp(0.8rem, 2.4vw, 1.85rem);
}

.options, .result {
  min-width: 0;
  padding: clamp(1rem, 2.75vw, 2rem);
  border: 1px solid #3b3d41;
  border-radius: 0.45rem;
}

.options { background: #191a1d; }
.options fieldset + fieldset { margin-top: 1.55rem; }
.options legend { color: #f8f7ef; font-size: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.62rem; margin-top: 0.65rem; }
.chips .choice { max-width: 100%; }
.chips .choice > span {
  display: grid;
  min-height: 2.8rem;
  place-items: center;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.24rem;
  line-height: 1.2;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.chips .choice:hover > span { background: #2b2c2e; }
.chips .choice input:checked + span {
  border-color: var(--button);
  color: var(--button);
  background: #2c281a;
  box-shadow: inset 0 -2px var(--button);
}

.official { display: inline-flex; min-height: 2.75rem; align-items: center; gap: 0.4rem; margin-top: 0.85rem; }
.official span { color: var(--button); }
.result {
  border-top: 3px solid var(--button);
  background: radial-gradient(ellipse at 0 0, #322b19, transparent 78%), #1a1b1e;
}

.price-summary { padding-bottom: 0.7rem; }
#price-context {
  min-height: 2.6rem;
  color: #dedcd1;
  font-size: 0.9rem;
  line-height: 1.35;
}

.price-value {
  color: var(--button);
  font-size: clamp(2.35rem, 4.5vw, 4.45rem);
  line-height: 1.02;
  font-weight: 790;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.071em;
  white-space: nowrap;
}

.result > label { display: block; margin: 1rem 0 0.45rem; font-size: 0.9rem; font-weight: 680; }
.result .actions { margin-top: 0.75rem; }
.result .button { font-size: 0.875rem; }
.result .copy-status:empty { min-height: 0; margin: 0; }
.service-section { border-top: 1px solid #393b3e; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.service-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #3b3d41;
  border-radius: 0.4rem;
  background: #191a1d;
}

.service-photo { aspect-ratio: 1.71; overflow: hidden; background: #252426; }
.service-photo img { width: 100%; height: 100%; transition: transform 400ms cubic-bezier(.2, .7, .2, 1); }
.service-card:hover img, .service-card:focus-within img { transform: scale(1.045); }
.service-copy { padding: 1rem 1.15rem 1.2rem; }
.service-copy h3 { margin-bottom: 0.46rem; font-size: clamp(1.15rem, 1.65vw, 1.4rem); letter-spacing: -0.035em; line-height: 1.17; }
.service-copy p { color: var(--muted); }
.service-copy a { display: inline-flex; min-height: 2.75rem; align-items: center; gap: 0.45rem; margin-top: 0.35rem; color: var(--button); }
.service-copy a:hover span { transform: translate(0.1rem, -0.1rem); }

.contact-strip {
  border-block: 1px solid #3b3d41;
  background: linear-gradient(110deg, #27241b, #1c1d20 65%);
}

.contacts { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.2rem; padding-block: clamp(1.9rem, 4vw, 3.4rem); }
.contacts h2 { margin-bottom: 0.65rem; font-size: clamp(2.05rem, 3.6vw, 3.4rem); }
.contacts p { color: var(--muted); }
.footer { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; justify-content: space-between; padding-block: 1.15rem; color: var(--muted); font-size: 0.875rem; }

@media (max-width: 56rem) {
  .hero-layout, .estimate-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-layout { gap: 0.9rem; }
  .hero-copy { padding-block: 0; }
  .hero h1 { font-size: clamp(2.8rem, 8.2vw, 4.65rem); }
  .hero-image { aspect-ratio: 2.05; }
}

@media (max-width: 43rem) {
  .topbar { flex-wrap: wrap; column-gap: 0.9rem; row-gap: 0; min-height: auto; padding-block: 0.55rem 0.18rem; }
  .topbar nav { column-gap: clamp(0.8rem, 4vw, 1.4rem); }
  .brand img { width: 38px; height: 36px; }
  .hero h1 { font-size: clamp(2.25rem, 10.2vw, 3.6rem); }
  .hero-copy p { margin-block: 0.85rem 1rem; }
  .hero-image { aspect-ratio: 1.65; }
  .hero-image img { object-position: 60% 54%; }
  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .service-copy { padding-inline: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-button:hover span, .service-card:hover img,
  .service-card:focus-within img, .service-copy a:hover span { transform: none; }
}
