@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --bg-dark: #0f0f11;
    --bg-card: #1a1a1c;
    --bg-card-hover: #222225;
    --text-primary: #f5f5f5;
    --text-secondary: #a0a0a0;
    --accent-gold: #d4af37;
    --accent-gold-hover: #e5c158;
    --accent-gold-dark: #b8860b;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(15, 15, 17, 0.85);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.15);
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-gold);
}

.gold-text {
    color: var(--accent-gold);
}

/* --- HEADER --- */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-wrapper .logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--text-primary);
    text-transform: uppercase;
}

.logo-wrapper .logo span {
    color: var(--accent-gold);
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

nav.desktop-nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

nav.desktop-nav a {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

nav.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition);
}

nav.desktop-nav a:hover::after,
nav.desktop-nav a.active::after {
    width: 100%;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}

.contact-btn:hover {
    background: var(--accent-gold);
    color: var(--bg-dark);
    box-shadow: var(--shadow-glow);
}

/* --- MOBILE MENU --- */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-primary);
    z-index: 1100;
}

.side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-card);
    z-index: 1050;
    transition: var(--transition);
    padding: 100px 30px 40px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    border-left: 1px solid var(--border-color);
}

body.menu-open .side-menu {
    right: 0;
}

body.menu-open {
    overflow: hidden;
}

.side-menu ul {
    list-style: none;
}

.side-menu li {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.side-menu a {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(15, 15, 17, 0.8), rgba(15, 15, 17, 0.95)), url('images/мемо.jpg') center/cover no-repeat;
    text-align: center;
    padding: 0 20px;
    margin-top: 0;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--bg-dark);
    padding: 15px 35px;
    border-radius: 4px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: var(--accent-gold-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    color: var(--bg-dark);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    padding: 15px 35px;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-outline:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-3px);
}

/* --- MAIN CONTAINER --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 20px auto 0;
    font-size: 1.1rem;
}

/* --- ABOUT GRID --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.about-grid.reverse {
    direction: ltl;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.about-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: var(--transition);
}

.about-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.about-image:hover img {
    transform: scale(1.03);
}

/* --- FEATURES GRID --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-glow);
    background: var(--bg-card-hover);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-gold);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--accent-gold);
    color: var(--bg-dark);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- PRICING --- */
.price-list {
    list-style: none;
}

.price-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1rem;
}

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

.price-list li span {
    font-weight: 500;
}

.price-list li strong {
    font-size: 1.3rem;
    color: var(--accent-gold);
    font-family: 'Playfair Display', serif;
}

.small-info {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 4px;
    border-left: 3px solid var(--accent-gold);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 25px;
}

/* --- SERVICES GRID (yclugi.html) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.service-item {
    position: relative;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.service-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 15, 17, 1) 0%, rgba(15, 15, 17, 0.7) 50%, rgba(15, 15, 17, 0) 100%);
    padding: 40px 30px 30px;
    transition: var(--transition);
}

.service-item:hover img {
    transform: scale(1.08);
}

.service-item:hover .service-overlay {
    padding-bottom: 40px;
}

.service-overlay h3 {
    margin: 0;
    font-size: 1.6rem;
}

/* --- GALLERY GRID (Наши работы) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

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

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.7);
}

.gallery-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #fff;
    opacity: 0;
    transition: var(--transition);
}

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


/* --- CONTACT / LOCATION --- */
.contact-info-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.contact-info-card p {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.contact-info-card p i {
    color: var(--accent-gold);
    font-size: 1.4rem;
    width: 30px;
    text-align: center;
}

.contact-info-card p strong {
    color: var(--text-primary);
    display: inline-block;
    width: 100px;
}

.map-wrapper iframe {
    width: 100%;
    height: 450px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    filter: invert(90%) hue-rotate(180deg);
    /* Темная карта */
}

/* --- POPUP / MODAL --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
}

.popup-content {
    background: var(--bg-card);
    width: 90%;
    max-width: 500px;
    padding: 50px 40px;
    border-radius: 12px;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.popup-overlay.show .popup-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--accent-gold);
}

.order-form input,
.order-form textarea {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 20px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.order-form input:focus,
.order-form textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

.btn-submit {
    width: 100%;
    background: var(--accent-gold);
    color: var(--bg-dark);
    padding: 16px;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--accent-gold-hover);
    box-shadow: var(--shadow-glow);
}


/* --- FLOATING BTN & PROMO --- */
.promo {
    background: var(--accent-gold);
    color: var(--bg-dark);
    text-align: center;
    padding: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1px;
    position: fixed;
    bottom: -100px;
    width: 100%;
    z-index: 900;
    transition: bottom 0.5s ease;
}

.promo.visible {
    bottom: 0;
}

.fixed-button {
    position: fixed;
    bottom: 60px;
    right: 30px;
    background: var(--bg-card);
    color: var(--accent-gold);
    padding: 15px 30px;
    border-radius: 50px;
    border: 1px solid var(--accent-gold);
    cursor: pointer;
    z-index: 1000;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
}

.fixed-button:hover {
    background: var(--accent-gold);
    color: var(--bg-dark);
    transform: scale(1.05);
}

/* --- FOOTER --- */
footer {
    background: #080809;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* --- UTILS --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    nav.desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .header-container {
        padding: 15px 25px;
        gap: 20px;
    }

    .logo-wrapper {
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 80px 20px;
    }

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

    .hero-content p {
        font-size: 1rem;
    }

    .hero-section {
        min-height: 500px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .hero-buttons {
        flex-direction: column;
    }

    .contact-info-card p {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .contact-info-card p strong {
        width: auto;
    }

    .contact-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 10px 10px;
        gap: 12px;
        flex-wrap: nowrap;
    }

    .logo-wrapper {
        gap: 5px;
        margin-right: auto;
        min-width: 0;
    }

    .logo-wrapper .logo {
        font-size: clamp(0.7rem, 4vw, 1.0rem);
        white-space: nowrap;
    }

    .logo-img {
        height: clamp(22px, 6vw, 30px);
        flex-shrink: 0;
    }

    .contact-btn {
        padding: 5px 8px;
        font-size: clamp(0.65rem, 3vw, 0.75rem);
        flex-shrink: 0;
        white-space: nowrap;
    }

    .menu-toggle {
        font-size: clamp(1.2rem, 6vw, 1.5rem);
        flex-shrink: 0;
    }

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

    .section-header h2 {
        font-size: 1.8rem;
    }

    .about-text h2 {
        font-size: 1.6rem;
    }

    .price-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .popup-content {
        padding: 30px 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .fixed-button {
        right: 15px;
        bottom: 50px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}