/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Old+Standard+TT&display=swap');

:root {
    --dark-bg: #1a1a1a;
    --text-color: #f5f1e6;
    --accent-color: #a83232;
    --secondary-color: #7a7a7a;
    --highlight-color: #d14343;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Old Standard TT', serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.7;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" opacity="0.05"><rect fill="none" stroke="%23a83232" stroke-width="2" x="10" y="10" width="80" height="80"/></svg>');
    font-size: 18px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Заставка */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 25px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--dark-bg) 70%);
    z-index: -1;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    margin-bottom: 2.5rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 400;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero .quote {
    font-size: 1.4rem;
    max-width: 700px;
    font-style: italic;
    margin-bottom: 3.5rem;
    position: relative;
    padding: 0 25px;
    line-height: 1.8;
}

.hero .quote::before,
.hero .quote::after {
    content: '"';
    font-size: 2.5rem;
    color: var(--accent-color);
    position: absolute;
    opacity: 0.7;
}

.hero .quote::before {
    top: -15px;
    left: 0;
}

.hero .quote::after {
    bottom: -25px;
    right: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    font-size: 1.8rem;
    color: var(--accent-color);
}

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

/* Основное содержимое */
section {
    padding: 90px 0;
    border-bottom: 1px solid var(--secondary-color);
}

section:last-of-type {
    border-bottom: none;
}

.intro {
    text-align: center;
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.gallery-item {
    margin-bottom: 70px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s;
    padding: 25px;
    border-radius: 5px;
    transition: all 0.5s;
}

.gallery-item:hover {
    background: rgba(139, 0, 0, 0.05);
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    position: relative;
    padding-bottom: 15px;
}

.gallery-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.quote-block {
    border-left: 3px solid var(--accent-color);
    padding-left: 25px;
    margin: 25px 0;
    font-style: italic;
    font-size: 1.2rem;
    background: rgba(139, 0, 0, 0.05);
    padding: 20px 25px;
    border-radius: 0 5px 5px 0;
}

.commentary {
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Аптека для души */
.pharmacy {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    margin-top: 50px;
}

.remedy {
    background: rgba(139, 0, 0, 0.1);
    padding: 30px;
    border: 1px solid var(--secondary-color);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    position: relative;
    border-radius: 5px;
}

.remedy:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.remedy-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    display: flex;
    align-items: center;
}

.remedy-title::before {
    content: "♡";
    margin-right: 12px;
    font-size: 1.8rem;
}

.remedy-description {
    font-size: 1.2rem;
    line-height: 1.7;
}

/* Новые разделы - улучшенный дизайн */
.new-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.section-card {
    background: linear-gradient(145deg, rgba(139, 0, 0, 0.08), rgba(26, 26, 26, 0.5));
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    padding: 35px 25px;
    transition: all 0.4s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.section-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.section-card:hover::before {
    transform: scaleX(1);
}

.section-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.section-card:hover .section-icon {
    transform: scale(1.1);
}

.section-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.section-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.section-btn {
    display: inline-block;
    padding: 12px 25px;
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    transition: all 0.3s;
    border-radius: 3px;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.section-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transition: left 0.3s;
    z-index: -1;
}

.section-btn:hover {
    color: var(--text-color);
}

.section-btn:hover::before {
    left: 0;
}

/* Кнопки */
.btn-container {
    text-align: center;
    margin-top: 60px;
}

.archive-btn {
    display: inline-block;
    padding: 15px 35px;
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    letter-spacing: 1px;
}

.archive-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transition: left 0.4s;
    z-index: -1;
}

.archive-btn:hover {
    color: var(--text-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.3);
}

.archive-btn:hover::before {
    left: 0;
}

/* Заключение */
.conclusion {
    text-align: center;
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.conclusion p {
    margin-bottom: 25px;
}

footer {
    text-align: center;
    padding: 50px 0;
    font-size: 1rem;
    color: var(--secondary-color);
    border-top: 1px solid var(--secondary-color);
    margin-top: 80px;
}

/* Стили для страницы Аптека Души */
.page-header {
    text-align: center;
    padding: 130px 0 70px;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-subtitle {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto;
    font-style: italic;
    line-height: 1.7;
}

.remedy-card {
    margin-bottom: 80px;
    padding: 45px;
    background: rgba(139, 0, 0, 0.05);
    border: 1px solid var(--secondary-color);
    position: relative;
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.remedy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.remedy-card .remedy-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.3rem;
    margin-bottom: 1.8rem;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    position: relative;
    padding-bottom: 15px;
}

.remedy-card .remedy-title::before {
    content: "♡";
    margin-right: 18px;
    font-size: 2.2rem;
}

.remedy-card .remedy-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.remedy-card .remedy-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.prescription {
    margin-top: 35px;
    padding: 28px;
    background: rgba(139, 0, 0, 0.1);
    border-left: 4px solid var(--accent-color);
    border-radius: 0 5px 5px 0;
}

.prescription-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.prescription p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.back-btn {
    display: inline-block;
    padding: 15px 35px;
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    transition: all 0.3s;
    margin: 50px 0;
    border-radius: 3px;
    letter-spacing: 1px;
}

.back-btn:hover {
    background: var(--accent-color);
    color: var(--text-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.3);
}

/* Стили для страницы Архив Переживаний */
.gallery-page .gallery-item {
    opacity: 1;
    transform: translateY(0);
    margin-bottom: 90px;
    padding: 45px;
    background: rgba(139, 0, 0, 0.05);
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-page .gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.gallery-page .gallery-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.3rem;
    margin-bottom: 1.8rem;
    color: var(--accent-color);
    position: relative;
    padding-bottom: 15px;
}

.gallery-page .gallery-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.gallery-page .quote-block {
    border-left: 3px solid var(--accent-color);
    padding-left: 28px;
    margin: 28px 0;
    font-style: italic;
    font-size: 1.3rem;
    background: rgba(139, 0, 0, 0.08);
    padding: 22px 28px;
    border-radius: 0 5px 5px 0;
    line-height: 1.7;
}

.gallery-page .commentary {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.literary-examples {
    margin-top: 35px;
    padding: 25px;
    background: rgba(139, 0, 0, 0.1);
    border-left: 4px solid var(--accent-color);
    border-radius: 0 5px 5px 0;
}

.examples-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 18px;
    color: var(--accent-color);
}

.literary-examples p {
    margin-bottom: 12px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.literary-examples strong {
    color: var(--accent-color);
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
    border-left: 1px solid var(--secondary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 6px;
    border: 2px solid var(--dark-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--highlight-color);
}

::-webkit-scrollbar-thumb:active {
    background: #8b0000;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--dark-bg);
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: var(--accent-color);
    color: var(--text-color);
}

::-moz-selection {
    background: var(--accent-color);
    color: var(--text-color);
}

/* Анимация для скроллбара */
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-color) 0%, #8b0000 100%);
    border-radius: 8px;
    border: 3px solid var(--dark-bg);
    box-shadow: 0 0 10px rgba(168, 50, 50, 0.3);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--highlight-color) 0%, var(--accent-color) 100%);
    box-shadow: 0 0 15px rgba(209, 67, 67, 0.5);
    transform: scale(1.05);
}

/* Адаптивность */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .pharmacy, .new-sections {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .gallery-title {
        font-size: 1.9rem;
    }
    
    .page-title {
        font-size: 2.8rem;
    }
    
    .remedy-card {
        padding: 30px;
    }
    
    .remedy-card .remedy-title {
        font-size: 2rem;
    }
    
    .gallery-page .gallery-item {
        padding: 30px;
    }
    
    .gallery-page .gallery-title {
        font-size: 2rem;
    }
}

@media (max-width: 650px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero .quote {
        font-size: 1.2rem;
    }
    
    .gallery-item, .remedy {
        padding: 20px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .page-title {
        font-size: 2.3rem;
    }
    
    .page-subtitle {
        font-size: 1.2rem;
    }
    
    .remedy-card {
        padding: 25px;
    }
    
    .gallery-page .gallery-item {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero .quote {
        font-size: 1.1rem;
        padding: 0 15px;
    }
    
    .gallery-title {
        font-size: 1.7rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .remedy-card .remedy-title {
        font-size: 1.7rem;
    }
    
    .prescription {
        padding: 20px;
    }
    
    .gallery-page .gallery-title {
        font-size: 1.7rem;
    }
    
    .gallery-page .quote-block {
        padding: 18px 20px;
        font-size: 1.1rem;
    }
}