:root {
    --blue: #075fae;
    --blue-dark: #073b70;
    --red: #e0352f;
    --ink: #18202b;
    --muted: #667085;
    --line: #d9e2ec;
    --bg: #f5f7fa;
    --white: #ffffff;
    --shadow: 0 18px 50px rgba(12, 39, 75, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
    background: var(--white);
}

body.is-lightbox-open {
    overflow: hidden;
}

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

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

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

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

.topline {
    background: var(--blue-dark);
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
}

.topline__inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

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

.logo img {
    width: 430px;
    max-height: 58px;
    object-fit: contain;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.main-nav a {
    padding: 10px 12px;
    border-radius: 8px;
    color: #263244;
    font-weight: 700;
    font-size: 15px;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--blue);
    background: #edf6ff;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 42px;
    position: relative;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
}

.menu-toggle span:not(.visually-hidden) {
    position: absolute;
    left: 11px;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--blue);
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.menu-toggle span:nth-child(1) {
    top: 13px;
}

.menu-toggle span:nth-child(2) {
    top: 20px;
}

.menu-toggle span:nth-child(3) {
    top: 27px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.header-phones {
    display: grid;
    gap: 2px;
    text-align: right;
}

.header-phones a,
.footer-phone,
.panel-phone {
    color: var(--blue);
    font-weight: 800;
}

.hero {
    position: relative;
    min-height: 600px;
    display: grid;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 20, 40, 0.84), rgba(2, 20, 40, 0.48) 48%, rgba(2, 20, 40, 0.12));
}

.hero__inner {
    position: relative;
    padding: 78px 0 96px;
}

.hero__content {
    max-width: 720px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--red);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #ff7c76;
}

h1,
h2 {
    margin: 0;
    line-height: 1.12;
}

h1 {
    font-size: clamp(36px, 6vw, 66px);
    max-width: 900px;
}

h2 {
    font-size: clamp(27px, 4vw, 42px);
}

p {
    margin: 16px 0 0;
}

.hero p,
.page-hero p {
    max-width: 760px;
    font-size: 20px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 8px;
    background: var(--red);
    color: var(--white);
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(224, 53, 47, 0.28);
}

.button:hover {
    background: #c92d28;
}

.section {
    padding: 76px 0;
}

.section-muted {
    background: var(--bg);
}

.section-head {
    display: grid;
    gap: 10px;
    margin-bottom: 28px;
}

.featured-grid,
.service-list,
.offer-grid,
.photo-grid {
    display: grid;
    gap: 18px;
}

.featured-grid {
    grid-template-columns: repeat(5, 1fr);
}

.service-list {
    grid-template-columns: repeat(3, 1fr);
}

.service-card {
    min-height: 300px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: #b8d9f6;
    box-shadow: var(--shadow);
}

.service-card__image {
    width: 100%;
    aspect-ratio: 3 / 2;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 8px;
    background: #eef7ff;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(7, 95, 174, 0.08);
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card__title {
    display: block;
    color: var(--blue-dark);
    font-size: 20px;
    line-height: 1.2;
    font-weight: 900;
}

.service-card__text {
    display: block;
    margin-top: 10px;
    color: var(--muted);
}

.split,
.service-hero__grid,
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
    gap: 42px;
    align-items: center;
}

.split-image,
.service-hero img,
.map-card,
.photo-grid img {
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.split-image,
.service-hero img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.check-list {
    display: grid;
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 30px;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: inset 0 0 0 4px var(--white);
}

.offer-grid {
    grid-template-columns: repeat(3, 1fr);
}

.offer,
.info-panel {
    padding: 26px;
    border-radius: 8px;
    background: var(--blue-dark);
    color: var(--white);
}

.page-hero {
    padding: 82px 0;
    background: linear-gradient(135deg, #eef7ff, #ffffff);
    border-bottom: 1px solid var(--line);
}

.service-hero {
    background: var(--bg);
}

.info-panel {
    align-self: stretch;
}

.info-panel h2 {
    font-size: 28px;
}

.info-panel p {
    color: rgba(255, 255, 255, 0.84);
}

.info-panel .panel-phone {
    display: block;
    margin-top: 16px;
    color: var(--white);
    font-size: 24px;
}

.price-table {
    display: grid;
    gap: 12px;
}

.price-table div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.price-table small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.price-table strong {
    color: var(--blue);
    font-size: 22px;
    white-space: nowrap;
}

.narrow {
    max-width: 820px;
}

.map-card {
    overflow: hidden;
    min-height: 420px;
}

.map-card iframe {
    width: 100%;
    height: 420px;
    border: 0;
}

.photo-grid {
    grid-template-columns: repeat(3, 1fr);
}

.photo-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery-link {
    display: block;
    cursor: zoom-in;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 54px 86px;
    background: rgba(3, 14, 27, 0.88);
}

.lightbox[hidden] {
    display: none;
}

.lightbox__image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
}

.lightbox__close {
    top: 22px;
    right: 22px;
    width: 44px;
    height: 44px;
    font-size: 34px;
    line-height: 1;
}

.lightbox__nav {
    top: 50%;
    width: 50px;
    height: 68px;
    transform: translateY(-50%);
    font-size: 52px;
}

.lightbox__nav--prev {
    left: 22px;
}

.lightbox__nav--next {
    right: 22px;
}

.lightbox__close:hover,
.lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.22);
}

.site-footer {
    padding: 54px 0 26px;
    color: rgba(255, 255, 255, 0.82);
    background: #07192c;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 34px;
}

.footer-logo {
    width: 330px;
    max-height: 62px;
    object-fit: contain;
    padding: 10px;
    border-radius: 8px;
    background: var(--white);
}

.site-footer h2 {
    color: var(--white);
    font-size: 22px;
}

.footer-phone,
.footer-link {
    display: block;
    margin-top: 9px;
    color: var(--white);
}

.copyright {
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 14px;
}

.legal-card,
.legal-text {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.legal-card dl {
    display: grid;
    gap: 18px;
    margin: 0;
}

.legal-card dl div {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.legal-card dl div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.legal-card dt {
    color: var(--muted);
    font-weight: 700;
}

.legal-card dd {
    margin: 0;
    font-weight: 800;
}

.legal-text h2 {
    margin-top: 30px;
    font-size: 26px;
}

.legal-text h2:first-child {
    margin-top: 0;
}

.cookie-banner {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    max-width: 1040px;
    margin: 0 auto;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: var(--white);
    background: #07192c;
    box-shadow: var(--shadow);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner p {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.82);
}

.cookie-banner a {
    color: #ffffff;
    text-decoration: underline;
}

.cookie-banner__button {
    min-width: 130px;
    box-shadow: none;
}

@media (max-width: 980px) {
    .topline__inner,
    .split,
    .service-hero__grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .topline__inner {
        padding: 9px 0;
    }

    .header-main {
        grid-template-columns: 1fr auto;
        padding: 14px 0;
        gap: 14px;
        position: relative;
    }

    .header-phones {
        grid-column: 1 / -1;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 16px;
        text-align: left;
    }

    .header-phones a {
        white-space: nowrap;
    }

    .menu-toggle {
        display: inline-flex;
        justify-self: end;
    }

    .main-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% - 4px);
        z-index: 30;
        display: none;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .featured-grid,
    .service-list,
    .offer-grid,
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        min-height: 560px;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .topline {
        display: none;
    }

    .site-header {
        position: sticky;
    }

    .logo img,
    .footer-logo {
        width: 270px;
        max-height: 44px;
    }

    .hero__inner,
    .page-hero,
    .section {
        padding: 52px 0;
    }

    .hero {
        min-height: 540px;
    }

    .hero p,
    .page-hero p {
        font-size: 18px;
    }

    .featured-grid,
    .service-list,
    .offer-grid,
    .photo-grid {
        grid-template-columns: 1fr;
    }

    .price-table div {
        grid-template-columns: 1fr;
    }

    .legal-card,
    .legal-text {
        padding: 22px;
    }

    .legal-card dl div,
    .cookie-banner {
        grid-template-columns: 1fr;
    }

    .button {
        width: 100%;
    }

    .lightbox {
        padding: 58px 14px;
    }

    .lightbox__nav {
        top: auto;
        bottom: 12px;
        transform: none;
        width: 58px;
        height: 48px;
        font-size: 42px;
    }

    .lightbox__nav--prev {
        left: 72px;
    }

    .lightbox__nav--next {
        right: 72px;
    }
}
