:root {
  color-scheme: only light;
  --paper: #f7f3ea;
  --surface: #ffffff;
  --ink: #16213a;
  --muted: #5a6476;
  --line: #e4ddce;
  --brand: #24395c;
  --brand-deep: #1a2a45;
  --brand-tint: #e6ebf3;
  --accent: #f2be2e;
  --accent-tint: #fcefc8;
  --on-accent: #24395c;
  --cream: #f7f3ea;
  --focus: #24395c;
  --display: 'Unbounded', 'Arial Black', sans-serif;
  --text: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --measure: 68ch;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  font-feature-settings: 'tnum' 0;
}

a {
  color: var(--brand);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

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

img {
  max-width: 100%;
  height: auto;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 720px) {
  .wrap {
    padding: 0 32px;
  }
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 8px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 12px;
}

/* header */

.site-header {
  background: var(--surface);
  border-top: 4px solid var(--accent);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 12px 32px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 48px;
}

.brand-sub {
  font-size: 12px;
  line-height: 1.25;
  color: var(--muted);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-weight: 500;
  font-size: 15px;
  order: 3;
  width: 100%;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  border-bottom-color: var(--line);
}

.main-nav a[aria-current] {
  border-bottom-color: var(--accent);
}

.header-phone {
  margin-left: auto;
  font: 500 15px/1 var(--display);
  color: var(--brand);
  text-decoration: none;
  white-space: nowrap;
}

@media (min-width: 960px) {
  .main-nav {
    order: 0;
    width: auto;
  }
}

/* content */

.content {
  padding-top: 28px;
  padding-bottom: 72px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  font-size: clamp(26px, 4vw, 38px);
  margin: 0 0 20px;
}

h2 {
  font-size: clamp(20px, 2.6vw, 26px);
  margin: 40px 0 14px;
}

h3 {
  font-size: 18px;
  margin: 28px 0 10px;
}

.prose {
  max-width: var(--measure);
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  font-size: clamp(18px, 2.2vw, 22px);
  margin-top: 36px;
}

.prose h3 {
  font-size: 17px;
}

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

.note {
  color: var(--muted);
  font-size: 15px;
}

.crumbs {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

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

.single {
  max-width: 820px;
}

.with-side {
  display: grid;
  gap: 32px;
}

@media (min-width: 900px) {
  .with-side {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 56px;
  }

  .side {
    position: sticky;
    top: 24px;
    align-self: start;
  }
}

.side {
  font-size: 15px;
  border-left: 3px solid var(--brand-tint);
  padding-left: 16px;
}

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

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

.side li + li {
  margin-top: 6px;
}

.side a {
  color: var(--ink);
  text-decoration: none;
}

.side a:hover {
  color: var(--brand);
}

.side a[aria-current] {
  color: var(--brand);
  font-weight: 600;
}

@media (max-width: 899px) {
  .side {
    order: 2;
  }
}

/* price tables */

.table-wrap {
  overflow-x: auto;
  margin: 16px 0 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

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

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

td:last-child:not(:first-child) {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  padding-left: 24px;
}

td ul {
  margin: 0;
  padding-left: 18px;
}

th {
  font-weight: 600;
  background: var(--paper);
}

.price-table .cap td {
  font-weight: 600;
  background: var(--paper);
}

.price-table .sub td:first-child {
  padding-left: 32px;
}

.price-table .row-note td,
.item-note {
  color: var(--muted);
  font-size: 14px;
}

.price-page h2 {
  margin-top: 48px;
}

.price-page .num {
  color: var(--muted);
  font-weight: 400;
}

.price-page h2 + .note,
.price-page h3 + .note {
  margin-top: -6px;
}

.price-toc ol {
  columns: 2 260px;
  column-gap: 40px;
  margin: 24px 0 8px;
  padding-left: 22px;
  font-weight: 500;
}

.price-toc li {
  break-inside: avoid;
  padding: 3px 0;
}

/* home */

.hero {
  display: grid;
  gap: 28px;
  padding: 16px 0 40px;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 900px) {
  .hero {
    gap: 32px;
    padding: 40px 0 56px;
  }
}

.hero h1 {
  font-size: clamp(30px, 5.4vw, 60px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}

.hero-phone {
  display: inline-block;
  font: 700 clamp(30px, 6.6vw, 76px)/1 var(--display);
  letter-spacing: -0.035em;
  color: var(--brand);
  text-decoration: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.hero-phone:hover {
  color: var(--brand-deep);
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 6px 14px 6px 12px;
  background: var(--accent-tint);
  border-radius: 999px;
  font-weight: 500;
}

.hero-status time {
  font-variant-numeric: tabular-nums;
}

.dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(242, 190, 46, 0.6);
  animation: glow 2.4s ease-out infinite;
}

@keyframes glow {
  0% {
    box-shadow: 0 0 0 0 rgba(242, 190, 46, 0.6);
  }
  70%,
  100% {
    box-shadow: 0 0 0 10px rgba(242, 190, 46, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dot {
    animation: none;
  }
}

.hero-address {
  margin: 12px 0 0;
  color: var(--muted);
}

.home-block {
  padding: 8px 0 16px;
}

.home-block h2 {
  margin-top: 48px;
}

.prices {
  max-width: 720px;
}

.home-block .table-wrap {
  max-width: 720px;
}

.prices td:first-child a {
  color: var(--ink);
  text-decoration: none;
}

.prices td:first-child a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.index {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 3 220px;
  column-gap: 40px;
}

.index li {
  break-inside: avoid;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.index a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.index a:hover {
  color: var(--brand);
}

.about-block p {
  max-width: var(--measure);
}

.about-block p a + a {
  margin-left: 20px;
}

.cured {
  font: 500 clamp(18px, 2.2vw, 22px)/1.45 var(--display);
  letter-spacing: -0.01em;
  max-width: 34em;
  color: var(--brand);
}

.articles {
  list-style: none;
  padding: 0;
  max-width: var(--measure);
}

.articles li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.articles .meta {
  margin-left: 8px;
  white-space: nowrap;
}

/* contacts */

.contacts {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .contacts {
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 40px;
  }
}

.contacts-info > :first-child {
  margin-top: 0;
}

.phones {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font: 500 20px/1.6 var(--display);
  letter-spacing: -0.01em;
}

.phones a {
  text-decoration: none;
}

.map {
  width: 100%;
  min-height: 380px;
  border: 0;
  border-radius: 6px;
  background: var(--brand-tint);
}

/* service tree */

.tree ul {
  padding-left: 20px;
  margin: 4px 0;
}

.tree > ul {
  list-style: none;
  padding-left: 0;
}

.tree > ul > li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.tree > ul > li > a {
  font-weight: 600;
}

.tree li li {
  margin: 4px 0;
}

.tree-wide > ul {
  columns: 2 300px;
  column-gap: 48px;
}

.tree-wide > ul > li {
  break-inside: avoid;
}

/* footer */

.site-footer {
  background: var(--brand-deep);
  color: rgba(247, 243, 234, 0.78);
  font-size: 15px;
}

.site-footer a {
  color: var(--cream);
}

.footer-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px 40px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.footer-row p {
  margin: 0 0 8px;
}

.footer-brand img {
  display: block;
  width: auto;
  height: 44px;
  margin-bottom: 12px;
}

.footer-head {
  color: var(--accent);
  font-weight: 600;
}

/* mobile call bar */

.call-bar {
  display: none;
}

@media (max-width: 719px) {
  body {
    padding-bottom: 68px;
  }

  .call-bar {
    display: block;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 5;
    padding: 14px;
    border-radius: 8px;
    background: var(--accent);
    color: var(--on-accent);
    font: 600 17px/1 var(--text);
    text-align: center;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(22, 33, 58, 0.25);
  }

  .header-phone {
    display: none;
  }

  td,
  th {
    padding: 9px 12px;
  }

  td:last-child:not(:first-child) {
    padding-left: 12px;
  }

  .hero-phone {
    white-space: normal;
  }
}
