/* ============================
   BASE VARIABLES + GLOBAL
============================ */

:root {
    --black: #000000;
    --deep-black: #0a0a0a;
    --gold: #d4af37;
    --white: #ffffff;

    --container-width: 1200px;
}

body {
    font-family: 'Neue Montreal', 'Inter', sans-serif;
    font-weight: 400;
    letter-spacing: -0.2px;
    background: #000;
    color: #fff;
    padding-top: 100px; /* фикс для header */
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 700;
}

h1 {
    font-size: 64px;
    letter-spacing: -1px;
}

h2 {
    font-size: 42px;
    margin-bottom: 40px;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    overflow: hidden;
}

h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

p {
    line-height: 1.6;
    font-weight: 300;
}

section {
    padding: 100px 0;
}

/* ============================
   FIXED HEADER (НОВЫЙ)
============================ */

.header {
    width: 100%;
    padding: 20px 0;
    background: var(--black);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--gold);
}

/* DESKTOP NAV */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-desktop a {
    font-size: 16px;
    opacity: 0.8;
    transition: 0.3s;
}

.nav-desktop a:hover {
    opacity: 1;
    color: var(--gold);
}

/* LANGUAGE SWITCHER */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-switcher .lang img {
    width: 22px;
    height: 16px;
    opacity: 0.6;
    transition: 0.3s;
}

.lang-switcher .lang.active img,
.lang-switcher .lang:hover img {
    opacity: 1;
}
/* ============================
   BURGER MENU (НОВЫЙ)
============================ */

.burger {
    display: none;
    width: 32px;
    height: 24px;
    position: relative;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    z-index: 300;
}

.burger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 999px;
    transition: 0.3s ease;
}

.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 11px; }
.burger span:nth-child(3) { top: 22px; }

.burger.active span:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
}

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

.burger.active span:nth-child(3) {
    top: 11px;
    transform: rotate(-45deg);
}

/* ============================
   MOBILE MENU (НОВЫЙ)
============================ */

.nav-mobile {
    position: fixed;
    inset: 0;
    background: rgba(3,3,3,0.96);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: 0.4s ease;
    z-index: 250;
}

.nav-mobile.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.nav-mobile-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    gap: 22px;
    text-align: center;
}

.nav-mobile a {
    color: #fff;
    font-size: 22px;
    text-decoration: none;
    letter-spacing: 0.03em;
}

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

/* ============================
   MOBILE LANGUAGE SWITCHER
============================ */

.lang-switcher-mobile {
    margin-top: 30px;
    display: flex;
    gap: 16px;
    justify-content: center;
}

.lang-switcher-mobile img {
    width: 30px;
    height: 20px;
    opacity: 0.7;
    transition: 0.3s ease;
}

.lang-switcher-mobile .lang.active img,
.lang-switcher-mobile .lang:hover img {
    opacity: 1;
}

/* ============================
   RESPONSIVE FOR MENU
============================ */

@media (max-width: 768px) {
    .nav-desktop {
        display: none !important;
    }
    .burger {
        display: block;
    }
}
/* ============================
   HERO FIX (совместимо с твоим видео)
============================ */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    overflow: hidden;
    background: var(--deep-black);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: 72px;
    color: var(--gold);
    margin-bottom: 20px;
}

.hero p {
    font-size: 22px;
    opacity: 0.8;
    margin-bottom: 40px;
}

/* Видео */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -2;
}

/* Затемнение */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: -1;
}

/* ============================
   WHY-US / SERVICES / PROCESS
============================ */

.why-grid,
.services-grid,
.process-grid {
    display: grid;
    gap: 40px;
}

.why-item,
.service-item,
.process-step {
    padding: 30px;
    background: #0d0d0d;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    transition: 0.35s ease;
    position: relative;
    overflow: hidden;
}

/* Золотая подсветка */
.why-item::before,
.service-item::before,
.process-step::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(212,175,55,0.25), transparent 70%);
    opacity: 0;
    transition: 0.4s ease;
}

.why-item:hover::before,
.service-item:hover::before,
.process-step:hover::before {
    opacity: 1;
}

/* Подъём */
.why-item:hover,
.service-item:hover,
.process-step:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(212,175,55,0.4);
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

/* ============================
   PORTFOLIO (совместимо с твоим 3D)
============================ */

.portfolio-grid {
    display: grid;
    gap: 30px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    perspective: 800px;
    transition: 0.3s ease;
}

.portfolio-item img {
    border-radius: 6px;
    transition: transform 0.6s ease, filter 0.6s ease;
}

.portfolio-item:hover img {
    transform: scale(1.15);
    filter: brightness(0.6);
}

/* Золотой текст */
.portfolio-item h3 {
    position: absolute;
    bottom: 20px;
    left: 20px;
    margin: 0;
    color: var(--gold);
    font-size: 22px;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.5s ease;
}

.portfolio-item:hover h3 {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
   PRICING
============================ */

.pricing-grid {
    display: grid;
    gap: 40px;
}

.pricing-item {
    padding: 30px;
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    transition: 0.3s ease;
}

.pricing-item:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
}

.price {
    font-size: 32px;
    color: var(--gold);
    margin: 20px 0;
}

/* ============================
   CONTACT FORM FIX
============================ */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
}

.contact-form input,
.contact-form textarea {
    padding: 14px;
    background: #111;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 4px;
}

.contact-form button {
    width: 100%;
    padding: 18px 0;
    font-size: 20px;
    font-weight: 600;
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.15s ease-out;
    box-shadow: 0 6px 0 #b8962f, 0 12px 20px rgba(212,175,55,0.3);
}

.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 0 #b8962f, 0 16px 25px rgba(212,175,55,0.4);
}

.contact-form button:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #b8962f, 0 6px 10px rgba(212,175,55,0.2);
}
/* ============================
   PREMIUM ANIMATIONS
============================ */

/* Fade-in */
.fade-in {
    opacity: 0;
    transform: translateY(60px);
    transition: 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Gold line */
.gold-line {
    width: 80px;
    height: 2px;
    background: var(--gold);
    margin: 20px 0;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: 0.8s ease;
}

.gold-line.visible {
    opacity: 1;
    transform: scaleX(1);
}

/* ============================
   H2 Shine Effect
============================ */

h2::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-20deg);
    transition: 0.8s;
}

h2:hover::after {
    left: 100%;
}

/* ============================
   RESPONSIVE FIXES
============================ */

@media (max-width: 992px) {

    .container {
        width: 90%;
        padding: 0 10px;
    }

    .hero {
        height: 70vh;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero p {
        font-size: 18px;
    }

    section {
        padding: 80px 0;
    }

    h2 {
        font-size: 32px;
    }

    p {
        font-size: 17px;
        line-height: 1.7;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .price {
        font-size: 26px;
    }
}

@media (max-width: 768px) {

    .nav-desktop {
        display: none !important;
    }

    .burger {
        display: block;
    }

    .hero {
        height: 60vh;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 16px;
    }
}

@media (max-width: 576px) {

    .header .logo {
        font-size: 18px;
    }

    h2 {
        font-size: 26px;
    }

    p {
        font-size: 16px;
    }

    .btn-whatsapp,
    .btn-contact {
        font-size: 15px;
        padding: 12px 18px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 15px;
        padding: 12px;
    }
}

/* ============================
   BODY SCROLL LOCK
============================ */

body.no-scroll {
    overflow: hidden;
}
/* ============================
   WHATSAPP PREMIUM BUTTON — RESTORE
============================ */

.btn-whatsapp {
    display: inline-block;
    padding: 12px 26px;
    background: #25D366;
    color: #000;
    font-weight: 600;
    border-radius: 6px;
    margin-left: 20px;
    transition: 0.2s ease-out;
    box-shadow: 0 5px 0 #1da851, 0 10px 20px rgba(37,211,102,0.25);
    position: relative;
}

/* Hover — подъём */
.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 0 #1da851, 0 14px 25px rgba(37,211,102,0.35);
}

/* Active — нажатие */
.btn-whatsapp:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #1da851, 0 6px 12px rgba(37,211,102,0.2);
}

/* Pulse animation */
.pulse {
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 5px 0 #1da851, 0 0 0 rgba(37,211,102,0.0);
    }
    50% {
        box-shadow: 0 5px 0 #1da851, 0 0 18px rgba(37,211,102,0.55);
    }
    100% {
        box-shadow: 0 5px 0 #1da851, 0 0 0 rgba(37,211,102,0.0);
    }
}
/* ============================
   FIX: RESTORE 4-COLUMN GRIDS
============================ */

.why-grid,
.services-grid,
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

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

/* Tablet */
@media (max-width: 992px) {
    .why-grid,
    .services-grid,
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* Mobile */
@media (max-width: 576px) {
    .why-grid,
    .services-grid,
    .process-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}
/* ============================
   RESTORE EFFECTS ON MOBILE
============================ */

/* Разрешаем эффекты на устройствах без hover */
@media (hover: none) {

    .why-item,
    .service-item,
    .process-step,
    .portfolio-item {
        transition: 0.35s ease;
    }

    .why-item:active,
    .service-item:active,
    .process-step:active,
    .portfolio-item:active {
        transform: translateY(-6px) scale(1.02);
        border-color: rgba(212,175,55,0.4);
        box-shadow: 0 12px 30px rgba(0,0,0,0.6);
    }

    .portfolio-item:active img {
        transform: scale(1.15);
        filter: brightness(0.6);
    }

    .btn-whatsapp:active {
        transform: translateY(-3px);
        box-shadow: 0 8px 0 #1da851, 0 14px 25px rgba(37,211,102,0.35);
    }
}
/* ============================
   RESTORE EFFECTS ON MOBILE
============================ */

/* Разрешаем эффекты на мобильных */
@media (max-width: 768px) {

    /* Включаем 3D и hover */
    .portfolio-item,
    .why-item,
    .service-item,
    .process-step {
        transition: 0.35s ease !important;
        transform: none !important;
        overflow: visible !important;
        perspective: 800px !important;
    }

    /* Актив вместо hover */
    .portfolio-item:active img {
        transform: scale(1.15) !important;
        filter: brightness(0.6) !important;
    }

    .portfolio-item:active h3 {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    .why-item:active,
    .service-item:active,
    .process-step:active {
        transform: translateY(-6px) scale(1.02) !important;
        border-color: rgba(212,175,55,0.4) !important;
        box-shadow: 0 12px 30px rgba(0,0,0,0.6) !important;
    }

    /* Включаем сияние */
    .why-item::before,
    .service-item::before,
    .process-step::before {
        opacity: 1 !important;
    }
}

/* Полное восстановление hover на устройствах, которые его поддерживают */
@media (hover: hover) {
    .portfolio-item:hover img {
        transform: scale(1.15);
        filter: brightness(0.6);
    }
}
/* ============================
   RESTORE ALL EFFECTS ON MOBILE
============================ */

/* Включаем эффекты на устройствах без hover */
@media (hover: none) {

    /* WHY / SERVICES / PROCESS — сияние + подъём */
    .why-item,
    .service-item,
    .process-step {
        transition: 0.35s ease !important;
        transform: none !important;
        overflow: visible !important;
    }

    .why-item:active,
    .service-item:active,
    .process-step:active {
        transform: translateY(-8px) scale(1.02) !important;
        border-color: rgba(212,175,55,0.4) !important;
        box-shadow: 0 12px 30px rgba(0,0,0,0.6) !important;
    }

    .why-item::before,
    .service-item::before,
    .process-step::before {
        opacity: 1 !important;
    }

    /* PORTFOLIO — 3D + увеличение картинки */
    .portfolio-item {
        perspective: 800px !important;
        overflow: visible !important;
    }

    .portfolio-item:active img {
        transform: scale(1.15) !important;
        filter: brightness(0.6) !important;
    }

    .portfolio-item:active h3 {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    /* WhatsApp button */
    .btn-whatsapp:active {
        transform: translateY(-3px) !important;
        box-shadow: 0 8px 0 #1da851, 0 14px 25px rgba(37,211,102,0.35) !important;
    }
}

/* Включаем hover там, где он поддерживается */
@media (hover: hover) {
    .portfolio-item:hover img {
        transform: scale(1.15);
        filter: brightness(0.6);
    }
}
/* ============================
   FIX: RESTORE PRICING GRID
============================ */

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

/* Tablet */
@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 576px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}
/* Portfolio image height — cinematic premium */
.portfolio-item img {
    width: 100%;
    height: 180px; /* твой выбранный размер */
    object-fit: cover;
    border-radius: 6px;
}
.hero-content h1 {
    position: relative;
}

.hero-content h1::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero.fade-in .hero-content h1::after {
    opacity: 1;
}
.hero-content h1 {
    opacity: 0;
    transform: translateY(20px);
    animation: heroTitle 1.2s ease forwards 0.3s;
}

@keyframes heroTitle {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.hero-content p {
    opacity: 0;
    transform: translateY(20px);
    animation: heroSubtitle 1.2s ease forwards 0.6s;
}

@keyframes heroSubtitle {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.seo-block {
    padding: 80px 0;
    color: #ddd;
}

.seo-block h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.seo-block h3 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 10px;
}

.seo-block ul {
    margin-left: 20px;
    list-style: disc;
}

.seo-block p, .seo-block li {
    font-size: 18px;
    line-height: 1.6;
}
/* Блокировка скролла при открытом меню */
body.no-scroll {
    overflow: hidden;
    height: 100vh;
    touch-action: none; /* для iOS */
}

/* Базовые стили для анимаций */
.fade-in, .gold-line {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible, .gold-line.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Отключаем анимации если юзер попросил */
@media (prefers-reduced-motion: reduce) {
    .fade-in, .gold-line, .portfolio-inner, .parallax-text {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}