
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.hero-wrapper {
    background-image: url('../image/index.webp');
    background-blend-mode: overlay;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
}

.hero-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 12, 33, 0.6);
    z-index: 1;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ========== ШАПКА ========== */
.site-header {
    display: flex;
    justify-content: space-between;   
    align-items: center;
    padding: 24px 0 20px 0;
    border-bottom: 2px solid #C9A84C;
    flex-wrap: wrap;                 
    gap: 30px;              
}


.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Tinos', sans-serif;
    font-weight: 400;
    font-size: 20px;
    letter-spacing: 0.5px;
    color: #F5F0F9;
    transition: color 0.2s ease;
    flex-shrink: 0;            
}

.logo-img {
    height: 24px;
    width: auto;
    display: block;
    border-radius: 18px;
}

.logo-text {
    white-space: nowrap;
    line-height: 1.2;
}

.logo-link {
    color: inherit;              
    text-decoration: none;
    transition: color 0.2s ease;
}
.logo-link:hover {
    color: #C9A84C;            
}


.main-nav {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 48px;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-family: 'Tinos', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #F5F0F9;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: color 0.25s ease;
    padding: 4px 0;
    white-space: nowrap;
}

.nav-link:hover {
    color: #C9A84C;
}

/* ---------- АДАПТАЦИЯ ---------- */
@media (max-width: 1100px) {
    .nav-list {
        gap: 28px;
    }
    .nav-link {
        font-size: 18px;
    }
}

@media (max-width: 900px) {
    .nav-list {
        gap: 18px;
    }
    .nav-link {
        font-size: 16px;
    }
    .logo-text {
        font-size: 18px;
    }
    .container {
        padding: 0 20px;
    }
}


@media (max-width: 768px) {
    .site-header {
        flex-direction: column;  
        align-items: center;     
        gap: 25px;                  
        padding: 20px 0 16px 0;
    }

    .logo {
        justify-content: center;
        text-align: center;
        margin-bottom: 0;
    }

    .logo-text {
        white-space: normal;       
        font-size: 16px;
    }

    .main-nav {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .nav-list {
        flex-direction: column;    
        align-items: center;  
        gap: 16px;               
    }

    .nav-link {
        font-size: 18px;
    }
}


@media (max-width: 480px) {
    .nav-link {
        font-size: 16px;
    }

    .logo-text {
        font-size: 16px;
    }

    .container {
        padding: 0 16px;
    }
}

/* ========== ГЕРОЙ-СЕКЦИЯ ========== */
.hero {
    padding: 70px 0 90px 0;
}

.hero h1 {
    font-family: 'Tinos', serif;
    font-weight: 500;
    font-size: 40px;
    color: #C9A84C;
    text-transform: uppercase;
    margin-bottom: 28px;
    line-height: 1.2;
    letter-spacing: 1px;
}

.hero h1 .line1,
.hero h1 .line2 {
    display: block;
}

.hero-description {
    font-family: 'PT Sans', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #F5F0F9;
    line-height: 1.55;
    max-width: 1250px;
    margin-top: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.2px;
    text-align: justify;
    text-indent: 2em;
}

/* Адаптация hero */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 32px;
    }
    .hero-description {
        font-size: 18px;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 26px;
        margin-bottom: 20px;
    }
    .hero-description {
        font-size: 16px;
        text-indent: 1.5em;
    }
}

/* ========== О ПРОЕКТЕ ========== */
.about-section {
    background-color: #0D1B2A;
    padding: 70px 0 40px 0;
}

.about-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.about-title {
    font-family: 'Tinos', serif;
    font-weight: 400;
    font-size: 32px;
    color: #C9A84C;
    margin-bottom: 32px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.about-title .extra-gap {
    margin-right: 10px;
}

.about-text {
    font-family: 'PT Sans', sans-serif;
    font-weight: 400;
    font-size: 22px;
    color: #F5F0F9;
    line-height: 1.6;
    letter-spacing: 0.2px;
    text-indent: 2em;
}

/* Адаптация */
@media (max-width: 768px) {
    .about-title {
        font-size: 28px;
        letter-spacing: 2px;
    }
    .about-text {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .about-title {
        font-size: 24px;
        letter-spacing: 1px;
    }
    .about-text {
        font-size: 18px;
    }
}

/* ========== БЛОК ФЛОТОВОДЦЫ ========== */
.commanders-section {
    background-color: #0D1B2A;
    padding: 40px 0 90px 0;
}

.commanders-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.commanders-title {
    font-family: 'Tinos', serif;
    font-weight: 400;
    font-size: 32px;
    color: #C9A84C;
    margin-bottom: 32px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.commanders-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.commander-card {
    display: flex;
    width: 100%;
    height: 365px;
    background: #132B45;
    border: solid #C9A84C;
    border-width: 2px 1px;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow 0.3s ease, transform 0.35s ease;
    border-radius: 0;
}

.commander-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    transform: translateY(-8px) scale(1.02);
    border-color: #e0c58f;
}

.commander-image {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 37px 0 37px 16px;
}

.commander-image img {
    width: 250px;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.commander-card:hover .commander-image img {
    transform: scale(1.08);
}

.commander-info {
    padding: 37px 24px 24px 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: justify;
}

.commander-name {
    font-family: 'Tinos', serif;
    font-weight: 700;
    font-size: 32px;
    color: #E8D5A3;
    margin: 0 0 4px 0;
}

.commander-years {
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #326BAA;
    margin: 0 0 12px 0;
}

.commander-desc {
    font-family: 'PT Sans', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #90B5D5;
    line-height: 1.4;
    margin: 0;
}

.card-button {
    font-family: 'Tinos', serif;
    font-weight: 400;
    font-size: 20px;
    color: #90B5D5;
    text-decoration: none;
    display: inline-block;
    margin-top: auto;
    align-self: flex-end;
    transition: color 0.3s ease, transform 0.3s ease;
}

.commander-card:hover .card-button {
    color: #E8D5A3;
    transform: translateX(8px);
}


@media (max-width: 900px) {
    .commander-card {
        flex-direction: column;
        height: auto;
    }
    .commander-image {
        width: 100%;
        padding: 20px;
        justify-content: center;
    }
    .commander-image img {
        width: 100%;
        max-width: 300px;
        height: auto;
        object-fit: contain;
    }
    .commander-info {
        padding: 20px;
        text-align: center;
    }
    .commander-name {
        font-size: 28px;
    }
    .commander-desc {
        font-size: 18px;
    }
    .card-button {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .commanders-title {
        font-size: 24px;
        letter-spacing: 1px;
    }
    .commander-name {
        font-size: 24px;
    }
    .commander-desc {
        font-size: 16px;
    }
}

/* ========== БЛОК СОБЫТИЯ  ========== */
.events-section {
    background-color: #0D1B2A;
    padding: 70px 0 90px 0;
}

.events-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.events-title {
    font-family: 'Tinos', serif;
    font-weight: 400;
    font-size: 32px;
    color: #C9A84C;
    margin-bottom: 32px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.events-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.event-card {
    display: flex;
    width: 100%;
    height: 365px;
    background: #132B45;
    border: solid #C9A84C;
    border-width: 2px 1px;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow 0.3s ease, transform 0.35s ease;
    border-radius: 0;
}

.event-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    transform: translateY(-8px) scale(1.02);
    border-color: #e0c58f;
}

.event-image {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 37px 0 37px 16px;
}

.event-image img {
    width: 500px;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.08);
}

.event-info {
    padding: 37px 24px 37px 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: justify;
}

.event-name {
    font-family: 'Tinos', serif;
    font-weight: 400;
    font-size: 32px;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.event-years {
    font-family: 'Philosopher', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #E8D5A3;
    margin: 0 0 12px 0;
}

.event-desc {
    font-family: 'PT Sans', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #90B5D5;
    line-height: 1.4;
    margin: 0;
}

.event-card:hover .card-button {
    color: #E8D5A3;
    transform: translateX(8px);
}


@media (max-width: 900px) {
    .event-card {
        flex-direction: column;
        height: auto;
    }
    .event-image {
        width: 100%;
        padding: 20px;
        justify-content: center;
    }
    .event-image img {
        width: 100%;
        max-width: 500px;
        height: auto;
        object-fit: contain;
    }
    .event-info {
        padding: 20px;
        text-align: center;
    }
    .event-name {
        font-size: 28px;
    }
    .event-desc {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .events-title {
        font-size: 24px;
        letter-spacing: 1px;
    }
    .event-name {
        font-size: 24px;
    }
    .event-desc {
        font-size: 16px;
    }
}

/* ========== ФУТЕР ========== */
.footer {
    background-image: url('../image/index.webp');
    background-blend-mode: overlay;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 12, 33, 0.6);
    z-index: 1;
    pointer-events: none;
}

.footer-container {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 70px 32px 40px 32px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-left {
    display: flex;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo-img {
    height: 24px;
    width: auto;
    display: block;
    border-radius: 18px;
}

.footer-logo-text {
    font-family: 'Tinos', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #F5F0F9;
    transition: color 0.2s ease;
    line-height: 1;
}


.footer-logo-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-logo-link:hover {
    color: #C9A84C;         
}

.footer-right {
    display: flex;
}

.footer-nav-horizontal {
    display: flex;
    gap: 48px;
}

.footer-link {
    font-family: 'Tinos', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #F5F0F9;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-link:hover {
    color: #E0C58F;
}

.footer-bottom {
    text-align: center;
    border-top: 2px solid #E0C58F;
    padding-top: 30px;
}

.footer-copyright {
    font-family: 'PT Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #F5F0F9;
    letter-spacing: 0.2px;
}


@media (max-width: 768px) {
    .footer-container {
        padding: 50px 20px 30px 20px;
    }
    .footer-top {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        margin-bottom: 30px;
    }
    .footer-left {
        justify-content: center;
    }
    .footer-logo {
        justify-content: center;
    }
    .footer-right {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .footer-nav-horizontal {
        gap: 30px;
    }
    .footer-link {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .footer-nav-horizontal {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .footer-link {
        font-size: 16px;
    }
    .footer-copyright {
        font-size: 12px;
    }
}

/* ========== АНИМАЦИИ  ========== */


.commander-card,
.event-card {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.commander-card.visible,
.event-card.visible {
    opacity: 1;
    transform: translateY(0);
}


.commander-card:hover,
.event-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border-color: #e0c58f;
}

.commander-image img,
.event-image img {
    transition: transform 0.5s ease;
}

.commander-card:hover .commander-image img,
.event-card:hover .event-image img {
    transform: scale(1.08);
}


.about-title,
.commanders-title,
.events-title {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.about-title.visible,
.commanders-title.visible,
.events-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.page-wrapper {
    animation: fadeInPage 0.9s ease forwards;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-button {
    transition: all 0.3s ease;
}

.commander-card:hover .card-button,
.event-card:hover .card-button {
    color: #E8D5A3;
    transform: translateX(8px);
}


@media (max-width: 900px) {
    .commander-card,
    .event-card {
        transition-duration: 0.5s;
    }
}

/* Кнопка «Наверх» */
.scroll-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background-color:#0D1B2A;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 2px solid #C9A84C;
    border-radius: 50%;
    color: #C9A84C;
    font-family: 'Tinos', serif;
    font-size: 28px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.2s, border-color 0.2s;
    z-index: 9999;
    padding: 0;
    outline: none;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: #C9A84C;
    border-color: #E8D5A3;
    color: #0D1B2A;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 25px;
        right: 25px;
        width: 44px;
        height: 44px;
        font-size: 24px;
    }
}