@font-face {
  font-family: Onest;
  src: url("assets/fonts/onest-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Onest;
  src: url("assets/fonts/onest-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --ink: #14293f;
  --ink-deep: #102135;
  --ink-muted: #455a6e;
  --blue-line: #d6dfe5;
  --paper: #f9f8f4;
  --white: #fff;
  --wash: #edf1f3;
  --light-text: #dce7ef;
  --amber: #f8c46a;
  --page: 1256px;
  --gutter: clamp(18px, 4.9vw, 76px);
  --ease-out: cubic-bezier(.18, .74, .24, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

::selection {
  color: var(--ink-deep);
  background: var(--amber);
}

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

figure, h1, h2, p, dl, dd {
  margin: 0;
}

h1, h2 {
  font-weight: 730;
  letter-spacing: -.035em;
}

h1 {
  font-size: clamp(3.15rem, 6.15vw, 6rem);
  line-height: .99;
}

h2 {
  font-size: clamp(2rem, 4.35vw, 4rem);
  line-height: 1.07;
  text-wrap: balance;
}

a {
  color: inherit;
  text-underline-offset: .24em;
}

a:focus-visible, summary:focus-visible {
  outline: 3px solid #285578;
  outline-offset: 5px;
}

.hero a:focus-visible, .contact-panel a:focus-visible {
  outline-color: var(--amber);
}

.container {
  width: min(var(--page), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  z-index: 2;
  inset: 12px auto auto 12px;
  padding: 10px 14px;
  background: var(--white);
}

.site-header {
  background: var(--paper);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  text-decoration: none;
}

.brand img {
  flex: 0 0 auto;
}

.brand-name {
  display: grid;
  gap: 4px;
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .09em;
}

.brand-name span {
  color: var(--ink-muted);
  font-size: .67rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .015em;
}

.main-nav {
  display: flex;
  gap: clamp(19px, 3vw, 46px);
  justify-content: center;
}

.main-nav a, .header-phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .95rem;
  font-weight: 650;
  text-decoration: none;
}

.header-phone {
  justify-self: end;
  font-size: 1.02rem;
  font-weight: 760;
  white-space: nowrap;
}

.main-nav a:hover, .header-phone:hover, .footer-inner a:hover {
  text-decoration: underline;
}

.hero {
  background: var(--ink);
  color: var(--white);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(0, 1fr);
  max-width: 1800px;
  margin-inline: auto;
}

.hero-copy {
  align-self: center;
  padding: clamp(55px, 7vw, 110px) 26px clamp(59px, 7vw, 110px)
    max(var(--gutter), calc((min(100vw, 1800px) - var(--page)) / 2));
}

.hero-lead {
  max-width: 35ch;
  margin-top: 23px;
  color: var(--light-text);
  font-size: clamp(1.05rem, 1.55vw, 1.25rem);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 33px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 720;
  line-height: 1.2;
  text-decoration: none;
  transition: color .18s var(--ease-out), background-color .18s var(--ease-out),
    border-color .18s var(--ease-out);
}

.button-primary {
  background: var(--amber);
  color: var(--ink-deep);
}

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

.button-outline {
  border-color: #71879a;
  color: var(--white);
}

.button-outline:hover {
  border-color: var(--light-text);
  background: #243d54;
}

.arrow {
  display: inline-block;
  position: relative;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

.arrow::before, .arrow::after {
  position: absolute;
  content: "";
}

.arrow::before {
  top: 7px;
  left: 1px;
  width: 12px;
  border-top: 1.5px solid currentcolor;
}

.arrow::after {
  top: 4px;
  right: 3px;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentcolor;
  border-right: 1.5px solid currentcolor;
  transform: rotate(45deg);
}

.arrow-down {
  transform: rotate(90deg);
}

.arrow-up {
  transform: rotate(-90deg);
}

.hero-photo {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: #2c4457;
}

.hero-photo img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% center;
}

.hero-photo figcaption {
  position: absolute;
  inset: auto 13px 13px auto;
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(16, 33, 53, .91);
  color: var(--white);
  font-size: .69rem;
}

.section {
  padding-block: clamp(55px, 7vw, 106px);
  scroll-margin-top: 16px;
}

.section-description {
  max-width: 50ch;
  margin-top: 12px;
  color: var(--ink-muted);
  font-size: clamp(.98rem, 1.5vw, 1.13rem);
}

.pricing-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 28px;
}

.tax-note {
  padding: 5px 0 4px;
  border-bottom: 2px solid var(--amber);
  font-weight: 670;
  white-space: nowrap;
}

.tariff-table {
  overflow: hidden;
  border: 1px solid var(--blue-line);
  border-radius: 10px;
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

th, td {
  padding: 15px clamp(12px, 2.45vw, 34px);
}

thead th {
  background: var(--ink);
  color: var(--white);
  font-weight: 650;
  line-height: 1.2;
}

thead th span, tbody th span {
  display: block;
  margin-top: 4px;
  font-size: .83em;
  font-weight: 460;
}

thead th span {
  color: var(--light-text);
}

tbody th {
  font-size: 1.1em;
  font-weight: 720;
}

tbody th span {
  color: var(--ink-muted);
}

thead th:first-child {
  width: 37%;
}

td {
  border-top: 1px solid var(--blue-line);
  font-size: 1.16em;
  font-weight: 590;
  white-space: nowrap;
}

tbody th {
  border-top: 1px solid var(--blue-line);
}

tbody tr:nth-child(even) {
  background: #f4f7f9;
}

.tariff-coverage {
  margin-top: 17px;
  color: var(--ink-muted);
}

.tariff-coverage strong {
  color: var(--ink);
  font-weight: 730;
}

.terms {
  border-block: 1px solid var(--blue-line);
  background: var(--wash);
}

.terms-layout {
  display: grid;
  grid-template-columns: minmax(235px, .79fr) minmax(0, 1fr);
  gap: clamp(34px, 6.3vw, 88px);
}

.terms h2, .contact h2 {
  font-size: clamp(2rem, 3.8vw, 3.55rem);
  text-wrap: wrap;
}

.terms-list {
  border-top: 1px solid #c8d4dd;
}

.terms-list > div {
  display: grid;
  grid-template-columns: minmax(136px, .68fr) minmax(0, 1fr);
  gap: 10px 24px;
  padding-block: 16px;
  border-bottom: 1px solid #c8d4dd;
}

.terms-list dt {
  font-weight: 750;
}

.terms-list dd {
  color: var(--ink-muted);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr minmax(290px, .83fr);
  align-items: center;
  gap: 26px clamp(32px, 7vw, 100px);
  padding: clamp(25px, 5.3vw, 73px);
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
}

.contact-panel .section-description {
  color: var(--light-text);
}

.contact-links {
  border-top: 1px solid #71879a;
  font-style: normal;
}

.contact-links a {
  position: relative;
  display: grid;
  padding: 14px 25px 14px 0;
  border-bottom: 1px solid #71879a;
  text-decoration: none;
}

.contact-links a:hover strong {
  text-decoration: underline;
}

.contact-links a span {
  color: var(--light-text);
  font-size: .86rem;
}

.contact-links strong {
  color: var(--amber);
  font-size: clamp(1.08rem, 2.3vw, 1.55rem);
  font-weight: 680;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.contact-links .arrow {
  position: absolute;
  inset: 50% 0 auto auto;
  color: var(--amber);
  transform: translateY(-50%);
}

.requisites {
  margin-top: 18px;
  border-bottom: 1px solid var(--blue-line);
}

.requisites summary {
  min-height: 48px;
  width: fit-content;
  padding: 11px 6px 11px 0;
  font-weight: 680;
  cursor: pointer;
}

.requisites summary:hover {
  text-decoration: underline;
  text-underline-offset: .24em;
}

.requisites-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 26px;
  max-width: 850px;
  padding: 12px 0 24px;
}

.requisites-list dt {
  color: var(--ink-muted);
  font-size: .87rem;
}

.requisites-list dd {
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.site-footer {
  border-top: 1px solid var(--blue-line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  min-height: 74px;
  font-size: .92rem;
}

.footer-inner p {
  font-weight: 660;
}

.footer-inner p span {
  margin-left: 12px;
  color: var(--ink-muted);
  font-weight: 450;
}

.footer-inner a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  font-weight: 680;
  text-decoration: none;
}

@media (max-width: 950px) {
  .header-inner {
    gap: 16px;
    min-height: 75px;
  }

  .hero-photo {
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 0 12px;
    padding-top: 7px;
  }

  .brand img {
    width: 43px;
    height: 43px;
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .brand-name span {
    font-size: .64rem;
  }

  .header-phone {
    font-size: clamp(.79rem, 2.9vw, .98rem);
  }

  .main-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-content: space-between;
    gap: 12px;
  }

  .main-nav a {
    font-size: .87rem;
  }

  .hero-inner, .terms-layout, .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 46px var(--gutter) 38px;
  }

  .hero-lead {
    margin-top: 17px;
  }

  .hero-actions {
    margin-top: 23px;
  }

  .hero-photo {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .hero-photo img {
    object-position: center 54%;
  }

  .contact-panel {
    gap: 22px;
  }
}

@media (max-width: 520px) {
  .button {
    gap: 6px;
    min-height: 48px;
    padding: 10px 12px;
    font-size: .91rem;
  }

  .pricing-heading {
    gap: 8px;
    margin-bottom: 18px;
  }

  .tax-note, .tariff-coverage {
    font-size: .91rem;
  }

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

  thead th {
    font-size: .77rem;
  }

  thead th:first-child {
    width: 35%;
  }

  thead th span {
    font-size: .68rem;
  }

  tbody th, td {
    font-size: .93rem;
  }

  .terms-list > div {
    grid-template-columns: 1fr;
    gap: 3px;
    padding-block: 12px;
  }

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

  .footer-inner p span {
    display: block;
    margin: 1px 0 0;
  }
}

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

  .button {
    transition: none;
  }
}
