@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
    --ink: #38303b;
    --muted: #666666;
    --accent: #a34124;
    --gray: #eaeded;
    --price: #669900;
    --footer: #38303b;
    --wrap: 1140px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--muted);
    background: #fff;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #4b78a6;
}

button,
input {
    font-family: inherit;
}

.wrap {
    box-sizing: border-box;
    width: min(var(--wrap), calc(100% - 40px));
    margin-right: auto;
    margin-left: auto;
}

.site-header {
    position: relative;
    z-index: 20;
    background: #fff;
    border-bottom: 2px solid #009ACD;
}

.site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 108px;
}

.brand {
    display: flex;
    flex: 0 0 auto;
}

.brand img {
    display: block;
    width: auto;
    height: 72px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.site-nav a {
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
}

.site-nav a:hover,
.nav-drop__btn:hover {
    color: #4b78a6;
}

.nav-drop {
    position: relative;
}

.nav-drop__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.nav-drop__btn::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border: 4px solid transparent;
    border-top-color: currentColor;
    transform: translateY(2px);
}

.nav-drop__menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    z-index: 21;
    min-width: 240px;
    padding: 8px 0;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(56, 48, 59, 0.08);
    transform: translateX(-50%);
}

.nav-drop__menu::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: 12px;
}

.nav-drop__menu a {
    display: block;
    padding: 8px 16px;
    white-space: nowrap;
}

.nav-drop__note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 16px;
    color: #7a7480;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    white-space: nowrap;
}

.nav-drop__note img {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 4px;
}

.nav-drop__note ~ a {
    padding-left: 40px;
}

.nav-drop:hover .nav-drop__menu,
.nav-drop:focus-within .nav-drop__menu,
.nav-drop.is-open .nav-drop__menu {
    display: block;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lk {
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
}

.lk-icon {
    display: flex;
    color: var(--ink);
}

.lk-icon svg,
.nav-toggle {
    width: 26px;
    height: 26px;
}

.nav-toggle {
    display: none;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px 0;
    background: var(--ink);
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-height: 680px;
    padding: 72px 0 36px;
    background: #f7f4ef url("../img/hero.jpg") center 30% / cover no-repeat;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.28) 42%, rgba(255, 255, 255, 0.78) 100%);
}

.hero__brand,
.hero__services {
    position: relative;
    z-index: 1;
}

.hero__brand {
    margin: auto 0 48px;
    text-align: center;
}

.hero__brand img {
    width: min(420px, 78vw);
    height: auto;
}

.hero__brand p {
    margin: 18px 0 0;
    color: var(--ink);
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero__services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: min(var(--wrap), calc(100% - 40px));
    padding-top: 28px;
    border-top: 1px solid rgba(56, 48, 59, 0.28);
    text-align: center;
}

.hero__services svg {
    width: 48px;
    height: 48px;
    color: var(--ink);
}

.hero__services h2,
.contacts h2,
.about h2,
.request h2,
.section-title {
    margin: 0;
    color: var(--ink);
    font-weight: 700;
}

.hero__services h2 {
    margin-top: 8px;
    font-size: 22px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero__services p {
    margin: 4px 0 0;
}

.band {
    background: var(--gray);
    padding: 72px 0;
}

.band--tariff {
    padding-top: 28px;
}

.request {
    max-width: 720px;
}

.request h2,
.section-title {
    margin-bottom: 28px;
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -0.03em;
    line-height: 1.15;
    text-align: center;
}

.request__form {
    display: grid;
    gap: 14px;
}

.request__form label {
    display: grid;
    gap: 6px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
}

.request__form input[type="text"],
.request__form input[type="tel"] {
    box-sizing: border-box;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d5d8d8;
    border-radius: 3px;
    background: #fff;
    color: var(--ink);
    font-size: 16px;
    font-weight: 400;
}

.request__agree {
    grid-template-columns: auto 1fr;
    align-items: start;
    font-weight: 400;
}

.request__agree input {
    margin-top: 4px;
}

.request__form button,
.tariff__btn {
    justify-self: start;
    padding: 16px 42px;
    border: 0;
    border-radius: 3px;
    background: #009ACD;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}

.tariff__btn:hover {
    background: #007eab;
    color: #fff;
    text-decoration: none;
}

.request__form button {
    justify-self: center;
}

.request__form button:disabled {
    opacity: 0.45;
    cursor: default;
}

.request__status {
    min-height: 1.4em;
    margin: 0;
}

.request__status.is-ok {
    color: var(--price);
}

.request__status.is-error {
    color: var(--accent);
}

.notice {
    width: min(420px, calc(100% - 32px));
    padding: 28px 24px 24px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    text-align: center;
    box-shadow: 0 20px 50px rgba(56, 48, 59, 0.2);
}

.notice::backdrop {
    background: rgba(56, 48, 59, 0.45);
}

.notice p {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.notice button {
    padding: 12px 36px;
    border: 0;
    border-radius: 3px;
    background: #009ACD;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.section-title {
    margin-bottom: 12px;
}

.coverage {
    margin: 0 auto 36px;
    max-width: 820px;
    color: var(--ink);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
}

.city-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 0 28px;
}

.city-tabs button {
    max-width: 100%;
    padding: 10px 16px;
    border: 1px solid #d5d8d8;
    border-radius: 3px;
    background: #fff;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    cursor: pointer;
}

.city-tabs button[aria-selected="true"] {
    border-color: #009ACD;
    background: #009ACD;
    color: #fff;
}

.tariff-panel {
    display: grid;
    gap: 28px;
    min-width: 0;
}

.tariff-panel[hidden] {
    display: none;
}

.tariff-block h3 {
    margin: 0 0 16px;
    color: var(--ink);
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}

.tariff-block,
.tariff-table-wrap {
    min-width: 0;
    max-width: 100%;
}

.tariff-table-wrap {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    box-shadow: 0 10px 30px rgba(56, 48, 59, 0.06);
}

.tariff-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.tariff-table--plans {
    min-width: 560px;
}

.tariff-table--short {
    min-width: 420px;
}

.tariff-table th,
.tariff-table td {
    padding: 18px 16px;
    border-bottom: 1px solid #eaeded;
    text-align: center;
}

.tariff-table thead th {
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tariff-table thead th:first-child,
.tariff-table tbody th {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #fff;
    box-shadow: 8px 0 12px rgba(56, 48, 59, 0.04);
}

.tariff-table tbody th {
    color: var(--ink);
    font-weight: 600;
    text-align: left;
}

.tariff-table td {
    color: var(--muted);
}

.tariff-price {
    color: #f1ad59;
    font-size: 22px;
    font-weight: 700;
    white-space: nowrap;
}

.tariff-note {
    margin: 0;
    color: var(--ink);
    text-align: center;
}

.tariff-actions {
    display: grid;
    justify-items: center;
    gap: 20px;
    margin-top: 20px;
}

.about {
    padding: 72px 0;
}

.about__inner {
    max-width: 860px;
}

.about p,
.about li {
    font-size: 17px;
}

.about ul {
    padding-left: 20px;
}

.about h2 {
    margin: 36px 0 16px;
    font-size: 30px;
}

.about__inner > h2:first-child {
    margin-top: 0;
}

.requisites {
    display: grid;
    gap: 28px;
}

.requisites__org {
    display: grid;
    gap: 6px;
}

.requisites__org + .requisites__org {
    padding-top: 28px;
    border-top: 1px solid var(--gray);
}

.requisites p {
    margin: 0;
}

.requisites strong {
    color: var(--ink);
    font-weight: 700;
}

.docs {
    margin: 8px 0 0;
    padding-left: 20px;
}

.docs li + li {
    margin-top: 6px;
}

.docs a {
    font-weight: 600;
}

#licenses {
    margin-top: 8px;
}

#licenses ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#licenses li {
    margin: 0;
    padding: 8px 8px 12px;
    border: 1px solid #f0f0f0;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

#licenses a {
    display: block;
    margin-bottom: 8px;
    color: inherit;
    text-decoration: none;
}

#licenses img {
    display: block;
    width: 100%;
    height: auto;
}

.license-view {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: 48px minmax(0, 640px) 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 56px 16px 24px;
    background: rgba(0, 0, 0, 0.82);
}

.license-view[hidden] {
    display: none;
}

body.license-view-open {
    overflow: hidden;
}

.license-view__figure {
    margin: 0;
    text-align: center;
}

.license-view img {
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 160px);
    background: #fff;
}

.license-view figcaption {
    margin-top: 12px;
    color: #fff;
    font-size: 15px;
    line-height: 1.4;
}

.license-view button {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
}

.license-view__close {
    position: absolute;
    top: 8px;
    right: 12px;
}

.contacts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.contacts h2 {
    margin-bottom: 12px;
    font-size: 22px;
}

.contacts p {
    margin: 0 0 10px;
}

.site-footer {
    background: var(--footer);
    color: rgba(255, 255, 255, 0.82);
}

.site-footer a {
    color: #fff;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer__vk {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.site-footer__vk svg {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    fill: currentColor;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    padding: 56px 0 40px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 20px;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li,
.site-footer p {
    margin-top: 8px;
}

.site-footer p {
    margin-bottom: 0;
}

.site-footer__copy {
    padding: 16px 20px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 14px;
}

.cookie {
    position: fixed;
    right: 0;
    bottom: 20px;
    left: 0;
    z-index: 40;
    display: flex;
    justify-content: center;
}

.cookie[hidden] {
    display: none;
}

.cookie__box {
    padding: 10px 15px;
    border-radius: 8px;
    background: #d9d9d9;
    color: #222;
}

.cookie__box a {
    color: #4b78a6;
}

.cookie__box button {
    margin-left: 8px;
    padding: 4px 12px;
    border: 0;
    border-radius: 3px;
    background: #f8f8f8;
    cursor: pointer;
}

.page-main {
    padding: 36px 0 64px;
}

.page__title {
    margin: 0 0 20px;
    color: var(--ink);
    font-size: 36px;
}

#tariff,
#about,
#contact,
#agreement,
#request {
    scroll-margin-top: 16px;
}

@media (max-width: 991px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        z-index: 5;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        margin: 0;
        padding: 8px 22px 18px;
        background: #fff;
        border-bottom: 1px solid #eee;
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-drop {
        width: 100%;
    }

    .nav-drop__menu {
        position: static;
        left: auto;
        top: auto;
        display: none;
        min-width: 0;
        margin-top: 8px;
        padding: 0 0 0 12px;
        border: 0;
        box-shadow: none;
        transform: none;
    }

    .nav-drop:hover .nav-drop__menu,
    .nav-drop:focus-within .nav-drop__menu {
        display: none;
    }

    .nav-drop.is-open .nav-drop__menu {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .hero {
        min-height: 560px;
    }

    .hero__services,
    .contacts,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .lk {
        font-size: 12px;
    }
}

@media (max-width: 800px) {
    .tariff-table-wrap {
        overflow: visible;
        background: transparent;
        box-shadow: none;
    }

    .tariff-table,
    .tariff-table--plans,
    .tariff-table--short {
        display: block;
        min-width: 0;
    }

    .tariff-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .tariff-table tbody {
        display: grid;
        gap: 12px;
    }

    .tariff-table tr,
    .tariff-table th,
    .tariff-table td {
        display: block;
        min-width: 0;
    }

    .tariff-table tr {
        background: #fff;
        box-shadow: 0 10px 30px rgba(56, 48, 59, 0.06);
    }

    .tariff-table thead th:first-child,
    .tariff-table tbody th {
        position: static;
        box-shadow: none;
    }

    .tariff-table tbody th {
        padding: 14px 16px 8px;
        border-bottom: 1px solid #eaeded;
        font-size: 15px;
    }

    .tariff-table td {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 16px;
        padding: 10px 16px;
        text-align: right;
    }

    .tariff-table tr td:last-child {
        padding-bottom: 14px;
        border-bottom: 0;
    }

    .tariff-table td:not([colspan])::before {
        flex: 1 1 auto;
        min-width: 0;
        color: var(--ink);
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.03em;
        text-align: left;
        text-transform: uppercase;
    }

    .tariff-table--plans td:not([colspan]):nth-child(2)::before {
        content: "100 М";
    }

    .tariff-table--plans td:not([colspan]):nth-child(3)::before {
        content: "200 М";
    }

    .tariff-table--plans td:not([colspan]):nth-child(4)::before {
        content: "300 М";
    }

    .tariff-table--short td:not([colspan]):nth-child(2)::before {
        content: "50 М";
    }

    .tariff-table--short td:not([colspan]):nth-child(3)::before {
        content: "100 М";
    }

    .tariff-table--malina td:not([colspan]):nth-child(2)::before {
        content: "Малина-50М";
    }

    .tariff-table--malina td:not([colspan]):nth-child(3)::before {
        content: "Малина-100М";
    }

    .tariff-table--malina td:not([colspan]):nth-child(4)::before {
        content: "Малина-200М";
    }

    .tariff-table--malina td:not([colspan]):nth-child(5)::before {
        content: "Малина-300М";
    }

    .tariff-price {
        font-size: 18px;
    }
}

@media (max-width: 640px) {
    .site-header__bar {
        min-height: 84px;
    }

    .brand img {
        height: 52px;
    }
}
