/* ==========================================================================
   1. СБРОС СТИЛЕЙ И БАЗОВЫЕ НАСТРОЙКИ (ЧИСТЫЙ ТЁМНЫЙ ФОН `#090909`)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #090909;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

section[id] {
    scroll-margin-top: 90px;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid #D4AF37;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ==========================================================================
   2. КЕЙФРЕЙМЫ АНИМАЦИЙ
   ========================================================================== */
@keyframes bee-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(212, 175, 55, 0.55); }
}

@keyframes shine {
    0% { left: -75%; }
    100% { left: 125%; }
}

@keyframes pulse-vk {
    0% { box-shadow: 0 4px 15px rgba(0, 119, 255, 0.4); }
    50% { box-shadow: 0 0 25px rgba(0, 119, 255, 0.8); }
    100% { box-shadow: 0 4px 15px rgba(0, 119, 255, 0.4); }
}

/* ==========================================================================
   3. АНИМАЦИИ ПОЯВЛЕНИЯ (FADE-IN) СО СТУПЕНЧАТОЙ ЗАДЕРЖКОЙ
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cards .card:nth-child(2),
.steps-grid .step-item:nth-child(2),
.benefits-grid .benefit-card:nth-child(2),
.gallery img:nth-child(2) {
    transition-delay: 0.12s;
}

.cards .card:nth-child(3),
.steps-grid .step-item:nth-child(3),
.benefits-grid .benefit-card:nth-child(3),
.gallery img:nth-child(3) {
    transition-delay: 0.24s;
}

.cards .card:nth-child(4),
.steps-grid .step-item:nth-child(4),
.benefits-grid .benefit-card:nth-child(4) {
    transition-delay: 0.36s;
}

/* ==========================================================================
   4. ПЛАВАЮЩАЯ КНОПКА СВЯЗИ (VK)
   ========================================================================== */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.floating-btn a {
    width: 60px;
    height: 60px;
    background: #0077ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 119, 255, 0.4);
    animation: pulse-vk 3s infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-btn a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 119, 255, 0.6);
}

.floating-btn svg {
    width: 32px;
    height: 32px;
}

/* ==========================================================================
   5. ШАПКА И НАВИГАЦИЯ (HEADER & NAV)
   ========================================================================== */
header {
    background: #090909;
    padding-bottom: 80px;
}

header > nav {
    padding: 20px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    position: sticky;
    top: 0;
    background: rgba(9, 9, 9, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    color: #D4AF37;
    letter-spacing: 1px;
    text-decoration: none;
}

.logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
    animation: bee-float 4s ease-in-out infinite;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    color: #dddddd;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #D4AF37;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.burger span {
    width: 26px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Выпадающее меню соцсетей */
.social-box details {
    position: relative;
}

.social-box summary {
    cursor: pointer;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    list-style: none;
    padding: 8px 16px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 20px;
    transition: background 0.3s ease;
}

.social-box summary::-webkit-details-marker {
    display: none;
}

.social-box summary:hover {
    background: rgba(212, 175, 55, 0.15);
}

.social-menu {
    position: absolute;
    top: 45px;
    right: 0;
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
    z-index: 10;
}

.social-menu a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.social-menu a:hover {
    background: #222222;
}

.social-menu img {
    width: 20px;
    height: 20px;
}

/* Кнопка "Позвонить" */
.btn {
    padding: 10px 20px;
    border: 1px solid #D4AF37;
    color: #D4AF37;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #D4AF37;
    color: #000;
}

/* ==========================================================================
   6. ГЛАВНЫЙ БАННЕР (HERO SECTION)
   ========================================================================== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 60px;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text .subtitle {
    color: #D4AF37;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-size: 14px;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text h1 span {
    color: #D4AF37;
}

.hero-text .desc {
    color: #bbbbbb;
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 35px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #e6e6e6;
    background: rgba(212, 175, 55, 0.07);
}

.badge svg {
    width: 14px;
    height: 14px;
    color: #D4AF37;
    flex-shrink: 0;
}

/* Золотая анимированная кнопка */
.gold-btn {
    position: relative;
    display: inline-block;
    padding: 16px 36px;
    background: linear-gradient(135deg, #E6C251 0%, #AA7C11 100%);
    color: #000;
    font-weight: 700;
    text-decoration: none;
    border-radius: 30px;
    animation: pulse-glow 3s infinite;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    text-align: center;
    overflow: hidden;
}

.gold-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
}

.gold-btn:hover {
    transform: translateY(-4px) scale(1.02);
}

.gold-btn:hover::before {
    animation: shine 0.85s ease-in-out;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    mix-blend-mode: lighten;
}

/* ==========================================================================
   7. БАЗОВЫЕ СТИЛИ СЕКЦИЙ
   ========================================================================== */
section {
    padding: 100px 0;
    background: #090909;
}

h2 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #D4AF37;
    margin: 15px auto 0;
}

/* ==========================================================================
   8. КАТАЛОГ РЕШЕНИЙ (#about)
   ========================================================================== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: #121212;
    border: 1px solid #222222;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #D4AF37;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
}

.card .icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.card .icon svg {
    width: 100%;
    height: 100%;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.card p {
    color: #aaaaaa;
    font-size: 14px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.choice-btn {
    display: inline-block;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #D4AF37;
    color: #D4AF37;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease;
}

.choice-btn:hover {
    background: #D4AF37;
    color: #000;
}

/* ==========================================================================
   9. ЭТАПЫ РАБОТЫ (#steps)
   ========================================================================== */
.steps-section {
    background: #0d0d0d;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.step-item {
    background: #141414;
    padding: 30px;
    border-radius: 12px;
    position: relative;
    border-left: 3px solid #D4AF37;
    border-top: 1px solid #222;
    border-right: 1px solid #222;
    border-bottom: 1px solid #222;
    transition: transform 0.3s ease, border-left-width 0.3s ease, background 0.3s ease;
}

.step-item:hover {
    transform: translateY(-4px);
    background: #181818;
    border-left-width: 5px;
}

.step-num {
    font-size: 32px;
    font-weight: 800;
    color: #D4AF37;
    opacity: 0.8;
    margin-bottom: 10px;
    display: block;
    transition: opacity 0.3s ease;
}

.step-item:hover .step-num {
    opacity: 1;
}

.step-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.step-item p {
    color: #aaaaaa;
    font-size: 14px;
}

/* ==========================================================================
   10. ПРЕИМУЩЕСТВА (#benefits)
   ========================================================================== */
.benefits-section {
    background: #090909;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: #141414;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #222;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.5);
}

.benefit-icon {
    height: 48px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.benefit-icon svg {
    width: 44px;
    height: 44px;
}

.benefit-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
}

.benefit-card p {
    color: #aaaaaa;
    font-size: 14px;
}

/* ==========================================================================
   11. ГАЛЕРЕЯ РАБОТ (#gallery) + ЛАЙТБОКС
   ========================================================================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #222;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: zoom-in;
}

.gallery img:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

.more-works {
    text-align: center;
    margin-top: 40px;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.lightbox img {
    max-width: 92%;
    max-height: 88vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox .lightbox-close {
    position: absolute;
    top: 15px;
    right: 30px;
    color: #ffffff;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox .lightbox-close:hover {
    color: #D4AF37;
}

/* ==========================================================================
   12. СЕКЦИЯ КОНТАКТОВ И ФОРМЫ (#contact)
   ========================================================================== */
.contact {
    background: #121212;
    border: 1px solid #222222;
    border-radius: 20px;
    padding: 50px;
    display: flex;
    gap: 50px;
    align-items: center;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    text-align: left;
    margin-bottom: 20px;
}

.contact-info h2::after {
    margin: 15px 0 0 0;
}

.contact-info p {
    color: #bbbbbb;
    margin-bottom: 30px;
}

.contact-info h3 {
    font-size: 32px;
    color: #D4AF37;
    margin-bottom: 5px;
}

.master-name {
    font-weight: 600;
    color: #888;
}

.contact-info .master-name {
    margin-bottom: 8px;
}

.contact-city {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
    font-weight: 600;
    margin-bottom: 0 !important;
}

.contact-city svg {
    width: 16px;
    height: 16px;
    color: #D4AF37;
    flex-shrink: 0;
}

.contact-form-box {
    flex: 1;
    background: #0d0d0d;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #222;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    background: #181818;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input::placeholder {
    color: #666;
}

.form-group input:focus,
.form-group .form-group__select:focus {
    border-color: #D4AF37;
}

.form-group .form-group__select {
    width: 100%;
    padding: 15px;
    background: #181818;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #888;
}

select.form-group__select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23D4AF37' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.form-group .form-group__select:not(select) {
    padding-right: 15px;
}

.form-group select.form-group__select:invalid {
    color: #666;
}

.form-group .form-group__select option {
    color: #fff;
    background: #181818;
}

.district-group {
    animation: districtFade 0.25s ease;
}

@keyframes districtFade {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.rayon-select {
    position: relative;
}

.rayon-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 100;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #181818;
    border: 1px solid #333;
    border-radius: 8px;
    max-height: 220px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.rayon-options.open {
    display: block;
}

.rayon-options li {
    padding: 10px 15px;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.rayon-options li:hover {
    background: #242424;
    color: #D4AF37;
}

.form-error {
    display: none;
    color: #ff6b6b;
    font-size: 13px;
    margin: -12px 0 15px;
}

.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    overflow: hidden;
}

.form-error.show {
    display: block;
}

.form-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 12px;
    line-height: 1.5;
    color: #888;
    cursor: pointer;
}

.form-consent input {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: #D4AF37;
    cursor: pointer;
}

.form-consent a {
    color: #D4AF37;
    text-decoration: none;
}

.form-consent a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   13. МОДАЛЬНЫЕ ОКНА КАТАЛОГОВ (POPUP)
   ========================================================================== */
.materials-window {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.materials-window:target,
.materials-window.open {
    opacity: 1;
    pointer-events: auto;
}

.materials-popup {
    background: #121212;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 40px;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    text-align: center;
}

.materials-popup .close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #aaa;
    font-size: 32px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.materials-popup .close:hover {
    color: #D4AF37;
}

.catalog-block {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.material-item {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #2a2a2a;
    text-align: left;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.material-item:hover {
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-3px);
}

.material-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

.material-item h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #fff;
}

.material-item p {
    font-size: 13px;
    color: #aaa;
}

.material-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #D4AF37;
    color: #000;
    text-decoration: none;
    font-weight: 700;
    border-radius: 25px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.material-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Вкладки для каталога потолков */
.catalog-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.tab-btn {
    padding: 8px 20px;
    background: #1c1c1c;
    border: 1px solid #333;
    color: #ccc;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
    background: #D4AF37;
    color: #000;
    border-color: #D4AF37;
}

.color-card {
    text-align: center;
}

.color-box {
    width: 100%;
    height: 100px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.white-color { background: #ffffff; }
.beige-color { background: #f5f5dc; }
.gray-color { background: #808080; }
.black-color { background: #090909; border: 1px solid #333; }
.gold-color { background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728); }
.cappuccino-color { background: #6f4e37; }
.ivory-color { background: #f2ead9; }
.graphite-color { background: #3c3f41; }
.blue-color { background: #1f3a5f; }
.burgundy-color { background: #6e1f2e; }
.olive-color { background: #6b7a3a; }
.silver-color { background: linear-gradient(135deg, #9ea7ad, #e8edf0, #8b949b); }
.metallic-color { background: linear-gradient(135deg, #8a7a52, #e3d3a4 45%, #6b5d3f); }
.suede-color { background: radial-gradient(circle at 30% 30%, #8a6a50, #5f4634); }
.translucent-color { background: linear-gradient(135deg, #fffbe8, #ffffff 55%, #f3ecc9); box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.25); }

/* ==========================================================================
   14. БЛОК ИНДИВИДУАЛЬНОГО РАСЧЁТА В МОДАЛЬНЫХ ОКНАХ
   ========================================================================== */
.catalog-note {
    margin: 30px 0 15px 0;
    padding: 2px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.8) 0%, rgba(34, 34, 34, 0.3) 50%, rgba(212, 175, 55, 0.8) 100%);
    border-radius: 14px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.catalog-note:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

.catalog-note__content {
    background: #161616;
    border-radius: 12px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
}

.catalog-note__icon {
    font-size: 24px;
    color: #D4AF37;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    animation: pulse-glow-icon 3s infinite;
}

@keyframes pulse-glow-icon {
    0%, 100% { text-shadow: 0 0 5px rgba(212, 175, 55, 0.3); }
    50% { text-shadow: 0 0 15px rgba(212, 175, 55, 0.8); }
}

.catalog-note__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.catalog-note__text strong {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.catalog-note__text span {
    color: #aaaaaa;
    font-size: 13px;
    line-height: 1.4;
}

.catalog-note__btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #D4AF37;
    color: #D4AF37;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.catalog-note__btn:hover {
    background: #D4AF37;
    color: #000000;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* ==========================================================================
   15. ПОДВАЛ (FOOTER)
   ========================================================================== */
footer {
    background: #090909;
    border-top: 1px solid #1c1c1c;
    padding: 40px 0 20px;
    color: #777;
    font-size: 14px;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 20px;
    border-bottom: 1px solid #161616;
}

.footer-top .logo {
    font-size: 20px;
}

.footer-top .logo img {
    height: 38px;
}

.footer-phone {
    color: #D4AF37;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-phone:hover {
    color: #E6C251;
}

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

.footer-social a {
    width: 38px;
    height: 38px;
    border: 1px solid #2a2a2a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.footer-social a:hover {
    border-color: #D4AF37;
    background: rgba(212, 175, 55, 0.1);
}

.footer-social img {
    width: 18px;
    height: 18px;
}

.footer-copy {
    text-align: center;
    padding-top: 18px;
    font-size: 13px;
    color: #666;
}

.footer-policy {
    text-align: center;
    margin-top: 8px;
    font-size: 13px;
}

.footer-policy a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-policy a:hover {
    color: #D4AF37;
}

/* ==========================================================================
   16. МОДАЛЬНОЕ ОКНО БЛАГОДАРНОСТИ
   ========================================================================== */
.thankyou-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.thankyou-modal.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.thankyou-content {
    background: #121212;
    border: 1px solid #D4AF37;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 450px;
    width: 90%;
}

.thankyou-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.thankyou-content h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.thankyou-content p {
    color: #aaa;
    margin-bottom: 25px;
}

/* ==========================================================================
   17. АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ
   ========================================================================== */
@media (max-width: 768px) {
    .social-box {
        display: none;
    }

    .burger {
        display: flex;
    }

    nav .container {
        flex-direction: row;
    }

    .logo {
        font-size: 20px;
    }

    .logo img {
        height: 38px;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(13, 13, 13, 0.98);
        border-bottom: 1px solid rgba(212, 175, 55, 0.25);
        padding: 10px 20px 15px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
    }

    nav ul.open {
        display: flex;
    }

    nav ul li a {
        display: block;
        padding: 12px 0;
        font-size: 16px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 30px;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text .desc {
        margin: 0 auto 30px;
    }

    .hero-badges {
        justify-content: center;
    }

    .contact {
        flex-direction: column;
        padding: 30px 20px;
        gap: 30px;
    }

    .contact-info {
        text-align: center;
    }

    .contact-info h2 {
        text-align: center;
    }

    .contact-info h2::after {
        margin: 15px auto 0;
    }

    .contact-city {
        justify-content: center;
    }

    .floating-btn {
        bottom: 20px;
        right: 20px;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 600px) {
    .catalog-note__content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .catalog-note__btn {
        width: 100%;
        text-align: center;
    }

    .materials-popup {
        padding: 28px 16px;
    }

    .footer-top {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   18. МОБИЛЬНОЕ БУРГЕР-МЕНЮ
   ========================================================================== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #0a0a0a;
    z-index: 90;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
    padding: 100px 30px 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu::before,
.mobile-menu::after {
    content: '';
    margin: auto 0;
    flex-shrink: 0;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu .mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 100%;
    max-width: 320px;
}

.mobile-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 12px;
    width: 100%;
    text-align: center;
    transition: color 0.3s ease, background 0.3s ease;
}

.mobile-nav a:hover,
.mobile-nav a:active {
    color: #D4AF37;
    background: rgba(212, 175, 55, 0.08);
}

.mobile-menu__phone {
    color: #D4AF37;
    text-decoration: none;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.mobile-menu__phone:hover {
    color: #E6C251;
}

.mobile-menu__social {
    display: flex;
    gap: 12px;
}

.mobile-menu__social a {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.mobile-menu__social a:hover {
    border-color: #D4AF37;
    background: rgba(212, 175, 55, 0.1);
}

.mobile-menu__social img {
    width: 20px;
    height: 20px;
}

.mobile-menu > * {
    flex-shrink: 0;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu .gold-btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
}

.mobile-menu.open > * {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.open > *:nth-child(1),
.mobile-menu.open > *:nth-child(2) { transition-delay: 0.08s; }
.mobile-menu.open > *:nth-child(3) { transition-delay: 0.16s; }
.mobile-menu.open > *:nth-child(4) { transition-delay: 0.24s; }
.mobile-menu.open > *:nth-child(5) { transition-delay: 0.32s; }
.mobile-menu.open > *:nth-child(6) { transition-delay: 0.4s; }

body.no-scroll {
    overflow: hidden;
}

/* ==========================================================================
   19. СЕКЦИЯ ЦИФР (STATS)
   ========================================================================== */
.stats-section {
    background: #0d0d0d;
    border-top: 1px solid #161616;
    border-bottom: 1px solid #161616;
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 10px;
}

.stat-value {
    font-size: 44px;
    font-weight: 800;
    color: #D4AF37;
    line-height: 1.1;
    margin-bottom: 8px;
}

.stat-item p {
    color: #999;
    font-size: 14px;
}

/* ==========================================================================
   20. ЧАСТЫЕ ВОПРОСЫ (FAQ)
   ========================================================================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #141414;
    border: 1px solid #222;
    border-radius: 12px;
    transition: border-color 0.3s ease;
}

.faq-item[open] {
    border-color: rgba(212, 175, 55, 0.5);
}

.faq-item summary {
    cursor: pointer;
    padding: 20px 55px 20px 25px;
    font-weight: 600;
    font-size: 16px;
    list-style: none;
    position: relative;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 26px;
    color: #D4AF37;
    line-height: 1;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    padding: 0 25px 20px;
    color: #aaa;
    font-size: 14px;
    line-height: 1.7;
}

.faq-list .faq-item:nth-child(2) {
    transition-delay: 0.1s;
}

.faq-list .faq-item:nth-child(3) {
    transition-delay: 0.2s;
}

.faq-list .faq-item:nth-child(4) {
    transition-delay: 0.3s;
}

.faq-list .faq-item:nth-child(5) {
    transition-delay: 0.4s;
}

/* ==========================================================================
   21. КНОПКА «НАВЕРХ»
   ========================================================================== */
.to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 998;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #141414;
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #D4AF37;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);
    transition: opacity 0.35s ease, transform 0.35s ease, background 0.3s ease, color 0.3s ease;
}

.to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.to-top:hover {
    background: #D4AF37;
    color: #000;
}

.to-top svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 768px) {
    .mobile-menu {
        display: flex;
    }

    .to-top {
        bottom: 20px;
        left: 20px;
        width: 46px;
        height: 46px;
    }

    .stat-value {
        font-size: 36px;
    }

    .faq-item summary {
        font-size: 15px;
    }
}

/* ==========================================================================
   22. О МАСТЕРЕ (#master)
   ========================================================================== */
.master-section {
    background: #0d0d0d;
}

.master-card {
    max-width: 900px;
    margin: 0 auto;
    background: #141414;
    border: 1px solid #222;
    border-radius: 16px;
    padding: 40px;
    display: flex;
    gap: 35px;
    align-items: flex-start;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.master-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.1);
}

.master-avatar {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.5);
    overflow: hidden;
    background: #0d0d0d;
}

.master-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.master-info h3 {
    font-size: 24px;
    margin-bottom: 4px;
}

.master-role {
    color: #D4AF37;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 15px;
}

.master-info > p {
    color: #bbbbbb;
    font-size: 15px;
    margin-bottom: 18px;
}

.master-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.master-list li {
    color: #aaaaaa;
    font-size: 14px;
    padding-left: 26px;
    position: relative;
}

.master-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #D4AF37;
    font-weight: 700;
}

@media (max-width: 768px) {
    .master-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
    }

    .master-list li {
        text-align: left;
    }
}

/* ==========================================================================
   23. SVG-ИКОНКИ СОЦСЕТЕЙ (WHATSAPP)
   ========================================================================== */
.social-menu .soc-svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.footer-social .soc-svg {
    width: 18px;
    height: 18px;
}

.mobile-menu__social .soc-svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   24. ОТКЛЮЧЕНИЕ АНИМАЦИЙ (PREFERS-REDUCED-MOTION)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
