/* ============================================
   «Кочевник 1» — Landing Page Styles
   Color Palette:
   - Primary Dark:   #2E4A3D
   - Light Background:#F5F1EB
   - Accent:         #D4A373
   - Text:           #1A1A1A
   ============================================ */

/* CSS Variables */
:root {
    --color-primary: #2E4A3D;
    --color-primary-dark: #1f362b;
    --color-primary-light: #3d6150;
    --color-bg: #F5F1EB;
    --color-bg-alt: #ebe5db;
    --color-accent: #D4A373;
    --color-accent-hover: #c49360;
    --color-text: #1A1A1A;
    --color-text-muted: #5c5c5c;
    --color-white: #ffffff;
    --color-overlay: rgba(26, 26, 26, 0.55);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --container-max: 1200px;
    --header-height: 64px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.25rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

@media (min-width: 1200px) {
    .container {
        padding: 0 2.5rem;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h3 {
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    text-align: center;
}

.btn--primary {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.btn--primary:hover,
.btn--primary:focus {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

.btn--outline:hover,
.btn--outline:focus {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn--light {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn--light:hover,
.btn--light:focus {
    background-color: var(--color-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn--full {
    width: 100%;
}

/* Section */
.section {
    padding: 4rem 0;
}

.section--alt {
    background-color: var(--color-bg-alt);
    background-image: url('./images/bg_alt4.png');
    background-repeat: repeat;
    background-size: 180px 180px;
    /* opacity: 0.1; */
}

.section--accent {
    background-color: var(--color-primary);
    color: var(--color-white);
}

@media (min-width: 768px) {
    .section {
        padding: 5rem 0;
    }
}

@media (min-width: 1024px) {
    .section {
        padding: 6rem 0;
    }
}

.section__title {
    font-size: 1.875rem;
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.section__title--light {
    color: var(--color-white);
}

.section__subtitle {
    font-size: 1rem;
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section--accent .section__subtitle {
    color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 768px) {
    .section__title {
        font-size: 2.25rem;
    }

    .section__subtitle {
        font-size: 1.125rem;
        margin-bottom: 3rem;
    }
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(245, 241, 235, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    transition: box-shadow var(--transition);
}

.header.is-scrolled {
    box-shadow: var(--shadow);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 40;
    font-size: 1.25rem;
    color: var(--color-primary);
}

.logo__icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    /* background-color: #ffffff; */
    border-radius: var(--radius-sm);
    padding: 2px;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* Navigation */
.nav__list {
    display: flex;
    gap: 2rem;
}

.nav__link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--color-text);
    position: relative;
    padding: 0.25rem 0;
    transition: color var(--transition);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition);
}

.nav__link:hover,
.nav__link:focus {
    color: var(--color-primary);
}

.nav__link:hover::after,
.nav__link:focus::after {
    width: 100%;
}

/* Mobile Navigation Toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    padding: 4px;
    z-index: 1001;
}

.nav__toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav__toggle.is-active .nav__toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.is-active .nav__toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav__toggle.is-active .nav__toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 767px) {
    .nav__toggle {
        display: flex;
    }

    .nav__list {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        flex-direction: column;
        gap: 0;
        background-color: rgba(245, 241, 235, 0.98);
        backdrop-filter: blur(10px);
        padding: 1rem 0;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .nav__list.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav__list li {
        width: 100%;
    }

    .nav__link {
        display: block;
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }

    .nav__link::after {
        display: none;
    }
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
    padding: calc(var(--header-height) + 2rem) 0 4rem;
}

.hero__bg {
    position: absolute;
    inset: 0;
    /* ЗАМЕНИТЬ: добавьте фоновое изображение в images/hero-bg.jpg */
    background-image: url('./images/hero-bg.jpg'), linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    background-position: center, center;
    background-size: cover, cover;
    background-repeat: no-repeat, no-repeat;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    /* background: linear-gradient(to bottom, rgba(26, 26, 26, 0.5) 0%, rgba(26, 26, 26, 0.7) 100%); */
    background: linear-gradient(to bottom, rgba(26, 26, 26, 0.3) 0%, rgba(26, 26, 26, 0.6) 100%);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

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

.hero__subtitle {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

@media (min-width: 480px) {
    .hero__actions {
        flex-direction: row;
        justify-content: center;
    }
}

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

    .hero__subtitle {
        font-size: 1.125rem;
    }
}

@media (min-width: 1024px) {
    .hero__title {
        font-size: 3rem;
    }
}

/* Hero Scroll Indicator */
.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s infinite;
}

.hero__scroll-line {
    display: block;
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-white), transparent);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ============================================
   FEATURES
   ============================================ */
.features.section {
    position: relative;
}

.features.section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('./images/bg_alt3.png');
    background-repeat: repeat;
    background-size: 180px 180px;
    opacity: 0.07;
    z-index: 0;
    pointer-events: none;
}

/* .description.section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('./images/bg_alt4.png');
    background-repeat: repeat;
    background-size: 180px 180px;
    opacity: 1.50;
    z-index: 0;
    pointer-events: none;
} */

.description.section .container {
    position: relative;
    z-index: 1;
}

.features.section .container {
    position: relative;
    z-index: 1;
}
.features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.feature-card {
    background-color: var(--color-white);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    margin-bottom: 1.25rem;
}

.feature-card__icon svg {
    width: 28px;
    height: 28px;
}

.feature-card__title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.feature-card__text {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ============================================
   DESCRIPTION
   ============================================ */
.description__content {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text);
}

.description__content p {
    margin-bottom: 1.25rem;
}

.description__lead {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-primary);
    line-height: 1.7;
}

.description__content strong {
    color: var(--color-primary);
    font-weight: 600;
}

.description__quote {
    margin: 2rem 0 0;
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    border-left: 4px solid var(--color-accent);
    background-color: var(--color-white);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.7;
    box-shadow: var(--shadow);
}

/* ============================================
   GALLERY
   ============================================ */
.gallery__slider {
    position: relative;
    margin-bottom: 2rem;
    overflow: hidden;
    border-radius: var(--radius);
}

.gallery__track {
    display: flex;
    transition: transform 0.5s ease;
}

.gallery__slide {
    flex: 0 0 100%;
    position: relative;
    background-color: var(--color-primary-dark);
    aspect-ratio: 16 / 10;
}

.gallery__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9375rem;
}

.gallery__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    box-shadow: var(--shadow);
    transition: background-color var(--transition), transform var(--transition);
    z-index: 2;
}

.gallery__btn:hover {
    background-color: var(--color-white);
    transform: translateY(-50%) scale(1.1);
}

.gallery__btn--prev {
    left: 1rem;
}

.gallery__btn--next {
    right: 1rem;
}

.gallery__dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.gallery__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-bg-alt);
    border: 2px solid var(--color-primary);
    transition: background-color var(--transition), transform var(--transition);
    cursor: pointer;
}

.gallery__dot.is-active {
    background-color: var(--color-primary);
    transform: scale(1.2);
}

/* Gallery Grid (shown on desktop alongside slider, or as fallback) */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .gallery__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .gallery__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery__item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background-color: var(--color-primary-dark);
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery__item:hover img {
    transform: scale(1.05);
}

/* Gallery Video */
.gallery__video {
    border-radius: var(--radius);
    overflow: hidden;
    background-color: var(--color-primary-dark);
}

.gallery__video video {
    width: 100%;
    display: block;
}

/* ============================================
   SPECS
   ============================================ */
.specs__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .specs__content {
        grid-template-columns: 1fr 1.2fr;
        gap: 3rem;
    }
}

.specs__image {
    border-radius: var(--radius);
    overflow: hidden;
    background-color: var(--color-bg-alt);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.specs__image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background-color: var(--color-bg-alt);
}

.specs__table-wrap {
    overflow-x: auto;
}

.specs__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.specs__table th,
.specs__table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd8cf;
}

.specs__table th {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary);
    width: 40%;
    background-color: rgba(46, 74, 61, 0.05);
}

.specs__table td {
    color: var(--color-text);
}

.specs__table tr:last-child th,
.specs__table tr:last-child td {
    border-bottom: none;
}

.specs__table tr:hover th,
.specs__table tr:hover td {
    background-color: rgba(46, 74, 61, 0.03);
}

.specs__table td ul {
    margin: 0;
    padding-left: 1.25rem;
    list-style-type: disc;
}

.specs__table td ul li {
    margin-bottom: 0.375rem;
    line-height: 1.5;
}

.specs__table td ul li:last-child {
    margin-bottom: 0;
}

/* ============================================
   PRICE
   ============================================ */
.price__inner {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.price__value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin: 1rem 0 0.5rem;
}

.price__note {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 2rem;
}

.price__actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 480px) {
    .price__actions {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .price__value {
        font-size: 3.5rem;
    }
}

/* ============================================
   CONTACT
   ============================================ */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 1024px) {
    .contact__grid {
        grid-template-columns: 1fr 1.2fr;
        gap: 3rem;
        align-items: start;
    }
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact__item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.contact__item a,
.contact__item p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.contact__item a:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

.contact__map {
    margin-top: 0.75rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Contact Form */
.contact__form {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form__group {
    margin-bottom: 1.25rem;
}

.form__group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
    color: var(--color-primary);
}

.form__group input,
.form__group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--color-text);
    background-color: var(--color-bg);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form__group input::placeholder,
.form__group textarea::placeholder {
    color: #a8a29e;
}

.form__group input:focus,
.form__group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.15);
}

.form__note {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 1rem;
}

.form__note a {
    color: var(--color-accent);
    text-decoration: underline;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 1.5rem;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer__inner {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 3rem;
    }
}

.footer__brand .logo {
    color: var(--color-white);
    margin-bottom: 0.75rem;
}

.footer__text {
    font-size: 0.9375rem;
    line-height: 1.6;
    max-width: 280px;
}

.footer__nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer__nav a {
    font-size: 0.9375rem;
    transition: color var(--transition);
}

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

.footer__social {
    display: flex;
    gap: 1rem;
}

.footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-white);
    transition: background-color var(--transition), transform var(--transition);
}

.footer__social a:hover {
    background-color: var(--color-accent);
    transform: translateY(-3px);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

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

@media (min-width: 768px) {
    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal__content {
    position: relative;
    background-color: var(--color-white);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-hover);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal.is-open .modal__content {
    transform: scale(1);
}

.modal__content h2 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modal__content p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.92);
    cursor: pointer;
}

.lightbox__content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox__img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.lightbox__counter {
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-heading);
    font-size: 0.875rem;
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: var(--color-white);
    transition: background-color var(--transition), transform var(--transition);
    cursor: pointer;
}

.lightbox__close:hover,
.lightbox__nav:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lightbox__close {
    top: 1.5rem;
    right: 1.5rem;
}

.lightbox__nav--prev {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__nav--next {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__nav--prev:hover,
.lightbox__nav--next:hover {
    transform: translateY(-50%) scale(1.1);
}

@media (min-width: 768px) {
    .lightbox__nav--prev {
        left: 2rem;
    }

    .lightbox__nav--next {
        right: 2rem;
    }
}

/* Make gallery grid items clickable */
.gallery__item {
    cursor: pointer;
}

/* ============================================
   PLACEHOLDER IMAGES (when no image file exists)
   ============================================ */
img[src$=".jpg"],
img[src$=".jpeg"],
img[src$=".png"],
img[src$=".webp"] {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-align: center;
    min-height: 40px;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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

    .hero__scroll {
        animation: none;
    }

    .gallery__track {
        transition: none;
    }
}
