/* === БАЗОВЫЕ СТИЛИ === */
:root {
    --primary: #F5C842;
    --primary-light: #FFD966;
    --primary-dark: #D4A03C;
    --primary-glow: rgba(245, 200, 66, 0.4);
    --secondary: #2C3E50;
    --building-yellow: #F5D77A;
    --building-dark: #E6C865;
    --white: #FFFFFF;
    --light-bg: #FFFBF0;
    --text: #333333;
    --text-light: #666666;
    --gold: #DAA520;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--light-bg);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
}

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

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--secondary);
    position: relative;
}

.title-decor {
    display: inline-block;
    color: var(--primary);
    margin-right: 10px;
    animation: sunPulse 2s ease-in-out infinite;
}

@keyframes sunPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary);
    color: var(--secondary);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--secondary);
    position: relative;
    overflow: hidden;
}

.btn-primary::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.5s ease;
}

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

.btn-arrow {
    margin-left: 8px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(5px);
}

/* === HEADER / HERO === */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(44, 62, 80, 0.85) 0%, 
        rgba(26, 37, 47, 0.75) 50%,
        rgba(245, 200, 66, 0.2) 100%
    );
}

/* Декоративные элементы */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.deco-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.deco-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 5%;
    animation-delay: 2s;
}

.deco-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    left: 30%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.5; }
    50% { transform: translateY(-30px) rotate(10deg); opacity: 0.8; }
}

/* Навигация */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.logo-icon {
    font-size: 2rem;
    animation: logoBounce 2s ease-in-out infinite;
}

@keyframes logoBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.logo-text {
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Контент героя */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 5;
}

.hero-badge {
    background: rgba(245, 200, 66, 0.2);
    border: 1px solid var(--primary);
    padding: 8px 20px;
    border-radius: 20px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 30px;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--primary-glow); }
    50% { box-shadow: 0 0 20px 5px var(--primary-glow); }
}

.hero-title {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.5);
}

.title-line {
    display: block;
    animation: slideInLeft 1s ease forwards;
    opacity: 0;
    transform: translateX(-50px);
}

.title-accent {
    display: block;
    color: var(--primary);
    animation: slideInRight 1s ease 0.3s forwards;
    opacity: 0;
    transform: translateX(50px);
}

@keyframes slideInLeft {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    to { opacity: 1; transform: translateX(0); }
}

.tagline {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 40px;
    font-weight: 300;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

.tagline-icon {
    animation: starSpin 3s linear infinite;
}

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

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

/* Особенности */
.hero-features {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.8s forwards;
    opacity: 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 30px;
    color: var(--white);
    font-weight: 500;
    border: 1px solid rgba(245, 200, 66, 0.3);
    transition: all 0.3s ease;
}

.feature:hover {
    background: var(--primary);
    color: var(--secondary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.feature-icon {
    font-size: 1.5rem;
}

/* Кнопка */
.hero .btn {
    animation: fadeInUp 1s ease 1s forwards, buttonGlow 2s ease-in-out infinite 2s;
    opacity: 0;
}

@keyframes buttonGlow {
    0%, 100% { box-shadow: 0 5px 20px var(--primary-glow); }
    50% { box-shadow: 0 5px 40px var(--primary-glow), 0 0 60px var(--primary-glow); }
}

/* Индикатор скролла */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 0.9rem;
    opacity: 0.8;
    animation: fadeInUp 1s ease 1.5s forwards, bounce 2s ease-in-out infinite 2.5s;
    opacity: 0;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

.scroll-mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--white);
    border-radius: 15px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 25px; }
}

/* === О НАС === */
.about-section {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.building-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.building-photo {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.building-frame:hover .building-photo {
    transform: scale(1.05);
}

.building-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: var(--secondary);
    padding: 15px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px var(--primary-glow);
    animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.badge-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.badge-text {
    font-size: 0.9rem;
}

.building-info h3 {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.highlight-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.highlight-text strong {
    color: var(--primary-dark);
    background: linear-gradient(120deg, var(--primary-light) 0%, var(--primary-light) 100%);
    background-repeat: no-repeat;
    background-size: 100% 40%;
    background-position: 0 90%;
}

.building-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 15px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.detail-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px var(--primary-glow);
}

.detail-icon {
    font-size: 2rem;
}

.detail-item h4 {
    color: var(--secondary);
    margin-bottom: 5px;
}

.detail-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* === УСЛУГИ === */
.services-section {
    background: linear-gradient(135deg, var(--light-bg) 0%, #FFF8E0 100%);
}

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

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark), var(--primary));
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-card:hover .card-glow {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.12);
}

.service-card.featured {
    border: 2px solid var(--primary);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--primary);
    color: var(--secondary);
    padding: 8px 40px;
    font-weight: 600;
    font-size: 0.85rem;
    transform: rotate(45deg);
    box-shadow: 0 3px 10px var(--primary-glow);
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(10deg);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-list {
    list-style: none;
    text-align: left;
}

.service-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: var(--text);
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li::before {
    content: '✓';
    color: var(--primary);
    margin-right: 10px;
    font-weight: bold;
}

.card-decoration {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: var(--primary);
    font-size: 1.5rem;
    opacity: 0.3;
}

/* === ИСТОРИЯ === */
.history-section {
    background: #ffdf3fa5;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--primary-dark));
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
    padding-right: 60px;
    padding-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: left;
    padding-left: 60px;
}

.timeline-year {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--secondary);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    z-index: 5;
    box-shadow: 0 5px 15px var(--primary-glow);
}

.timeline-content {
    width: 50%;
    padding-top: 50px;
}

.timeline-content h3 {
    color: var(--secondary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.timeline-content p {
    color: #080242;
    line-height: 1.8;
}

.quote-block {
    max-width: 700px;
    margin: 60px auto 0;
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #FFF8E0 0%, #FFF5D6 100%);
    border-radius: 20px;
    border-left: 5px solid var(--primary);
    position: relative;
}

.quote-block::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.3;
    font-family: serif;
}

.quote {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-style: italic;
    color: var(--secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.quote-author {
    color: var(--primary-dark);
    font-weight: 600;
}

/* === КОНТАКТЫ === */
.contact-section {
    background: linear-gradient(135deg, var(--secondary) 0%, #1a252f 100%);
    color: var(--white);
}

.contact-section .section-title {
    color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    font-size: 2rem;
}

.contact-item h4 {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-item p {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

.contact-form {
    background: rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.contact-form h3 {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.95);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--primary), 0 0 20px var(--primary-glow);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-submit {
    width: 100%;
    background: var(--primary);
    color: var(--secondary);
}

/* === FOOTER === */
.footer {
    background: #1a1a1a;
    color: var(--white);
    padding: 50px 0;
    text-align: center;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.footer-logo span:first-child {
    animation: logoBounce 2s ease-in-out infinite;
}

.footer-text {
    color: rgba(255,255,255,0.6);
    margin-bottom: 10px;
}

.copyright {
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
}

/* === MODAL === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    position: relative;
    animation: modalPop 0.3s ease;
}

@keyframes modalPop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--secondary);
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--secondary);
    margin: 0 auto 20px;
    animation: iconSuccess 0.5s ease;
}

@keyframes iconSuccess {
    0% { transform: scale(0) rotate(-180deg); }
    50% { transform: scale(1.2) rotate(0deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.modal-content h3 {
    color: var(--secondary);
    margin-bottom: 15px;
}

.modal-content p {
    color: var(--text-light);
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 900px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .nav {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .hero-features {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: column;
    }
    
    .timeline-year {
        position: relative;
        left: 20px;
        transform: none;
        display: inline-block;
        margin-bottom: 20px;
    }
    
    .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        width: 100%;
        text-align: left;
        padding-left: 60px;
        padding-right: 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-badge {
        font-size: 0.9rem;
    }
    
    .feature {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}
