/* ============================================
   ПАМЯТНИКИ ОТ СКЛАДА — Main Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #c9a84c;
    --gold-light: #f0d68a;
    --gold-dark: #a07c2e;
    --dark: #1a1a1a;
    --dark-90: rgba(26, 26, 26, 0.92);
    --dark-80: rgba(26, 26, 26, 0.85);
    --dark-60: rgba(26, 26, 26, 0.6);
    --cream: #faf8f4;
    --text: #333;
    --text-light: #e8e0d0;
    --marble-white: #f5f0eb;
    --shadow: 0 4px 30px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 50px rgba(0,0,0,0.2);
    --radius: 8px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: #1a1a1a;
}


body {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: #1a1a1a;
    overflow-x: hidden;
    min-height: 100vh;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.service-card,
.about__text-block,
.gallery__item,
.stat,
.contact-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.animate-in,
.about__text-block.animate-in,
.gallery__item.animate-in,
.stat.animate-in,
.contact-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.2s; }
.service-card:nth-child(4) { transition-delay: 0.3s; }
.service-card:nth-child(5) { transition-delay: 0.4s; }
.service-card:nth-child(6) { transition-delay: 0.5s; }

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.4);
    transition: var(--transition);
}

.header--scrolled {
    background: rgba(20, 20, 20, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    border-bottom-color: rgba(201, 168, 76, 0.5);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--gold);
}

.logo-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.logo-icon--small {
    width: 36px;
    height: 36px;
}

.logo-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 0.5px;
}

.header__nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    padding: 4px 0;
    transition: color var(--transition);
}

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

.nav-link:hover {
    color: var(--gold);
}

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

.header__phone {
    display: flex;
    align-items: center;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-light);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color var(--transition);
}

.phone-link:hover {
    color: #111;
}

.phone-icon {
    width: 20px;
    height: 20px;
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.burger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background-color: #f7f3ec;
    background-image: url('images/marble-bg-processed.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Gradient fade at bottom of hero: marble -> dark */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #1a1a1a);
    z-index: 3;
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 60px 24px;
}

.hero__content {
    flex: 1;
    max-width: 600px;
}

.hero__tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-style: italic;
    color: var(--gold-dark);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--dark);
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero__subtitle {
    font-size: 1.15rem;
    color: var(--dark-60);
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero__features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.hero__features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--dark);
}

.hero__features li svg {
    width: 22px;
    height: 22px;
    color: var(--gold);
    flex-shrink: 0;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--dark);
    color: var(--gold-light);
    padding: 16px 40px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--gold);
    border-radius: var(--radius);
    transition: all var(--transition);
    opacity: 0;
    animation: fadeInUp 0.8s ease 1s forwards;
}

.hero__cta:hover {
    background: var(--gold);
    color: var(--dark);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
    transform: translateY(-2px);
}

.hero__cta .phone-icon {
    width: 20px;
    height: 20px;
}

.hero__image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1s ease 0.6s forwards;
}

.hero__image-circle {
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: linear-gradient(180deg, #d4e6f5 0%, #c0d8ee 30%, #b8d2ea 60%, #d0e2f2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 8px 12px 40px rgba(0,0,0,0.15);
    border: none;
    position: relative;
}

.hero__image-circle img,
.monument-svg {
    width: 85%;
    height: 85%;
    object-fit: contain;
}

/* ============================================
   FLOATING PHONE BUTTON
   ============================================ */
.float-phone {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 900;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.5);
    transition: all var(--transition);
    animation: pulse-ring 2s ease-out infinite;
}

.float-phone svg {
    width: 26px;
    height: 26px;
}

.float-phone:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(201, 168, 76, 0.7);
    background: var(--gold-light);
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(201, 168, 76, 0); }
    100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0); }
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--dark);
    margin-bottom: 12px;
}

.section-title--light {
    color: var(--gold-light);
}

.section-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto 50px;
    border-radius: 2px;
}

.section-divider--gold {
    background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    padding: 100px 0;
    background: #1a1a1a;
    position: relative;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 36px 28px;
    text-align: center;
    border: 1px solid rgba(201, 168, 76, 0.15);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::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));
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(201, 168, 76, 0.4);
}

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

.service-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: var(--gold);
}

.service-card__icon svg {
    width: 100%;
    height: 100%;
}

.service-card__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 12px;
}

.service-card__text {
    font-size: 0.93rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.65;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: 100px 0;
    position: relative;
    background-color: #f7f3ec;
    background-image: url('images/marble-bg-processed.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Gradient fade at top of about: dark -> marble */
.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, #1a1a1a, transparent);
    z-index: 2;
    pointer-events: none;
}

/* Gradient fade at bottom of about: marble -> dark */
.about::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #1a1a1a);
    z-index: 2;
    pointer-events: none;
}

.about__inner {
    position: relative;
    z-index: 1;
}

.about__text-block {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about__text {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about__text strong {
    color: var(--gold-dark);
}

.about__stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
}

.stat {
    text-align: center;
}

.stat__number {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

.stat__label {
    font-size: 0.85rem;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery {
    padding: 100px 0;
}

.gallery__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}

.gallery__item {
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
    border: 1px solid rgba(201, 168, 76, 0.15);
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery__item:hover img {
    transform: scale(1.03);
}

.gallery__item--text {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    border-color: rgba(201, 168, 76, 0.3);
}

.gallery__card {
    padding: 50px 40px;
    text-align: center;
}

.gallery__card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 16px;
}

.gallery__card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.85;
    margin-bottom: 24px;
}

.gallery__link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color var(--transition);
}

.gallery__link:hover {
    color: var(--gold-light);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.08), rgba(201, 168, 76, 0.03));
    border-top: 1px solid rgba(201, 168, 76, 0.15);
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.cta-section__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-section__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.cta-section__text {
    color: #666;
    font-size: 1rem;
}

.cta-section__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    background: var(--gold);
    color: var(--dark);
    padding: 16px 36px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius);
    transition: all var(--transition);
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3);
}

.cta-section__btn:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(201, 168, 76, 0.5);
}

.cta-section__btn .phone-icon {
    width: 22px;
    height: 22px;
}

/* ============================================
   CONTACTS SECTION
   ============================================ */
.contacts {
    padding: 100px 0;
    background: #1a1a1a;
    position: relative;
}

.contacts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(201, 168, 76, 0.05) 0%, transparent 60%);
}

.contacts__grid {
    position: relative;
    z-index: 1;
}

.contacts__info {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 28px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 12px;
    transition: all var(--transition);
}

.contact-item:hover {
    border-color: rgba(201, 168, 76, 0.4);
    background: rgba(201, 168, 76, 0.05);
}

.contact-item__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    color: var(--gold);
}

.contact-item__icon svg {
    width: 100%;
    height: 100%;
}

.contact-item__label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(232, 224, 208, 0.5);
    font-weight: 500;
    margin-bottom: 4px;
}

.contact-item__value {
    color: var(--gold-light);
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition);
}

a.contact-item__value:hover {
    color: #fff;
}

.contact-item__value--text {
    color: var(--text-light);
    font-weight: 400;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: #1a1a1a;
    position: relative;
    color: rgba(255, 255, 255, 0.6);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
}

.footer__copy {
    font-size: 0.82rem;
    color: rgba(232, 224, 208, 0.4);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .hero__inner {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px;
    }

    .hero__content {
        max-width: 100%;
    }

    .hero__features {
        align-items: center;
    }

    .hero__image-circle {
        width: 340px;
        height: 340px;
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .about__stats {
        gap: 40px;
    }

    .cta-section__inner {
        flex-direction: column;
        text-align: center;
    }

    .header__nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(20, 20, 20, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
        transform: translateX(100%);
        transition: transform 0.4s ease;
        z-index: 999;
    }

    .menu-open .header__nav {
        transform: translateX(0);
    }

    .menu-open .burger span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-open .burger span:nth-child(2) {
        opacity: 0;
    }

    .menu-open .burger span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .burger {
        display: flex;
    }
}

@media (max-width: 640px) {
    .hero__title {
        font-size: 2.2rem;
    }

    .hero__tagline {
        font-size: 1.3rem;
    }

    .hero__image-circle {
        width: 280px;
        height: 280px;
    }

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

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

    .about__stats {
        flex-direction: column;
        gap: 30px;
    }

    .stat__number {
        font-size: 2.5rem;
    }

    .footer__inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .header__phone {
        display: none;
    }

    .header__inner {
        height: 64px;
    }

    .hero {
        padding-top: 64px;
    }
}

/* ============================================
   MOBILE MENU PHONE (inside nav on mobile)
   ============================================ */
@media (max-width: 992px) {
    .header__nav::after {
        content: '+7 (473) 229-93-93';
        display: block;
        margin-top: 20px;
        padding: 14px 32px;
        background: var(--gold);
        color: var(--dark);
        font-weight: 700;
        font-size: 1.1rem;
        border-radius: var(--radius);
        text-align: center;
    }
}

/* Image Processing Styles */
.logo-image {
    filter: drop-shadow(0 0 4px rgba(201, 168, 76, 0.4)) contrast(1.2);
    border-radius: 50%;
    object-fit: cover;
    mix-blend-mode: screen;
}

.hero-monument-img {
    max-width: 550px;
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
    mix-blend-mode: multiply;
    /* Combine filters */
    filter: contrast(1.05) brightness(0.95);
}
.hero-monument-img:hover {
    transform: scale(1.05) translateY(-5px);
}

.hero__image-circle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 168, 76, 0.3);
    box-shadow: 0 0 60px rgba(201, 168, 76, 0.2), inset 0 0 40px rgba(255,255,255,0.05);
    overflow: hidden;
}

/* iOS / Mobile: body marble is continuous, no per-section bg needed */
