:root {
  --bg: #e6e1d6;
  --bg-raised: #f7f4ee;
  --ink: #161410;
  --muted: #5e584e;
  --line: #d4cdc0;
  --accent: #c2410c;
  --accent-hot: #e24a12;
  --dark: #12161a;
  --dark-2: #1c232b;
  --paper: #fbfaf7;
  --ok: #1d6b45;
  --header: 72px;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(22, 20, 16, 0.08);
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Unbounded", "Arial Narrow", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}

body.has-callbar {
  padding-bottom: 0;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--accent);
  color: white;
  padding: 8px 12px;
  z-index: 20;
}

.skip:focus {
  top: 12px;
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  background: rgba(18, 22, 26, 0.96);
  color: #f4efe6;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header__row {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 18px;
  white-space: nowrap;
}

.logo span {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 28px;
  padding: 0 6px;
  border-radius: 7px;
  background: var(--accent-hot);
  color: white;
  font-size: 14px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav a {
  color: #ddd6c8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.nav a[aria-current="page"] {
  color: white;
}

.header__phone {
  color: white;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.burger {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: white;
  cursor: pointer;
}

.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: white;
  position: relative;
  margin: 0 auto;
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger span::before {
  top: -6px;
}

.burger span::after {
  top: 6px;
}

.hero {
  position: relative;
  overflow: hidden;
  background-color: #e7e2d6;
  background-image:
    linear-gradient(to right, rgba(22, 20, 16, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(22, 20, 16, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: end;
  padding: 72px 0 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent);
}

h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.04em;
  line-height: 1.12;
  font-weight: 700;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 64px);
}

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

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.btn--primary {
  background: var(--accent);
  color: white;
}

.btn--primary:hover {
  background: #9a3412;
  color: white;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(22, 20, 16, 0.25);
  color: var(--ink);
}

.btn--ghost:hover,
.btn--light:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

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

.facts li {
  padding-top: 12px;
  border-top: 1px solid rgba(22, 20, 16, 0.16);
}

.facts strong {
  display: block;
  font-family: var(--display);
  font-size: 18px;
}

.facts span {
  color: var(--muted);
  font-size: 14px;
}

.menu-card {
  background: var(--dark);
  color: #f4efe6;
  border-radius: 28px 28px 8px 28px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.menu-card a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 14px;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
}

.menu-card a:hover {
  background: var(--dark-2);
  color: white;
}

.menu-card b {
  color: var(--accent-hot);
  font-family: var(--display);
  font-size: 13px;
}

.menu-card small {
  display: block;
  color: #b7b0a4;
  font-size: 13px;
}

.menu-card em {
  font-style: normal;
  color: #f0c9b4;
  font-size: 13px;
  font-weight: 700;
}

.section {
  padding: 88px 0;
}

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

.section--dark {
  background: var(--dark);
  color: #f4efe6;
}

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

.section__head p,
.prose p {
  color: var(--muted);
}

.section--dark .section__head p,
.section--dark .prose p {
  color: #c9c2b6;
}

h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 42px);
}

h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.service-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 22px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
}

.service-card:first-child {
  grid-row: span 2;
  background: #241910;
  color: #f4efe6;
  border-color: #241910;
}

.service-card:first-child p {
  color: #d9cfc3;
}

.service-card:hover {
  border-color: var(--accent);
}

.service-card .num {
  font-family: var(--display);
  color: var(--accent-hot);
  font-size: 13px;
}

.service-card p {
  margin: 8px 0 16px;
  color: var(--muted);
}

.service-card img {
  width: calc(100% + 44px);
  height: 168px;
  margin: -22px -22px 16px;
  object-fit: cover;
  border-radius: 17px 17px 0 0;
}

.service-card:first-child img {
  height: 240px;
}

.page-hero__media {
  margin: 28px 0 0;
}

.page-hero__media img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 22px;
}

.roles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.role {
  padding: 18px;
  border-radius: 16px;
  background: var(--dark-2);
}

.role span {
  display: block;
  margin-bottom: 28px;
  color: var(--accent-hot);
  font-family: var(--display);
  font-size: 13px;
}

.role p {
  margin: 8px 0 0;
  color: #c9c2b6;
  font-size: 14px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: step;
}

.step {
  padding: 20px;
  background: var(--bg-raised);
  border-top: 3px solid var(--accent);
  border-radius: 0 0 16px 16px;
}

.step strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 18px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.hero__grid,
.service-grid,
.roles,
.steps,
.split,
.lead-band,
.related,
.footer__grid,
.facts {
  min-width: 0;
}

.hero__grid > *,
.service-grid > *,
.split > *,
.lead-band > *,
.footer__grid > * {
  min-width: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

tr:last-child td {
  border-bottom: 0;
}

td:last-child,
th:last-child {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

td:last-child {
  font-weight: 700;
}

.price-line {
  margin: 18px 0 0;
  font-size: 18px;
}

.price-line strong {
  font-family: var(--display);
}

.lead-form .btn {
  width: 100%;
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.prose a {
  color: var(--accent);
  font-weight: 700;
}

.note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.check-list,
.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.plain-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--line);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}

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

.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 16px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 12px 0;
}

.faq details p {
  margin: 0 0 14px;
  color: var(--muted);
}

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.area-list li {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
}

.lead-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.lead-form {
  display: grid;
  gap: 12px;
  padding: 22px;
  background: var(--paper);
  border-radius: 20px;
  border: 1px solid var(--line);
}

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

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

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

.check {
  display: flex !important;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  font-weight: 500 !important;
}

.check input {
  width: auto;
  margin-top: 4px;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  font-size: 14px;
}

.form-status.is-error {
  color: #9f1239;
}

.crumbs {
  padding-top: 22px;
  font-size: 14px;
  color: var(--muted);
}

.crumbs a {
  color: var(--muted);
}

.page-hero {
  padding: 18px 0 12px;
}

.page-hero .lead {
  margin-bottom: 0;
}

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

.related a {
  display: block;
  padding: 16px;
  border-radius: 16px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 700;
}

.related a span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
}

.footer {
  background: #0d1013;
  color: #d9d2c6;
  padding: 48px 0 24px;
}

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

.footer a:hover {
  color: white;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
}

.footer__title {
  margin: 0 0 10px;
  color: white;
  font-weight: 700;
}

.footer__grid a,
.footer__grid p {
  display: block;
  margin: 0 0 8px;
}

.footer__phone {
  color: white !important;
  font-family: var(--display);
  font-size: 20px;
  text-decoration: none;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9c958a;
  font-size: 14px;
}

.callbar {
  display: none;
}

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

@media (max-width: 980px) {
  .hero__grid,
  .service-grid,
  .roles,
  .steps,
  .split,
  .lead-band,
  .related,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .service-card:first-child {
    grid-row: auto;
  }

  .section__head,
  .footer__bottom {
    display: block;
  }

  .header {
    overflow: visible;
  }

  .burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header__phone {
    display: none;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100dvh - var(--header));
    margin: 0;
    padding: 12px 20px calc(24px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--dark);
    z-index: 40;
    overflow-y: auto;
    visibility: hidden;
    pointer-events: none;
  }

  .nav.is-open {
    visibility: visible;
    pointer-events: auto;
  }

  .nav a {
    padding: 16px 4px;
    font-size: 20px;
    color: #f4efe6;
    background: var(--dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  body.has-callbar {
    padding-bottom: 72px;
  }

  .callbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(18, 22, 26, 0.96);
  }

  .callbar a {
    display: grid;
    place-items: center;
    min-height: 46px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
  }

  .callbar a:first-child {
    background: var(--accent);
    color: white;
  }

  .callbar a:last-child {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
  }
}

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

  h1 {
    font-size: 34px;
  }

  .section {
    padding: 56px 0;
  }
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
}

.news-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  background: #e7e1d6;
}

.news-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 16px 18px 18px;
}

.news-card:hover {
  border-color: var(--accent);
}

.news-card h3 {
  font-size: 18px;
}

.news-card p,
.news-card time {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.news-card time {
  margin-top: auto;
  font-size: 13px;
}

.tag {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}

.news-filters a {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-raised);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.article {
  max-width: 820px;
}

.article h2 {
  margin-top: 28px;
  font-size: clamp(22px, 2.4vw, 30px);
}

.article-photo {
  margin: 8px 0 18px;
}

.article-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.article-photo figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.article blockquote {
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: var(--bg-raised);
}

.source-link {
  font-weight: 700;
}

.news-cta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--dark);
  color: #f4efe6;
}

.news-cta p {
  margin: 0;
  color: #d9d2c6;
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.pager a {
  font-weight: 700;
  text-decoration: none;
}

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

  .news-cta {
    display: block;
  }

  .news-cta .btn {
    margin-top: 12px;
  }
}

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

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

  .nav {
    transition: none;
  }
}
