:root {
  --ink: #0b1115;
  --ink-soft: #161d22;
  --paper: #ffffff;
  --paper-soft: #f2f4f3;
  --muted: #657078;
  --line: #dce1e3;
  --accent: #438fbe;
  --signal: #d5f36b;
  font-family: Inter, "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

.seo-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 17, 21, 0.96);
  color: #fff;
  backdrop-filter: blur(16px);
}

.seo-header-inner {
  display: grid;
  min-height: 68px;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 42px;
}

.seo-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 850;
}

.seo-brand img {
  width: 31px;
  height: 38px;
  object-fit: cover;
  object-position: left center;
}

.seo-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.seo-nav a:hover,
.seo-nav a:focus-visible {
  color: #fff;
}

.seo-phone {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  font-weight: 800;
}

.service-hero {
  position: relative;
  display: flex;
  height: calc(100svh - 120px);
  min-height: 590px;
  max-height: 720px;
  align-items: center;
  overflow: hidden;
  background: var(--ink) url("/hero-workshop.webp") center / cover no-repeat;
  color: #fff;
  isolation: isolate;
}

.service-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(4, 9, 12, 0.72);
  content: "";
}

.service-hero-inner {
  padding: 64px 0 48px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 38px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: #fff;
}

.service-overline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--signal);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.service-overline::before {
  width: 30px;
  height: 1px;
  background: currentColor;
  content: "";
}

.service-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 880;
  line-height: 0.98;
  text-wrap: balance;
}

.service-lead {
  max-width: 680px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 19px;
  line-height: 1.55;
}

.service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.seo-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 820;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.seo-button:hover,
.seo-button:focus-visible {
  transform: translateY(-2px);
}

.seo-button-primary {
  background: var(--signal);
  color: var(--ink);
}

.seo-button-secondary {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(11, 17, 21, 0.44);
  color: #fff;
}

.service-facts {
  display: grid;
  max-width: 920px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 42px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.service-facts div {
  display: grid;
  gap: 5px;
  padding-right: 28px;
}

.service-facts div + div {
  padding-left: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.service-facts dt {
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
}

.service-facts dd {
  margin: 0;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.45;
}

.service-section {
  padding: 92px 0;
  border-bottom: 1px solid var(--line);
}

.service-section-soft {
  background: var(--paper-soft);
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.4fr);
  gap: 92px;
}

.section-heading {
  position: sticky;
  top: 104px;
  align-self: start;
}

.section-heading span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 18px 0 0;
  font-size: 46px;
  line-height: 1.04;
  text-wrap: balance;
}

.section-heading p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.problem-list,
.process-list,
.faq-list,
.related-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.problem-list {
  border-top: 2px solid var(--ink);
}

.problem-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 22px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 760;
  line-height: 1.4;
}

.problem-list span,
.process-list span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.process-list {
  border-top: 2px solid var(--ink);
}

.process-list li {
  display: grid;
  grid-template-columns: 58px 180px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.process-list h3,
.process-list p {
  margin: 0;
}

.process-list h3 {
  font-size: 18px;
}

.process-list p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.visit-band {
  background: var(--signal);
  color: var(--ink);
}

.visit-band-inner {
  display: grid;
  min-height: 138px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 42px;
}

.visit-band p,
.visit-band strong {
  margin: 0;
}

.visit-band p {
  margin-top: 6px;
  color: rgba(11, 17, 21, 0.68);
  font-size: 14px;
}

.visit-band h2 {
  margin: 0;
  font-size: 28px;
}

.visit-price {
  font-size: 38px;
  white-space: nowrap;
}

.visit-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 0 18px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.faq-list {
  border-top: 2px solid var(--ink);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 780;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  color: var(--accent);
  content: "+";
  font-size: 24px;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  max-width: 720px;
  margin: -4px 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.related-section {
  padding: 76px 0;
}

.related-section h2 {
  margin: 0 0 28px;
  font-size: 34px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.related-list a {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px 16px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 760;
  line-height: 1.35;
}

.related-list a::after {
  color: var(--accent);
  content: "↗";
}

.related-list a:hover,
.related-list a:focus-visible {
  color: var(--accent);
}

.contact-section {
  padding: 84px 0;
  background: var(--ink);
  color: #fff;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 64px;
}

.contact-section h2 {
  max-width: 650px;
  margin: 0;
  font-size: 48px;
  line-height: 1.04;
  text-wrap: balance;
}

.contact-section p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.6;
}

.contact-actions {
  display: grid;
  min-width: 260px;
  gap: 10px;
}

.contact-actions a {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 780;
}

.contact-actions a:first-child {
  border-color: var(--signal);
  background: var(--signal);
  color: var(--ink);
}

.seo-footer {
  padding: 28px 0;
  background: var(--ink-soft);
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.seo-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

@media (max-width: 900px) {
  .seo-header-inner {
    grid-template-columns: 1fr auto;
  }

  .seo-nav {
    display: none;
  }

  .service-hero {
    height: auto;
    min-height: 650px;
  }

  .service-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .section-heading {
    position: static;
  }

  .visit-band-inner {
    grid-template-columns: 1fr auto;
    gap: 12px 28px;
    padding: 24px 0;
  }

  .visit-band-copy {
    grid-column: 1 / -1;
  }

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, 1180px);
  }

  .seo-header-inner {
    min-height: 62px;
  }

  .seo-phone {
    min-width: 44px;
    padding: 0 12px;
    font-size: 0;
  }

  .seo-phone::after {
    content: "Позвонить";
    font-size: 12px;
  }

  .service-hero {
    min-height: 620px;
  }

  .service-hero-inner {
    padding: 48px 0 40px;
  }

  .breadcrumbs {
    margin-bottom: 30px;
  }

  .service-hero h1 {
    font-size: 43px;
  }

  .service-lead {
    margin-top: 22px;
    font-size: 16px;
  }

  .service-actions {
    display: grid;
  }

  .service-facts {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 30px;
    padding-top: 16px;
  }

  .service-facts div,
  .service-facts div + div {
    padding: 0;
    border: 0;
  }

  .service-section {
    padding: 68px 0;
  }

  .section-heading h2 {
    font-size: 36px;
  }

  .problem-list li {
    grid-template-columns: 36px 1fr;
    gap: 12px;
    font-size: 16px;
  }

  .process-list li {
    grid-template-columns: 42px 1fr;
    gap: 10px 14px;
  }

  .process-list p {
    grid-column: 2;
  }

  .visit-band-inner {
    grid-template-columns: 1fr;
  }

  .visit-band-copy {
    grid-column: auto;
  }

  .visit-price {
    font-size: 34px;
  }

  .visit-link {
    justify-content: center;
  }

  .related-list {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 38px;
  }

  .contact-section h2 {
    font-size: 38px;
  }

  .contact-actions {
    width: 100%;
    min-width: 0;
  }

  .seo-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
