:root {
    /* Кольорова палітра */
    --color-primary: #FFD700; /* Жовтий */
    --color-secondary: #1A1A1A; /* Темний */
    --color-dark: #1A1A1A;
    --color-light: #FFFFFF;
    --color-gray: #757575;
    --color-bg: #2A2A2A;
    --color-card-bg: #333333;

    /* Типографіка */
    --font-primary: 'Montserrat', sans-serif;
    
    /* Розміри */
    --container-width: 1200px;
    --container-padding: 20px;
    
    /* Переходи */
    --transition: all 0.3s ease;
}

/* Базові стилі */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-light);
    background-color: var(--color-bg);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Контейнер */
.container {
    max-width: var(--container-width);
    padding: 0 var(--container-padding);
    margin: 0 auto;
}

/* Хедер і навігація */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-secondary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.nav {
    padding: 1rem 0;
}

.nav__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__hero {
    text-align: center;
}

.nav__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--color-light);
}

.nav__dates,
.nav__callsign {
    font-size: 0.9rem;
    color: var(--color-primary);
}

.nav__menu {
    display: flex;
    gap: 2rem;
}

.nav__menu a {
    color: var(--color-light);
}

.nav__menu a:hover {
    color: var(--color-primary);
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

/* Адаптивність */
@media (max-width: 768px) {
    .nav__menu {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--color-secondary);
        padding: 1rem 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav__menu.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .nav__toggle {
        display: block;
    }

    .nav__toggle span,
    .nav__toggle span::before,
    .nav__toggle span::after {
        display: block;
        width: 25px;
        height: 2px;
        background-color: var(--color-light);
        position: relative;
        transition: var(--transition);
    }

    .nav__toggle span::before,
    .nav__toggle span::after {
        content: '';
        position: absolute;
        left: 0;
    }

    .nav__toggle span::before {
        top: -8px;
    }

    .nav__toggle span::after {
        top: 8px;
    }
}

/* Секції */
section {
    padding: 5rem 0;
}

/* Анімації */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero секція */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-light);
    padding: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)), url('../assets/hero-bg.jpg');
    background-size: cover;
    background-position: center 30%;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    opacity: 0.5;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero__button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--color-primary);
    color: var(--color-dark);
    border: 2px solid var(--color-primary);
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition);
}

.hero__button:hover {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

@media (max-width: 768px) {
    .hero__title {
        font-size: 2.5rem;
    }
    
    .hero__subtitle {
        font-size: 1.2rem;
    }
}

/* Заголовки секцій */
h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    color: var(--color-light);
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 1rem auto;
}

h3 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: var(--color-primary);
}

@media (max-width: 768px) {
    h3 {
        font-size: 1.5rem;
    }
}

/* Біографія */
.biography {
    background-color: var(--color-secondary);
    padding: 6rem 0;
}

.biography__content {
    max-width: 800px;
    margin: 0 auto;
}

.biography__text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: justify;
    color: var(--color-light);
}

.biography__list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.biography__item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--color-light);
}

.biography__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

@media (max-width: 768px) {
    .biography {
        padding: 4rem 0;
    }
    
    .biography__text {
        font-size: 1rem;
    }
    
    .biography__item {
        font-size: 1rem;
    }
}

/* Військова служба */
.military {
    background-color: var(--color-bg);
    position: relative;
}

.military::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05));
}

.military__content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.military__period {
    background-color: var(--color-card-bg);
    color: var(--color-light);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--color-primary);
}

.military__period-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.military__text {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: justify;
    color: var(--color-light);
}

@media (max-width: 768px) {
    .military__period {
        padding: 1.5rem;
    }
    
    .military__period-title {
        font-size: 1.2rem;
    }
    
    .military__text {
        font-size: 1rem;
    }
}

/* Оперативні дії */
.operations {
    background-color: var(--color-secondary);
    position: relative;
}

.operations__content {
    max-width: 800px;
    margin: 0 auto;
}

.operations__card {
    background-color: var(--color-card-bg);
    color: var(--color-light);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--color-primary);
}

.operations__title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    color: var(--color-primary);
}

.operations__text {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    color: var(--color-light);
}

@media (max-width: 768px) {
    .operations__card {
        padding: 1.5rem;
    }
    
    .operations__title {
        font-size: 1.2rem;
    }
    
    .operations__text {
        font-size: 1rem;
    }
}

/* Пам'ять */
.memory {
    background-color: var(--color-secondary);
    position: relative;
}

.memory h2 {
    color: var(--color-light);
}

.memory h2::after {
    background-color: var(--color-primary);
}

.memory__content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.memory__date {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    color: var(--color-primary);
}

.memory__awards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.memory__award {
    background-color: var(--color-card-bg);
    padding: 2rem;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid var(--color-primary);
}

.memory__award:hover {
    transform: translateY(-5px);
    background-color: var(--color-secondary);
    border-color: var(--color-primary);
}

.memory__award-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.memory__award-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-light);
}

@media (max-width: 768px) {
    .memory__date {
        font-size: 1.3rem;
    }
    
    .memory__award {
        padding: 1.5rem;
    }
    
    .memory__award-title {
        font-size: 1.2rem;
    }
    
    .memory__award-text {
        font-size: 1rem;
    }
}

/* Галерея */
.gallery {
    background-color: var(--color-bg);
}

.gallery__content {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: var(--transition);
    background-color: var(--color-card-bg);
}

.gallery__item:hover {
    transform: translateY(-5px);
}

.gallery__image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery__item:hover .gallery__image {
    transform: scale(1.1);
}

.gallery__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

.gallery__item:hover .gallery__overlay {
    opacity: 1;
}

.gallery__caption {
    color: var(--color-light);
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Модальне вікно для галереї */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    padding: 2rem;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__content {
    max-width: 90%;
    max-height: 90vh;
}

.modal__image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--color-light);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

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

@media (max-width: 768px) {
    .gallery__grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .gallery__image {
        height: 250px;
    }
    
    .gallery__caption {
        font-size: 1rem;
    }
}

/* Футер */
.footer {
    background-color: var(--color-secondary);
    color: var(--color-light);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--color-primary);
}

.footer__content {
    max-width: 800px;
    margin: 0 auto;
}

.footer__text {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer__text:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 0;
    }
    
    .footer__text {
        font-size: 0.9rem;
    }
}

/* Стилі для фотографій в секціях */
.section-photo {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.section-photo__img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition);
}

.biography__photos,
.military__photos,
.operations__photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.memory__photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* Секція подяки */
.gratitude {
    background-color: var(--color-bg);
    position: relative;
    padding: 6rem 0;
}

.gratitude__content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.gratitude__text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--color-light);
}

.gratitude__motto {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 3rem 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.gratitude__photo {
    max-width: 800px;
    margin: 3rem auto 0;
}

.gratitude__photo .section-photo {
    margin: 0;
}

.gratitude__photo .section-photo__img {
    height: auto;
    max-height: none;
    object-fit: contain;
}

@media (max-width: 768px) {
    .biography__photos,
    .military__photos,
    .operations__photos,
    .memory__photos {
        grid-template-columns: 1fr;
    }

    .section-photo__img {
        height: auto;
        max-height: none;
        object-fit: contain;
    }

    .gratitude__text {
        font-size: 1.1rem;
    }

    .gratitude__motto {
        font-size: 1.3rem;
    }

    .gratitude__photo {
        max-width: 100%;
    }
} 