/* Базовые стили */
:root {
    --black: #111111;
    --white: #F8F5F0;
    --gold: #D4AF37;
    --gold-light: #E8C874;
    --dark-bg: #1A1A1A;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-gold {
    background: var(--gold);
    color: var(--black);
}

.btn-gold:hover {
    background: var(--gold-light);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
    transform: translateY(-3px);
}

.btn-transparent {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-transparent:hover {
    background: rgba(212, 175, 55, 0.1);
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    margin-bottom: 15px;
    color: var(--black);
}

.section-subtitle {
    font-size: 18px;
    color: var(--gold);
    font-weight: 500;
}

.gold-divider {
    width: 100px;
    height: 2px;
    background: var(--gold);
    margin: 20px auto;
    position: relative;
}

.gold-divider:after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.dark-bg {
    background: var(--dark-bg);
    color: var(--white);
}

.dark-bg .section-title {
    color: var(--white);
}

/* Прелоадер */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease;
}

.preloader-logo {
    position: relative;
    width: 150px;
    height: 150px;
}

.preloader-logo:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--gold);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.logo-shine {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('assets/logo-gold.svg') center no-repeat;
    background-size: contain;
    animation: shine 3s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 0.3; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

@keyframes shine {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* Хедер */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header ul {
    display: flex;
    gap: 40px;
}

.header li a {
    color: var(--white);
    font-weight: 500;
    position: relative;
}

.header li a span {
    position: relative;
}

.header li a span:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--gold);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.header li a:hover span:after {
    width: 100%;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: 500;
}

.header-phone i {
    color: var(--gold);
}

/* Логотип */
.logo-container {
    display: block;
    width: 100%;
    margin: 120px 0 80px;
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInLogo 1.2s ease-out 0.4s forwards;
}

.main-logo {
    height: 150px;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.logo-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0) 70%);
    z-index: 1;
}

@keyframes fadeInLogo {
    to { opacity: 1; transform: translateY(0); }
}

/* Hero секция */
.hero {
    height: 100vh;
    min-height: 800px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero h1 {
    font-size: 120px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 5px;
}

.hero-divider {
    width: 200px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto 30px;
    position: relative;
}

.hero-divider:after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--gold);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.hero p {
    font-size: 24px;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-scroll {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    opacity: 0.7;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: var(--gold);
    margin-top: 15px;
    position: relative;
}

.scroll-line:after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--gold);
    border-right: 2px solid var(--gold);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    animation: scrollArrow 2s infinite;
}

@keyframes scrollArrow {
    0% { bottom: 50px; opacity: 0; }
    50% { bottom: 20px; opacity: 1; }
    100% { bottom: 0; opacity: 0; }
}

/* О нас */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h3 {
    font-size: 32px;
    margin-bottom: 25px;
    color: var(--gold);
}

.about-content p {
    margin-bottom: 25px;
    font-size: 16px;
}

.styled-list {
    margin-top: 30px;
}

.styled-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 16px;
}

.styled-list i {
    color: var(--gold);
    margin-right: 15px;
    font-size: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.stat-text {
    font-size: 16px;
    color: var(--black);
    opacity: 0.8;
}

.dark-bg .stat-text {
    color: var(--white);
}

/* Услуги */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(212, 175, 55, 0.3);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 36px;
    color: var(--gold);
    position: relative;
    z-index: 2;
}

.icon-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    z-index: 1;
    transform: scale(0);
    transition: var(--transition);
}

.service-card:hover .icon-bg {
    transform: scale(1);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--gold);
}

.service-card ul {
    margin-bottom: 25px;
    text-align: left;
}

.service-card li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
    font-size: 14px;
}

.service-card li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 2px;
    background: var(--gold);
}

.service-link {
    color: var(--gold);
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

.service-link i {
    margin-left: 8px;
    transition: var(--transition);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Портфолио */
.portfolio-filters {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--gold);
    color: var(--black);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1 / 1.2;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--white);
}

.portfolio-overlay p {
    font-size: 14px;
    margin-bottom: 20px;
    color: var(--white);
    opacity: 0.8;
}

.section-footer {
    text-align: center;
    margin-top: 50px;
}

/* Клиенты */
.clients-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 40px 0;
}

.client-logo {
    opacity: 0.6;
    transition: var(--transition);
    filter: grayscale(100%);
}

.client-logo:hover {
    opacity: 1;
    filter: grayscale(0);
}

.client-logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* Контакты */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 24px;
    color: var(--gold);
}

.contact-content h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--gold);
}

.contact-content a, .contact-content p {
    font-size: 16px;
    color: var(--black);
}

.dark-bg .contact-content a, 
.dark-bg .contact-content p {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gold);
    color: var(--black);
}

.contacts-form {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.dark-bg .contacts-form {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.8);
}

.dark-bg .form-group input, 
.dark-bg .form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Футер */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 25px;
    color: var(--gold);
    position: relative;
    padding-bottom: 15px;
}

.footer-col h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--gold);
}

.footer-logo {
    margin-bottom: 25px;
}

.footer-logo img {
    height: 60px;
}

.footer p {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 25px;
}

.footer ul li {
    margin-bottom: 15px;
}

.footer ul li a {
    font-size: 14px;
    opacity: 0.7;
    transition: var(--transition);
}

.footer ul li a:hover {
    opacity: 1;
    color: var(--gold);
}

.subscribe-form {
    display: flex;
    margin-bottom: 25px;
}

.subscribe-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border-radius: 5px 0 0 5px;
    font-size: 14px;
}

.subscribe-form button {
    width: 50px;
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: var(--transition);
}

.subscribe-form button:hover {
    background: var(--gold-light);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-social span {
    font-size: 14px;
    opacity: 0.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 12px;
    opacity: 0.5;
    margin: 0;
}

.policy-link {
    font-size: 12px;
    opacity: 0.5;
    transition: var(--transition);
}

.policy-link:hover {
    opacity: 1;
    color: var(--gold);
}

/* Анимации */
[data-aos] {
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Адаптив */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 90px;
    }
}

@media (max-width: 992px) {
    .about-grid,
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 60px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .main-logo {
        height: 100px;
    }
    
    .header ul {
        gap: 20px;
    }
    
    .header-phone {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 48px;
        letter-spacing: 2px;
    }
    
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .stat-number {
        font-size: 36px;
    }
}