/* --- НАСТРОЙКИ --- */
:root {
    --color-primary: #1A2F25;
    /* Глубокий лес */
    --color-accent: #C57D3E;
    /* Теплый янтарь */
    --color-cta: #C57D3E;
    --color-cta-hover: #b87536;
    --color-cta-shadow: rgba(197, 125, 62, 0.4);
    --color-bg: #F9F9F7;
    /* Молочный оттенок */
    --color-text: #2c2c2c;
    /* Мягкий черный */
    --color-white: #ffffff;
    --radius: 12px;
    --radius-card: 16px;
    --radius-pill: 50px;
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* Общие стили */
body {
    margin: 0;
    padding: 0;
    font-family: 'Manrope', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: 'Tenor Sans', sans-serif;
    color: var(--color-primary);
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
}

/* --- ГЕРОЙ (ПЕРВЫЙ ЭКРАН) --- */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.45)), url('images/karelia-home-main-photo.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
}

.hero h1 {
    margin-bottom: 20px;
    color: var(--color-white);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5), 0 4px 24px rgba(0, 0, 0, 0.35);
    line-height: 1.15;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    gap: 0.1em;
}

.hero-title-line {
    display: block;
    font-size: 3.5rem;
}

.hero-title-line--small {
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn--primary {
    background-color: var(--color-cta);
    color: var(--color-white);
    box-shadow: 0 4px 16px var(--color-cta-shadow);
}

.btn--primary:hover {
    transform: translateY(-2px);
    background-color: var(--color-cta-hover);
    box-shadow: 0 6px 22px rgba(197, 125, 62, 0.5);
}

.btn--secondary {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--color-primary);
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.btn--secondary:hover {
    transform: translateY(-2px);
    background-color: var(--color-white);
    border-color: var(--color-white);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn:focus-visible,
.scroll-btn:focus-visible,
.btn-social:focus-visible,
.phone-link:focus-visible,
.btn-map:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

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

.section-title--spaced {
    margin-bottom: 30px;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 50px;
    opacity: 0.7;
}

.section-title--reviews {
    margin-bottom: 40px;
}

.gallery-hint {
    text-align: center;
    margin-top: 15px;
    opacity: 0.5;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    padding: 12px 20px;
    background: var(--color-primary);
    color: white;
    font-weight: 600;
    z-index: 100;
    border-radius: var(--radius);
    transition: top 0.2s;
}

.skip-link:focus {
    top: 20px;
}

/* --- О ДОМИКЕ --- */
.about {
    padding: 100px 0;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius-card);
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.feature-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 25px;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* --- ГАЛЕРЕЯ --- */
.gallery {
    padding: 50px 0;
    background-color: white;
}

.gallery-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.gallery-scroll::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 320px;
    height: 450px;
    scroll-snap-align: center;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

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

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.scroll-btn {
    background-color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-primary);
    box-shadow: var(--shadow-card);
    position: absolute;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scroll-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.prev-btn {
    left: -25px;
}

.next-btn {
    right: -25px;
}

@media (max-width: 768px) {
    .scroll-btn {
        display: none;
    }
}

/* --- АКТИВНОСТИ --- */
.activities {
    padding: 100px 0;
    background-color: #F9F9F7;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.activity-card {
    height: 380px;
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.3s ease;
}

.activity-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.activity-overlay {
    background: linear-gradient(to top, rgba(26, 47, 37, 0.95) 0%, rgba(26, 47, 37, 0.6) 60%, transparent 100%);
    width: 100%;
    padding: 30px;
    position: relative;
    z-index: 2;
}

.activity-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.activity-card:hover .activity-bg {
    transform: scale(1.05);
}

.activity-title {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 8px;
    text-shadow: none;
}

.activity-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 400;
}

/* --- ОТЗЫВЫ --- */
.reviews {
    padding: 80px 0;
}

.review-card {
    background: white;
    padding: 40px;
    border: 1px solid #eee;
    border-left: 4px solid var(--color-accent);
    margin-bottom: 20px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.review-card p {
    font-style: italic;
    font-size: 1.05rem;
}

/* --- КОНТАКТЫ --- */
.contacts {
    background-color: var(--color-primary);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.contacts h2 {
    color: white;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn-social {
    padding: 16px 36px;
    border-radius: var(--radius-pill);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, opacity 0.3s;
}

.btn-social:hover {
    transform: translateY(-2px);
}

.btn-wa {
    background-color: #25D366;
}

.btn-tg {
    background-color: #229ED9;
}


.phone-link {
    display: block;
    margin-top: 30px;
    color: white;
    font-size: 2rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    transition: opacity 0.3s;
}

.phone-link:hover {
    opacity: 0.8;
}

/* Мобильный адаптив */
@media (max-width: 768px) {
    .hero {
        height: 80vh;
    }

    .hero-title-line {
        font-size: 2.2rem;
    }

    .hero-title-line--small {
        font-size: 1.65rem;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .btn-social {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}

/* --- КАРТА --- */
.address-block {
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.address-text {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
    font-family: 'Tenor Sans', sans-serif;
}

.map-wrapper {
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    border: 4px solid rgba(255, 255, 255, 0.1);
}

.btn-map {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s, background 0.3s, border-color 0.3s;
    margin-top: 10px;
}

.btn-map:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .map-wrapper iframe {
        height: 300px;
    }
}