﻿@import url('https://fonts.googleapis.com/css2?family=Spectral:wght@400;500;600;700&display=swap');

body {
    margin: 0;
    background: #07130d;
    min-height: 100vh;
}
.corner {
    position: absolute;
    font-size: 30px;
    color: #c5a15a;
    z-index: 2;
    opacity: 0.7;
}

.corner-tl {
    top: 5px;
    left: 15px;
}

.corner-tr {
    top: 5px;
    right: 15px;
    transform: scaleX(-1);
}

.corner-bl {
    bottom: 5px;
    left: 15px;
}

.corner-br {
    bottom: 5px;
    right: 15px;
    transform: scaleX(-1);
}

.welcome-ornament {
    text-align: center;
    font-size: 30px;
    color: #c59b35;
    margin: 20px 0;
    opacity: 0.7;
}

.welcome-text {
    margin: 30px 0;
    text-align: center;
    color: #6b5b45;
    font-style: italic;
    font-size: 21px !important;
    line-height: 1.6;
}

.welcome-text p {
    margin: 10px 0;
    font-size: 21px !important;
}

.story-section {
    min-height: 100vh;
    background-image: linear-gradient(rgba(5, 15, 10, 0.45), rgba(5, 15, 10, 0.75)), url('../img/forest.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 20px;
    box-sizing: border-box;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.story-section::-webkit-scrollbar {
    display: none;
}

.story-card {
    width: min(800px, 90vw);
    box-sizing: border-box;
    padding: 60px 80px;
    position: relative;
    background: radial-gradient(ellipse at center, #f5e8c7 0%, #ecdcba 70%, #e3cfaa 100%);
    color: #3d3020;
    border: 1px solid #c5a15a;
    border-radius: 8px;
    box-shadow: 0 0 0 2px rgba(255, 240, 190, 0.25), 0 0 25px rgba(201, 169, 91, 0.18), 0 25px 70px rgba(0, 0, 0, 0.65);
    margin-bottom: 60px; /* Отступ снизу, чтобы карточка не прилипала к краю */
}

.story-card::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(170, 130, 55, 0.45);
    border-radius: 4px;
    pointer-events: none;
}

.content-block {
    padding: 30px 25px;
    background: rgba(255, 250, 240, 0.4);
    border: 1px solid rgba(170, 130, 55, 0.3);
    border-radius: 12px;
    box-shadow: inset 0 0 20px rgba(170, 130, 55, 0.05);
    margin: 35px 0;
}

.welcome-block {
    text-align: center;
    padding: 40px 25px;
}

.story-card h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 80px);
    font-weight: 600;
    color: #3a3024;
    font-family: 'Spectral', Georgia, serif;
    letter-spacing: 3px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    text-align: center;
    line-height: 1.1;
    width: 100%;
}

.story-card h1 span {
    color: #c59b35;
    line-height: 1.2;
}

.subtitle {
    margin-top: 20px;
    font-size: 22px;
    font-style: italic;
    color: #6b5b45;
}

.date {
    margin-top: 25px;
    font-size: 26px;
    color: #a27a24;
    letter-spacing: 2px;
}

.section-title {
    text-align: center;
    margin: 0 0 25px;
    font-size: 34px;
    color: #463522;
    font-weight: 500;
}

.story-card h2 {
    margin: 0 0 25px;
    font-size: 36px;
    color: #463522;
    text-align: center;
    font-family: 'Spectral', Georgia, serif;
    font-weight: 600;
    letter-spacing: 2px;
}

.story-card p {
    font-size: 18px;
    line-height: 1.8;
    margin: 15px 0;
}

.magic-button {
    margin-top: 30px;
    padding: 14px 40px;
    background: linear-gradient(135deg, #8b1e35 0%, #7b1e35 50%, #6b1e35 100%);
    color: #fff5e6;
    border: 1px solid #c5a15a;
    border-radius: 30px;
    font-size: 18px;
    cursor: pointer;
    font-family: 'Cinzel', Georgia, serif;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(123, 30, 53, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.magic-button::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 200, 100, 0.2) 0%, transparent 70%);
    animation: flame 2s ease-in-out infinite;
}

@keyframes flame {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(10px, -10px) scale(1.1);
    }
}

.magic-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(123, 30, 53, 0.6);
}

.path-block {
    margin: 35px 0;
    padding: 30px 25px;
    background: rgba(255, 250, 240, 0.4);
    border: 1px solid rgba(170, 130, 55, 0.3);
    border-radius: 12px;
    box-shadow: inset 0 0 20px rgba(170, 130, 55, 0.05);
}

.path-block h3 {
    margin: 0 0 15px;
    font-size: 24px;
    color: #463522;
    text-align: center;
    font-family: 'Spectral', Georgia, serif;
    font-weight: 600;
    letter-spacing: 1px;
}

.path-description {
    margin: 0 0 20px;
    text-align: center;
    font-style: italic;
    color: #6b5b45;
    font-size: 17px;
}

.path-info {
    margin: 0 0 20px;
    text-align: center;
    color: #3d3020;
    font-size: 17px;
}

.path-info p {
    margin: 8px 0;
    line-height: 1.6;
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: 8px;
    border: 2px solid rgba(170, 130, 55, 0.4);
    box-shadow: inset 0 0 15px rgba(170, 130, 55, 0.1), 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 20px;
    background: #e8dcc0;
    position: relative;
}

.map-container::after {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(170, 130, 55, 0.3);
    border-radius: 4px;
    pointer-events: none;
    z-index: 1;
}

.path-divider {
    text-align: center;
    margin: 40px 0;
    color: #c59b35;
    font-size: 20px;
    letter-spacing: 10px;
}

.path-footer {
    text-align: center;
    margin-top: 40px;
    color: #8b7355;
    font-style: italic;
    font-size: 17px;
}

.path-footer-coord {
    text-align: center;
    margin-top: 30px;
    color: #7b1e35;
    font-size: 25px !important;
}
.parking-photo {
    margin: 20px 0 0;
    text-align: center;
}

.parking-photo img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(170, 130, 55, 0.4);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.story-photo {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(170, 130, 55, 0.4);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.parking-photo figcaption {
    margin-top: 10px;
    color: #6b5b45;
    font-size: 20px;
}

#history-section p {
    text-align: center;
}

.dresscode-info {
    text-align: center;
    font-style: italic;
    font-size: 28px !important;
    margin-top: 20px;
}

.dresscode-note {
    text-align: center;
    color: #7b1e35;
    font-style: italic;
    font-size: 22px !important;
    margin-top: 20px;
}

@media (max-width: 600px) {
    .story-section {
        padding: 20px 10px;
    }

    .story-card {
        width: 90%;
        padding: 25px 15px;
        margin-bottom: 20px;
    }

    .story-card h1 {
        font-size: 38px;
        line-height: 1.1;
    }

    .story-card h1 span {
        line-height: 1.2;
    }

    .subtitle {
        font-size: 17px;
    }

    .date {
        font-size: 20px;
    }

    .welcome-text {
        font-size: 17px;
    }

    .welcome-text p {
        font-size: 17px;
    }

    .content-block {
        padding: 15px 10px;
        margin: 20px 0;
    }

    .welcome-block {
        padding: 20px 10px;
    }

    .path-block {
        padding: 15px 10px;
        margin: 20px 0;
    }

    .path-block h3 {
        font-size: 18px;
    }

    .path-description {
        font-size: 15px;
    }

    .path-info {
        font-size: 15px;
    }

    .map-container {
        height: 300px;
    }

    .path-divider {
        letter-spacing: 5px;
        font-size: 16px;
        margin: 25px 0;
    }

    .path-footer {
        font-size: 15px;
    }

    .path-footer-coord {
        font-size: 20px;
    }

    .corner {
        font-size: 20px;
    }

    .corner-tl {
        top: 3px;
        left: 8px;
    }

    .corner-tr {
        top: 3px;
        right: 8px;
        transform: scaleX(-1);
    }

    .corner-bl {
        bottom: 3px;
        left: 8px;
    }

    .corner-br {
        bottom: 3px;
        right: 8px;
        transform: scaleX(-1);
    }
    #history-section p {
        text-align: center;
    }
    .dresscode-info {
        text-align: center;
        font-style: italic;
        font-size: 28px !important;
        margin-top: 20px;
    }

    .dresscode-note {
        text-align: center;
        color: #7b1e35;
        font-style: italic;
        font-size: 22px !important;
        margin-top: 20px;
    }
}
