:root {
    /* Цветовая палитра: Темная премиальная тема */
    --bg-color: #050505;
    --surface-color: #0a0a0a;
    --text-primary: #ededed;
    --text-secondary: #999999;
    --accent-color: #d4af37;
    /* Золотой/Бронзовый */
    --accent-hover: #b5952f;

    /* Шрифты */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    /* Другое */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --glass-bg: rgba(5, 5, 5, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);
}

/* --- ВАЖНО: Размер логотипа с эмблемой --- */
.logo-img {
    height: 72px !important;
    width: auto !important;
    max-width: none !important;
    display: block !important;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.footer-logo-img {
    height: 60px !important;
    width: auto !important;
    max-width: none !important;
    display: block !important;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

@media (max-width: 768px) {
    .logo-img {
        height: 56px !important;
    }
}

@media (max-width: 480px) {
    .logo-img,
    .footer-logo-img {
        height: 48px !important;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 120px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 600px;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 40px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #050505;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.28);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Навигация (Header) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: padding 0.3s ease, background 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.95;
}

.logo:hover .logo-img {
    transform: scale(1.04);
}

.logo-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.logo-title {
    display: flex;
    align-items: baseline;
    gap: 8px;
    line-height: 1;
}

.logo-orb {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--accent-color);
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
}

.logo-design {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #9c9a96;
    line-height: 1;
}

.logo-subtitle {
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    line-height: 1;
}

@media (max-width: 768px) {
    .logo {
        gap: 12px;
    }
    .logo-orb {
        font-size: 1.45rem;
        letter-spacing: 0.08em;
    }
    .logo-design {
        font-size: 0.74rem;
        letter-spacing: 0.18em;
    }
    .logo-subtitle {
        font-size: 0.56rem;
        letter-spacing: 1.8px;
    }
}

@media (max-width: 480px) {
    .logo-orb {
        font-size: 1.25rem;
    }
    .logo-design {
        font-size: 0.68rem;
        letter-spacing: 0.14em;
    }
    .logo-subtitle {
        display: none;
    }
}

.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    position: relative;
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Кнопка в шапке "Обсудить проект" */
.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--accent-color);
    color: #050505;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
    border-color: var(--accent-color);
}

.mobile-cta-item {
    display: none;
}

/* Гамбургер меню */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 140px;
    padding-bottom: 70px;
    background-color: #060606;
    background-image: 
        linear-gradient(90deg, rgba(6, 6, 6, 0.95) 0%, rgba(6, 6, 6, 0.85) 36%, rgba(6, 6, 6, 0.45) 60%, rgba(6, 6, 6, 0.1) 100%),
        url('../img/hero-bg.jpg');
    background-position: right center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero .container {
    max-width: 100%;
    padding-left: clamp(24px, 6vw, 120px);
    padding-right: clamp(24px, 6vw, 80px);
    margin: 0;
    width: 100%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 6, 6, 0.45) 0%, transparent 20%, transparent 80%, rgba(6, 6, 6, 0.85) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 660px;
    margin-left: 0;
}

.hero-title {
    font-size: clamp(2.8rem, 4.4vw, 4.4rem);
    margin-bottom: 22px;
    animation: fadeUp 1s ease forwards;
    opacity: 0;
    line-height: 1.14;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.85);
}

.hero-title span {
    color: var(--accent-color);
    font-style: italic;
    display: inline;
}

.hero-subtitle {
    font-size: 1.18rem;
    color: #d1cfc9;
    margin-bottom: 40px;
    max-width: 520px;
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
    font-weight: 300;
    line-height: 1.6;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
}

.hero-actions {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

/* ==========================================================================
   Бегущая строка (Marquee Ticker)
   ========================================================================== */
.ticker {
    width: 100%;
    overflow: hidden;
    background: rgba(212, 175, 55, 0.04);
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    padding: 15px 0;
    position: relative;
    z-index: 2;
    user-select: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 1) 10%, rgba(0, 0, 0, 1) 90%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 1) 10%, rgba(0, 0, 0, 1) 90%, transparent 100%);
}

.ticker__track {
    display: flex;
    align-items: center;
    gap: 36px;
    white-space: nowrap;
    width: max-content;
    animation: tickerScroll 55s linear infinite;
    will-change: transform;
}

.ticker:hover .ticker__track {
    animation-play-state: paused;
}

.ticker__track span {
    font-family: var(--font-body);
    font-size: 0.84rem;
    font-weight: 500;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: var(--accent-color);
    flex-shrink: 0;
}

.ticker__dot {
    color: var(--accent-color);
    font-size: 0.52rem !important;
    opacity: 0.45;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   Секция "Услуги" (Сетка 6 карточек с тонкими разделителями и SVG-иконками)
   ========================================================================== */
.services {
    padding: 110px 0;
    background-color: var(--surface-color);
    position: relative;
    border-top: 1px solid var(--glass-border);
}

.services-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
}

.service-card {
    background: #0d0d0d;
    padding: 48px 38px;
    position: relative;
    transition: background 0.35s ease, transform 0.35s ease;
    cursor: default;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    background: #141311;
}

.service-card-icon {
    width: 44px;
    height: 44px;
    color: var(--accent-color);
    margin-bottom: 24px;
    transition: transform 0.35s ease;
    flex-shrink: 0;
}

.service-card:hover .service-card-icon {
    transform: scale(1.12);
}

.service-card-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.service-card-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 14px;
    line-height: 1.3;
}

.service-card-desc {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
    margin: 0;
}

@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services {
        padding: 80px 0;
    }
    .services-grid {
        grid-template-columns: 1fr;
        border-radius: 20px;
    }
    .service-card {
        padding: 34px 24px;
    }
}

/* Анимации ключей */
@keyframes pulseOrb {
    0% {
        transform: translateY(-50%) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translateY(-50%) scale(1.15);
        opacity: 1;
    }
}

@keyframes fadeUp {
    0% {
        transform: translateY(40px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Портфолио */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    display: block;
    aspect-ratio: 4/5;
    background: var(--surface-color);
    /* плейсхолдер пока нет картинок */
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0));
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.portfolio-info p {
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   Секция "О нас" (Премиальный стиль с композицией фото и бейджем)
   ========================================================================== */
.about {
    position: relative;
    padding: 110px 0 120px 0;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}

@media (min-width: 992px) {
    .about-grid {
        grid-template-columns: 1.1fr 1fr;
        gap: 70px;
    }
}

@media (min-width: 1200px) {
    .about-grid {
        gap: 90px;
    }
}

/* Левая колонка */
.about-tag {
    display: inline-block;
    color: var(--accent-color);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.about-title {
    font-family: var(--font-heading);
    font-size: 3.3rem;
    font-weight: 400;
    line-height: 1.18;
    color: #ffffff;
    margin-bottom: 26px;
    letter-spacing: -0.5px;
}

.about-title-accent {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
    color: var(--accent-color);
}

.about-lead-text p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 18px;
    font-weight: 300;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 36px;
}

.about-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1;
    margin-top: 2px;
    user-select: none;
}

.feature-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.feature-title {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.feature-desc {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.4;
    font-weight: 300;
}

/* Правая колонка: Композиция изображений */
.about-visual-col {
    position: relative;
    display: flex;
    justify-content: center;
}

.about-visual-wrapper {
    position: relative;
    width: 100%;
    max-width: 520px;
    padding-bottom: 40px;
}

/* Главное вертикальное фото */
.about-img-main-box {
    width: 82%;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    background: var(--surface-color);
    aspect-ratio: 4 / 5.2;
    position: relative;
}

.about-img-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.about-visual-wrapper:hover .about-img-main {
    transform: scale(1.025);
}

/* Золотистый круглый бейдж опыта */
.about-experience-badge {
    position: absolute;
    top: 48%;
    right: 2%;
    transform: translateY(-50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dfb76c 0%, #c4963e 50%, #9e7323 100%);
    color: #1a140a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), 0 0 45px rgba(212, 175, 55, 0.35);
    z-index: 3;
    padding: 10px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-experience-badge:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.5), 0 0 55px rgba(212, 175, 55, 0.5);
}

.badge-number {
    font-family: var(--font-heading);
    font-size: 2.7rem;
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -1px;
}

.badge-label {
    font-family: var(--font-body);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1.15;
    margin-top: 4px;
    text-transform: uppercase;
}

/* Второе перекрывающее горизонтальное фото */
.about-img-sub-box {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 68%;
    aspect-ratio: 4 / 2.9;
    border-radius: 20px;
    overflow: hidden;
    border: 5px solid var(--bg-color);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.75);
    z-index: 2;
    background: var(--surface-color);
}

.about-img-sub {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.about-visual-wrapper:hover .about-img-sub {
    transform: scale(1.03);
}

/* Адаптивность для мобильных */
@media (max-width: 991px) {
    .about {
        padding: 80px 0;
    }
    .about-title {
        font-size: 2.6rem;
    }
    .about-visual-wrapper {
        margin: 20px auto 0 auto;
    }
}

@media (max-width: 600px) {
    .about-title {
        font-size: 2rem;
        line-height: 1.25;
    }
    .about-lead-text p {
        font-size: 0.98rem;
    }
    .about-img-main-box {
        width: 86%;
        border-radius: 20px;
    }
    .about-img-sub-box {
        width: 70%;
        border-radius: 16px;
        border-width: 4px;
    }
    .about-experience-badge {
        width: 96px;
        height: 96px;
        right: 0;
        top: 42%;
    }
    .badge-number {
        font-size: 2.1rem;
    }
    .badge-label {
        font-size: 0.54rem;
        letter-spacing: 1.2px;
    }
}

/* ==========================================================================
   Секция "Процесс" (Как мы работаем)
   ========================================================================== */
.process {
    padding: 110px 0;
    background: var(--surface-color);
    position: relative;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.process-header {
    text-align: center;
    margin-bottom: 70px;
}

.process-steps {
    display: flex;
    align-items: stretch;
    gap: 0;
    max-width: 1160px;
    margin: 0 auto;
}

.process-step {
    flex: 1;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 40px 28px;
    position: relative;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    display: flex;
    flex-direction: column;
}

.process-step:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.1);
}

.process-connector {
    width: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.process-connector::after {
    content: '→';
    font-size: 1.35rem;
    color: var(--accent-color);
    opacity: 0.6;
}

.process-step h3 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 14px;
    line-height: 1.3;
}

.process-step p {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
    font-weight: 300;
    margin: 0;
}

@media (max-width: 1024px) {
    .process-steps {
        gap: 8px;
    }
    .process-connector {
        width: 20px;
    }
    .process-step {
        padding: 30px 20px;
    }
}

@media (max-width: 900px) {
    .process-steps {
        flex-direction: column;
        gap: 0;
    }
    .process-connector {
        width: auto;
        height: 32px;
    }
    .process-connector::after {
        content: '↓';
    }
}

/* ==========================================================================
   Секция "Контакты" (2 колонки: реквизиты + карточка формы)
   ========================================================================== */
.contact {
    padding: 120px 0;
    background: var(--bg-color);
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: start;
}

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr 1.15fr;
        gap: 80px;
    }
}

/* Левая колонка информации */
.contact-info-col {
    display: flex;
    flex-direction: column;
}

.contact-info-col .section-title {
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 26px;
    margin-top: 10px;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.contact-detail-icon {
    font-size: 1.3rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 3px;
}

.contact-detail-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-detail-label {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-color);
}

.contact-detail-value {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 300;
    transition: color 0.25s ease;
}

a.contact-detail-value:hover {
    color: var(--accent-color);
}

.contact-socials {
    display: flex;
    gap: 14px;
    margin-top: 42px;
}

.contact-social-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.contact-social-btn:hover {
    border-color: var(--accent-color);
    color: #050505;
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.35);
}

/* Правая колонка: Карточка формы */
.contact-form-card {
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 46px 42px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

.contact-form-title {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 28px;
    line-height: 1.25;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

.form-label {
    font-family: var(--font-body);
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 0.96rem;
    font-weight: 300;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}

.form-input::placeholder {
    color: #555555;
}

.form-input:focus {
    border-color: var(--accent-color);
    background: rgba(212, 175, 55, 0.04);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
}

.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23d4af37' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 44px;
    appearance: none;
    -webkit-appearance: none;
}

.form-select option {
    background: #141414;
    color: #ffffff;
}

.form-textarea {
    min-height: 110px;
    resize: vertical;
}

.btn-submit-full {
    width: 100%;
    padding: 16px 28px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--accent-color);
    color: #050505;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-top: 8px;
}

.btn-submit-full:hover {
    background: #e2be4a;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35);
    transform: translateY(-2px);
}

.form-privacy {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: #666666;
    text-align: center;
    margin: 8px 0 0 0;
    line-height: 1.4;
}

.form-privacy a {
    color: var(--accent-color);
    text-decoration: underline;
    transition: color 0.2s;
}

.form-privacy a:hover {
    color: var(--accent-hover);
}

.contact-form-success {
    text-align: center;
    padding: 40px 20px;
}

.contact-form-success .success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.15);
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.contact-form-success h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.contact-form-success p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

@media (max-width: 600px) {
    .contact {
        padding: 80px 0;
    }
    .contact-form-card {
        padding: 32px 20px;
    }
}

.footer {
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
    background: var(--surface-color);
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-secondary);
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.footer-logo .logo-orb {
    font-size: 1.55rem;
}

.footer-logo .logo-design {
    font-size: 0.78rem;
}

.footer-logo .logo-subtitle {
    font-size: 0.58rem;
}

/* Медиа-запросы для мобилок */
@media (max-width: 992px) {

    .section-title,
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--surface-color);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        text-align: center;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-list.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header-nav-cta {
        display: none;
    }

    .mobile-cta-item {
        display: block;
        width: 100%;
        max-width: 280px;
        margin: 10px auto 0 auto;
    }

    .mobile-nav-cta {
        display: inline-flex;
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
    }

    .header {
        padding: 10px 0;
    }

    .header-inner {
        padding: 5px 0;
    }


    .hero {
        background-position: 70% center;
        background-image: 
            linear-gradient(180deg, rgba(6, 6, 6, 0.88) 0%, rgba(6, 6, 6, 0.94) 100%),
            url('../img/hero-bg.jpg');
        padding-top: 130px;
        padding-bottom: 70px;
    }
}

@media (max-width: 576px) {

    .section-title,
    .hero-title {
        font-size: 2.5rem;
    }

    .section {
        padding: 80px 0;
    }

    .service-card {
        padding: 30px 20px;
    }
}

/* --- Анимации при скролле (Intersection Observer) --- */
.fade-up-element {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-up-element.is-visible {
    opacity: 1;
    transform: none;
}

/* Для сетки карточек (поочередное появление) */
.stagger-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.stagger-item.is-visible {
    opacity: 1;
    transform: none;
}

/* Задержки для элементов сетки, чтобы они появлялись "волной" */
.stagger-item:nth-child(1) {
    transition-delay: 0.1s;
}

.stagger-item:nth-child(2) {
    transition-delay: 0.25s;
}

.stagger-item:nth-child(3) {
    transition-delay: 0.4s;
}

.stagger-item:nth-child(4) {
    transition-delay: 0.55s;
}

.stagger-item:nth-child(5) {
    transition-delay: 0.7s;
}

.stagger-item:nth-child(6) {
    transition-delay: 0.85s;
}

.stagger-item:nth-child(7) {
    transition-delay: 1.0s;
}

/* --- Модальное окно проекта --- */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5000;
    /* Поднимаем выше всего */
    visibility: hidden;
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.project-modal.active {
    visibility: visible;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    background: var(--surface-color);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    z-index: 10;
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
}

.project-modal.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    font-size: 24px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    z-index: 50;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.modal-close:hover {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
    transform: scale(1.08);
}

.modal-close:active {
    transform: scale(0.95);
}

.modal-content {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    max-height: 90vh;
    height: auto;
    overflow: hidden;
}

@media (max-width: 992px) {
    .modal-content {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .modal-container {
        max-height: 95vh;
        overflow-y: auto;
    }

    .gallery-main {
        height: 42vh !important;
        min-height: 250px !important;
    }

    .modal-gallery {
        padding: 20px !important;
    }

    .modal-details {
        padding: 25px 20px !important;
    }
}

/* Галерея */
.modal-gallery {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #000;
    justify-content: center;
    min-height: 0;
    min-width: 0;
}

.gallery-main {
    position: relative;
    width: 100%;
    height: 54vh;
    max-height: 520px;
    min-height: 320px;
    border-radius: 15px;
    overflow: hidden;
    background: #080808;
}

.gallery-main img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain;
    display: block;
    cursor: pointer;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.gallery-nav button {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.gallery-nav button:hover {
    background: var(--accent-color);
    color: #000;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.gallery-thumbs::-webkit-scrollbar {
    height: 4px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

.thumb-item {
    width: 100px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
    border: 2px solid transparent;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-item.active {
    opacity: 1;
    border-color: var(--accent-color);
}

.thumb-item:hover {
    opacity: 0.8;
}

/* Детали */
.modal-details {
    padding: 60px 40px;
}

.modal-category {
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.modal-title {
    font-size: 3rem;
    margin-bottom: 30px;
    font-family: var(--font-heading);
}

.modal-body p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* --- Кнопка Наверх --- */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--accent-color);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--accent-color);
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

@media (max-width: 768px) {
    .scroll-top-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.5rem;
    }
}

/* --- Полноэкранная галерея (Lightbox) --- */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 6000;
    /* Должен быть выше, чем project-modal (5000) */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-modal img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.lightbox-modal.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 30px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 28px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    z-index: 6010;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
    background: var(--accent-color);
    color: #000;
    transform: scale(1.08);
}

.lightbox-close:active {
    transform: scale(0.95);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 6010;
    /* Выше фона лайтбокса */
    transition: var(--transition);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent-color);
    color: #000;
}

@media (max-width: 768px) {

    .lightbox-prev,
    .lightbox-next {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-prev:hover,
    .lightbox-next:hover {
        background: rgba(255, 255, 255, 0.05);
        /* Возвращаем к стандартному полупрозрачному */
        color: white;
        transform: translateY(-50%);
        /* Оставляем как было без сдвигов */
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 2.5rem;
    }
}


/* --- Текстовое модальное окно (Политика конфиденциальности) --- */
.text-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.text-modal.active {
    visibility: visible;
    opacity: 1;
}

.text-modal-container {
    max-width: 800px;
    max-height: 85vh;
    padding: 50px;
    display: block;
    overflow-y: auto;
}

.text-modal-content h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.privacy-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

.privacy-text h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin: 30px 0 15px 0;
    font-family: var(--font-body);
    font-weight: 500;
}

.privacy-text p {
    margin-bottom: 15px;
}

.privacy-text ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.privacy-text ul li {
    margin-bottom: 8px;
    position: relative;
    list-style: disc;
}

@media (max-width: 768px) {
    .text-modal-container {
        padding: 30px 20px;
    }

    .text-modal-content h2 {
        font-size: 1.8rem;
    }
}