* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--text); font: 16px/1.5 "Segoe UI", Arial, sans-serif; }
.light {
  color-scheme: light;
  --page: #f7f8f7; --surface: #fff; --text: #242c2b; --muted: #525e5a;
  --line: #dbe3df; --accent: #176a55; --on-accent: #fff; --radius: 8px;
}
.dark {
  color-scheme: dark;
  --page: #101215; --surface: #191d22; --text: #f5f6f7; --muted: #b6bec8;
  --line: #343a42; --accent: #f8ac30; --on-accent: #24190a; --radius: 12px;
  isolation: isolate;
  min-height: 100vh;
}
.dark::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(90deg, #101215f0 0%, #101215c9 37%, #10121536 80%), url('assets/hero.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.wrap { width: min(1088px, calc(100% - 48px)); margin-inline: auto; }
header { border-bottom: 1px solid var(--line); background: var(--surface); }
.header, .brand, .actions { display: flex; align-items: center; gap: 12px; }
.header { justify-content: space-between; min-height: 66px; }
.brand { font-size: 1.22rem; font-weight: 750; gap: 9px; }
.mark {
  display: grid; place-items: center; width: 32px; height: 32px; color: var(--on-accent);
  background: var(--accent); border-radius: 7px; font-size: 1.05rem; line-height: 1;
}
.phone { text-align: right; font-weight: 650; line-height: 1.25; }
.phone small { display: block; color: var(--muted); font-size: .75rem; font-weight: 400; }
.hero { display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; gap: 32px; padding-block: 28px; }
h1, h2, h3, p, ul { margin: 0; }
h1 { max-width: 14ch; font-size: clamp(2.1rem, 4.2vw, 3.25rem); line-height: 1.08; letter-spacing: -.052em; text-wrap: balance; }
.hero p { margin-block: 12px 18px; color: var(--muted); }
.actions button {
  background: var(--accent); color: var(--on-accent); min-height: 46px; padding: 9px 20px;
  border: 1px solid transparent; border-radius: 7px; font: inherit; font-weight: 700;
}
.actions .secondary { border-color: var(--line); background: var(--surface); color: var(--text); }
.picture { min-height: 246px; border-radius: var(--radius); border: 1px solid var(--line); background-repeat: no-repeat; }
.light .picture { background-image: url('assets/workshop.png'); background-position: left 58%; background-size: 300% auto; }
.dark header { background: #191d22bc; }
.dark .hero {
  grid-template-columns: minmax(0, 1fr);
  min-height: clamp(320px, 37vw, 430px);
  border-bottom: 1px solid var(--line);
}
.dark .hero-copy { max-width: 530px; }
.dark .services > :is(h2, p) { text-shadow: 0 1px 10px #101215, 0 1px 3px #101215; }
.services { padding: 16px 0 34px; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.035em; }
.pricing-note { margin: 2px 0 14px; color: var(--muted); font-size: .9rem; }
.catalog { padding: 0; list-style: none; display: grid; }
.catalog li { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-width: 0; padding: 13px 15px; }
.catalog h3 { font-size: 1rem; line-height: 1.25; }
.catalog p { font-size: .83rem; color: var(--muted); margin-top: 3px; }
.catalog strong { color: var(--accent); white-space: nowrap; font-size: .9rem; }
.service-choice { display: none; }
.light .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.light .catalog li:nth-child(odd) { border-right: 1px solid var(--line); }
.light .catalog li:nth-child(n+3) { border-top: 1px solid var(--line); }
.dark .catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.dark .catalog li {
  align-items: flex-start;
  flex-direction: column;
  background: #191d22c4;
  backdrop-filter: blur(3px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.frame-page { background: #e5e8e9; color: #273238; padding: 10px; text-align: center; }
.frame-page p { margin: 0 0 8px; font-size: .9rem; }
.frame-page iframe { display: block; width: min(390px, 100%); height: calc(100dvh - 46px); min-height: 500px; margin: auto; border: 0; border-radius: 9px; background: #fff; }
.dark-frame {
  display: grid;
  justify-items: center;
  align-items: safe center;
  min-height: 100vh;
  padding: 14px 0;
  background: #111418;
}
.dark-frame iframe {
  width: 390px;
  height: 844px;
  border-radius: 12px;
  background: #101215;
  box-shadow: 0 0 0 1px #343a42;
}
@media (max-width: 640px) {
  .dark-frame { display: block; min-height: 0; padding: 0; }
  .dark-frame iframe { width: 100%; height: var(--dark-viewport, 100dvh); min-height: 0; border-radius: 0; box-shadow: none; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .header { min-height: 58px; }
  .brand { font-size: 1.05rem; }
  .phone { font-size: .91rem; }
  .hero { grid-template-columns: 1fr; gap: 14px; padding-block: 19px 16px; }
  h1 { font-size: clamp(1.95rem, 8.4vw, 2.5rem); }
  .hero p { font-size: .94rem; margin-block: 8px 12px; }
  .actions { gap: 8px; }
  .actions button { flex: 1 1 0; padding-inline: 10px; }
  .picture { min-height: 135px; }
  .dark::before {
    background-image: linear-gradient(180deg, #10121591 0%, #101215cf 22%, #101215ba 34%, #10121530 55%, #101215aa 82%, #101215d9 100%), url('assets/hero.png');
    background-position: center, 74% center;
  }
  .dark .hero { align-items: start; min-height: 0; }
  .services { padding-top: 10px; }
  .light .catalog, .dark .catalog { grid-template-columns: 1fr; }
  .light .catalog li:nth-child(odd) { border-right: 0; }
  .light .catalog li:nth-child(n+2) { border-top: 1px solid var(--line); }
  .dark .catalog li { position: relative; flex-direction: row; align-items: center; }
  .dark .service-choice {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .dark .actions button {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: transform 180ms ease-out, background-color 180ms ease-out,
      border-color 180ms ease-out, box-shadow 180ms ease-out, color 180ms ease-out;
  }
  .dark .actions button:active {
    transform: translateY(2px) scale(.975);
    transition-duration: 70ms;
  }
  .dark .actions button:active {
    background-color: #ffd489;
    border-color: #ffd489;
    box-shadow: 0 0 12px #f8ac3060;
  }
  .dark .actions .secondary:active {
    background-color: #694923;
    border-color: var(--accent);
    color: #fff4df;
  }
  .dark .actions button:focus-visible,
  .dark .catalog li:has(.service-choice:focus-visible) {
    outline: 2px solid var(--muted);
    outline-offset: 3px;
  }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .dark .actions button { transition: none !important; }
  .dark .actions button:active { transform: none; }
}
