:root {
    --blue: #245682;
    --blue-dark: #153752;
    --red: #d71920;
    --ink: #14202b;
    --muted: #617282;
    --line: #d9e2ea;
    --paper: #ffffff;
    --soft: #f3f7fa;
    --teal: #1d7f78;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

a {
    color: inherit;
}

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

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

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 92px;
}

.brand {
    display: inline-flex;
    align-items: center;
    width: min(360px, 58vw);
}

.brand img {
    width: 100%;
    height: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 14px;
    color: var(--blue);
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: #fff;
    background: var(--red);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--blue);
}

.hero {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue) 50%, var(--teal));
    color: #fff;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 36px;
    min-height: auto;
    padding: 44px 0;
}

.hero-copy {
    max-width: 100%;
}

.hero h1 {
    margin: 0;
    font-size: clamp(36px, 7vw, 64px);
    line-height: 1.05;
}

.home-title-intro {
    font-weight: 400;
}


.hero p {
    margin: 18px 0 0;
    font-size: 20px;
}

.hero-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.28);
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content {
    padding: 46px 0 70px;
}

.home-layout,
.contact-layout {
    display: grid;
    grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.image-stack,
.gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.image-stack {
    grid-template-columns: 1fr;
}

.image-button {
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: #dfe7ee;
    cursor: pointer;
}

.image-button img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 180ms ease;
}

.image-button:hover img {
    transform: scale(1.04);
}

.text-flow,
.section-copy,
.contact-data,
.contact-form-wrap {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.text-flow p:first-child,
.section-copy p:first-child,
.contact-data p:first-child {
    margin-top: 0;
}

.text-flow p:last-child,
.section-copy p:last-child,
.contact-data p:last-child {
    margin-bottom: 0;
}

.service-section {
    display: grid;
    grid-template-columns: minmax(280px, 0.92fr) minmax(300px, 1fr);
    gap: 26px;
    align-items: start;
    margin-bottom: 28px;
}

.service-section-text {
    grid-template-columns: 1fr;
}

.service-section:nth-child(even) .gallery {
    order: 2;
}

.section-copy {
    border-top: 5px solid var(--blue);
}

.accent-red {
    border-top-color: var(--red);
}

.accent-dark {
    border-top-color: var(--ink);
}

.section-copy h2,
.contact-data h2 {
    margin: 0 0 14px;
    color: var(--blue-dark);
    font-size: 28px;
    line-height: 1.2;
}

.accent-red h2 {
    color: var(--red);
}

.section-copy h3 {
    margin: 24px 0 8px;
    font-size: 18px;
}

.section-copy ul {
    margin: 12px 0 0;
    padding-left: 20px;
}

.contact-data a,
.site-footer a {
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
}

.contact-form {
    display: grid;
    gap: 16px;
}

.contact-form label {
    display: grid;
    gap: 7px;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 13px;
    color: var(--ink);
    border: 1px solid #b9c7d4;
    border-radius: 8px;
    background: #fff;
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 3px solid rgba(36, 86, 130, 0.18);
    border-color: var(--blue);
}

.captcha-row {
    min-height: 78px;
}

.contact-form button[type="submit"] {
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--red);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.form-message {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 700;
}

.form-message.success {
    color: #0d4d31;
    background: #dff7ea;
}

.form-message.error {
    color: #7f1616;
    background: #fde2e2;
}

.site-footer {
    padding: 30px 0;
    color: #d9e7f2;
    background: var(--blue-dark);
}

.footer-inner {
    display: grid;
    gap: 18px;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-main span,
.footer-main strong {
    display: block;
}

.footer-contact {
    display: grid;
    gap: 4px;
    text-align: right;
}

.site-footer a {
    color: #fff;
}

.footer-links {
    display: flex;
    gap: 18px;
    justify-content: flex-end;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(9, 18, 27, 0.88);
}

.lightbox[hidden] {
    display: none;
}

.lightbox img {
    max-width: min(100%, 1180px);
    max-height: 86vh;
    border-radius: 8px;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    color: #fff;
    background: rgba(0, 0, 0, 0.25);
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 900px) {
    .header-inner {
        min-height: 78px;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px 18px;
        background: #fff;
        border-bottom: 1px solid var(--line);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        justify-content: center;
    }

    .hero-grid,
    .home-layout,
    .contact-layout,
    .service-section {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        min-height: auto;
        padding: 42px 0;
    }

    .service-section:nth-child(even) .gallery {
        order: 0;
    }

    .footer-main {
        flex-direction: column;
    }

    .footer-contact {
        text-align: left;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .shell {
        width: min(100% - 22px, 1180px);
    }

    .hero h1 {
        font-size: 34px;
    }


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

    .gallery {
        grid-template-columns: 1fr;
    }

    .text-flow,
    .section-copy,
    .contact-data,
    .contact-form-wrap {
        padding: 20px;
    }
}
