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

:root {
    --green-dark: #1a7e40ff;
    --green-medium: #48753bff;
    --green-light: #3a9446ff;
    --gold-dark: #d4af37;
    --gold-light: #f4e4a6;
    --white: #ffffff;
    --cream: #f8f9fa;
    --green-bg: #d7f8daff;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--green-dark);
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
    overflow-x: hidden;
    padding-top: 90px;
}

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



/* Hero Section - Enhanced Beautiful Version */
.hero {
    height: 100vh;
    min-height: 700px;
    background: 
        linear-gradient(135deg, 
            rgba(26, 126, 64, 0.85) 0%, 
            rgba(58, 148, 70, 0.75) 50%,
            rgba(72, 117, 59, 0.85) 100%),
        url('/images/senno_header.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, 
            rgba(212, 175, 55, 0.15) 0%, 
            transparent 40%),
        radial-gradient(circle at 80% 70%, 
            rgba(244, 228, 166, 0.1) 0%, 
            transparent 40%),
        linear-gradient(45deg, 
            transparent 0%, 
            rgba(255, 255, 255, 0.05) 50%, 
            transparent 100%);
    animation: gentleGlow 8s ease-in-out infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(transparent, var(--gold-light) 99%);
    z-index: 1;
}

@keyframes gentleGlow {
    0% {
        opacity: 0.6;
        background-position: 20% 30%, 80% 70%, 0% 0%;
    }
    100% {
        opacity: 1;
        background-position: 25% 35%, 75% 65%, 100% 100%;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 30px;
    margin-top: 20px;
    width: 100%;
}

.hero-coat-of-arms {
    width: 140px;
    height: 160px;
    background: linear-gradient(135deg, 
        var(--gold-light) 0%, 
        var(--gold-dark) 50%,
        var(--gold-light) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 3rem;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(212, 175, 55, 0.3),
        inset 0 2px 10px rgba(255, 255, 255, 0.3);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: coatOfArmsEntrance 0.6s ease-out 0.2s both;
    position: relative;
    overflow: hidden;
}

.hero-coat-of-arms::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    transform: rotate(45deg);
    transition: all 0.4s ease;
    opacity: 0;
}

.hero-coat-of-arms:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.hero-coat-of-arms:hover {
    transform: scale(1.08) rotate(3deg);
    box-shadow: 
        0 25px 60px rgba(212, 175, 55, 0.5),
        0 0 0 2px rgba(255, 255, 255, 0.6),
        inset 0 4px 20px rgba(255, 255, 255, 0.4);
}

@keyframes coatOfArmsEntrance {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(-10deg);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0px);
    }
}

.hero-coat-of-arms img {
    width: 110px;
    height: 130px;
    object-fit: contain;
    filter: 
        drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.4))
        drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
    transition: transform 0.5s ease;
}

.hero-coat-of-arms:hover img {
    transform: scale(1.05);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, 
        var(--gold-light) 0%, 
        #fff8e1 50%,
        var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 
        0 4px 20px rgba(212, 175, 55, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2);
    animation: titleEntrance 0.8s ease-out 0.4s both;
    font-weight: 700;
    line-height: 1.1;
}

@keyframes titleEntrance {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

.hero-content p {
    font-size: 1.7rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.2);
    animation: subtitleEntrance 1s ease-out 0.7s both;
    font-weight: 300;
    line-height: 1.4;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.hero-content p::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--gold-light), 
        transparent);
    animation: lineExpand 1s ease-out 1s both;
}

@keyframes subtitleEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px);
        letter-spacing: 2px;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: normal;
    }
}

@keyframes lineExpand {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 100px;
        opacity: 1;
    }
}

/* Floating particles effect */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: floatParticle 6s ease-in-out infinite;
}

.hero-particle:nth-child(1) { top: 20%; left: 10%; width: 4px; height: 4px; animation-delay: 0s; }
.hero-particle:nth-child(2) { top: 60%; left: 80%; width: 6px; height: 6px; animation-delay: 1s; }
.hero-particle:nth-child(3) { top: 40%; left: 20%; width: 3px; height: 3px; animation-delay: 2s; }
.hero-particle:nth-child(4) { top: 80%; left: 40%; width: 5px; height: 5px; animation-delay: 3s; }
.hero-particle:nth-child(5) { top: 30%; left: 70%; width: 4px; height: 4px; animation-delay: 4s; }

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, 
        var(--gold-dark) 0%, 
        var(--gold-light) 50%,
        var(--gold-dark) 100%);
    background-size: 200% 100%;
    color: var(--green-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    border: 3px solid var(--white);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 0.7s both;
    font-size: 1.1rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.4), 
        transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0,0,0,0.4);
    background-position: 100% 0;
}

/* Responsive enhancements */
@media (max-width: 768px) {
        body {
        padding: 0;
        margin: 0;
    }
    
    .container {
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
    .hero {
        width: 100vw;
        margin: 0;
        padding: 0;
        left: 0;
        right: 0;
        position: relative;
    }

    .hero-content {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        padding: 0 10px;
    }
    
    .hero-content p {
        font-size: 1.3rem;
        padding: 0 15px;
    }
    
    .hero-coat-of-arms {
        width: 120px;
        height: 140px;
    }
    
    .hero-coat-of-arms img {
        width: 90px;
        height: 110px;
    }
    
    .btn {
        padding: 16px 32px;
        font-size: 1rem;
        width: 90%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 100vh;
        min-height: 500px;
        width: 100vw;
    }
    
    .hero-content {
        padding: 0 15px;
            margin-top: 80px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-coat-of-arms {
        width: 100px;
        height: 120px;
        margin-bottom: 2rem;
    }
    
    .hero-coat-of-arms img {
        width: 80px;
        height: 100px;
    }
    
    .btn {
        padding: 14px 28px;
        font-size: 0.95rem;
        width: 95%;
        max-width: 260px;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .hero {
        min-height: 450px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-coat-of-arms {
        width: 90px;
        height: 110px;
    }
    
    .hero-coat-of-arms img {
        width: 70px;
        height: 90px;
    }
}

/* Sections */
section {
    padding: 120px 0;
    position: relative;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 6rem;
    color: var(--green-dark);
    position: relative;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    display: block;
    width: 150px;
    height: 5px;
    background: linear-gradient(90deg, var(--green-medium), var(--gold-dark), var(--green-light));
    margin: 2rem auto 0;
    border-radius: 3px;
}

@keyframes expandWidth {
    from { width: 0; opacity: 0; }
    to { width: 120px; opacity: 1; }
}



.newspaper-excerpt {
    background: linear-gradient(135deg, var(--cream) 0%, #f5f5f5 100%);
    border: 1px solid var(--gold-light);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.excerpt-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--gold-dark);
    padding-bottom: 15px;
}

.excerpt-header h3 {
    color: var(--green-dark);
    margin: 0;
    font-size: 1.3rem;
}

.excerpt-year {
    background: var(--gold-dark);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
}

.excerpt-content {
    font-style: italic;
    line-height: 1.6;
    color: #2c3e50;
}

.excerpt-highlight {
    background: rgba(212, 175, 55, 0.1);
    border-left: 3px solid var(--gold-dark);
    padding: 15px 20px;
    margin-top: 15px;
    border-radius: 0 8px 8px 0;
}


.historical-building {
    background: var(--cream);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    border-left: 4px solid var(--gold-dark);
}

.historical-building h3 {
    color: var(--green-dark);
    margin-bottom: 25px;
    font-size: 1.5rem;
    text-align: center;
}

.building-description h4 {
    color: var(--green-medium);
    margin: 25px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold-light);
}

.location-info,
.architecture-info,
.interior-info,
.fate-info {
    margin-bottom: 25px;
    line-height: 1.6;
}

.quote {
    background: rgba(212, 175, 55, 0.1);
    padding: 20px;
    border-left: 3px solid var(--gold-dark);
    margin: 15px 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}


.religion-btn-container {
    text-align: center;
    margin-bottom: 25px;
}

.religion-link-btn {
    display: inline-block;
    background: linear-gradient(135deg, rgba(72, 117, 59, 0.7), rgba(58, 148, 70, 0.7));
    color: var(--white);
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.religion-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, var(--green-medium), var(--green-light));
}

.population-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: 'Times New Roman', serif;
    font-size: 15px;
    border: 2px solid var(--green-medium);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(26, 126, 64, 0.15);
    background: var(--white);
}

.population-table th {
      background: linear-gradient(135deg, var(--green-light), var(--green-medium), var(--green-light));
    border: none;
    padding: 16px 20px;
    text-align: center;
    font-weight: bold;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9em;
    position: relative;
    overflow: hidden;
}

.population-table th:after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition);
}

.population-table th:hover:after {
    left: 100%;
}

.population-table td {
    border: none;
    padding: 14px 20px;
    text-align: center;
    background-color: var(--green-bg);
    transition: var(--transition);
    position: relative;
    border-bottom: 1px solid rgba(72, 117, 59, 0.1);
}

.population-table tr:nth-child(even) td {
    background-color: var(--cream);
}

.population-table tr:last-child td {
    border-bottom: none;
}

.population-table tr:hover td {
    background-color: var(--gold-light);
    transform: translateX(8px);
    box-shadow: inset 4px 0 0 var(--gold-dark);
}

/* Стили для тренда */
.population-trend {
    margin-left: 12px;
    font-weight: 900;
    font-size: 1.6em;
    letter-spacing: 2px;
    display: inline-block;
    min-width: 30px;
    text-align: left;
}

.trend-up {
    color: var(--green-dark);
    font-weight: 900;
    text-shadow: 0 0 1px var(--green-dark);
}

.trend-down {
    color: #8B0000;
    font-weight: 900;
    text-shadow: 0 0 1px #8B0000;
}

.trend-stable {
    color: var(--gold-dark);
    font-weight: 900;
    text-shadow: 0 0 1px var(--gold-dark);
}

.excerpt-highlight {
    background: linear-gradient(135deg, var(--white), var(--cream));
    padding: 28px;
    margin: 24px 0;
    border-left: 8px solid var(--gold-dark);
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(26, 126, 64, 0.15),
        inset 0 1px 0 var(--white);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.excerpt-highlight:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green-dark), var(--gold-dark), var(--green-light));
}

.excerpt-highlight:hover {
    box-shadow: 
        0 12px 48px rgba(26, 126, 64, 0.25),
        inset 0 1px 0 var(--white);
    transform: translateY(-4px);
}

.excerpt-highlight h4 {
    margin: 0 0 20px 0;
    color: var(--green-dark);
    border-bottom: 3px double var(--gold-dark);
    padding-bottom: 16px;
    font-size: 1.4em;
    font-weight: bold;
    text-align: center;
    letter-spacing: 0.5px;
}

/* History Section - Premium Redesign */
#history {
    position: relative;
    padding: 50px 0;
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
    overflow: hidden;
}

#history::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--gold-light) 20%, 
        var(--gold-dark) 50%, 
        var(--gold-light) 80%, 
        transparent
    );
}


@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    to {
        transform: scaleX(1);
    }
}

/* History Intro */
.history-intro {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 10rem;
    padding: 0 3rem;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.7s ease-out 0.4s forwards;
}

.intro-text {
    background: linear-gradient(145deg, var(--white) 0%, var(--cream) 100%);
    padding: 5rem 4rem;
    border-radius: 30px;
    box-shadow: 
        0 25px 80px rgba(72, 117, 59, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

/* Красивые рамки для intro-text */
.intro-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    background: linear-gradient(145deg, var(--gold-dark), var(--gold-light));
    border-radius: 30px 0 0 30px;
}

.intro-text::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(145deg, var(--gold-light), var(--gold-dark));
    border-radius: 0 30px 30px 0;
}

.intro-text:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 35px 100px rgba(72, 117, 59, 0.25);
}

.intro-text p {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--green-dark);
    margin: 0;
    text-align: center;
    font-weight: 400;
}

/* Timeline - Fixed Design */
.timeline {
    position: relative;
    max-width: 1400px;
    margin: 0 auto 12rem;
    padding: 6rem 3rem;
    background: linear-gradient(145deg, 
        rgba(248, 249, 250, 0.9) 0%, 
        rgba(255, 255, 255, 0.95) 100%);
    border-radius: 40px;
    border: 3px solid rgba(212, 175, 55, 0.15);
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 80px;
    bottom: 80px;
    width: 8px;
    background: linear-gradient(
        to bottom,
        var(--gold-dark) 0%,
        var(--green-medium) 25%,
        var(--green-light) 50%,
        var(--green-medium) 75%,
        var(--gold-dark) 100%
    );
    transform: translateX(-50%);
    border-radius: 4px;
    z-index: 2;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8rem;
    position: relative;
    min-height: 240px;
    opacity: 0;
    transform: translateY(60px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.8s; }
.timeline-item:nth-child(2) { animation-delay: 0.9s; }
.timeline-item:nth-child(3) { animation-delay: 1.0s; }
.timeline-item:nth-child(4) { animation-delay: 1.1s; }
.timeline-item:nth-child(5) { animation-delay: 1.2s; }
.timeline-item:nth-child(6) { animation-delay: 1.3s; }
.timeline-item:nth-child(7) { animation-delay: 1.4s; }
.timeline-item:nth-child(8) { animation-delay: 1.5s; }
.timeline-item:nth-child(9) { animation-delay: 1.6s; }
.timeline-item:nth-child(10) { animation-delay: 1.7s; }
.timeline-item:nth-child(11) { animation-delay: 1.8s; }
.timeline-item:nth-child(12) { animation-delay: 1.9s; }
.timeline-item:nth-child(13) { animation-delay: 2.0s; }
.timeline-item:nth-child(14) { animation-delay: 2.1s; }
.timeline-item:nth-child(15) { animation-delay: 2.2s; }
.timeline-item:nth-child(16) { animation-delay: 2.3s; }
.timeline-item:nth-child(17) { animation-delay: 2.4s; }
.timeline-item:nth-child(18) { animation-delay: 2.5s; }
.timeline-item:nth-child(19) { animation-delay: 2.6s; }
.timeline-item:nth-child(20) { animation-delay: 2.7s; }
.timeline-item:nth-child(21) { animation-delay: 2.8s; }
.timeline-item:nth-child(22) { animation-delay: 2.9s; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 32px;
    height: 32px;
    background: linear-gradient(145deg, var(--gold-light), var(--gold-dark));
    border: 6px solid var(--white);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    box-shadow: 
        0 0 0 8px rgba(212, 175, 55, 0.3),
        0 12px 35px rgba(212, 175, 55, 0.7);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-item:hover::before {
    transform: translate(-50%, -50%) scale(1.3);
}

.timeline-item:nth-child(odd) .timeline-content {
    order: 2;
    margin-left: auto;
}

.timeline-item:nth-child(odd) .timeline-year {
    order: 1;
    margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    order: 1;
    margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-year {
    order: 2;
    margin-left: auto;
}

.timeline-year {
    background: linear-gradient(145deg, var(--gold-dark), var(--gold-light));
    color: var(--green-dark);
    padding: 2rem 3rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.6rem;
    box-shadow: 
        0 15px 45px rgba(212, 175, 55, 0.6),
        inset 0 2px 0 rgba(255, 255, 255, 0.8);
    z-index: 4;
    min-width: 180px;
    text-align: center;
    border: 5px solid var(--white);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: 'Georgia', serif;
}

.timeline-year:hover {
    transform: translateY(-12px) scale(1.1);
}

.timeline-item.important .timeline-year {
    background: linear-gradient(145deg, #e74c3c, #ff6b6b);
    color: var(--white);
}

.timeline-item.recent .timeline-year {
    background: linear-gradient(145deg, #27ae60, #2ecc71);
    color: var(--white);
}

/* Timeline Content with Beautiful Borders */
.timeline-content {
    background: var(--green-bg, var(--white));
    padding: 4rem;
    border-radius: 30px;
    box-shadow: 
        0 20px 60px rgba(72, 117, 59, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.9);
    width: 45%;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 3;
    overflow: hidden;
}

/* Левая градиентная рамка */
.timeline-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 10px;
background: linear-gradient(145deg, var(--gold-dark), var(--green-medium), var(--gold-dark));
    border-radius: 30px 0 0 30px;
    z-index: 4;
}

/* Верхняя градиентная рамка */
.timeline-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-light), var(--gold-dark), var(--gold-light));
    border-radius: 30px 30px 0 0;
    z-index: 4;
}

.timeline-content:hover {
    transform: translateY(-15px);
    box-shadow: 
        0 35px 80px rgba(72, 117, 59, 0.3);
}

/* Special styles for important and recent items */
.timeline-item.important .timeline-content::before {
    background: linear-gradient(145deg, #e74c3c, #ff6b6b, #e74c3c);
}

.timeline-item.important .timeline-content::after {
    background: linear-gradient(90deg, #ff6b6b, #e74c3c, #ff6b6b);
}

.timeline-item.recent .timeline-content::before {
    background: linear-gradient(145deg, #27ae60, #2ecc71, #27ae60);
}

.timeline-item.recent .timeline-content::after {
    background: linear-gradient(90deg, #2ecc71, #27ae60, #2ecc71);
}

.timeline-content h3 {
    color: var(--green-dark);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    position: relative;
    padding-bottom: 1.5rem;
    font-family: 'Georgia', serif;
}

.timeline-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--gold-dark), transparent);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.timeline-content:hover h3::after {
    width: 150px;
}

.timeline-content p {
    color: var(--green-medium);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    font-weight: 400;
}

.war-facts {
    background: linear-gradient(145deg, 
        rgba(231, 76, 60, 0.12), 
        rgba(255, 107, 107, 0.08));
    padding: 2.5rem;
    border-radius: 20px;
    margin-top: 2.5rem;
    border-left: 6px solid #e74c3c;
    border-top: 3px solid rgba(231, 76, 60, 0.4);
    position: relative;
    overflow: hidden;
}

.war-facts::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(145deg, #e74c3c, #ff6b6b);
    border-radius: 20px 0 0 20px;
}

.war-facts p {
    margin: 0;
    color: #c0392b;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.7;
}




/* Historical Features */
.historical-features {
    margin-top: 12rem;
    padding: 8rem 5rem;
    background: linear-gradient(145deg, var(--cream) 0%, var(--white) 100%);
    border-radius: 45px;
    border: 5px solid var(--gold-light);
    box-shadow: 
        0 35px 100px rgba(72, 117, 59, 0.2);
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease-out 3.0s forwards;
    position: relative;
    overflow: hidden;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 5rem;
}

.feature-card {
    background: linear-gradient(145deg, var(--white) 0%, var(--cream) 100%);
    padding: 5rem 4rem;
    border-radius: 30px;
    box-shadow: 
        0 20px 60px rgba(72, 117, 59, 0.18),
        inset 0 2px 0 rgba(255, 255, 255, 0.9);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Стили для кнопки */
.btn-more {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    color: #2d3748;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.btn-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212,175,55,0.4);
}




/* Градиентная верхняя рамка для feature-card */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
    border-radius: 30px 30px 0 0;
}

.feature-card:nth-child(1) { animation-delay: 3.2s; }
.feature-card:nth-child(2) { animation-delay: 3.4s; }
.feature-card:nth-child(3) { animation-delay: 3.6s; }

.feature-card:hover {
    transform: translateY(-20px);
    box-shadow: 
        0 40px 90px rgba(72, 117, 59, 0.3);
}

.feature-icon {
    font-size: 6rem;
    margin-bottom: 3rem;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-card:hover .feature-icon {
    transform: scale(1.4) rotate(12deg);
}

.feature-card h4 {
    color: var(--green-dark);
    margin-bottom: 2.5rem;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.3;
    font-family: 'Georgia', serif;
}

.feature-card p {
    color: var(--green-medium);
    line-height: 1.8;
    font-size: 1.15rem;
    margin: 0;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .timeline::before {
        left: 80px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 120px;
        margin-bottom: 6rem;
        gap: 3rem;
    }
    
    .timeline-item::before {
        left: 80px;
        top: 50%;
    }
    
    .timeline-year {
        position: relative;
        left: 0;
        min-width: 100px;
        padding: 1.5rem 2rem;
        font-size: 1.4rem;
        order: 1 !important;
    }
    
    .timeline-content {
        width: 100%;
        padding: 3rem;
        order: 2 !important;
        margin: 0 !important;
    }
}

@media (max-width: 768px) {

    #history, #maps ,#services {
    padding: 200px 0;

}

    .section-title {
        font-size: 3rem;
        margin-bottom: 6rem;
    }
    
    .history-intro {
        margin-bottom: 8rem;
        padding: 0 0rem;
    }
    
    .intro-text {
        padding: 4rem 3rem;
    }
    
    .intro-text p {
        font-size: 1.3rem;
    }
    
    .timeline {
        padding: 4rem 2rem;
        margin-bottom: 10rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 30px;
        margin-bottom: 3rem;
        min-height: 200px;
    }
    
    .timeline-item::before {
        left: -10px;
        width: 28px;
        height: 28px;
    }
    
    .timeline-year {
        min-width: 80px;
        padding: 1.2rem 1.5rem;
        font-size: 1.2rem;
    }
    
    .timeline-content {
        padding: 2.5rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .feature-card {
        padding: 4rem 3rem;
    }
    
    .historical-features {
        margin-top: 10rem;
        padding: 6rem 3rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2.5rem;
    }
    
    .timeline-item {
        padding-left: 30px;
        min-height: 180px;
    }
    
    .timeline-year {
        min-width: 70px;
        padding: 1rem 1.2rem;
        font-size: 1.1rem;
    }
    
    .timeline-content {
        padding: 2rem;
    }
    
    .timeline-content h3 {
        font-size: 1.5rem;
    }
    
    .timeline-content p {
        font-size: 1.1rem;
    }
    
    .feature-card {
        padding: 3rem 2rem;
    }
    
    .feature-icon {
        font-size: 5rem;
        margin-bottom: 2.5rem;
    }
    
    .intro-text {
        padding: 3rem 2rem;
    }
    
    .intro-text p {
        font-size: 1.2rem;
    }
}


/* Стили для уникального попапа */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: linear-gradient(145deg, var(--white) 0%, var(--cream) 100%);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    border-radius: 20px;
    padding: 0;
    position: relative;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: scale(0.8) translateY(50px);
    transition: var(--transition);
    overflow: hidden;
}

.popup-overlay.active .popup-content {
    transform: scale(1) translateY(0);
}

/* Заголовок попапа с градиентом в зеленых тонах */
.popup-header {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-medium) 50%, var(--green-light) 100%);
    padding: 25px 30px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}



@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.popup-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.popup-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    color: var(--white);
}

.popup-year {
    background: linear-gradient(135deg, rgba(218, 189, 29, 0.35), rgba(221, 172, 37, 0.15));
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    backdrop-filter: blur(15px);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.popup-year::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.popup-year:hover::before {
    left: 100%;
}

.popup-year:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
}
/* Кнопка закрытия */
.popup-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Тело попапа */
.popup-body {
    padding: 30px;
    line-height: 1.7;
    max-height: calc(85vh - 120px);
    overflow-y: auto;
    background-color: var(--green-bg);
}

.popup-body::-webkit-scrollbar {
    width: 8px;
}

.popup-body::-webkit-scrollbar-track {
    background: var(--cream);
    border-radius: 4px;
}

.popup-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--green-medium), var(--green-light));
    border-radius: 4px;
}

.popup-body p {
    margin-bottom: 24px;
    font-size: 1.15rem;
    color: #2c3e50;
    text-align: justify;
    line-height: 1.7;
    font-family: 'Georgia', 'Times New Roman', serif;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
    position: relative;
    padding-left: 35px;
}

.popup-body p::before {
    content: '❖';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--gold-dark);
    font-size: 1.2rem;
    margin-right: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.popup-body p:hover::before {
    color: var(--green-dark);
    transform: scale(1.2) rotate(15deg);
}

.popup-body p:last-child {
    margin-bottom: 0;
}

/* Особый стиль для важных абзацев */
.popup-body p.important {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(58, 148, 70, 0.1));
    border-left: 3px solid var(--gold-dark);
    padding: 20px 20px 20px 45px;
    border-radius: 0 12px 12px 0;
    margin: 25px 0;
}

.popup-body p.important::before {
    content: '✦';
    color: var(--green-dark);
    font-size: 1.4rem;
    left: 15px;
    top: 18px;
}

/* Стиль для цитат */
.popup-body p.quote {
    font-style: italic;
    background: rgba(255, 255, 255, 0.7);
    padding: 20px 25px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    text-align: center;
    position: relative;
}

.popup-body p.quote::before {
    content: '❝';
    font-size: 2rem;
    color: var(--gold-light);
    position: absolute;
    left: 15px;
    top: 10px;
    opacity: 0.6;
}

.popup-body p.quote::after {
    content: '❞';
    font-size: 2rem;
    color: var(--gold-light);
    position: absolute;
    right: 15px;
    bottom: -10px;
    opacity: 0.6;
}

/* Декоративные элементы в золотых тонах */
.popup-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
    z-index: 3;
}

.popup-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
    z-index: 3;
}

/* Анимация появления контента */
.popup-body p {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.popup-body p:nth-child(1) { animation-delay: 0.2s; }
.popup-body p:nth-child(2) { animation-delay: 0.3s; }
.popup-body p:nth-child(3) { animation-delay: 0.4s; }
.popup-body p:nth-child(4) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .popup-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .popup-header {
        padding: 20px;
    }
    
    .popup-header h2 {
        font-size: 1.5rem;
    }
    
    .popup-body {
        padding: 20px;
    }
    
    .popup-body p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .popup-title {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .popup-header h2 {
        font-size: 1.3rem;
    }
    
    .popup-body {
        padding: 15px;
    }
}

/* Gallery Styles */
.gallery {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-medium) 100%);
    color: var(--white);
    border-radius: 30px;
    padding: 100px 50px;
    margin: 80px 0;
    position: relative;
    overflow: hidden;
}

.gallery::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.gallery .section-title {
    color: var(--gold-light);
    position: relative;
    z-index: 2;
}

.gallery .section-title::after {
    background: linear-gradient(90deg, var(--gold-light), var(--white));
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    transition: var(--transition);
    border: 3px solid var(--gold-light);
    position: relative;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(26, 126, 64, 0.2), rgba(212, 175, 55, 0.2));
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: var(--transition);
}

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


/* Красивые кнопки назад */
.back-button {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.back-button:active {
    transform: translateY(0);
}

.button-hover-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.back-button:hover .button-hover-effect {
    left: 100%;
}

.back-arrow {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.back-button:hover .back-arrow {
    transform: translateX(-3px);
}

/* Красивые карточки категорий */
.category-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 20px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--gold-light);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.3),
        0 0 0 1px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.category-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212,175,55,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover .category-hover-effect {
    opacity: 1;
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Красивые подкарточки услуг */
.service-subcard {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.service-subcard:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px) scale(1.03);
    border-color: var(--gold-light);
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.2),
        0 0 20px rgba(212,175,55,0.1);
}

.card-hover-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.1), transparent);
    transition: left 0.6s ease;
}

.service-subcard:hover .card-hover-effect {
    left: 100%;
}

/* Анимации появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Красивые персональные карточки */
.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.provider-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.15);
    backdrop-filter: blur(20px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    min-height: 220px;
    display: flex;
    gap: 1.8rem;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 0 0 1px rgba(255, 255, 255, 0.3);
}

.provider-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-light), var(--gold-dark));
    opacity: 0.7;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.provider-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--gold-light);
    box-shadow: 
        0 30px 60px rgba(212, 175, 55, 0.18),
        0 0 0 1px rgba(212, 175, 55, 0.25),
        0 0 40px rgba(212, 175, 55, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.provider-hover-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.08), transparent);
    transition: left 0.7s ease;
}

.provider-card:hover .provider-hover-effect {
    left: 100%;
}

.provider-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--gold-light), var(--gold-dark), var(--gold-light));
    border-radius: 26px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(10px);
}

.provider-card:hover .provider-glow {
    opacity: 0.4;
}

/* Аватарка */
.provider-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: #2d3748;
    flex-shrink: 0;
    box-shadow: 
        0 12px 30px rgba(212, 175, 55, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.provider-avatar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 50%;
}

.provider-card:hover .provider-avatar {
    transform: scale(1.15) rotate(12deg);
    box-shadow: 
        0 18px 40px rgba(212, 175, 55, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Контент карточки */
.provider-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.provider-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

.provider-name {
    color: #2d3748;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    background: linear-gradient(135deg, #2d3748, #4a5568);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.2px;
}

/* Телефон */
.phone-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.2rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.08));
    border-radius: 50px;
    color: #2d3748;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1.5px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(10px);
    font-size: 0.95rem;
}

.phone-link:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.15));
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(212, 175, 55, 0.25),
        0 0 0 1px rgba(212, 175, 55, 0.4);
    color: #1a202c;
}

.phone-icon {
    font-size: 1.2em;
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
}

.phone-number {
    font-size: 0.92rem;
    font-weight: 500;
}

/* Описание */
.provider-notes {
    background: linear-gradient(135deg, rgba(247, 250, 252, 0.8), rgba(237, 242, 247, 0.6));
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    border-left: 4px solid var(--gold-light);
    backdrop-filter: blur(10px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 2px 8px rgba(0, 0, 0, 0.04);
}

.provider-notes p {
    margin: 0;
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Социальные сети */
.provider-social {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.8));
    border-radius: 50px;
    color: #4a5568;
    text-decoration: none;
    font-size: 0.92rem;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1.5px solid rgba(226, 232, 240, 0.8);
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.social-link:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.1));
    color: #2d3748;
    transform: translateY(-3px);
    border-color: var(--gold-light);
    box-shadow: 
        0 8px 25px rgba(212, 175, 55, 0.2),
        0 0 0 1px rgba(212, 175, 55, 0.3);
}

.social-name {
    font-weight: 600;
}

/* Анимации */
@keyframes cardAppear {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.92);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.provider-card {
    animation: cardAppear 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Адаптивность */
@media (max-width: 768px) {
    .providers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .provider-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .provider-header {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .provider-avatar {
        align-self: center;
        width: 65px;
        height: 65px;
    }
    
    .provider-name {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .phone-link,
    .social-link {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .providers-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .provider-card {
        padding: 1.8rem;
        gap: 1.2rem;
    }
    
    .provider-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }
    
    .provider-name {
        font-size: 1.2rem;
    }
    
    .provider-notes {
        padding: 1rem 1.2rem;
    }
    
    .phone-link,
    .social-link {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}
/* Стили для кастомного селекта с классом select_mate */
.select_mate {
  cursor: pointer;
  display: inline-block;
  position: relative;
  font-size: 17px;
  color: #1a3c27;
  width: 700px;
  height: 60px;
  margin-right: 25px;
  margin-bottom: 25px;
}

.select_mate .select-styled {
  position: absolute; 
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #ffffff;
  padding: 18px 22px;
  border: 3px solid #2e8b57;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 6px 25px rgba(46, 139, 87, 0.25);
  font-weight: 600;
  display: flex;
  align-items: center;
}

.select_mate .select-styled:after {
  content: "";
  width: 0;
  height: 0;
  border: 7px solid transparent;
  border-color: #2e8b57 transparent transparent transparent;
  position: absolute;
  top: 24px;
  right: 22px;
  transition: all 0.4s ease;
}

.select_mate .select-styled:hover {
  border-color: #228b22;
  box-shadow: 0 8px 30px rgba(46, 139, 87, 0.35);
  transform: translateY(-3px);
  background: linear-gradient(135deg, #ffffff, #f8fff8);
}

.select_mate .select-styled:active, 
.select_mate .select-styled.active {
  border-color: #006400;
  box-shadow: 0 10px 35px rgba(0, 100, 0, 0.4);
  background: linear-gradient(135deg, #ffffff, #f0fff0);
}

.select_mate .select-styled:active:after, 
.select_mate .select-styled.active:after {
  top: 17px;
  border-color: transparent transparent #006400 transparent;
}

.select_mate .select-options {
  display: none; 
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 1000;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  background: #ffffff;
  border: 3px solid #2e8b57;
  border-radius: 12px;
  box-shadow: 0 15px 45px rgba(46, 139, 87, 0.3);
  overflow: hidden;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.select_mate .select-options li {
  margin: 0;
  padding: 16px 22px;
  border-bottom: 2px solid #e8f5e8;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.select_mate .select-options li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #e0ffe0, transparent);
  transition: width 0.3s ease;
}

.select_mate .select-options li:last-child {
  border-bottom: none;
}

.select_mate .select-options li:hover {
  color: #1a3c27;
  background: #e0ffe0;
  padding-left: 28px;
  transform: translateX(5px);
}

.select_mate .select-options li:hover:before {
  width: 6px;
  background: linear-gradient(90deg, #32cd32, #e0ffe0);
}

.select_mate .select-options li.is-selected {
  color: #ffffff;
  background: linear-gradient(135deg, #32cd32, #228b22);
  font-weight: 600;
  position: relative;
  box-shadow: inset 0 2px 10px rgba(0, 100, 0, 0.3);
}

.select_mate .select-options li.is-selected:after {
  content: "✓";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: #ffd700;
  font-weight: bold;
  font-size: 18px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.select_mate .select-options li[rel="hide"] {
  display: none;
}

/* Яркий скроллбар */
.select_mate .select-options::-webkit-scrollbar {
  width: 8px;
}

.select_mate .select-options::-webkit-scrollbar-track {
  background: #e8f5e8;
  border-radius: 4px;
}

.select_mate .select-options::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #32cd32, #228b22);
  border-radius: 4px;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.select_mate .select-options::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #228b22, #006400);
}

/* Адаптивность */
@media (max-width: 768px) {

  
  .select_mate {
    width: 100%;
    margin-right: 0;
    height: 58px;
  }
  
  h1 {
    font-size: 32px;
  }
  
  h1 span {
    font-size: 15px;
  }
  
  .select_mate .select-styled {
    padding: 16px 20px;
  }
}


.select-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin: 50px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(46, 139, 87, 0.1);
}

/* Дополнительные яркие акценты */
.select_mate .select-styled::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(135deg, #32cd32, #ffd700, #32cd32);
  border-radius: 15px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.select_mate .select-styled:hover::before {
  opacity: 0.1;
}

.select_mate .select-styled.active::before {
  opacity: 0.2;
}

/* Скрываем нативный select */
.select_mate select {
  display: none;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-medium) 100%);
    color: var(--white);
    padding: 4rem 0 2rem;
    border-top: 5px solid var(--gold-dark);
    position: relative;
    width: 100%; 
    left: 0; 
    right: 0; 
}


footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f4e4a6' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

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

.footer-coat-of-arms {
    width: 50px;
    height: 60px;
    background: var(--gold-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gold-dark);
    flex-shrink: 0;
}

.footer-coat-of-arms img {
    width: 40px;
    height: 50px;
    object-fit: contain;
}

.footer-logo-text h4 {
    margin-bottom: 0.5rem;
}

.footer-logo-text p {
    line-height: 1.6;
    opacity: 0.9;
}



.footer-links a:hover {
    color: var(--gold-light);
    transform: translateX(5px);
    opacity: 1;
}

.footer-section p {
    margin-bottom: 8px;
    color: var(--gold-light);
}

.footer-email {
    color: var(--gold-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-email:hover {
    color: var(--gold-dark);
    text-decoration: underline;
}
    text-decoration: underline;
}

.contact-info p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
    z-index: 2;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-subtitle {
    color: var(--gold-light);
    font-size: 0.9rem;
    font-style: italic;
}

@media (max-width: 768px) {
    footer {
        padding: 2.5rem 1.5rem 1.5rem;
        margin: 0;
        width: 100%;
        position: relative;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
        padding: 0 1rem;
    }
    
    .footer-logo {
        justify-content: center;
        align-items: center;
        text-align: center;
        flex-direction: row;
        gap: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .footer-coat-of-arms {
        width: 60px;
        height: 70px;
        margin: 0;
    }
    
    .footer-coat-of-arms img {
        width: 45px;
        height: 55px;
    }
    
    .footer-logo-text {
        text-align: left;
    }
    
    .footer-section h4 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
        color: var(--gold-light);
        position: relative;
        padding-bottom: 0.5rem;
    }
    
    .footer-section h4::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 2px;
        background: var(--gold-light);
        border-radius: 2px;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .footer-links li {
        margin-bottom: 0;
        width: 100%;
        max-width: 280px;
    }
    
    .footer-links a {
        display: block;
        padding: 0.8rem 1.5rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        border: 1px solid rgba(212, 175, 55, 0.2);
        transition: all 0.3s ease;
        font-weight: 500;
        text-align: center;
    }
    
    .footer-links a:hover {
        background: rgba(212, 175, 55, 0.15);
        transform: translateY(-2px);
        border-color: var(--gold-light);
    }
    
    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
    }
    
    .contact-info p {
        justify-content: center;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        border: 1px solid rgba(212, 175, 55, 0.2);
        margin: 0;
        font-weight: 500;
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .footer-bottom {
        padding-top: 2rem;
        margin-top: 1.5rem;
        border-top: 2px solid rgba(212, 175, 55, 0.3);
    }
    
    .footer-subtitle {
        font-size: 0.95rem;
        margin-top: 0.5rem;
        opacity: 0.9;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 2rem 1rem 1rem;
    }
    
    .footer-content {
        gap: 2rem;
        padding: 0 0.5rem;
    }
    
    .footer-logo {
        gap: 1rem;
    }
    
    .footer-section h4 {
        font-size: 1.3rem;
    }
    
    .footer-links a {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .contact-info p {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
    
    .footer-coat-of-arms {
        width: 55px;
        height: 65px;
    }
    
    .footer-coat-of-arms img {
        width: 40px;
        height: 50px;
    }
    
    .footer-logo-text {
        text-align: center;
    }
    
    .footer-logo {
        flex-direction: column;
        text-align: center;
    }
}


/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 1.9rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .gallery {
        padding: 60px 20px;
        border-radius: 20px;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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