:root {
    --brand-1: #631af4;
    --accent: #0ea5e9;
    --logo-blue: #053141;
    /* тёмно-синий/сине-зелёный — под логотип */
    --ring: #e6eef8;
    --bg: #f7fbff;
}


/* HERO */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 75vh;
    padding: 150px;
    0 100px
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0
}

.hero-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 1s ease, transform 8s ease;
}

.hero-bg img.show {
    opacity: 1;
    transform: scale(1)
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.72));
    z-index: 1
}

/* make hero inner wider like cover */
.hero-inner.wide {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center
}

.hero-content {
    max-width: 1100px;
    text-align: center;
    padding: 40px 24px
}

/* Title styles */
.hero-title {
    font-size: 48px;
    /* увеличено */
    line-height: 1.02;
    margin: 0 0 14px;
    color: var(--logo-blue);
    /* тёмно-синий из логотипа */
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero-sub {
    margin: 0 auto 22px;
    max-width: 900px;
    color: #334155;
    font-weight: 400;
    /* не жирный */
    font-size: 18px;
}

/* Buttons centered and no underline */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 14px
}

.btn-cta {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-1), var(--accent));
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    /* важно: убрать подчёркивание */
    box-shadow: 0 8px 26px rgba(14, 165, 233, 0.14);
}

/* Responsive adjustments */
@media (max-width:900px) {
    .hero-title {
        font-size: 34px
    }

    .hero-sub {
        font-size: 16px
    }

    .hero {
        padding: 48px 0 64px
    }
}

@media (max-width:520px) {
    .hero-title {
        font-size: 26px
    }

    .hero-sub {
        font-size: 15px
    }

    .container {
        padding: 0 12px
    }

    .nav-links {
        gap: 12px
    }
}


/* WHO block - full self-contained styles */

/* Container centered like max-w-7xl */
.who-container {
    max-width: 1180px;
    /* standard site width */
    margin: 0 auto;
    padding: 0 16px;
}

/* whole block spacing */
.who-block {
    padding: 64px 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

/* grid: left text + right column */
.who-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    /* left fluid, right fixed */
    gap: 36px;
    align-items: start;
}

/* left column */
.who-title {
    font-size: 32px;
    font-weight: 800;
    color: #0b2133;
    margin: 0 0 14px;
    line-height: 1.02;
}

.who-text {
    font-size: 17px;
    line-height: 1.65;
    color: #334155;
    margin: 0 0 18px;
    max-width: 700px;
}

/* small aviation icon boxes under text */
.who-icons {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.who-icon-item {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    border: 2px solid #1e3a8a;
    /* dark-blue rim */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.06);
    transition: transform .22s ease, background .22s ease, border-color .22s ease;
}

.who-icon-item:hover {
    transform: translateY(-4px);
    background: #eef3ff;
    border-color: #3b82f6;
}

/* right column: advantage cards stacked */
.adv-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* advantage card style */
.adv {
    background: #ffffff;
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 700;
    color: #072033;
    border: 2px solid #1e3a8a;
    /* dark-blue rim */
    box-shadow: 0 10px 28px rgba(30, 58, 138, 0.04);
    height: 56px;
    /* compact uniform height */
    display: flex;
    align-items: center;
    transition: transform .22s cubic-bezier(.2, .9, .2, 1),
        box-shadow .22s ease,
        border-color .22s ease,
        background-color .22s ease;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* hover */
.adv:hover {
    transform: translateY(-4px);
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.06), #fff);
    border-color: #3b82f6;
    box-shadow: 0 20px 44px rgba(14, 165, 233, 0.14);
}

/* Accessibility: allow multi-line wrapping if needed (removes ellipsis),
   uncomment if you prefer wrapping inside fixed height:
.adv { white-space: normal; padding-top:10px; padding-bottom:10px; line-height:1.1; } */

/* Responsive: stack on small screens */
@media (max-width: 900px) {
    .who-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .who-right {
        order: 2;
    }

    /* make pills full-width in single-column layout (two per row) */
    .adv-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .adv {
        height: 56px;
        white-space: normal;
        text-align: center;
        padding: 10px 12px;
    }

    .who-icons {
        gap: 10px;
        margin-top: 12px;
    }

    .who-icon-item {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Very small screens: single column list for pills */
@media (max-width: 480px) {
    .adv-grid {
        grid-template-columns: 1fr;
    }

    .adv {
        height: auto;
        padding: 12px 14px;
        text-align: left;
        white-space: normal;
    }

    .who-text {
        font-size: 15.5px;
    }

    .who-title {
        font-size: 24px;
    }
}

/* reveal animation (use if you have .reveal JS) */
.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: all .6s ease;
}

.reveal.show {
    opacity: 1;
    transform: none;
}


/* PARTNERS SLIDER */
.partners-section {
    padding: 40px 0;
    background: transparent;
}

.partners-section .section-title {
    font-size: 28px;
    font-weight: 800;
    color: #0b2133;
    margin-bottom: 18px;
}

/* контейнер и видимая область слайдера */
.partners-slider {
    overflow: hidden;
    width: 100%;
    background: transparent;
    border-radius: 12px;
    box-sizing: border-box;
    padding: 10px 0;
}

/* трек: flex-ряд логотипов. Ширина автоматически >100% потому что элементы повторяются */
.slide-track {
    display: flex;
    align-items: center;
    gap: 28px;
    width: max-content;
    /* ширина определяется содержимым (включая дубликаты) */
    animation: partnersScroll 20s linear infinite;
    will-change: transform;
}

/* отдельный слайд — фиксированная минимальная ширина, центрируем лого внутри */
.slide {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    /* можно уменьшить/увеличить */
    padding: 8px 12px;
    box-sizing: border-box;
}

/* логотип — ограничиваем по высоте */
.slide img {
    max-height: 56px;
    width: auto;
    display: block;
    object-fit: contain;
    filter: none;
    transition: transform .25s ease;
}

/* эффект лёгкого увеличения при наведении на конкретный логотип */
.slide img:hover {
    transform: scale(1.06);
}

/* анимация — сдвигаем весь трек влево на половину его ширины (дубликаты обеспечивают seamless) */
@keyframes partnersScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Пауза при наведении на область слайдера (удобно для взаимодействия) */
.partners-slider:hover .slide-track {
    animation-play-state: paused;
}

/* уважение к reduced motion — убираем анимацию */
@media (prefers-reduced-motion: reduce) {
    .slide-track {
        animation: none;
    }
}

/* Адаптив: на маленьких экранах делаем логотипы чуть меньше */
@media (max-width: 800px) {
    .slide {
        min-width: 140px;
        gap: 18px;
    }

    .slide img {
        max-height: 48px;
    }
}

@media (max-width: 420px) {
    .slide {
        min-width: 120px;
    }

    .slide img {
        max-height: 40px;
    }
}


/* ===== COURSES BLOCK ===== */

.courses-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

.courses-block {
    padding: 70px 0;
}

.courses-title {
    font-size: 32px;
    font-weight: 800;
    color: #0b2133;
    margin-bottom: 32px;
    text-align: left;
}

/* Grid of 4 equal cards */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

/* Card Style */
.course-card {
    background: #ffffff;
    border: 2px solid #1e3a8a;
    /* темно-синий бордер */
    border-radius: 16px;
    padding: 22px 20px;
    height: 260px;
    /* одинаковая высота */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 0 14px 32px rgba(30, 58, 138, 0.08);
    transition: all 0.25s ease;
}

.course-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #0b2133;
}

.course-card p {
    font-size: 15px;
    line-height: 1.55;
    color: #334155;
}

/* Hover effect */
.course-card:hover {
    transform: translateY(-6px) scale(1.03);
    border-color: #3b82f6;
    box-shadow: 0 22px 48px rgba(14, 165, 233, 0.22);
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.05), #fff);
}

/* Responsive */
@media (max-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .course-card {
        height: 240px;
    }
}

@media (max-width: 600px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .course-card {
        height: auto;
    }
}

/* Reveal animation (если используете) */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: all .6s ease;
}

.reveal.show {
    opacity: 1;
    transform: none;
}



/* === LOOP GALLERY (идеальная бесконечная карусель) === */

.loop-gallery {
    padding: 60px 0;
    overflow: hidden;
    width: 100%;
}

.loop-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.loop-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: loopScroll 30s linear infinite;
}

/* Фото */
.loop-track img {
    height: 220px;
    width: auto;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(2, 8, 23, .12);
    transition: transform .3s ease;
}

.loop-track img:hover {
    transform: scale(1.05);
}

/* Анимация: прокручиваем ровно половину ширины дороги */
@keyframes loopScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Мобильная версия */
@media(max-width: 640px) {
    .loop-track img {
        height: 150px;
    }
}



/* TEAM / INSTRUCTORS BLOCK */
.team-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

.team-block {
    padding: 64px 0;
}

.team-title {
    font-size: 32px;
    font-weight: 800;
    color: #0b2133;
    margin-bottom: 26px;
}

/* Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Card */
.team-card {
    background: #fff;
    border-radius: 14px;
    border: 2px solid rgba(30, 58, 138, 0.08);
    box-shadow: 0 10px 26px rgba(2, 8, 23, 0.06);
    overflow: hidden;
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px;
    min-height: 130px;
    transition: transform .22s cubic-bezier(.2, .9, .2, 1), box-shadow .22s ease, border-color .22s ease;
}

/* hover: subtle lift, darker blue rim */
.team-card:hover {
    transform: translateY(-6px);
    border-color: #1e3a8a;
    box-shadow: 0 22px 48px rgba(14, 165, 233, 0.12);
}

/* Photo */
.team-media {
    flex: 0 0 auto;
}

.team-photo {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 6px 18px rgba(2, 8, 23, 0.08);
    display: block;
}

/* Body */
.team-body {
    flex: 1 1 auto;
    min-width: 0;
}

.team-name {
    font-size: 18px;
    font-weight: 800;
    color: #072033;
    margin: 0 0 4px;
}

.team-role {
    margin: 0;
    font-size: 14px;
    color: #2b4752;
    opacity: .95;
}

.team-meta {
    margin: 6px 0 0;
    font-size: 13px;
    color: #475b64;
}

/* Make all cards equal height visually on different content lengths */
.team-card {
    align-items: flex-start;
}

.team-photo {
    margin-top: 6px;
}

/* Responsive */
@media (max-width: 1000px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-card {
        padding: 14px;
        gap: 12px;
    }

    .team-photo {
        width: 72px;
        height: 72px;
    }

    .team-name {
        font-size: 17px;
    }
}



/* === LICENSES (фикс по ширине и выравниванию) === */

/* контейнер — использует ту же максимальную ширину, что и другие блоки */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* общий отступ секции */
#licenses {
    padding: 56px 0;
}

/* заголовок ровно в контейнере */
.licenses-inner {
    width: 100%;
}

.licenses-title {
    font-size: 32px;
    font-weight: 800;
    color: #0b2133;
    margin: 0 0 28px;
    /* дополнительно жёстко центрируем внутри контейнера */
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 8px;
}

/* сетка — ровно заполняет контейнер, без «убега» */
.licenses-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* 5 карточек на широких экранах */
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    /* центрируем */
    max-width: 1180px;
}

/* карточка — единый стиль, одинаковая высота */
.license-card {
    background: #fff;
    border: 1.4px solid rgba(45, 97, 116, 0.10);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 240px;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    box-shadow: 0 8px 22px rgba(2, 8, 23, 0.04);
}

/* image area */
.license-img {
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7fafc;
    border-bottom: 1px solid rgba(45, 97, 116, 0.04);
    padding: 12px;
}

.license-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* текст карточки */
.license-text {
    padding: 16px;
    font-weight: 700;
    color: #072033;
    line-height: 1.35;
    margin: 0;
}

/* hover */
.license-card:hover {
    transform: translateY(-6px);
    border-color: #1e3a8a;
    box-shadow: 0 20px 44px rgba(14, 165, 233, 0.12);
}

/* адаптив */
@media (max-width: 1200px) {
    .licenses-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .licenses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 680px) {
    .licenses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .license-img {
        height: 120px;
    }
}

@media (max-width: 420px) {
    .licenses-grid {
        grid-template-columns: 1fr;
    }

    .license-img {
        height: 140px;
    }
}








/* --- Contact Section Unified --- */
.contact-box {
    background: rgba(255, 255, 255, 0.96);
    border: 2px solid #e2e8f0;
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(2, 8, 23, 0.08);
    transition: border-color .25s ease, box-shadow .25s ease;
}

.contact-box:hover {
    border-color: #93c5fd;
    box-shadow: 0 16px 40px rgba(14, 165, 233, .18);
}

/* Единые параметры для обеих сторон */
.contact-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #0f172a;
}

.contact-text {
    font-size: 1rem;
    line-height: 1.55;
    color: #334155;
}

/* Уравниваем высоту левой и правой части */
@media (min-width: 768px) {
    .contact-side {
        height: 100%;
    }

    .contact-box .grid {
        align-items: stretch;
    }
}

/* Inputs */
.input-field {
    border: 1.6px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 1rem;
    transition: all .25s ease;
}

.input-field:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, .18);
}

/* Button */
.submit-btn {
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    transition: all .3s ease;
    cursor: pointer;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(14, 165, 233, .28);
}

/* Нижний блок trust + social */
.trust-social {
    background: rgba(255, 255, 255, 0.96);
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(2, 8, 23, 0.07);
}

/* Соц иконки */
.social-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f1f5f9;
    box-shadow: 0 4px 10px rgba(2, 8, 23, .06);
    transition: transform .25s ease, filter .25s ease, background .25s ease;
}

.social-icon:hover {
    transform: translateY(-2px) scale(1.06);
    filter: saturate(115%);
}

/* Responsive */
@media (max-width:768px) {
    .contact-box {
        padding: 20px;
    }

    .contact-title {
        text-align: center;
    }

    .contact-text {
        text-align: center;
    }

    .trust-social {
        text-align: center;
        padding: 18px;
    }
}

/* ANIMATIONS */
@keyframes float {
    0% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-8px)
    }

    100% {
        transform: translateY(0)
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s ease, transform .6s ease
}

.reveal.show {
    opacity: 1;
    transform: none
}

.hero-glow {
    position: relative;
    isolation: isolate
}

.hero-glow::after {
    background: radial-gradient(600px 240px at 100% 100%, rgba(14, 165, 233, .08), transparent 60%);
}

/* FORMS */
input,
textarea {
    border: 1px solid var(--ring);
    border-radius: 14px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .15)
}

::placeholder {
    color: #94a3b8
}

/* MOBILE */
@media (max-width:480px) {
    h1 {
        font-size: 1.9rem
    }

    .btn-primary,
    .btn-ghost {
        width: 100%;
        text-align: center
    }
}

/* UTILITIES */
.shadow-soft {
    box-shadow: var(--shadow)
}

.blur-bg {
    backdrop-filter: blur(8px)
}

.text-gradient {
    background: linear-gradient(90deg, var(--indigo), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.border-fade {
    border: 1px solid var(--ring)
}