:root {
    --primary: #3558A8;
    --primary-dark: #1E3575;
    --grey: #eaeaea;
    --grey-light: #F5F7FA;
    --dark: #1F1F1F;
    --white: #FFFFFF;
    --muted: #b8b8b8;
    --muted-dim: #7a7a7a;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.55;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: var(--white);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02), 0 8px 24px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--primary);
}

.logo img {
    height: 68px;
    width: auto;
    display: block;
}

.logo__divider {
    width: 2px;
    height: 44px;
    background: currentColor;
    opacity: 0.25;
    border-radius: 2px;
    flex-shrink: 0;
}

.logo__text {
    font-family: 'Oswald', 'Montserrat', -apple-system, sans-serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 0.95;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: currentColor;
}

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

.nav a {
    text-decoration: none;
    color: var(--dark);
    font-size: 15px;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 6px;
    position: relative;
    transition: color 0.15s ease, background 0.15s ease;
}

.nav a:hover {
    color: var(--primary);
    background: rgba(53, 88, 168, 0.06);
}

.nav a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 6px;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.nav a:hover::after {
    transform: scaleX(1);
}

@media (max-width: 980px) {
    .nav {
        gap: 0;
    }

    .nav a {
        padding: 10px 8px;
        font-size: 14px;
    }

    .nav a::after {
        left: 8px;
        right: 8px;
    }
}

@media (max-width: 820px) {
    .nav {
        display: none;
    }
}

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 90px 0 100px;
    text-align: center;
}

.hero h1 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 800;
    font-size: 44px;
    line-height: 1.12;
    letter-spacing: -0.3px;
    margin: 0 0 22px;
}

.hero p {
    font-size: 18px;
    max-width: 820px;
    margin: 0 auto 34px;
    opacity: 0.92;
}

.btn {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    padding: 15px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: transform 0.15s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    margin-left: 12px;
}

.section {
    padding: 70px 0;
}

.section--alt {
    background: var(--grey-light);
}

.section h2 {
    font-family: 'Oswald', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 1px;
    color: var(--primary);
    font-size: 34px;
    text-transform: uppercase;
    margin: 0 0 32px;
    font-weight: 700;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 52px;
}

.card {
    background: var(--white);
    border-radius: 10px;
    padding: 26px;
    border: 1px solid var(--grey);
}

.card h3 {
    color: var(--primary);
    font-size: 17px;
    margin: 0 0 10px;
}

.card p {
    margin: 0;
    font-size: 15px;
    color: #444;
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
}

.table th, .table td {
    padding: 14px 16px;
    text-align: left;
    font-size: 15px;
    border-bottom: 1px solid #eee;
}

.table th {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}

.table tr:last-child td {
    border-bottom: none;
}

@media (max-width: 700px) {
    .table {
        font-size: 13px;
    }

    .table th, .table td {
        padding: 10px 8px;
    }
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.gallery img:hover {
    transform: scale(1.02);
}

.docs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.doc {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    border: 1px solid var(--grey);
    border-radius: 10px;
    padding: 22px;
    text-decoration: none;
    color: var(--dark);
    transition: border-color 0.15s ease;
}

.doc:hover {
    border-color: var(--primary);
}

.doc__icon {
    width: 46px;
    height: 46px;
    background: var(--primary);
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.doc__title {
    font-weight: 600;
    margin-bottom: 3px;
    font-size: 15px;
}

.doc__meta {
    font-size: 13px;
    color: #777;
}

.footer {
    background: var(--dark);
    color: var(--white);
    padding: 70px 0 0;
    position: relative;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 50px;
    padding-bottom: 50px;
}

@media (max-width: 1100px) {
    .footer__grid {
        grid-template-columns: 1.4fr 1fr 1.3fr;
        gap: 40px;
    }

    .footer__nav {
        display: none;
    }
}

@media (max-width: 820px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer__nav {
        display: block;
    }
}

.footer__brand .logo {
    color: var(--white);
    margin-bottom: 20px;
}

.footer__brand .logo img {
    height: 54px;
}

.footer__brand .logo__divider {
    background: var(--white);
}

.footer__brand p {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

.footer__brand strong {
    color: var(--white);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.footer h3 {
    margin: 0 0 20px;
    font-family: 'Oswald', 'Montserrat', sans-serif;
    font-size: 16px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--white);
    font-weight: 600;
}

.footer__nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__nav li {
    margin-bottom: 10px;
}

.footer__nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s ease;
}

.footer__nav a:hover {
    color: var(--white);
}

.footer__contacts p {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--muted);
}

.footer__contacts a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer__contacts a:hover {
    color: var(--white);
}

.footer__phone {
    font-family: 'Oswald', 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--white) !important;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 6px;
    line-height: 1.1;
}

.footer__label {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted-dim);
    margin-bottom: 6px;
    display: block;
}

.footer__cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    padding: 26px;
}

.footer__cta h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.footer__cta p {
    margin: 0 0 18px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.55;
}

.footer__cta .btn {
    width: 100%;
    text-align: center;
    background: var(--white);
    color: var(--primary);
    padding: 13px 20px;
    font-size: 15px;
    box-sizing: border-box;
}

.footer__cta .btn:hover {
    transform: none;
    background: var(--grey-light);
}

.footer__bottom {
    border-top: 1px solid #2e2e2e;
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--muted-dim);
}

.footer__bottom a {
    color: var(--muted-dim);
    text-decoration: none;
}

.footer__bottom a:hover {
    color: var(--white);
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 30px;
}

.lightbox.is-open {
    display: flex;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 6px;
}

.lightbox__close {
    position: absolute;
    top: 16px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
}

.lightbox__close svg {
    display: block;
    width: 36px;
    height: 36px;
}

@media (max-width: 980px) {
    .header__inner {
        min-height: 80px;
    }

    .logo img {
        height: 56px;
    }

    .logo__text {
        font-size: 20px;
        letter-spacing: 1.2px;
    }

    .logo__divider {
        height: 36px;
    }
}

@media (max-width: 600px) {
    .logo img {
        height: 46px;
    }

    .logo__text {
        font-size: 15px;
        letter-spacing: 1px;
    }

    .logo__divider {
        display: none;
    }
}

@media (max-width: 420px) {
    .logo__text {
        display: none;
    }

    .logo  {
        height: 52px;
    }
}
