/* ========== Общие стили (header, footer, секции, страницы) ========== */
/* Цвета: #CFAD65 gold, #FFFFFF white, #000000 black */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.4s; }
.reveal-delay-6 { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

[data-aos] { pointer-events: auto; }
body .aos-animate { pointer-events: auto; }

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

/* Header — тёмный фон, светлый текст */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    color: #FFFFFF;
    box-shadow: 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    transition: box-shadow 0.35s ease, background 0.35s ease, transform 0.3s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.site-header.is-hidden {
    transform: translateY(-100%);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 24px;
}

.logo {
    font-size: 1.35rem;
    font-weight: 700;
    color: #FFFFFF;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.logo-accent { color: #CFAD65; }

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.35s ease;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #CFAD65;
    transition: width 0.35s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after { width: 100%; }

.main-nav a:hover { color: #CFAD65; }

/* Кнопки: единый размер, два класса — .btn-gold и .btn-outline */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease;
}

/* Золотая кнопка: фон золотой, при наведении — белый */
.btn-gold {
    background: #CFAD65;
    color: #FFFFFF;
    border-color: #CFAD65;
}
.btn-gold:hover {
    background: #FFFFFF;
    color: #CFAD65;
    border-color: #CFAD65;
}

/* Кнопка без фона: обводка золотая, при наведении — золотой фон */
.btn-outline {
    background: transparent;
    color: #CFAD65;
    border: 2px solid #CFAD65;
}
.btn-outline:hover {
    background: #CFAD65;
    color: #FFFFFF;
    border-color: #CFAD65;
}

/* На тёмном фоне (оверлей, секция): белый текст и обводка */
.section-dark .btn-outline,
.section-cta .btn-outline {
    color: #FFFFFF;
    border-color: #FFFFFF;
}
.section-dark .btn-outline:hover,
.section-cta .btn-outline:hover {
    background: #CFAD65;
    color: #FFFFFF;
    border-color: #CFAD65;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #FFFFFF;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-icon-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.35s ease, color 0.35s ease;
}

.header-icon-btn:hover {
    background: rgba(207, 173, 101, 0.2);
    color: #CFAD65;
}

.header-icon-btn svg { flex-shrink: 0; }

/* Sections common */
.section { padding: 80px 0; }

.section-light {
    background: #f5f5f5;
    color: #000000;
}

.section-dark {
    background: #000000;
    color: #FFFFFF;
}

.section-grey {
    background: #e0e0e0;
    color: #000000;
}

.section-heading,
.leaders-title,
.cta-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.2;
}

.section-heading {
    color: #CFAD65;
    margin-bottom: 8px;
}

.section-light .section-heading,
.section-grey .section-heading,
.section-dark .section-heading {
    color: #CFAD65;
}

.section-dark .section-intro {
    color: rgba(255, 255, 255, 0.8);
}

.section-heading-center {
    text-align: center;
    margin-bottom: 48px;
}

.section-intro {
    font-size: 1rem;
    color: #555;
    margin-bottom: 40px;
    max-width: 600px;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.link-view-all {
    color: #CFAD65;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.35s ease, opacity 0.35s ease;
}

.link-view-all:hover {
    color: #b8954a;
    opacity: 0.9;
}

/* Page hero / title (общее для страниц Services, About, Privacy, Contact) */
.page-hero {
    padding-top: 48px;
    padding-bottom: 48px;
}

.page-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    color: #CFAD65;
    margin-bottom: 16px;
    letter-spacing: 2px;
    line-height: 1.2;
}

.page-hero .section-intro,
.page-intro {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 640px;
    line-height: 1.6;
}

.page-intro p { margin-bottom: 0.5em; }

/* Footer */
.site-footer {
    background: #000000;
    color: #FFFFFF;
    padding: 64px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 16px;
}

.footer-logo .logo-accent { color: #CFAD65; }

.footer-about p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 280px;
}

.footer-social { display: flex; gap: 12px; }

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.35s ease, color 0.35s ease;
}

.footer-social a:hover {
    background: #CFAD65;
    color: #000000;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 10px; }

.footer-col a,
.footer-col p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    line-height: 1.5;
}

.footer-col a:hover { color: #CFAD65; }

.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-newsletter input {
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    background: rgba(255,255,255,0.05);
    color: #FFFFFF;
    font-size: 1rem;
}

.footer-newsletter input::placeholder {
    color: rgba(255,255,255,0.5);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p,
.footer-legal a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

.footer-legal { display: flex; gap: 24px; }

.footer-legal a { text-decoration: none; }

.footer-legal a:hover { color: #CFAD65; }

/* Chat float (call / WhatsApp) */
.chat-float-wrap {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chat-float-actions {
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    margin-bottom: 12px;
}

.chat-float-action {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.35s ease,
                box-shadow 0.25s ease;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
}

.chat-float-wrap.is-open .chat-float-actions .chat-float-action {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.chat-float-wrap.is-open .chat-float-actions .chat-float-action:nth-child(1) { transition-delay: 0.05s; }
.chat-float-wrap.is-open .chat-float-actions .chat-float-action:nth-child(2) { transition-delay: 0.1s; }

.chat-float-call { background: #2d7a4f; }
.chat-float-call:hover {
    color: #FFFFFF;
    box-shadow: 0 6px 24px rgba(45, 122, 79, 0.45);
}
.chat-float-wrap.is-open .chat-float-call:hover {
    transform: translateY(0) scale(1.08);
}

.chat-float-whatsapp { background: #25D366; }
.chat-float-whatsapp:hover {
    color: #FFFFFF;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
}
.chat-float-wrap.is-open .chat-float-whatsapp:hover {
    transform: translateY(0) scale(1.08);
}

.chat-float-toggle {
    position: relative;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: #CFAD65;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(207, 173, 101, 0.4);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                background 0.25s ease,
                box-shadow 0.25s ease;
}

.chat-float-toggle:hover {
    transform: scale(1.05);
    background: #b8954a;
    box-shadow: 0 6px 24px rgba(207, 173, 101, 0.5);
}

.chat-float-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.chat-float-icon-chat { opacity: 1; }
.chat-float-icon-close {
    opacity: 0;
    transform: rotate(-90deg);
}

.chat-float-wrap.is-open .chat-float-icon-chat {
    opacity: 0;
    transform: rotate(90deg);
}
.chat-float-wrap.is-open .chat-float-icon-close {
    opacity: 1;
    transform: rotate(0);
}

/* Common responsive */
@media (max-width: 1024px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1a1a1a;
        padding: 24px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav li { border-bottom: 1px solid rgba(255,255,255,0.12); }
    .main-nav a { display: block; padding: 14px 0; color: #FFFFFF; }
    .site-header a.btn { display: none; }
    .nav-toggle { display: flex; }
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .footer-about p { max-width: none; }
    .footer-social { justify-content: center; }
    .footer-bottom { flex-direction: column; }
}

@media (max-width: 480px) {
    .section { padding: 56px 0; }
    .container { padding: 0 16px; }
}

/* Кастомный курсор — два круга с плавным следованием */
.cursor-dot {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    opacity: 0.7;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%) scale(1);
    left: 0;
    top: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}
.cursor-dot-white { background: #FFFFFF; }
.cursor-dot-gold { background: #CFAD65; }
body.cursor-on-link .cursor-dot {
    transform: translate(-50%, -50%) scale(5);
    opacity: 0;
}
@media (hover: none), (pointer: coarse) {
    .cursor-dot { display: none; }
}
