:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, sans-serif;
  color: #182638;
  background: #f3f6f9;
  line-height: 1.65;
  --ink: #182638;
  --muted: #526273;
  --blue: #145788;
  --line: #dbe4ec;
  --wrap: 68rem;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--blue); text-underline-offset: .2em; }
a:focus-visible, summary:focus-visible { outline: 3px solid #2468aa; outline-offset: 4px; }
img { display: block; height: auto; max-width: min(100%, 42rem); border-radius: .65rem; }
p, li { overflow-wrap: anywhere; }
h1, h2, h3, h4 { line-height: 1.18; text-wrap: pretty; }
h1 { font-size: clamp(2rem, 5vw, 3.7rem); margin: 0 0 .75em; }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); margin: 0 0 .65em; }
h3 { font-size: 1.16rem; margin-block: 1.15em .45em; }
p { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.5em; }
li + li { margin-top: .35em; }
table { width: 100%; border-collapse: collapse; }
td, th { border-bottom: 1px solid var(--line); padding: .45em .65em; text-align: start; }
code { font-size: .9em; overflow-wrap: anywhere; }

.preview-notice {
  color: #493a14;
  background: #fff0c9;
  font-size: .875rem;
  padding: .5rem max(1rem, calc((100vw - var(--wrap)) / 2));
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  padding: 1rem max(1rem, calc((100vw - var(--wrap)) / 2));
  background: white;
  border-bottom: 1px solid var(--line);
}
.brand { color: var(--ink); font-size: 1.13rem; text-decoration: none; white-space: nowrap; }
.brand strong { color: var(--blue); }
.site-header nav { display: flex; flex-wrap: wrap; gap: .15rem .85rem; }
.site-header nav a { padding-block: .3rem; font-size: .9rem; text-decoration: none; }
.site-header nav a[aria-current="page"] { font-weight: 700; text-decoration: underline; }

main { max-width: var(--wrap); margin: 1.3rem auto 2.5rem; padding-inline: 1rem; }
main > section {
  border: 1px solid var(--line);
  border-radius: .85rem;
  padding: clamp(1.1rem, 3.5vw, 2.6rem);
  background: white;
  margin-block: 1rem;
}
main > :is(.hero, .main-banner, .hero-simple, .benefits-banner-wrapper-bg, .page-title) {
  background: #e4eff7;
  border-color: #cddfeb;
}
main > .hero p, main > .main-banner p { max-width: 52rem; }
main > :is(.hero, .hero-simple, .main-banner, .page-title) h1:last-child { margin-bottom: 0; }
main section section + section { margin-top: 1.5rem; }
main > :is(.services, .services-cards, .standarts) h3 { color: var(--blue); }
.services-cards__list, .goods-list, .list-of-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 1rem;
}
:is(.services-cards__list, .goods-list, .list-of-benefits) > * {
  padding: .9rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
}
main .blue-banner { color: #173d59; background: #e9f3fa; }
details { padding: .75rem .25rem; border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }
details p { margin-top: .65em; }
.archive-index ul { columns: 2 17rem; column-gap: 2rem; }
.archive-index li { break-inside: avoid; }
.archive-index h2 { margin-top: 1.6rem; }
.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem 1.2rem;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.2rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}
