:root {
  --surface: #ffffff;
  --surface-soft: #f4f5f6;
  --surface-utility: #eeeeee;
  --ink: #0b0b0b;
  --muted: #59616b;
  --inverse: #070707;
  --inverse-soft: #161616;
  --inverse-text: #ffffff;
  --line: #e2e5e9;
  --accent: #ff9800;
  --accent-soft: #fff2dd;
  --radius: 8px;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.dev-banner {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  justify-content: center;
  padding: 10px 20px;
  color: #111;
  background: var(--accent);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  min-height: 72px;
  padding: 0 72px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.main-nav,
.header-phone {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-family: Geist, Inter, sans-serif;
  font-size: 20px;
  font-weight: 400;
}

.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
}

.main-nav {
  justify-self: center;
  gap: 24px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

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

.header-phone {
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  color: #fff;
  background: var(--inverse);
  border-radius: 999px;
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  font-weight: 700;
}

.phone-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
}

.phone-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 38px;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 6px auto;
  background: var(--ink);
}

.services,
.hero,
.price-section,
.reviews-section,
.works,
.visit-section,
.site-footer {
  width: min(1296px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 710px) minmax(420px, 536px);
  grid-template-areas:
    "copy stage"
    "proof proof";
  column-gap: 50px;
  row-gap: 24px;
  width: 100%;
  min-height: 760px;
  padding: 104px max(72px, calc((100vw - 1296px) / 2)) 48px;
  overflow: hidden;
  color: #fff;
  background: #080808;
}

.hero-rail {
  position: absolute;
  inset: 0 auto 0 0;
  width: 18px;
  background: var(--accent);
}

.hero-line {
  position: absolute;
  top: 88px;
  left: max(72px, calc((100vw - 1296px) / 2));
  right: max(72px, calc((100vw - 1296px) / 2));
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.services {
  padding: 80px 0;
}

.hero-copy {
  grid-area: copy;
  align-self: center;
  max-width: 710px;
}

.hero-copy h1 {
  max-width: 710px;
  margin-bottom: 28px;
  color: #fff;
  font-size: clamp(50px, 5.4vw, 74px);
}

.hero-copy p {
  max-width: 650px;
  margin: 0;
  color: #d1d5db;
  font-size: 19px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.hero-proof {
  grid-area: proof;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.hero-proof article {
  min-height: 118px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}

.hero-proof span,
.hero-note span,
.hero-rating-card span {
  display: block;
  color: var(--accent);
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  font-weight: 800;
}

.hero-proof strong {
  display: block;
  margin: 8px 0;
  color: #fff;
  font-family: Geist, Inter, sans-serif;
  font-size: 24px;
  line-height: 1;
}

.hero-proof p {
  margin: 0;
  color: #bfc5cc;
  font-size: 13px;
  font-weight: 700;
}

.hero-stage {
  position: relative;
  grid-area: stage;
  min-height: 398px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 8, 8, 0.06), rgba(8, 8, 8, 0.45)),
    url("./assets/hero-detailing-modern.png") center / cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.hero-note {
  position: absolute;
  left: 28px;
  bottom: 28px;
  display: grid;
  gap: 10px;
  width: min(310px, calc(100% - 56px));
  padding: 18px 20px 18px 22px;
  color: #fff;
  background: rgba(7, 7, 7, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}

.hero-note span {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  color: #111;
  background: var(--accent);
  border-radius: 999px;
}

.hero-note strong {
  font-family: Geist, Inter, sans-serif;
  font-size: 23px;
  line-height: 1.08;
}

.hero-rating-card {
  position: absolute;
  top: 28px;
  right: 32px;
  display: grid;
  gap: 4px;
  min-width: 178px;
  padding: 16px;
  color: #111;
  background: #fff;
  border-radius: var(--radius);
}

.hero-rating-card span {
  color: var(--muted);
}

.hero-rating-card strong {
  font-family: Geist, Inter, sans-serif;
  font-size: 28px;
  line-height: 1;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 720px) auto;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 44px;
}

.services-head {
  align-items: start;
}

h1,
h2,
h3 {
  font-family: Geist, Inter, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.96;
  font-weight: 800;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  font-weight: 800;
}

.services-head p,
.section-copy,
.section-head p,
.location-address {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  color: #111;
  background: var(--accent);
}

.button-ghost-dark {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.service-card {
  width: 100%;
  min-height: 228px;
  padding: 24px;
  color: var(--ink);
  text-align: left;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 152, 0, 0.56);
}

.service-card.is-active {
  color: var(--ink);
  background: #fffaf1;
  border-color: rgba(255, 152, 0, 0.62);
  box-shadow: var(--shadow);
}

.service-card.is-active {
  outline: 2px solid rgba(255, 152, 0, 0.65);
  outline-offset: 3px;
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #24303a;
  background: linear-gradient(145deg, #ffffff, #f3f5f7);
  border: 1px solid #d8dee5;
  border-radius: var(--radius);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.icon-badge svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.icon-badge-image {
  background: #fff;
  border-color: rgba(255, 152, 0, 0.28);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.icon-badge .icon-fill {
  fill: rgba(255, 152, 0, 0.16);
}

.icon-badge .icon-dot {
  fill: var(--accent);
  stroke: currentColor;
}

.service-card:hover .icon-badge,
.service-card.is-active .icon-badge {
  color: #111;
  border-color: var(--accent);
}

.service-card:hover .icon-badge:not(.icon-badge-image),
.service-card.is-active .icon-badge:not(.icon-badge-image) {
  background: var(--accent);
}

.service-card:hover .icon-badge-image,
.service-card.is-active .icon-badge-image {
  box-shadow: 0 10px 24px rgba(255, 152, 0, 0.22);
}

.service-card:hover .icon-badge .icon-fill,
.service-card.is-active .icon-badge .icon-fill {
  fill: rgba(255, 255, 255, 0.34);
}

.service-card:hover .icon-badge .icon-dot,
.service-card.is-active .icon-badge .icon-dot {
  fill: #fff;
}

.service-badge {
  color: #111;
  background: var(--accent);
  border-radius: 999px;
  padding: 6px 10px;
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.service-card h3 {
  margin: 26px 0 12px;
  font-size: clamp(23px, 2.1vw, 28px);
  line-height: 1.1;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.42;
}

.service-card.is-active p {
  color: var(--muted);
}

.service-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.service-meta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  color: #17202a;
  background: #fff;
  border: 1px solid #dfe3e8;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.service-card.is-active .service-meta-row span,
.service-card:hover .service-meta-row span {
  border-color: rgba(255, 152, 0, 0.48);
}

.service-card.is-featured {
  background: linear-gradient(180deg, #fff8eb, #fff);
  border-color: rgba(255, 152, 0, 0.34);
}

.service-card-action {
  display: block;
  margin-top: 24px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
}

.service-card-action::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.service-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px 190px;
  gap: 42px;
  align-items: center;
  margin-top: 22px;
  min-height: 260px;
  padding: 34px;
  color: #fff;
  background: #111;
  border-radius: var(--radius);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.18);
  scroll-margin-top: 90px;
}

.service-detail.is-changing {
  animation: softSwap 280ms ease both;
}

.detail-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-align: center;
}

.detail-label {
  display: none;
}

.service-detail h2 {
  max-width: 700px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(28px, 3vw, 42px);
}

.service-detail p {
  max-width: 650px;
  margin: 0 auto;
  color: #d1d5db;
  font-size: 15px;
  line-height: 1.4;
}

.detail-button {
  margin-top: 24px;
  align-self: center;
  width: auto;
  min-width: 177px;
}

.detail-side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  grid-column: 2;
  grid-row: 1;
}

.detail-price,
.detail-time {
  display: block;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.detail-price span,
.detail-time span {
  display: none;
}

.detail-price strong,
.detail-time strong {
  color: #fff;
  font-family: Geist, Inter, sans-serif;
}

.detail-price strong {
  color: var(--accent);
  font-size: 28px;
  line-height: 1;
}

.detail-time strong {
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.service-detail ul {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.service-detail li {
  position: relative;
  min-height: 58px;
  padding: 14px 14px 14px 38px;
  color: #f3f4f6;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.35;
}

.service-detail li::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 16px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.price-section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.price-head {
  align-items: start;
  margin-bottom: 28px;
}

.price-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  color: #111;
  background: var(--accent);
  border-radius: 999px;
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.class-card {
  display: block;
  width: 100%;
  min-height: 94px;
  padding: 18px;
  color: var(--ink);
  text-align: left;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.class-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 152, 0, 0.54);
}

.class-card.is-active {
  background: #fff8eb;
  border-color: rgba(255, 152, 0, 0.72);
  box-shadow: 0 12px 26px rgba(255, 152, 0, 0.16);
}

.class-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: Geist, Inter, sans-serif;
  font-size: 22px;
  line-height: 1;
}

.class-card span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.price-table-wrap {
  scroll-margin-top: 132px;
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.08);
}

.price-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.price-table th,
.price-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
}

.price-table th {
  color: #fff;
  background: #111;
  font-family: Geist, Inter, sans-serif;
  font-size: 15px;
  font-weight: 800;
}

.price-table th.is-selected-class {
  color: #111;
  background: var(--accent);
}

.price-table td {
  font-weight: 700;
}

.price-table .service-col {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 42%;
  min-width: 280px;
  text-align: left;
  white-space: normal;
}

.price-table th.service-col {
  z-index: 2;
  background: #111;
}

.price-table td.service-col {
  background: #fff;
  font-weight: 800;
}

.price-table tbody tr:nth-child(even) td {
  background: #fafafa;
}

.price-table tbody tr:nth-child(even) td.service-col {
  background: #fafafa;
}

.price-table tbody tr:hover td,
.price-table tbody tr:hover td.service-col {
  background: var(--accent-soft);
}

.price-table td.is-selected-class {
  color: #111;
  background: #fff3df;
  box-shadow: inset 1px 0 rgba(255, 152, 0, 0.28), inset -1px 0 rgba(255, 152, 0, 0.28);
}

.price-table tbody tr:nth-child(even) td.is-selected-class,
.price-table tbody tr:hover td.is-selected-class {
  background: #ffe4ba;
}

.price-table tbody tr:last-child td {
  border-bottom: 0;
}

.price-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.reviews-section {
  padding: 70px 0;
  border-top: 1px solid var(--line);
}

.rating-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.rating-score {
  display: grid;
  gap: 8px;
  min-width: 150px;
  padding: 20px;
  color: var(--ink);
  background: var(--accent-soft);
  border-radius: var(--radius);
}

.rating-score .count-up {
  font-family: Geist, Inter, sans-serif;
  font-size: 58px;
  line-height: 0.9;
  font-weight: 800;
}

.rating-score div {
  color: var(--accent);
  font-size: 19px;
  letter-spacing: 1px;
}

.rating-copy strong {
  display: block;
  margin-bottom: 7px;
  font-family: Geist, Inter, sans-serif;
  font-size: 25px;
}

.rating-copy p {
  margin: 0 0 12px;
  color: var(--muted);
}

.yandex-address {
  margin: 0 0 14px;
  color: var(--ink);
  font-style: normal;
  font-weight: 800;
}

.rating-copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rating-copy li {
  padding: 7px 10px;
  color: #3d4651;
  background: #f7f8f9;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.review-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.review-card {
  min-height: 150px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.review-card span {
  color: var(--accent);
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  font-weight: 800;
}

.review-card strong {
  display: block;
  margin: 12px 0 8px;
  font-family: Geist, Inter, sans-serif;
  font-size: 18px;
}

.review-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.review-card a {
  display: inline-flex;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 800;
}

.works {
  padding: 76px 72px;
  color: #fff;
  background: var(--inverse);
  border-radius: var(--radius);
}

.section-head-dark p {
  color: #d1d5db;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.work-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  overflow: hidden;
  min-height: 200px;
  background: var(--inverse-soft);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  transition: transform 220ms ease, border-color 220ms ease;
}

.work-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 152, 0, 0.5);
}

.work-image {
  min-height: 200px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.5)), var(--work-image) center / cover;
}

.work-polish {
  --work-image: url("./assets/work-polish-modern.png");
}

.work-clean {
  --work-image: url("./assets/work-clean-modern.png");
  background-position: 42% center;
}

.work-dent {
  --work-image: url("./assets/work-dent-modern.png");
  background-position: 55% center;
}

.work-wash {
  --work-image: url("./assets/work-wash-modern.png");
  background-position: 45% center;
}

.work-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
}

.work-copy span {
  color: var(--accent);
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  font-weight: 800;
}

.work-copy h3 {
  margin: 8px 0;
  font-size: 23px;
}

.work-copy p {
  margin: 0;
  color: #d1d5db;
  font-size: 14px;
  line-height: 1.4;
}

.visit-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 32px;
  align-items: stretch;
  padding: 76px 0 0;
}

.visit-info,
.quick-form {
  border-radius: var(--radius);
}

.visit-info {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 18px;
  padding: 30px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.location-address {
  font-weight: 700;
}

.location-link {
  justify-self: start;
}

.yandex-map {
  width: 100%;
  min-height: 390px;
  height: 100%;
  margin-top: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.quick-form {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.form-head {
  display: grid;
  gap: 8px;
}

.form-head > span {
  color: var(--accent);
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-form h3 {
  max-width: 360px;
  margin: 0;
  font-size: 24px;
  line-height: 1.12;
}

.form-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.form-service-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 152, 0, 0.32);
  border-radius: var(--radius);
}

.form-service-card > span,
.form-service-card small {
  color: #6b4b18;
  font-size: 12px;
  font-weight: 800;
}

.form-service-card strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.22;
}

.form-service-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.form-service-card small {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(255, 152, 0, 0.28);
  border-radius: 999px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.quick-form label {
  display: grid;
  gap: 7px;
  color: #3d4651;
  font-size: 13px;
  font-weight: 800;
}

.quick-form input,
.quick-form select,
.quick-form textarea {
  min-height: 50px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.quick-form textarea {
  min-height: 88px;
  padding: 14px;
  resize: vertical;
  line-height: 1.45;
}

.quick-form input:focus,
.quick-form select:focus,
.quick-form textarea:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.18);
}

.quick-form input::placeholder,
.quick-form textarea::placeholder {
  color: #8b949e;
}

.quick-form select option {
  color: #111;
}

.quick-form .button {
  width: 100%;
  min-height: 50px;
}

.form-note {
  min-height: 20px;
  margin: 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.site-footer {
  display: flex;
  margin-top: 64px;
  min-height: 112px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 24px;
  color: #3d4651;
  background: #f7f8f9;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 800;
}

.footer-copy {
  color: #3d4651;
}

.footer-meta {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.footer-meta small {
  color: #6b7280;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  font-weight: 400;
}

.footer-up {
  display: inline-flex;
  width: 116px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #24303a;
  background: #fff;
  border: 1px solid #d8dee5;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.footer-up:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.footer-up svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .site-header {
    padding: 0 24px;
  }

  .section-head,
  .service-detail,
  .visit-section {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "stage"
      "proof";
    min-height: auto;
    padding: 84px 24px 42px;
  }

  .hero-line {
    left: 24px;
    right: 24px;
  }

  .hero-stage {
    min-height: 420px;
  }

  .detail-button,
  .detail-side {
    grid-column: auto;
    grid-row: auto;
  }

  .service-detail ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-grid,
  .review-list {
    grid-template-columns: 1fr;
  }

  .class-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .works {
    padding: 52px 28px;
  }
}

@media (max-width: 760px) {
  .dev-banner {
    padding: 9px 14px;
    font-size: 12px;
  }

  .site-header {
    grid-template-columns: auto auto;
    min-height: 68px;
    top: 50px;
    padding: 12px 18px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav,
  .header-phone {
    display: none;
  }

  .site-header.is-open .main-nav,
  .site-header.is-open .header-phone {
    display: flex;
    grid-column: 1 / -1;
  }

  .site-header.is-open .main-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 12px;
  }

  .brand {
    max-width: calc(100vw - 96px);
    font-size: 16px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .services,
  .hero,
  .price-section,
  .reviews-section,
  .works,
  .visit-section,
  .site-footer {
    width: min(100% - 24px, 1296px);
  }

  .hero {
    row-gap: 18px;
    width: 100%;
    padding: 54px 14px 32px 24px;
  }

  .hero-rail {
    width: 10px;
  }

  .hero-line {
    top: 40px;
    left: 24px;
    right: 14px;
  }

  .hero-proof {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-proof article {
    min-height: auto;
    padding: 16px;
  }

  .hero-proof strong {
    font-size: 22px;
  }

  .hero-stage {
    min-height: 300px;
    background-position: 58% center;
  }

  .hero-note {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
    padding: 14px;
  }

  .hero-note strong {
    font-size: 20px;
  }

  .hero-rating-card {
    top: 14px;
    right: 14px;
    min-width: 142px;
    padding: 12px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .section-head {
    gap: 20px;
  }

  .section-head .button {
    width: 100%;
  }

  .rating-panel {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .price-section {
    padding: 48px 0;
  }

  .price-date {
    justify-self: start;
  }

  .class-grid {
    grid-template-columns: 1fr;
  }

  .price-table {
    min-width: 680px;
  }

  .price-table th,
  .price-table td {
    padding: 14px 12px;
    font-size: 13px;
  }

  .price-table .service-col {
    min-width: 230px;
  }

  .detail-main {
    min-height: 0;
  }

  .detail-side,
  .visit-info,
  .quick-form {
    padding: 18px;
  }

  .quick-form h3 {
    max-width: none;
    font-size: 25px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-service-card {
    padding: 14px;
  }

  .form-service-card strong {
    font-size: 18px;
  }

  .service-detail {
    gap: 12px;
    padding: 22px;
  }

  .detail-side {
    grid-template-columns: 1fr 1fr;
    padding: 0;
  }

  .service-detail ul {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .service-detail li {
    min-height: auto;
  }

  .work-card {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .location-link {
    justify-self: stretch;
  }

  .yandex-map {
    min-height: 380px;
  }

  .site-footer {
    flex-direction: column;
    min-height: auto;
    align-items: stretch;
    gap: 16px;
    padding: 22px 18px 26px;
  }

  .footer-meta {
    text-align: left;
  }

  .footer-up {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@keyframes softSwap {
  from {
    opacity: 0.8;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
