:root {
  --paper: #f3eee4;
  --paper-deep: #e7e0d1;
  --white: #fffdf8;
  --ink: #1c1914;
  --muted: #5c564c;
  --line: rgba(28, 25, 20, 0.12);
  --pine: #1e4a38;
  --pine-deep: #143528;
  --brass: #e2a93b;
  --brass-deep: #b6831d;
  --stamp: #b8432f;
  --ok: #1f7a4d;
  --shadow: 0 18px 50px rgba(20, 40, 30, 0.12);
  --radius: 22px;
  --header: 76px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Unbounded", "Manrope", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

body.is-draft-phone {
  padding-top: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.narrow {
  width: min(760px, calc(100% - 32px));
}

.draft-banner {
  display: none;
  background: #3d2a12;
  color: #ffe7bf;
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
}

body.is-draft-phone .draft-banner {
  display: block;
}

.draft-banner code {
  font-family: Consolas, monospace;
  color: #fff;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(243, 238, 228, 0.86);
  backdrop-filter: blur(14px);
}

.header.is-stuck {
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 20px;
}

.logo img {
  width: 36px;
  height: 36px;
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: 12px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
}

.nav a:hover {
  color: var(--ink);
}

.header-phone {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hours {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.header-number {
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 800;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-brass {
  background: var(--brass);
  color: #241c0c;
}

.btn-brass:hover {
  background: #efc15e;
}

.btn-ink {
  background: var(--ink);
  color: var(--paper);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 253, 248, 0.35);
}

.btn-line {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}

.hero {
  background:
    radial-gradient(circle at 90% 10%, rgba(226, 169, 59, 0.22), transparent 28%),
    linear-gradient(165deg, var(--pine) 0%, var(--pine-deep) 70%);
  color: #f6f1e6;
  padding: 42px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--brass);
}

.hero h1,
.section h2,
.legal h1 {
  font-family: var(--display);
  letter-spacing: -0.04em;
  line-height: 1.08;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 5vw, 64px);
}

.lead {
  margin: 0 0 18px;
  font-size: 18px;
  max-width: 38rem;
  color: rgba(246, 241, 230, 0.86);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(246, 241, 230, 0.78);
  font-weight: 600;
  font-size: 14px;
}

.ticket {
  background: var(--white);
  color: var(--ink);
  border-radius: 28px;
  padding: 26px 26px 22px;
  box-shadow: var(--shadow);
  position: relative;
}

.ticket-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px dashed var(--ok);
  color: var(--ok);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(31, 122, 77, 0.15);
}

.ticket h2 {
  font-family: var(--display);
  font-size: 28px;
  margin: 8px 0 16px;
  letter-spacing: -0.04em;
}

.ticket-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ticket-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-weight: 600;
}

.ticket-list strong {
  font-weight: 800;
  white-space: nowrap;
}

.free {
  color: var(--ok);
}

.ticket .btn {
  width: 100%;
  margin-top: 16px;
}

.section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.section h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 46px);
}

.section-note {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 38rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tab {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
  color: var(--muted);
}

.tab.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.price-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 8px 22px;
  box-shadow: 0 1px 0 var(--line);
}

.prices {
  list-style: none;
  margin: 0;
  padding: 0;
}

.prices li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.prices li:last-child {
  border-bottom: 0;
}

.prices span {
  font-weight: 600;
}

.prices strong {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fine {
  color: var(--muted);
  font-size: 14px;
  margin: 14px 0 0;
}

.parts-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
}

.catalog {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.part {
  background: var(--white);
  border-radius: 18px;
  padding: 16px 16px 14px;
  border: 1px solid transparent;
}

.part strong {
  display: block;
  margin-bottom: 4px;
}

.part p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.quote {
  background: var(--pine);
  color: #f6f1e6;
  border-radius: 28px;
  padding: 26px;
}

.quote h3 {
  font-family: var(--display);
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  font-size: 28px;
}

.quote p {
  margin: 0 0 16px;
  color: rgba(246, 241, 230, 0.8);
}

.anchors {
  list-style: none;
  margin: 0;
  padding: 0;
}

.anchors li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 253, 248, 0.14);
  font-weight: 700;
}

.form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

.form input,
.form textarea {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255, 253, 248, 0.95);
  color: var(--ink);
}

.form textarea {
  min-height: 84px;
  resize: vertical;
}

.request-result {
  margin-top: 14px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 16px;
  padding: 14px;
}

.request-result pre {
  white-space: pre-wrap;
  font-family: var(--font);
  margin: 0 0 10px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  background: var(--white);
  border-radius: 18px;
  padding: 18px;
  min-height: 160px;
}

.steps em {
  font-family: var(--display);
  font-style: normal;
  color: var(--brass-deep);
  font-size: 13px;
}

.steps h3 {
  margin: 8px 0;
  font-size: 18px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.review {
  background: var(--white);
  border-radius: 18px;
  padding: 18px;
  margin: 0;
}

.review p {
  margin: 0 0 16px;
}

.review footer {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.faq {
  display: grid;
  gap: 8px;
}

.faq-item {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
}

.faq-item button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 16px 18px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.faq-item button::after {
  content: "+";
  color: var(--muted);
  font-weight: 500;
}

.faq-item.is-open button::after {
  content: "–";
}

.faq-answer {
  padding: 0 18px 16px;
  color: var(--muted);
  margin: 0;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-card,
.map-card {
  background: var(--white);
  border-radius: 24px;
  padding: 26px;
}

.contact-card a.big-phone {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.04em;
  text-decoration: none;
  display: inline-block;
  margin: 8px 0;
}

.map-card {
  background: var(--ink);
  color: var(--paper);
}

.map-card p {
  color: rgba(243, 238, 228, 0.78);
}

.footer {
  padding: 28px 0 110px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 14px;
}

.footer a {
  color: var(--ink);
  font-weight: 700;
}

.sticky-call {
  display: none;
}

.legal {
  padding: 48px 0 80px;
}

.legal h1 {
  font-size: 42px;
  margin: 0 0 12px;
}

.legal h2 {
  margin: 28px 0 8px;
  font-size: 22px;
}

.legal a {
  color: var(--pine);
  font-weight: 800;
}

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    margin: 0;
    width: auto;
    background: var(--white);
    flex-direction: column;
    padding: 8px 8px 14px;
    gap: 0;
    box-shadow: var(--shadow);
  }

  .nav a {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .nav.is-open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hours,
  .header-number {
    display: none;
  }

  .hero-grid,
  .parts-grid,
  .contacts-grid,
  .steps,
  .reviews {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }

  .sticky-call {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 30;
    gap: 8px;
    transform: translateY(160%);
    visibility: hidden;
  }

  .sticky-call.is-visible {
    transform: none;
    visibility: visible;
  }

  .sticky-call .btn {
    flex: 1;
    padding: 14px 10px;
  }

  .header-phone .btn {
    padding: 10px 14px;
  }
}

@media (max-width: 640px) {
  .catalog {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-meta {
    flex-direction: column;
    gap: 6px;
  }

  .section {
    padding: 48px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
