:root {
  --ink: #1f2933;
  --muted: #667085;
  --line: #e7e9ee;
  --paper: #ffffff;
  --soft: #f5f7fb;
  --dark: #26364d;
  --accent: #ffc928;
  --accent-dark: #e0a900;
  --green: #1da96c;
  --radius: 8px;
  --shadow: 0 18px 45px rgba(31, 41, 51, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  background: var(--paper);
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.topbar,
.main-nav,
.hero,
.quick-points,
.content-layout,
.trust,
.contacts,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  min-height: 86px;
  display: grid;
  grid-template-columns: 190px 1fr auto auto;
  align-items: center;
  gap: 24px;
}

.logo {
  width: 172px;
  height: auto;
}

.rating {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.rating img {
  width: 42px;
}

.header-phone {
  text-align: right;
}

.header-phone span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.header-phone a {
  color: var(--dark);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  background: var(--paper);
  color: var(--dark);
  font-weight: 700;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 0 0 14px;
  color: var(--dark);
  font-size: 14px;
  font-weight: 700;
}

.main-nav a {
  text-decoration: none;
}

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

.hero {
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-columns: 1fr 46%;
  align-items: center;
  gap: 46px;
  padding: 56px 0 70px;
}

.hero-content {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 18px;
  color: var(--dark);
  line-height: 1.18;
}

h1 {
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 900;
}

h2 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 850;
}

h3 {
  font-size: 22px;
}

.lead {
  margin: 0 0 28px;
  max-width: 620px;
  color: var(--muted);
  font-size: 20px;
}

.hero-actions,
.hero-actions + *,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: var(--radius);
  padding: 13px 24px;
  border: 2px solid transparent;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--accent);
  color: #161b22;
  box-shadow: 0 10px 24px rgba(255, 201, 40, .35);
}

.button-primary:hover {
  background: #f6bd14;
}

.button-secondary {
  border-color: var(--dark);
  color: var(--dark);
  background: transparent;
}

.button-secondary:hover {
  background: var(--dark);
  color: #fff;
}

.hero-media {
  position: relative;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 24px -18px -18px 24px;
  border: 8px solid var(--accent);
  border-radius: var(--radius);
  z-index: -1;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quick-points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0 0 54px;
}

.quick-points div {
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.quick-points span {
  display: block;
  margin-bottom: 14px;
  color: var(--accent-dark);
  font-size: 28px;
  font-weight: 900;
}

.quick-points p {
  margin: 0;
  font-weight: 700;
}

.content-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.toc {
  position: sticky;
  top: 126px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.toc h2 {
  margin-bottom: 14px;
  font-size: 21px;
}

.toc a {
  display: block;
  padding: 8px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.toc a:hover {
  color: var(--dark);
}

.article {
  max-width: 850px;
}

.reading-time {
  margin-top: 0;
  color: var(--muted);
  font-weight: 700;
}

.article p,
.article li {
  color: #344054;
}

.article h2 {
  margin-top: 44px;
}

.article ul,
.article ol {
  padding-left: 22px;
}

.article li {
  margin: 8px 0;
}

.article-image {
  width: 100%;
  margin: 28px 0 10px;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: start;
  margin: 50px 0;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--dark);
  color: #fff;
}

.cta-band h2,
.cta-band p {
  color: #fff;
}

.request-form {
  display: grid;
  gap: 14px;
}

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

.request-form input,
.request-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  font: inherit;
}

.request-form input::placeholder,
.request-form textarea::placeholder {
  color: rgba(255, 255, 255, .68);
}

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

.form-note {
  min-height: 24px;
  margin: 0;
  color: #fff;
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

summary {
  padding: 16px 18px;
  color: var(--dark);
  font-weight: 800;
  cursor: pointer;
}

details p {
  margin: 0;
  padding: 0 18px 18px;
}

.checklist {
  list-style: none;
  padding-left: 0;
}

.checklist li {
  position: relative;
  padding-left: 30px;
}

.checklist li::before {
  content: "";
  position: absolute;
  top: .55em;
  left: 0;
  width: 16px;
  height: 16px;
  border: 2px solid var(--green);
  border-radius: 4px;
}

.checklist li::after {
  content: "";
  position: absolute;
  top: .7em;
  left: 5px;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

.trust {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: 42px;
  align-items: center;
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

.trust-copy p:not(.eyebrow) {
  max-width: 650px;
  color: var(--muted);
}

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

.trust-gallery img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.trust-gallery img:nth-child(2) {
  margin-top: 46px;
}

.contacts {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 26px;
  padding: 0 0 72px;
}

.contact-card {
  padding: 30px;
  border-radius: var(--radius);
  background: var(--soft);
}

.contact-card img {
  width: 26px;
  margin-bottom: 12px;
}

.map-panel {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e9edf2;
}

.map-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(38, 54, 77, .10) 1px, transparent 1px) 0 0 / 58px 58px,
    linear-gradient(rgba(38, 54, 77, .10) 1px, transparent 1px) 0 0 / 58px 58px,
    linear-gradient(135deg, transparent 45%, rgba(255, 255, 255, .82) 45% 55%, transparent 55%),
    linear-gradient(25deg, transparent 46%, rgba(255, 255, 255, .82) 46% 55%, transparent 55%),
    #e4e8ee;
}

.map-marker {
  position: absolute;
  top: 44%;
  left: 48%;
  width: min(280px, calc(100% - 40px));
  padding: 16px 18px 16px 54px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.map-marker span {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 50% 0;
  background: var(--accent);
  transform: rotate(-45deg);
}

.map-marker span::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--dark);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  padding: 34px 0 92px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer a {
  color: var(--dark);
  font-weight: 800;
  text-decoration: none;
}

.footer-logo {
  width: 150px;
  margin-bottom: 14px;
}

.sticky-call {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: flex;
  gap: 8px;
}

.sticky-call a {
  border-radius: var(--radius);
  padding: 12px 16px;
  background: var(--accent);
  color: #161b22;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(31, 41, 51, .18);
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 170px 1fr auto;
  }

  .rating {
    display: none;
  }

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

  .main-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0 0 16px;
  }

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

  .main-nav a {
    padding: 10px 0;
    border-top: 1px solid var(--line);
  }

  .hero,
  .content-layout,
  .trust,
  .contacts,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .quick-points {
    grid-template-columns: 1fr 1fr;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .topbar,
  .main-nav,
  .hero,
  .quick-points,
  .content-layout,
  .trust,
  .contacts,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    min-height: 74px;
    grid-template-columns: 138px 1fr;
    gap: 12px;
  }

  .logo {
    width: 136px;
  }

  .header-phone {
    grid-column: 1 / -1;
    text-align: left;
    padding-bottom: 12px;
  }

  .menu-toggle {
    justify-self: end;
  }

  .hero {
    padding-top: 34px;
    gap: 28px;
  }

  h1 {
    font-size: 34px;
  }

  .lead {
    font-size: 17px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .quick-points {
    grid-template-columns: 1fr;
  }

  .quick-points div {
    min-height: auto;
  }

  .cta-band {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .trust-gallery {
    grid-template-columns: 1fr;
  }

  .trust-gallery img,
  .trust-gallery img:nth-child(2) {
    height: 220px;
    margin-top: 0;
  }

  .map-marker {
    left: 20px;
    top: 42%;
  }

  .sticky-call {
    right: 12px;
    left: 12px;
  }

  .sticky-call a {
    flex: 1;
    text-align: center;
  }
}
