/* ============================================= */
/*                BASE RESET                     */
/* ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.4;
    font-weight: 300;
}

/* ============================================= */
/*           SECTION BASE (CANONICAL)             */
/* ============================================= */
.section {
    min-height: 100vh;
    position: relative;
    padding: 80px 40px;
}

/* overlay */
.section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1;
}

/* контент поверх */
.section > * {
    position: relative;
    z-index: 2;
}

.section-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}


/* ============================================= */
/*              SECTIONS                         */
/* ============================================= */
.section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
}

/* ============================================= */
/*              TYPOGRAPHY                       */
/* ============================================= */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    letter-spacing: 3px;
    margin-bottom: 40px;
    font-weight: 400;
}

.section-text {
    font-size: 1.4rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px;
    color: rgba(255,255,255,0.9);
}

.accent {
    color: #d4af37;
}

/* ============================================= */
/*                 HERO  (V2)                    */
/* ============================================= */

.hero {
    min-height: 100vh;
    background: url('images/hero/atelier-bg.jpg') center / cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0,0,0,0.68),
        rgba(0,0,0,0.55)
    );
    z-index: 1;
}

/* КОНТЕНТ */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 40px;
    
    /* УБРАНО */
    background: none;
    backdrop-filter: none;
}

.hero-logo {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    letter-spacing: 8px;
    margin-bottom: 10px;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: #d4af37;
    letter-spacing: 4px;
    margin-bottom: 40px;
}

.hero-tagline {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: rgba(255,255,255,0.9);
}

/* ГЛАВНОЕ — ТЕКСТ ОПИСАНИЯ */
.hero-description {
    font-size: 1.1rem;          /* НЕ ТРОГАЕМ */
    line-height: 1.75;
    max-width: 820px;
    margin: 0 auto 40px;

    color: rgba(255,255,255,0.97);
    font-weight: 450;           /* 🔥 ВАЖНО */
    letter-spacing: 0.01em;     /* 🔥 микро */
}

.hero-contacts {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.hero-phone {
    font-size: 1.4rem;
    color: #d4af37;
    text-decoration: none;
}

/* ============================================= */
/*                BUTTONS                        */
/* ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 35px;
    border: 1px solid;
    background: transparent;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-telegram {
    border-color: #0088cc;
    color: #0088cc;
}

.btn-gold {
    border-color: #d4af37;
    color: #d4af37;
}

/* ============================================= */
/*           BACKGROUND SECTIONS                  */
/* ============================================= */

#philosophy1 { background: url('images/philosophy/philosophy.jpg') center / cover no-repeat; }
#philosophy2 { background: url('images/philosophy/private-atelier.jpg') center / cover no-repeat; }
#philosophy3 { background: url('images/philosophy/technology.jpg') center / cover no-repeat; }
#philosophy4 { background: url('images/philosophy/bg-05-individuality.jpg') center / cover no-repeat; }

/* Наследие */
#philosophy5 { background: url('images/philosophy/bg-07-diamonds.jpg') center / cover no-repeat; }

/* Бриллианты */
#philosophy6 { background: url('images/philosophy/diamonds-bg.jpg') center / cover no-repeat; }

/* Вне времени */
#philosophy10 { background: url('images/philosophy/timeless-bg.jpg') center / cover no-repeat; }

/* Кольца с бриллиантами */
#categories { background: url('images/philosophy/diamonds-luxury.jpg') center / cover no-repeat; }

/* Контакты */
#contact { background: url('images/philosophy/moscow-map-bg.jpg') center / cover no-repeat; }

/* ============================================= */
/*              FOOTER                           */
/* ============================================= */
.footer {
    padding: 60px 40px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.footer-tagline {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.6);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================= */
/*               RESPONSIVE                      */
/* ============================================= */
@media (max-width: 768px) {
    .section {
        padding: 60px 20px;
    }

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

    .section-text {
        font-size: 1.2rem;
    }

    .hero-logo {
        font-size: 3rem;
        letter-spacing: 5px;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        font-size: 2.3rem;
        letter-spacing: 4px;
    }

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

    .section-text {
        font-size: 1.05rem;
    }
}

/* ========================================= */
/* MOBILE — PRODUCTS IMAGE SIZE FIX          */
/* ========================================= */

@media (max-width: 768px) {

    /* Ограничиваем высоту секции с фото */
    #products .section-content {
        max-width: 100%;
        padding: 0 12px;
    }

    /* Сетка фото */
    .products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin: 30px auto;
    }

    /* Сами изображения — НЕ на весь экран */
    .products-grid img {
        width: 100%;
        height: auto;
        max-height: 45vh;          /* 🔥 КЛЮЧ */
        object-fit: cover;
        border-radius: 6px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {

    .products-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .products-grid img {
        max-height: 40vh;
    }
}

/* ========================================= */
/* PROCESS VIDEO — SIZE CONTROL (DESKTOP)    */
/* ========================================= */

/* Ограничиваем высоту блока "Процесс" */
#process {
    min-height: 70vh;   /* было 100vh */
    height: 70vh;
    overflow: hidden;
}

/* Видео подстраивается под уменьшенную высоту */
#process .video-bg {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* Контент по центру */
#process .section-content {
    max-width: 900px;
    margin: 0 auto;
}

/* ========================================= */
/* PROCESS — VERTICAL & SMALL (FINAL)        */
/* ========================================= */

/* Убираем full-screen у блока */
#process {
    min-height: auto;
    padding: 80px 20px;
}

/* Контент — обычный столбик */
#process .section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* Видео — НЕ фон, а элемент */
#process .video-bg {
    position: relative;
    width: 100%;
    max-width: 520px;     /* 🔥 КЛЮЧ: ОГРАНИЧЕНИЕ РАЗМЕРА */
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

/* Текст */
#process .section-title {
    margin-top: 20px;
}

#process .section-text {
    max-width: 600px;
}

/* Кнопка */
#process .btn {
    margin-top: 20px;
}

/* Мобила — ещё компактнее */
@media (max-width: 768px) {

    #process {
        padding: 60px 16px;
    }

    #process .video-bg {
        max-width: 100%;
        max-height: 220px;
    }
}

/* ========================================= */
/* PROCESS — VIDEO PLAYER (FINAL)            */
/* ========================================= */

.process-video {
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 0 auto 40px;
    display: block;
    border-radius: 10px;
    background: #000;
}

/* Мобила */
@media (max-width: 768px) {
    .process-video {
        max-width: 100%;
        margin-bottom: 30px;
    }
}

/* ========================================= */
/* FIX: SHOW PROCESS VIDEO (PLAYER MODE)     */
/* ========================================= */

#process {
    position: relative;
    overflow: visible;
}

#process .process-video {
    position: relative !important;
    display: block !important;
    width: 100%;
    max-width: 900px;
    height: auto;

    margin: 0 auto 40px;

    z-index: 10 !important;
    opacity: 1 !important;
    visibility: visible !important;

    background: #000;
    border-radius: 10px;
}

/* УБИВАЕМ все затемняющие слои В ЭТОМ БЛОКЕ */
#process::before,
#process::after {
    display: none !important;
}

/* ========================================= */
/* MOBILE — FIX LARGE GAPS BETWEEN SECTIONS  */
/* ========================================= */

@media (max-width: 768px) {

    /* Убираем экранную высоту у блоков */
    .section {
        min-height: auto;
        padding-top: 50px;
        padding-bottom: 50px;
    }

    /* После HERO — ещё компактнее */
    .section:not(.hero) {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    /* Текстовые блоки — плотнее */
    .section-text {
        margin-bottom: 20px;
    }

    /* Заголовки — без лишнего воздуха */
    .section-title {
        margin-bottom: 25px;
    }
}

/* ============================== */
/* CONTACT — FINAL, CANONICAL    */
/* ============================== */

#contact {
    background: url('images/philosophy/moscow-map-bg.jpg') center / cover no-repeat;
    padding: 120px 40px;
    margin: 0;
}

/* Контент контактов — строгий вертикальный поток */
#contact .section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

/* ===== CONTACT TEXT SPACING FIX ===== */

#contact .section-content {
    padding-top: 40px;
    padding-bottom: 40px;
}

#contact .section-text {
    line-height: 1.6;
}

#contact .section-text + .section-text {
    margin-top: 24px;
}
/* ===== Category links: color fix (safe) ===== */
.category-links a,
.category-links a:visited {
  color: #d4af37;
  text-decoration: none;
}

.category-links a:hover {
  color: #f1d98a;
}

/* ===== Telegram links color fix (premium safe) ===== */
a[href*="t.me"],
a[href*="t.me"]:visited {
  color: #d4af37;
  text-decoration: none;
}

a[href*="t.me"]:hover {
  color: #f1d98a;
}

/* ===== CATALOG PAGES (SAFE) ===== */

.catalog-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 20px 80px;
}

.catalog-title {
  font-size: 2.2rem;
  line-height: 1.25;
  margin-bottom: 32px;
  text-align: center;
}

.catalog-page p {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================= */
/* CATALOG PAGES - FIX FOR PRODUCT PAGES     */
/* ========================================= */

/* Базовая структура для всех каталог-страниц */
.catalog-page {
    min-height: 100vh;
    background: #000;
    color: #fff;
    padding: 120px 40px 80px;
    position: relative;
}

.catalog-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1;
}

.catalog-page > * {
    position: relative;
    z-index: 2;
}

.catalog-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Заголовок каталога */
.catalog-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    letter-spacing: 2px;
    margin-bottom: 40px;
    text-align: center;
    color: #fff;
    font-weight: 400;
}

/* Описание категории */
.catalog-description {
    font-size: 1.4rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
    color: rgba(255,255,255,0.9);
}

/* Сетка продуктов в каталоге */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.catalog-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.catalog-item:hover {
    transform: translateY(-5px);
    border-color: #d4af37;
}

.catalog-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.catalog-item-info {
    padding: 20px;
    text-align: center;
}

.catalog-item-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #d4af37;
    font-weight: 500;
}

.catalog-item-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}

/* Кнопка назад */
.back-to-main {
    display: inline-block;
    margin-top: 50px;
    padding: 12px 25px;
    border: 1px solid #d4af37;
    color: #d4af37;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.back-to-main:hover {
    background: #d4af37;
    color: #000;
}

/* Мобильная адаптация для каталог-страниц */
@media (max-width: 768px) {
    .catalog-page {
        padding: 100px 20px 60px;
    }
    
    .catalog-title {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }
    
    .catalog-description {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }
    
    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        margin-top: 30px;
    }
    
    .catalog-item img {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    
    .catalog-title {
        font-size: 1.8rem;
    }
}


/* ========================================= */
/* PREMIUM CATEGORY CARDS — HOME             */
/* ========================================= */

.section-categories-premium {
  background:
    linear-gradient(rgba(0,0,0,.62), rgba(0,0,0,.78)),
    url('images/philosophy/diamonds-luxury.jpg') center / cover no-repeat;
  padding: 110px 40px;
}

.categories-kicker {
  color: #d4af37;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .82rem;
  margin-bottom: 18px;
  text-align: center;
}

.categories-lead {
  max-width: 880px;
  margin: 0 auto 48px;
  color: rgba(255,255,255,.78);
}

.premium-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  max-width: 1220px;
  margin: 0 auto;
}

.premium-category-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 430px;
  border-radius: 22px;
  text-decoration: none;
  color: #fff;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(212,175,55,.22);
  box-shadow: 0 24px 80px rgba(0,0,0,.42);
  transform: translateY(0);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.premium-category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(212,175,55,.18), transparent 42%),
    linear-gradient(to top, rgba(0,0,0,.92), rgba(0,0,0,.25) 55%, rgba(0,0,0,.05));
  z-index: 2;
  pointer-events: none;
}

.premium-category-image {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.premium-category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  filter: saturate(.95) contrast(1.08) brightness(.82);
  transition: transform .55s ease, filter .55s ease;
}

.premium-category-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 30px;
  text-align: left;
}

.premium-category-count {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 10px;
  margin-bottom: 14px;
  border-radius: 999px;
  border: 1px solid rgba(212,175,55,.35);
  color: #d4af37;
  background: rgba(0,0,0,.35);
  font-size: .78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.premium-category-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  line-height: 1.1;
  margin: 0 0 12px;
  color: #fff;
}

.premium-category-body p {
  margin: 0 0 22px;
  color: rgba(255,255,255,.72);
  font-size: 1rem;
  line-height: 1.55;
}

.premium-category-body span {
  display: inline-flex;
  color: #d4af37;
  font-weight: 600;
  letter-spacing: .5px;
  border-bottom: 1px solid rgba(212,175,55,.45);
  padding-bottom: 5px;
  transition: color .3s ease, border-color .3s ease, transform .3s ease;
}

.premium-category-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212,175,55,.75);
  box-shadow: 0 32px 110px rgba(0,0,0,.58), 0 0 42px rgba(212,175,55,.12);
}

.premium-category-card:hover .premium-category-image img {
  transform: scale(1.08);
  filter: saturate(1.08) contrast(1.12) brightness(.92);
}

.premium-category-card:hover .premium-category-body span {
  color: #f1d98a;
  border-color: rgba(241,217,138,.85);
  transform: translateX(5px);
}

@media (max-width: 980px) {
  .premium-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .premium-category-card {
    min-height: 390px;
  }
}

@media (max-width: 640px) {
  .section-categories-premium {
    padding: 80px 18px;
  }

  .premium-category-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .premium-category-card {
    min-height: 360px;
    border-radius: 18px;
  }

  .premium-category-body {
    padding: 24px;
  }

  .premium-category-body h3 {
    font-size: 1.75rem;
  }
}


/* ========================================= */
/* ATELIER STEPS — HOME                      */
/* ========================================= */

.atelier-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 980px;
  margin: 42px auto 0;
}

.atelier-step {
  padding: 28px 24px;
  border: 1px solid rgba(212,175,55,.22);
  border-radius: 18px;
  background: rgba(0,0,0,.38);
  backdrop-filter: blur(8px);
  text-align: left;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}

.atelier-step span {
  display: inline-block;
  color: #d4af37;
  font-size: .82rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.atelier-step strong {
  display: block;
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.atelier-step p {
  margin: 0;
  color: rgba(255,255,255,.68);
  line-height: 1.55;
  font-size: .98rem;
}

.atelier-step:hover {
  transform: translateY(-5px);
  border-color: rgba(212,175,55,.6);
  background: rgba(0,0,0,.52);
}

@media (max-width: 760px) {
  .atelier-steps {
    grid-template-columns: 1fr;
  }
}


/* ========================================= */
/* HERO v3 — PREMIUM LIVE FIRST SCREEN       */
/* ========================================= */

.hero-v3 {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020202;
  text-align: center;
  isolation: isolate;
}

.hero-v3-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 52%, rgba(212,175,55,.16), transparent 22%),
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.08), transparent 18%),
    radial-gradient(circle at 80% 25%, rgba(212,175,55,.09), transparent 22%),
    linear-gradient(120deg, #020202 0%, #090909 45%, #020202 100%);
  z-index: 0;
}

.hero-v3-bg::before,
.hero-v3-bg::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,.16), transparent 68%);
  filter: blur(12px);
  opacity: .42;
  animation: heroGoldFloat 9s ease-in-out infinite;
}

.hero-v3-bg::before {
  left: -120px;
  bottom: -120px;
}

.hero-v3-bg::after {
  right: -120px;
  top: -120px;
  animation-delay: -4s;
}

.hero-v3-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.38), rgba(0,0,0,.12) 35%, rgba(0,0,0,.62)),
    radial-gradient(circle at 50% 50%, transparent 0%, rgba(0,0,0,.52) 72%);
  pointer-events: none;
}

.hero-v3-product {
  position: absolute;
  z-index: 1;
  width: min(58vw, 740px);
  aspect-ratio: 1 / 1;
  opacity: 0;
  filter: drop-shadow(0 32px 80px rgba(0,0,0,.82));
  animation: heroProductAppear 1.4s ease forwards .25s, heroProductBreath 7s ease-in-out infinite 1.7s;
}

.hero-v3-product::after {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,.18), transparent 64%);
  z-index: -1;
  filter: blur(26px);
}

.hero-v3-product img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: rotate(-8deg);
  opacity: .82;
  mix-blend-mode: screen;
}

.hero-v3-content {
  position: relative;
  z-index: 3;
  max-width: 980px;
  padding: 42px 24px;
}

.hero-v3-kicker {
  opacity: 0;
  color: #d4af37;
  letter-spacing: 8px;
  font-size: .95rem;
  margin-bottom: 24px;
  text-transform: uppercase;
  animation: heroFadeUp .85s ease forwards .35s;
}

.hero-v3-logo {
  opacity: 0;
  font-size: clamp(3.2rem, 8vw, 8.2rem);
  line-height: .95;
  letter-spacing: clamp(5px, 1vw, 14px);
  margin: 0 0 24px;
  color: #fff;
  text-shadow: 0 20px 70px rgba(0,0,0,.75);
  animation: heroFadeUp .95s ease forwards .55s;
}

.hero-v3-title {
  opacity: 0;
  color: rgba(255,255,255,.92);
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.55rem, 3vw, 2.65rem);
  line-height: 1.24;
  margin: 0 auto 18px;
  animation: heroFadeUp .9s ease forwards .78s;
}

.hero-v3-caption {
  opacity: 0;
  max-width: 780px;
  margin: 0 auto 34px;
  color: rgba(255,255,255,.66);
  font-size: clamp(.92rem, 1.4vw, 1.08rem);
  line-height: 1.6;
  animation: heroFadeUp .9s ease forwards 1s;
}

.hero-v3-actions {
  opacity: 0;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: heroFadeUp .9s ease forwards 1.18s;
}

.hero-v3-main-btn,
.hero-v3-second-btn {
  min-width: 220px;
  justify-content: center;
  border-radius: 999px;
}

.hero-v3-main-btn {
  background: rgba(212,175,55,.12);
  box-shadow: 0 0 30px rgba(212,175,55,.08);
}

.hero-v3-second-btn {
  border-color: rgba(255,255,255,.34);
  color: rgba(255,255,255,.86);
}

.hero-v3-second-btn:hover {
  border-color: rgba(212,175,55,.72);
  color: #d4af37;
}

.hero-v3-scroll {
  position: absolute;
  z-index: 5;
  right: 54px;
  bottom: 46px;
  color: rgba(255,255,255,.36);
  letter-spacing: 3px;
  font-size: .72rem;
  writing-mode: vertical-rl;
  animation: heroScrollPulse 2.4s ease-in-out infinite;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroProductAppear {
  from {
    opacity: 0;
    transform: scale(.88) translateY(26px);
  }
  to {
    opacity: .86;
    transform: scale(1) translateY(0);
  }
}

@keyframes heroProductBreath {
  0%, 100% {
    transform: scale(1) translateY(0) rotate(0deg);
  }
  50% {
    transform: scale(1.035) translateY(-8px) rotate(.4deg);
  }
}

@keyframes heroGoldFloat {
  0%, 100% {
    transform: translate3d(0,0,0) scale(1);
  }
  50% {
    transform: translate3d(28px,-18px,0) scale(1.08);
  }
}

@keyframes heroScrollPulse {
  0%, 100% {
    opacity: .32;
    transform: translateY(0);
  }
  50% {
    opacity: .72;
    transform: translateY(8px);
  }
}

@media (max-width: 820px) {
  .hero-v3 {
    min-height: 100svh;
    padding: 90px 16px 54px;
  }

  .hero-v3-product {
    width: 92vw;
    top: 17%;
    opacity: .42;
  }

  .hero-v3-product img {
    opacity: .55;
  }

  .hero-v3-kicker {
    letter-spacing: 5px;
    font-size: .78rem;
  }

  .hero-v3-logo {
    font-size: clamp(2.65rem, 14vw, 4.4rem);
    letter-spacing: 5px;
  }

  .hero-v3-title {
    font-size: 1.55rem;
  }

  .hero-v3-caption {
    font-size: .95rem;
    max-width: 340px;
  }

  .hero-v3-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-v3-main-btn,
  .hero-v3-second-btn {
    width: min(100%, 320px);
  }

  .hero-v3-scroll {
    display: none;
  }
}

@media (max-width: 420px) {
  .hero-v3-logo {
    font-size: 2.45rem;
    letter-spacing: 4px;
  }

  .hero-v3-title {
    font-size: 1.32rem;
  }

  .hero-v3-caption {
    font-size: .88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-v3-product,
  .hero-v3-bg::before,
  .hero-v3-bg::after,
  .hero-v3-kicker,
  .hero-v3-logo,
  .hero-v3-title,
  .hero-v3-caption,
  .hero-v3-actions,
  .hero-v3-scroll {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}


/* ========================================= */
/* SECRET ADMIN MODAL                        */
/* ========================================= */

.dg-admin-secret {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(10px);
  padding: 22px;
}

.dg-admin-secret.is-open {
  display: flex;
}

.dg-admin-secret-box {
  position: relative;
  width: min(100%, 380px);
  padding: 34px 28px 30px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(18,18,18,.98), rgba(4,4,4,.98));
  border: 1px solid rgba(212,175,55,.45);
  box-shadow: 0 30px 100px rgba(0,0,0,.75), 0 0 50px rgba(212,175,55,.08);
  text-align: center;
}

.dg-admin-secret-close {
  position: absolute;
  right: 14px;
  top: 10px;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,.45);
  font-size: 26px;
  cursor: pointer;
}

.dg-admin-secret-mark {
  color: #d4af37;
  letter-spacing: 2px;
  font-size: .86rem;
  margin-bottom: 18px;
}

.dg-admin-secret-title {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 1.75rem;
  margin-bottom: 24px;
}

.dg-admin-secret input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(212,175,55,.28);
  color: #fff;
  border-radius: 999px;
  padding: 14px 18px;
  font-size: 1rem;
  outline: none;
  margin-bottom: 16px;
}

.dg-admin-secret input:focus {
  border-color: rgba(212,175,55,.72);
}

.dg-admin-secret button[type="submit"] {
  width: 100%;
  border: 1px solid rgba(212,175,55,.72);
  background: rgba(212,175,55,.14);
  color: #d4af37;
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
}

.dg-admin-secret-error {
  display: none;
  color: #ff9c9c;
  margin-top: 14px;
  font-size: .92rem;
}


/* ===== CMS FLAGS ===== */
.flags-box{
    margin-top:14px;
    padding:14px;
    border:1px solid rgba(212,175,55,.22);
    border-radius:12px;
    background:rgba(0,0,0,.22);
}

.flag-hero{
    color:#f1d98a;
    font-weight:700;
}

/* ========================================= */
/* NEW WORKS — HOME CMS                      */
/* ========================================= */

.section-new-works {
  background: #050505;
  padding: 105px 40px;
}

.new-works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 26px;
  max-width: 1220px;
  margin: 0 auto;
}

.new-work-card {
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(212,175,55,.22);
  text-decoration: none;
  color: #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,.38);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.new-work-image {
  height: 360px;
  overflow: hidden;
  background: #111;
}

.new-work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease, filter .55s ease;
}

.new-work-body {
  padding: 24px;
  text-align: left;
}

.new-work-badge {
  display: inline-block;
  color: #d4af37;
  border: 1px solid rgba(212,175,55,.35);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: .75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.new-work-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  margin: 0 0 8px;
}

.new-work-article {
  color: rgba(255,255,255,.55);
  margin: 0 0 18px;
  font-size: .95rem;
}

.new-work-body span {
  color: #d4af37;
  border-bottom: 1px solid rgba(212,175,55,.45);
  padding-bottom: 5px;
}

.new-work-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212,175,55,.72);
  box-shadow: 0 32px 100px rgba(0,0,0,.55), 0 0 36px rgba(212,175,55,.1);
}

.new-work-card:hover img {
  transform: scale(1.08);
  filter: brightness(.92) contrast(1.08);
}

@media (max-width: 980px) {
  .new-works-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 640px) {
  .section-new-works {
    padding: 80px 18px;
  }

  .new-works-grid {
    grid-template-columns: 1fr;
  }

  .new-work-image {
    height: 330px;
  }
}


/* ========================================= */
/* PRODUCT CHARACTERISTICS                   */
/* ========================================= */

.characteristics-textarea {
  min-height: 150px;
}

.product-characteristics {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(212,175,55,.22);
  border-radius: 14px;
  background: rgba(0,0,0,.26);
  text-align: left;
}

.product-characteristics-title {
  color: #d4af37;
  font-size: .86rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.product-char-line {
  color: rgba(255,255,255,.78);
  font-size: .95rem;
  line-height: 1.55;
  margin: 3px 0;
}

.product-char-line:first-letter {
  color: #d4af37;
}

/* PRODUCT CARD SAFE PADDING START */

/*
  Общие внутренние отступы для текстовой части
  всех карточек каталога.
  Фото, рамки и размеры карточек не изменяются.
*/

.product-card {
  box-sizing: border-box;
  overflow: hidden;
}

.product-card > .product-name,
.product-card > .product-article,
.product-card > .product-description,
.product-card > .product-price,
.product-card > .product-weight,
.product-card > .product-status {
  box-sizing: border-box;
  width: 100%;
  padding-left: 26px;
  padding-right: 26px;
  overflow-wrap: anywhere;
  word-break: normal;
}

.product-card > .product-description {
  line-height: 1.55;
}

.product-card > .product-characteristics {
  box-sizing: border-box;
  width: auto;
  margin-left: 26px;
  margin-right: 26px;
}

@media (max-width: 768px) {
  .product-card > .product-name,
  .product-card > .product-article,
  .product-card > .product-description,
  .product-card > .product-price,
  .product-card > .product-weight,
  .product-card > .product-status {
    padding-left: 22px;
    padding-right: 22px;
  }

  .product-card > .product-characteristics {
    margin-left: 22px;
    margin-right: 22px;
  }
}

@media (max-width: 480px) {
  .product-card > .product-name,
  .product-card > .product-article,
  .product-card > .product-description,
  .product-card > .product-price,
  .product-card > .product-weight,
  .product-card > .product-status {
    padding-left: 18px;
    padding-right: 18px;
  }

  .product-card > .product-characteristics {
    margin-left: 18px;
    margin-right: 18px;
  }
}

/* PRODUCT CARD SAFE PADDING END */

/* ==================================================
   DIAMOND GART — PREMIUM FOOTER
   ================================================== */

.footer {
    position: relative;
    padding: 86px 24px 54px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.012), rgba(255,255,255,0)),
        #030303;
    border-top: 1px solid rgba(199, 171, 99, 0.18);
    text-align: center;
}

.footer-inner {
    width: min(100%, 1120px);
    margin: 0 auto;
}

.footer-logo {
    margin: 0;
    color: #f1eee7;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.19em;
}

.footer-tagline {
    max-width: 720px;
    margin: 30px auto 0;
    color: rgba(221, 216, 207, 0.66);
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: 0.015em;
}

.footer-divider {
    width: 72px;
    height: 1px;
    margin: 42px auto 30px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(199, 171, 99, 0.82),
        transparent
    );
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 20px;
}

.footer-copy {
    margin: 0;
    color: rgba(210, 205, 196, 0.5);
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: 0.02em;
}

.footer-email,
.footer-legal a,
.footer-contact-link a {
    color: #c7ab63;
    text-decoration: none;
    transition:
        color 0.25s ease,
        opacity 0.25s ease;
}

.footer-email {
    font-size: 14px;
    letter-spacing: 0.035em;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 24px;
    margin-top: 24px;
}

.footer-legal a {
    color: rgba(220, 213, 198, 0.62);
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: 0.025em;
}

.footer-contact-link {
    margin: 22px 0 0;
}

.footer-contact-link a {
    display: inline-block;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(199, 171, 99, 0.35);
    font-size: 14px;
    letter-spacing: 0.08em;
}

.footer-email:hover,
.footer-legal a:hover,
.footer-contact-link a:hover {
    color: #f0d892;
}

.footer-email:focus-visible,
.footer-legal a:focus-visible,
.footer-contact-link a:focus-visible {
    outline: 1px solid rgba(240, 216, 146, 0.8);
    outline-offset: 5px;
}

@media (max-width: 700px) {
    .footer {
        padding: 66px 20px 42px;
    }

    .footer-logo {
        font-size: 34px;
        letter-spacing: 0.13em;
    }

    .footer-tagline {
        max-width: 330px;
        margin-top: 24px;
        font-size: 18px;
        line-height: 1.55;
    }

    .footer-divider {
        margin: 34px auto 26px;
    }

    .footer-meta {
        flex-direction: column;
        gap: 7px;
    }

    .footer-legal {
        max-width: 360px;
        margin: 22px auto 0;
        gap: 9px 18px;
    }

    .footer-legal a {
        font-size: 12px;
    }

    .footer-contact-link {
        margin-top: 20px;
    }
}

