:root {
    --navy: #0d1b3e;
    --navy-2: #1a2a5c;
    --sky: #7cb4d7;
    --gold: #fce116;
    --gold-deep: #e0c800;
    --magenta: #c71585;
    --magenta-deep: #a00b6a;
    --ink: #243044;
    --muted: #5c6778;
    --line: #e4e8ee;
    --paper: #f6f7f9;
    --white: #fff;
    --header: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Montserrat, sans-serif;
    color: var(--ink);
    line-height: 1.65;
    background: var(--white);
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }
.skip-link {
    position: absolute;
    left: 12px;
    top: -40px;
    background: var(--gold);
    color: var(--navy);
    padding: 8px 12px;
    z-index: 3000;
    font-weight: 700;
}
.skip-link:focus { top: 12px; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 84px 0; }
.section-title {
    margin: 0 0 36px;
    text-align: center;
    color: var(--navy);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.section-title::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin: 12px auto 0;
    border-radius: 99px;
    background: var(--magenta);
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 6px;
    background: var(--magenta);
    color: var(--white);
    font-weight: 700;
    padding: 13px 22px;
    cursor: pointer;
}
.btn:hover { background: var(--magenta-deep); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(13, 27, 62, .25);
}
.nav {
    min-height: var(--header);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.logo {
    color: var(--gold);
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1.15;
}
.logo span {
    display: block;
    margin-top: 3px;
    color: var(--white);
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.nav-links { display: flex; gap: 22px; }
.nav-links a { font-size: .92rem; font-weight: 700; }
.nav-links a:hover { color: var(--gold); }
.menu-btn {
    display: none;
    background: transparent;
    border: 0;
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
}
.overlay, .sidebar { display: none; }

.hero { position: relative; height: min(78vh, 680px); min-height: 460px; background: var(--navy); overflow: hidden; }
.carousel-track { display: flex; height: 100%; transition: transform .55s ease; }
.slide {
    position: relative;
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 20px 72px;
    background-size: cover;
    background-position: center;
    color: var(--white);
}
.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 27, 62, .55), rgba(13, 27, 62, .78));
}
.slide-content { position: relative; z-index: 1; max-width: 780px; }
.slide h1 { margin: 0 0 10px; color: var(--gold); font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.15; }
.slide h2 { margin: 0 0 14px; font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 500; }
.slide p { margin: 0; color: #d7e8f4; }
.carousel-btn, .carousel-dots button {
    border: 0;
    cursor: pointer;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .82);
    color: var(--navy);
    z-index: 2;
}
.carousel-btn:hover { background: var(--gold); }
.prev-btn { left: 18px; }
.next-btn { right: 18px; }
.carousel-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22px;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}
.carousel-dots button {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
}
.carousel-dots button.is-active { background: var(--gold); }

.about-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 42px;
    align-items: center;
}
.portrait {
    position: relative;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(145deg, var(--navy), var(--sky));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 40px rgba(13, 27, 62, .16);
}
.portrait i { font-size: 5.5rem; opacity: .55; }
.portrait .name-tag {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 16px;
    background: var(--magenta);
    font-weight: 700;
    text-align: center;
}
.about-text h2 { margin: 0 0 6px; color: var(--navy); font-size: 1.8rem; }
.about-text .title { margin: 0 0 16px; color: var(--magenta); font-weight: 700; }
.about-text p { margin: 0 0 14px; color: var(--muted); }

.services { background: var(--paper); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 26px 20px 22px;
    box-shadow: 0 8px 24px rgba(13, 27, 62, .05);
}
.service-card:hover { border-top-color: var(--magenta); transform: translateY(-3px); }
.service-card i { color: var(--navy); font-size: 1.7rem; }
.service-card h3 { margin: 12px 0 6px; color: var(--navy); font-size: 1.05rem; }
.service-card p { margin: 0; color: var(--muted); font-size: .92rem; }

.training {
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    color: var(--white);
    text-align: center;
}
.training-content { max-width: 680px; margin: 0 auto; }
.training h2 { margin: 0 0 12px; color: var(--gold); font-size: clamp(1.7rem, 3vw, 2.2rem); }
.training p { margin: 0 0 24px; color: #d7e8f4; }
.training .btn { background: var(--gold); color: var(--navy); }
.training .btn:hover { background: var(--gold-deep); }

.contact-wrap {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(13, 27, 62, .08);
}
.contact-info { background: var(--navy); color: var(--white); padding: 36px 32px; }
.contact-info h3, .contact-form h3 { margin: 0 0 18px; font-size: 1.35rem; }
.contact-info h3 { color: var(--gold); }
.contact-item { display: flex; gap: 12px; margin-bottom: 16px; }
.contact-item i { color: var(--gold); width: 18px; margin-top: 4px; }
.contact-item a:hover { color: var(--gold); }
.contact-form { background: var(--paper); padding: 36px 32px; }
.contact-form h3 { color: var(--navy); }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; margin-bottom: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 13px;
    font-size: .95rem;
    background: var(--white);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group .error { color: #9f1239; font-size: .82rem; margin-top: 5px; }
.form-success {
    background: #ecfdf3;
    color: #166534;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 14px;
}
.contact-form .btn, .modal .btn { width: 100%; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.site-footer {
    background: var(--navy);
    color: #d7e8f4;
    text-align: center;
    padding: 28px 0;
    font-size: .92rem;
}
.site-footer p { margin: 0 0 6px; }

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(13, 27, 62, .72);
    z-index: 80;
}
.modal.show { display: flex; }
.modal-content {
    position: relative;
    width: min(480px, 100%);
    background: var(--white);
    border-radius: 14px;
    padding: 28px 24px 22px;
}
.modal h3 { margin: 0 0 16px; text-align: center; color: var(--navy); }
.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--muted);
}

.form-card:hover { border-top-color: var(--magenta); transform: translateY(-3px); }
.forms-catalogue {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.catalogue-lead {
    max-width: 560px;
    margin: -16px auto 32px;
    text-align: center;
    color: var(--muted);
}
.form-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 190px;
    background: var(--white);
    border-radius: 14px; 
    padding: 24px 20px 20px;
    box-shadow: 0 8px 24px rgba(13, 27, 62, .06);
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease;
}
.form-card h2 { margin: 0; color: var(--navy); font-size: 1.15rem; }
.form-card p { margin: 0; color: var(--muted); flex: 1; }
.form-card .meta { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--sky); }
.form-card .open { color: var(--magenta); font-weight: 700; }
.empty-forms { text-align: center; color: var(--muted); }

@media (max-width: 800px) {
    .nav-links, .carousel-btn { display: none; }
    .menu-btn { display: inline-flex; }
    .overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .5);
        z-index: 50;
    }
    .overlay.active { display: block; }
    .sidebar {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: min(300px, 86vw);
        height: 100%;
        background: var(--navy);
        color: var(--white);
        z-index: 60;
        padding: 18px 20px;
        transform: translateX(100%);
        transition: transform .25s ease;
    }
    .sidebar.active { transform: translateX(0); }
    .sidebar button {
        align-self: flex-end;
        background: transparent;
        border: 0;
        color: var(--white);
        font-size: 1.4rem;
        cursor: pointer;
    }
    .sidebar ul { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
    .sidebar a { font-size: 1.05rem; font-weight: 700; }
    .about-grid, .contact-wrap { grid-template-columns: 1fr; }
    .portrait { max-width: 280px; margin: 0 auto; }
    .section { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .carousel-track, .sidebar, .service-card { transition: none; }
}
