/* ==========================================================================
   ДИЗАЙН-СИСТЕМА ВИТРАЖНОГО АТЕЛЬЕ «МАНЕЛИС» (amanelis.ru)
   Концепция: Музейный полумрак, витражные рефлексы, чертежная геометрия (1А + 1Б),
   стеклянная шапка с титулом династии и трехколоночный архитектурный колофон.
   ========================================================================== */

:root {
    /* Глубокая музейно-архитектурная палитра (без слепяще-белых пятен) */
    --bg-obsidian: #05080d;
    --bg-museum: #070b11;
    --bg-slate: #090e16;
    --bg-slate-alt: #0c131e;
    --bg-card: rgba(15, 22, 34, 0.82);
    --bg-card-hover: rgba(20, 29, 45, 0.94);

    /* Благородная латунь и шампанское золото (синхронизировано с manelis.ru) */
    --primary: #090e16;
    --secondary: #05080d;
    --accent: #c5a059;
    --accent-hover: #dfba73;
    --dark-card: #0e141e;
    --dark-border: rgba(197, 160, 89, 0.24);

    /* Типографические цвета на темном холсте */
    --text: #e2e8f0;
    --text-light: #94a3b8;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);

    /* Тончайший векторный паттерн латунной витражной раскладки / чертежной сетки DWG (0 КБ лишнего веса) */
    --pattern-blueprint: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23c5a059' stroke-width='0.6' stroke-opacity='0.055'%3E%3Cpath d='M0 0h64v64H0z'/%3E%3Cpath d='M32 0v64M0 32h64' stroke-opacity='0.03'/%3E%3Cpath d='M32 29l3 3-3 3-3-3z' stroke-opacity='0.09'/%3E%3C/g%3E%3C/svg%3E");
}

/* Базовый сброс */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

html,
body {
    font-family: 'Raleway', sans-serif;
    color: var(--text);
    line-height: 1.65;
    overflow-x: clip;
    background-color: var(--bg-slate);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.22;
    color: var(--white);
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 105px 0;
    position: relative;
}

.section-title {
    font-size: 2.55rem;
    margin-bottom: 2.2rem;
    text-align: center;
    position: relative;
    color: var(--white);
    letter-spacing: 0.01em;
}

.section-title::after {
    content: '';
    display: block;
    width: 84px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 20px auto 0;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 14px 34px;
    background: var(--accent);
    color: #070a0f;
    border: 1.5px solid var(--accent);
    border-radius: 2px;
    font-weight: 700;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(197, 160, 89, 0.25);
}

.btn:hover {
    background: transparent;
    color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(197, 160, 89, 0.18);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: #070a0f;
}

/* ==========================================================================
   ШАПКА САЙТА (ВАРИАНТ 2: ДЫМЧАТОЕ СТЕКЛО + ТИТУЛ ДИНАСТИИ + ЗОЛОТАЯ КАПСУЛА)
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 16px 0;
    background: linear-gradient(180deg, rgba(5, 8, 13, 0.86) 0%, rgba(5, 8, 13, 0.44) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(197, 160, 89, 0.16);
    z-index: 1000;
    transition: background 0.35s ease, padding 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* Тонкий центральный латунный блик по нижней кромке шапки */
header::after {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(197, 160, 89, 0.55), transparent);
    pointer-events: none;
}

header.scrolled {
    padding: 10px 0;
    background: rgba(7, 11, 18, 0.88);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom-color: rgba(197, 160, 89, 0.32);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.65);
}

.header-container {
    max-width: 1280px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Фирменный блок: герб витражного ателье + двухуровневый титул */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    width: auto;
    flex-shrink: 0;
}

.logo img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 2px;
    border: 1px solid rgba(197, 160, 89, 0.38);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.logo:hover img {
    transform: scale(1.04);
    border-color: var(--accent-hover);
}

.logo-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
}

.logo-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--white);
    transition: color 0.25s ease;
}

.logo:hover .logo-title {
    color: var(--accent-hover);
}

.logo-subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: 0.61rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: 3px;
}

/* Академическая навигация */
.nav {
    display: flex;
}

.nav-list {
    display: flex;
    align-items: center;
}

.nav-item {
    margin-left: 24px;
    position: relative;
}

.nav-link {
    color: #cbd5e1;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 6px 0;
    position: relative;
}

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

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

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

/* Золотая капсула переключателя языка EN / RU */
.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 26px;
}

.language-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(197, 160, 89, 0.09);
    border: 1px solid rgba(197, 160, 89, 0.52);
    border-radius: 2px;
    color: var(--accent-hover);
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    padding: 6px 13px;
    transition: var(--transition);
}

.language-btn:hover,
.language-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #05080d;
    box-shadow: 0 0 18px rgba(197, 160, 89, 0.35);
}

/* Кнопка мобильного меню */
.mobile-menu-btn {
    display: none;
    width: 28px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.mobile-menu-btn span:nth-child(1) {
    top: 0;
}

.mobile-menu-btn span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-btn span:nth-child(3) {
    bottom: 0;
}

.mobile-menu-btn.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    background: var(--accent);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
    background: var(--accent);
}

/* ==========================================================================
   ПЕРВЫЙ ЭКРАН (HERO) С ПЛАВНЫМ РАСТВОРЕНИЕМ В ТЕМНЫЙ СЛАНЕЦ
   ========================================================================== */
.hero {
    min-height: 100vh;
    padding-top: 105px;
    background: url('../assets/images/backgrounds/hero-bg.jpg') no-repeat center center / cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

/* Многослойная виньетка: сохраняет свечение витражей по бокам и бесшовно уводит низ в #090e16 */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 65% at 50% 46%, rgba(5, 8, 13, 0.66) 0%, rgba(5, 8, 13, 0.52) 65%, rgba(5, 8, 13, 0.72) 100%),
        linear-gradient(180deg, rgba(5, 8, 13, 0.45) 0%, rgba(5, 8, 13, 0.25) 68%, var(--bg-slate) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
    padding: 0 20px;
}

.hero-subtitle {
    font-size: 1.18rem;
    margin-bottom: 22px;
    font-style: italic;
    color: #e2e8f0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
}

.hero-title {
    font-size: 3.55rem;
    margin-bottom: 28px;
    line-height: 1.18;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
}

.hero-text {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    line-height: 1.72;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* ==========================================================================
   СЕКЦИЯ 1: СОТРУДНИЧЕСТВО С ПРОФЕССИОНАЛАМИ (1А: ЧЕРТЕЖНАЯ СЕТКА + КАРТОЧКИ 2×2)
   ========================================================================== */
.clients {
    background-color: var(--bg-slate);
    background-image:
        radial-gradient(ellipse 50% 55% at 10% 18%, rgba(44, 105, 180, 0.11), transparent 70%),
        radial-gradient(ellipse 50% 55% at 90% 82%, rgba(197, 160, 89, 0.09), transparent 70%),
        var(--pattern-blueprint);
    color: var(--white);
    padding: 100px 0;
}

.clients-title {
    color: var(--white);
    margin-bottom: 44px;
}

.clients-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 1160px;
    margin: 0 auto;
}

.client-item {
    background: linear-gradient(145deg, rgba(16, 24, 38, 0.88), rgba(10, 15, 24, 0.94));
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    padding: 34px 32px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
    margin-bottom: 0;
}

.client-item:hover {
    transform: translateY(-5px);
    border-color: rgba(197, 160, 89, 0.5);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.58), 0 0 28px rgba(197, 160, 89, 0.08);
}

.client-title {
    font-size: 1.48rem;
    margin-bottom: 16px;
    color: var(--accent-hover);
}

.client-text {
    font-size: 1.02rem;
    color: #cbd5e1;
    line-height: 1.75;
}

.client-text strong {
    color: var(--white);
}

/* ==========================================================================
   СЕКЦИЯ 2: ИНЖЕНЕРНЫЕ СТАНДАРТЫ ДЛЯ ПРОЕКТИРОВЩИКОВ (1А: МИКРО-ШТРИХОВКА + ОРЕОЛ)
   ========================================================================== */
.specs-section {
    background-color: var(--bg-museum);
    background-image:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(197, 160, 89, 0.09), transparent 68%),
        radial-gradient(ellipse 45% 50% at 85% 95%, rgba(45, 112, 179, 0.08), transparent 70%),
        repeating-linear-gradient(
            -45deg,
            rgba(197, 160, 89, 0.016) 0px,
            rgba(197, 160, 89, 0.016) 1px,
            transparent 1px,
            transparent 16px
        );
    color: var(--white);
    padding: 105px 0;
    border-top: 1px solid rgba(197, 160, 89, 0.18);
    border-bottom: 1px solid rgba(197, 160, 89, 0.18);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 44px;
}

.specs-card {
    background: linear-gradient(160deg, rgba(16, 23, 36, 0.92), rgba(9, 14, 22, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 2px solid rgba(197, 160, 89, 0.35);
    border-radius: 4px;
    padding: 32px 24px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
}

.specs-card:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(197, 160, 89, 0.09);
    background: linear-gradient(160deg, rgba(21, 30, 46, 0.96), rgba(12, 18, 28, 0.98));
}

.specs-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    color: var(--accent);
    margin-bottom: 14px;
    line-height: 1;
}

.specs-title {
    font-size: 1.14rem;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}

.specs-desc {
    font-size: 0.92rem;
    color: #94a3b8;
    line-height: 1.65;
}

/* ==========================================================================
   СЕКЦИЯ 3: ПОРТФОЛИО (1А: ТЕМНЫЙ МУЗЕЙНЫЙ ЗАЛ С ВИТРАЖНЫМИ РЕФЛЕКСАМИ)
   ========================================================================== */
.portfolio {
    background-color: #080c14;
    background-image:
        radial-gradient(ellipse 48% 38% at 15% 24%, rgba(197, 160, 89, 0.09), transparent 72%),
        radial-gradient(ellipse 50% 40% at 85% 58%, rgba(38, 108, 172, 0.10), transparent 72%),
        radial-gradient(ellipse 45% 35% at 25% 88%, rgba(180, 72, 56, 0.06), transparent 72%);
    padding: 110px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
    margin-top: 52px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    height: 490px;
    background: #04060a;
    border: 1px solid rgba(197, 160, 89, 0.22);
    border-radius: 4px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.58);
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    border-color: rgba(197, 160, 89, 0.6);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.78), 0 0 30px rgba(197, 160, 89, 0.12);
}

.portfolio-image-container {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

/* Точки навигации слайдера реставрации */
.portfolio-image-nav {
    position: absolute;
    bottom: 14px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 9px;
    z-index: 5;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-image-nav {
    opacity: 1;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: var(--accent);
    transform: scale(1.25);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 34px 30px 28px;
    background: linear-gradient(to top, rgba(5, 8, 13, 0.95) 0%, rgba(5, 8, 13, 0.78) 62%, transparent 100%);
    color: var(--white);
    transform: translateY(100%);
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-category {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 8px;
    color: var(--accent-hover);
}

.portfolio-title {
    font-size: 1.48rem;
    margin-bottom: 8px;
}

.portfolio-overlay p {
    font-size: 0.95rem;
    color: #cbd5e1;
    transition: opacity 0.2s ease;
}

.portfolio-zoom-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(15, 22, 34, 0.72);
    border: 1px solid rgba(197, 160, 89, 0.45);
    color: var(--accent-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-zoom-btn:hover {
    background: var(--accent);
    color: #05080d;
    transform: scale(1.1);
    box-shadow: 0 0 16px rgba(197, 160, 89, 0.45);
}

.portfolio-zoom-btn svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   ПОЛНОЭКРАННЫЙ ПРОСМОТРЩИК (LIGHTBOX)
   ========================================================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 13, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.lightbox-container {
    position: relative;
    z-index: 2;
    max-width: 95vw;
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-close {
    position: fixed;
    top: 24px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 22, 34, 0.75);
    border: 1px solid rgba(197, 160, 89, 0.45);
    color: #ffffff;
    font-size: 2.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: var(--accent);
    color: #05080d;
    border-color: var(--accent);
    transform: rotate(90deg);
}

.lightbox-image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 76vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 76vh;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid rgba(197, 160, 89, 0.35);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
    transition: opacity 0.25s ease;
}

.lightbox-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(15, 22, 34, 0.75);
    border: 1px solid rgba(197, 160, 89, 0.4);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.lightbox-arrow:hover {
    background: var(--accent);
    color: #05080d;
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.4);
}

.lightbox-arrow svg {
    width: 24px;
    height: 24px;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-info {
    margin-top: 18px;
    text-align: center;
    max-width: 780px;
    background: rgba(10, 15, 24, 0.78);
    border: 1px solid rgba(197, 160, 89, 0.24);
    padding: 14px 28px;
    border-radius: 4px;
    backdrop-filter: blur(10px);
}

.lightbox-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 4px;
}

.lightbox-category {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-hover);
}

.lightbox-counter {
    font-size: 0.76rem;
    color: #94a3b8;
    letter-spacing: 0.1em;
}

.lightbox-title {
    font-size: 1.25rem;
    margin-bottom: 4px;
    color: var(--white);
}

.lightbox-desc {
    font-size: 0.92rem;
    color: #cbd5e1;
    line-height: 1.55;
    transition: opacity 0.2s ease;
}

@media (max-width: 768px) {
    .lightbox-arrow {
        width: 42px;
        height: 42px;
        top: auto;
        bottom: 24px;
        transform: none;
    }
    .lightbox-prev { left: 20px; }
    .lightbox-next { right: 20px; }
    .lightbox-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 1.8rem;
    }
    .lightbox-img {
        max-height: 65vh;
    }
    .lightbox-info {
        margin-top: 12px;
        padding: 10px 16px;
    }
    .lightbox-title {
        font-size: 1.05rem;
    }
    .lightbox-desc {
        font-size: 0.84rem;
    }
}

/* ==========================================================================
   СЕКЦИЯ 4: МАСТЕРСКАЯ LIVE И КАНАЛ MAX (1А: ГРАФИТ + АМЕТИСТОВО-ЯНТАРНЫЙ БЛИК)
   ========================================================================== */
.atelier-section {
    background-color: var(--bg-slate-alt);
    background-image:
        radial-gradient(ellipse 50% 60% at 22% 50%, rgba(197, 160, 89, 0.08), transparent 70%),
        radial-gradient(ellipse 50% 60% at 82% 50%, rgba(123, 94, 167, 0.13), transparent 70%);
    color: var(--white);
    padding: 105px 0;
    border-top: 1px solid rgba(197, 160, 89, 0.16);
    border-bottom: 1px solid rgba(197, 160, 89, 0.16);
}

.atelier-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 54px;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
}

.atelier-video-container {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(197, 160, 89, 0.32);
    background: #000;
}

.atelier-video-container video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.atelier-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(5, 8, 13, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(197, 160, 89, 0.45);
    color: var(--accent-hover);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.atelier-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    display: inline-block;
    animation: pulseLive 1.8s infinite;
}

@keyframes pulseLive {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.atelier-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.atelier-content h2 {
    font-size: 2.35rem;
    color: var(--white);
    line-height: 1.2;
}

.atelier-content p {
    color: #cbd5e1;
    font-size: 1.04rem;
    line-height: 1.72;
}

/* Фирменная кнопка канала Max */
.btn-max {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    background: linear-gradient(135deg, #7B5EA7, #5C3D8F);
    color: #fff !important;
    padding: 1.1rem 2.2rem;
    font-family: 'Raleway', sans-serif;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    box-shadow: 0 10px 28px rgba(123, 94, 167, 0.42);
    width: fit-content;
    margin-top: 8px;
}

.btn-max:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(123, 94, 167, 0.62);
    filter: brightness(1.1);
    color: #fff !important;
}

.btn-max svg {
    width: 1.2rem;
    height: 1.2rem;
    flex-shrink: 0;
}

/* ==========================================================================
   СЕКЦИЯ 5: О ДИНАСТИИ (1Б: АТМОСФЕРНАЯ ФОТО-КУЛИСА КУПОЛА С БЕСШОВНОЙ ВИНЬЕТКОЙ)
   ========================================================================== */
.about {
    background-color: var(--bg-slate);
    background-image:
        linear-gradient(
            180deg,
            var(--bg-slate-alt) 0%,
            rgba(8, 12, 19, 0.89) 15%,
            rgba(8, 12, 19, 0.85) 50%,
            rgba(8, 12, 19, 0.90) 85%,
            var(--bg-slate) 100%
        ),
        url('../assets/images/backgrounds/ceiling-dome.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 115px 0;
}

.about-title {
    color: var(--white);
    text-align: left;
}

.about-title::after {
    margin: 18px 0 0;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1.08fr;
    gap: 54px;
    align-items: center;
}

.about-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.about-image {
    height: 250px;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid rgba(197, 160, 89, 0.28);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}

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

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

.about-content {
    padding-left: 16px;
}

.about-text {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: #cbd5e1;
    line-height: 1.75;
}

.about-text em {
    color: var(--accent-hover);
}

.about-features {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    background: rgba(11, 17, 27, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(197, 160, 89, 0.16);
    border-radius: 4px;
    padding: 16px 20px;
}

.about-feature-icon {
    color: var(--accent);
    margin-right: 14px;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
}

.about-feature h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--white);
}

.about-feature p {
    font-size: 0.94rem;
    color: #94a3b8;
    line-height: 1.6;
}

/* ==========================================================================
   СЕКЦИЯ 6: ЭТАПЫ РАБОТЫ (1А: ЧЕРТЕЖНЫЙ СЛАНЕЦ + ЗОЛОТАЯ ОСЬ И КАРТОЧКИ)
   ========================================================================== */
.process {
    background-color: var(--bg-slate);
    background-image:
        radial-gradient(ellipse 55% 45% at 50% 50%, rgba(197, 160, 89, 0.07), transparent 72%),
        var(--pattern-blueprint);
    padding: 110px 0;
    border-top: 1px solid rgba(197, 160, 89, 0.14);
}

.process-list {
    max-width: 880px;
    margin: 48px auto 0;
    position: relative;
}

/* Вертикальная светящаяся латунная ось */
.process-list::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 29px;
    width: 2px;
    background: linear-gradient(
        180deg,
        rgba(197, 160, 89, 0.08) 0%,
        rgba(197, 160, 89, 0.55) 15%,
        rgba(197, 160, 89, 0.55) 85%,
        rgba(197, 160, 89, 0.08) 100%
    );
    z-index: 1;
}

.process-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}

.process-item:last-child {
    margin-bottom: 0;
}

.process-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #0b111b;
    border: 1.5px solid var(--accent);
    color: var(--accent-hover);
    font-family: 'Playfair Display', serif;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    font-weight: 700;
    margin-right: 28px;
    flex-shrink: 0;
    box-shadow: 0 0 22px rgba(197, 160, 89, 0.18);
    transition: var(--transition);
}

.process-item:hover .process-number {
    background: var(--accent);
    color: #05080d;
    box-shadow: 0 0 28px rgba(197, 160, 89, 0.42);
}

.process-content {
    flex: 1;
    background: linear-gradient(145deg, rgba(16, 23, 36, 0.86), rgba(10, 15, 24, 0.92));
    border: 1px solid rgba(197, 160, 89, 0.16);
    border-radius: 4px;
    padding: 24px 30px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    transition: var(--transition);
}

.process-item:hover .process-content {
    border-color: rgba(197, 160, 89, 0.42);
    transform: translateX(4px);
}

.process-title {
    font-size: 1.38rem;
    margin-bottom: 10px;
    color: var(--white);
}

.process-content p {
    color: #cbd5e1;
    font-size: 0.98rem;
    line-height: 1.68;
}

/* ==========================================================================
   СЕКЦИЯ 7: КОНТАКТЫ (1Б: ВИТРАЖНАЯ ФОТО-КУЛИСА HERO-BG2 + СТЕКЛЯННАЯ ПАНЕЛЬ)
   ========================================================================== */
.contact {
    background-color: var(--bg-obsidian);
    background-image:
        linear-gradient(
            180deg,
            var(--bg-slate) 0%,
            rgba(7, 11, 18, 0.78) 20%,
            rgba(7, 11, 18, 0.76) 78%,
            var(--bg-obsidian) 100%
        ),
        url('../assets/images/backgrounds/hero-bg2.avif'),
        url('../assets/images/backgrounds/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 115px 0 105px;
    text-align: center;
}

.contact-panel {
    max-width: 960px;
    margin: 0 auto;
    padding: 54px 48px 46px;
    background: rgba(9, 14, 23, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(197, 160, 89, 0.34);
    border-radius: 6px;
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.7);
}

.contact-title {
    color: var(--white);
}

.contact-text {
    max-width: 680px;
    margin: 0 auto 38px;
    font-size: 1.06rem;
    color: #cbd5e1;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 20px;
    max-width: 840px;
    margin: 0 auto 36px;
    text-align: left;
}

.contact-item {
    background: rgba(16, 24, 38, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 14px 18px;
    font-size: 0.98rem;
    color: #cbd5e1;
    margin-bottom: 0;
    transition: border-color 0.25s ease;
}

.contact-item:hover {
    border-color: rgba(197, 160, 89, 0.38);
}

.contact-item--wide {
    grid-column: 1 / -1;
}

.contact-item a {
    color: var(--accent-hover);
    font-weight: 600;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-item span {
    color: var(--white);
}

/* Кнопки мессенджеров и соцсетей */
.social-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 0;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(197, 160, 89, 0.28);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #05080d;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(197, 160, 89, 0.32);
}

.social-link i {
    font-size: 1.15rem;
}

.social-link.social-link--max {
    background: rgba(123, 94, 167, 0.28);
    color: #fff;
    border: 1px solid rgba(123, 94, 167, 0.58);
}

.social-link.social-link--max:hover {
    background: #7B5EA7;
    border-color: #7B5EA7;
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(123, 94, 167, 0.5);
}

/* ==========================================================================
   ПОДВАЛ САЙТА (АКАДЕМИЧЕСКИЙ ТРЕХКОЛОНОЧНЫЙ КОЛОФОН)
   ========================================================================== */
footer.site-footer {
    position: relative;
    background-color: var(--bg-obsidian);
    background-image:
        radial-gradient(ellipse 55% 65% at 50% 0%, rgba(197, 160, 89, 0.07), transparent 72%);
    color: #94a3b8;
    padding: 64px 0 32px;
    border-top: 1px solid rgba(197, 160, 89, 0.22);
    text-align: left;
}

footer.site-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(197, 160, 89, 0.65), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.95fr 1.15fr;
    gap: 48px;
    padding-bottom: 42px;
}

.footer-brand-head {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand-head img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border: 1px solid rgba(197, 160, 89, 0.35);
    border-radius: 2px;
}

.footer-brand-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--white);
    text-transform: uppercase;
    display: block;
}

.footer-brand-sub {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--accent);
    text-transform: uppercase;
    display: block;
    margin-top: 2px;
}

.footer-desc {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.72;
    max-width: 360px;
}

.footer-col-title {
    font-family: 'Raleway', sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 18px;
    display: block;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 18px;
}

.footer-links a {
    font-size: 0.86rem;
    color: #94a3b8;
    transition: color 0.22s ease, transform 0.22s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-hover);
    transform: translateX(3px);
}

/* Выделенная карточка перехода в экосистему частных интерьеров manelis.ru */
.footer-ecosystem-card {
    background: rgba(15, 22, 34, 0.75);
    border: 1px solid rgba(197, 160, 89, 0.25);
    border-radius: 4px;
    padding: 16px 18px;
    margin-bottom: 16px;
    transition: border-color 0.25s ease;
}

.footer-ecosystem-card:hover {
    border-color: rgba(197, 160, 89, 0.55);
}

.footer-ecosystem-card p {
    font-size: 0.84rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 8px;
}

.footer-ecosystem-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent-hover);
    text-transform: uppercase;
}

.footer-ecosystem-link:hover {
    text-decoration: underline;
}

.footer-QuickActions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 2px;
    padding: 6px 12px;
    transition: var(--transition);
}

.footer-pill:hover {
    border-color: var(--accent);
    color: var(--accent-hover);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: #64748b;
}

.footer-bottom a {
    color: #94a3b8;
}

.footer-bottom a:hover {
    color: var(--accent-hover);
}

/* ==========================================================================
   МОБИЛЬНОЕ МЕНЮ И АНИМАЦИИ ПОЯВЛЕНИЯ
   ========================================================================== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: rgba(7, 11, 18, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-left: 1px solid rgba(197, 160, 89, 0.25);
    z-index: 1000;
    transition: var(--transition);
    padding: 90px 30px 40px;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav-item {
    margin-bottom: 16px;
}

.mobile-nav-link {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-link:hover {
    color: var(--accent-hover);
    border-bottom-color: rgba(197, 160, 89, 0.4);
}

.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Подстраховка локальных шрифтов Font Awesome */
.fab { font-family: 'Font Awesome 6 Brands' !important; font-weight: 400 !important; }
.fas { font-family: 'Font Awesome 6 Free' !important; font-weight: 900 !important; }

/* ==========================================================================
   АДАПТИВНОСТЬ (ПЛАНШЕТЫ И СМАРТФОНЫ)
   ========================================================================== */
@media (max-width: 1080px) {
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 992px) {
    .section-title {
        font-size: 2.1rem;
    }

    .hero-title {
        font-size: 2.65rem;
    }

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

    .atelier-wrapper {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .about,
    .contact {
        background-attachment: scroll;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-content {
        padding-left: 0;
        order: -1;
        margin-bottom: 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 130px;
        background-position: 25% center;
    }

    .clients-list,
    .specs-grid,
    .portfolio-grid,
    .contact-info,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-item {
        height: 400px;
    }

    /* На сенсорных экранах подписи работ видны сразу */
    .portfolio-overlay {
        transform: translateY(0);
        padding: 24px 20px 20px;
    }

    .process-list::before {
        left: 21px;
    }

    .process-number {
        width: 44px;
        height: 44px;
        font-size: 1.15rem;
        margin-right: 16px;
    }

    .process-content {
        padding: 18px 20px;
    }

    .contact-panel {
        padding: 36px 22px 32px;
    }

    .btn-max {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 0.78rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 72px 0;
    }

    .logo-title {
        font-size: 1.08rem;
        letter-spacing: 0.14em;
    }

    .logo-subtitle {
        font-size: 0.54rem;
        letter-spacing: 0.16em;
    }

    .hero-title {
        font-size: 2.05rem;
    }

    .hero-subtitle,
    .hero-text {
        font-size: 0.98rem;
    }

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

    .client-item {
        padding: 26px 22px;
    }
}
