/* ============================================
   AFROKOSICHKA.SU — Premium Dark Theme
   ============================================ */

/* CSS Custom Properties */
:root {
    --bg-dark: #13010b;          /* Deep Plum */
    --bg-surface: #1c0213;       /* Surface Plum */
    --bg-card: rgba(28, 2, 19, 0.7);
    --bg-glass: rgba(19, 1, 11, 0.85);
    --border-subtle: rgba(253, 235, 243, 0.06);
    --border-hover: rgba(253, 235, 243, 0.12);
    --primary: #cf125c;          /* Fuchsia Crimson */
    --primary-light: #aab414;    /* Lime Green */
    --primary-dark: #8a063b;
    --primary-glow: rgba(207, 18, 92, 0.15);
    --secondary-glow: rgba(170, 180, 20, 0.15);
    --primary-gradient: linear-gradient(135deg, #f3287a 0%, #cf125c 50%, #8a063b 100%);
    --secondary-gradient: linear-gradient(135deg, #c3cf1d 0%, #aab414 50%, #767d0a 100%);
    --text-main: #fdebf3;        /* Soft pale pink */
    --text-secondary: #bcabaf;  /* Muted pink-grey */
    --text-muted: #736769;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Noto Sans', sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--secondary-glow);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition: 0.4s var(--ease-out);
    --transition-fast: 0.25s ease;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background: var(--bg-dark);
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
    overflow: hidden;
}

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

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

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ============================================
   HEADER — Minimal + Glassmorphism
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.75);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header--scrolled {
    background: rgba(10, 10, 15, 0.92);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header__container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Logo */
.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 36px;
    width: auto;
    transition: transform 0.3s var(--ease-out);
}

.logo a:hover img {
    transform: scale(1.05);
}

/* Header Right Side */
.header__right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Contact Buttons in Header */
.header__phone a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-main);
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.03);
    transition: var(--transition);
}

.header__phone a img {
    width: 15px;
    height: 15px;
    opacity: 0.7;
}

.header__phone a:hover {
    border-color: var(--primary);
    background: var(--primary-glow);
    box-shadow: var(--shadow-glow);
}

.header__telegram a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.03);
    transition: var(--transition);
}

.header__telegram a img {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.header__telegram a:hover {
    border-color: #229ED9;
    background: rgba(34, 158, 217, 0.1);
    transform: translateY(-1px);
}

.header__telegram a:hover img {
    opacity: 1;
}

/* ============================================
   HAMBURGER BUTTON — Always Visible
   ============================================ */
.burger {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    cursor: pointer;
    gap: 5px;
    padding: 0;
    transition: var(--transition);
    position: relative;
    z-index: 1100;
}

.burger:hover {
    border-color: var(--primary);
    background: var(--primary-glow);
}

.burger__line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

.burger.active {
    border-color: transparent;
    background: transparent;
}

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

.burger.active .burger__line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

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

/* ============================================
   DESKTOP NAVIGATION NAVBAR
   ============================================ */
.desktop-nav {
    display: block;
}

.desktop-nav__list {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    list-style: none;
}

.desktop-nav__item {
    position: relative;
}

.desktop-nav__link {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.5rem 0.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.desktop-nav__link:hover {
    color: var(--text-main);
}

/* Underline Animation */
.desktop-nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-gradient);
    transition: width 0.3s var(--ease-out), left 0.3s var(--ease-out);
    border-radius: 2px;
}

.desktop-nav__link:hover::after {
    width: 100%;
    left: 0;
}

/* Active State */
.desktop-nav__item.active .desktop-nav__link {
    color: var(--primary-light);
}

.desktop-nav__item.active .desktop-nav__link::after {
    width: 100%;
    left: 0;
}

/* Dropdown Menu styling */
.desktop-nav__dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.8rem 0;
    width: 210px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s var(--ease-out), visibility 0.3s;
    z-index: 1000;
    box-shadow: var(--shadow-glow), var(--shadow-soft);
}

/* Tiny triangle arrow on top of dropdown */
.desktop-nav__dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: var(--bg-glass);
    border-left: 1px solid var(--border-subtle);
    border-top: 1px solid var(--border-subtle);
}

.desktop-nav__dropdown li {
    list-style: none;
}

.desktop-nav__dropdown a {
    display: block;
    padding: 0.5rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: none;
    transition: var(--transition-fast);
}

.desktop-nav__dropdown a:hover {
    color: var(--primary-light);
    background: rgba(253, 235, 243, 0.03);
    padding-left: 1.7rem;
}

.desktop-nav__dropdown li.active a {
    color: var(--primary-light);
    font-weight: 600;
}

/* Show dropdown on hover */
.desktop-nav__item--dropdown:hover .desktop-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Tiny arrow indicator in text */
.desktop-nav__item--dropdown .desktop-nav__link::after {
    display: none; /* Disable underline for services dropdown trigger text */
}

.desktop-nav__item--dropdown .desktop-nav__link::before {
    content: '';
    order: 2;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    display: inline-block;
    padding: 2.5px;
    transform: rotate(45deg);
    margin-bottom: 2px;
    margin-left: 2px;
    transition: transform 0.3s ease;
}

.desktop-nav__item--dropdown:hover .desktop-nav__link::before {
    transform: rotate(-135deg) translateY(-1px);
}

/* ============================================
   FULLSCREEN MENU OVERLAY
   ============================================ */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(6, 6, 10, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--ease-out), visibility 0.5s;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-overlay__inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    max-width: 100%;
}

.nav-overlay__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 840px;
    margin: 0 auto 1.5rem;
    padding: 0 2rem;
}

.nav-overlay__group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-overlay__group-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(207, 18, 92, 0.2);
    padding-bottom: 0.4rem;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s var(--ease-out) 0.1s;
}

.nav-overlay.active .nav-overlay__group-title {
    opacity: 1;
    transform: translateY(0);
}

.nav-overlay__title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s var(--ease-out) 0.1s;
}

.nav-overlay.active .nav-overlay__title {
    opacity: 1;
    transform: translateY(0);
}

.nav-overlay__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.nav-overlay__item {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.4s ease, transform 0.5s var(--ease-out);
}

.nav-overlay.active .nav-overlay__item {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.nav-overlay.active .nav-overlay__item:nth-child(1)  { transition-delay: 0.08s; }
.nav-overlay.active .nav-overlay__item:nth-child(2)  { transition-delay: 0.12s; }
.nav-overlay.active .nav-overlay__item:nth-child(3)  { transition-delay: 0.16s; }
.nav-overlay.active .nav-overlay__item:nth-child(4)  { transition-delay: 0.20s; }
.nav-overlay.active .nav-overlay__item:nth-child(5)  { transition-delay: 0.24s; }
.nav-overlay.active .nav-overlay__item:nth-child(6)  { transition-delay: 0.28s; }
.nav-overlay.active .nav-overlay__item:nth-child(7)  { transition-delay: 0.32s; }
.nav-overlay.active .nav-overlay__item:nth-child(8)  { transition-delay: 0.36s; }
.nav-overlay.active .nav-overlay__item:nth-child(9)  { transition-delay: 0.40s; }
.nav-overlay.active .nav-overlay__item:nth-child(10) { transition-delay: 0.44s; }
.nav-overlay.active .nav-overlay__item:nth-child(11) { transition-delay: 0.48s; }
.nav-overlay.active .nav-overlay__item:nth-child(12) { transition-delay: 0.52s; }

.nav-overlay__link {
    font-family: var(--font-body);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.6rem 2rem;
    display: inline-block;
    position: relative;
    transition: color 0.3s ease, transform 0.3s var(--ease-out);
}

.nav-overlay__link:hover {
    color: var(--text-main);
    transform: scale(1.05);
}

.nav-overlay__link::after {
    content: '';
    position: absolute;
    bottom: 0.4rem;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s var(--ease-out), left 0.3s var(--ease-out);
    border-radius: 2px;
}

.nav-overlay__link:hover::after {
    width: 60%;
    left: 20%;
}

.nav-overlay__item.active .nav-overlay__link {
    color: var(--primary-light);
}

.nav-overlay__item.active .nav-overlay__link::after {
    width: 40%;
    left: 30%;
}

/* Nav Overlay Contact */
.nav-overlay__contact {
    margin-top: 2.5rem;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease 0.55s, transform 0.4s var(--ease-out) 0.55s;
}

.nav-overlay.active .nav-overlay__contact {
    opacity: 1;
    transform: translateY(0);
}

.nav-overlay__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-light);
    padding: 0.8rem 2rem;
    border: 1px solid rgba(170, 180, 20, 0.3);
    border-radius: 50px;
    transition: var(--transition);
}

.nav-overlay__phone img {
    width: 18px;
    height: 18px;
}

.nav-overlay__phone:hover {
    background: var(--primary-glow);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main {
    flex: 1;
    padding-top: 70px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    padding: 3.5rem 2rem 4rem;
    max-width: 1240px;
    margin: 0 auto;
}

.hero__wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: start;
}

.hero__wrapper > div:first-child {
    grid-column: 1;
    grid-row: 1;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, var(--text-main) 15%, #fb5599 65%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.hero__sub-title {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.8rem;
}

.hero__sub-title p {
    margin-bottom: 0.5rem;
}

.hero__price {
    font-family: var(--font-heading);
    color: var(--primary-light);
    font-weight: 700;
    font-size: 1.4rem;
}

/* CTA / Consultation Card */
.info {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    margin-bottom: 2rem;
    max-width: 460px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: var(--transition);
}

.info:hover {
    border-color: var(--border-hover);
}

.info__title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
}

.info_phone a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    transition: var(--transition-fast);
}

.info_phone a img {
    width: 18px;
    height: 18px;
    opacity: 0.6;
}

.info_phone a:hover {
    color: var(--primary-light);
}

/* Hero Image */
.hero__img {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: var(--transition);
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
}

.hero__img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.35) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.hero__img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.hero__img:hover {
    border-color: rgba(170, 180, 20, 0.25);
    box-shadow: var(--shadow-glow), var(--shadow-soft);
}

.hero__img:hover img {
    transform: scale(1.03);
}

/* Hero Text Content */
.hero__content {
    grid-column: 1;
    grid-row: 2;
    margin-top: 0;
}

.hero__text {
    font-size: 1.02rem;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 900px;
    columns: 1;
}

.hero__text p {
    margin-bottom: 1.2rem;
    break-inside: avoid;
}

.hero__text h3 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-size: 1.4rem;
    margin: 1.5rem 0 0.8rem;
    column-span: all;
}

.hero__text ol, .hero__text ul {
    margin-left: 1.5rem;
    margin-bottom: 1.2rem;
}

.hero__text li {
    margin-bottom: 0.6rem;
}

.hero__text a {
    color: var(--primary-light);
    text-decoration: underline;
    text-decoration-color: rgba(170, 180, 20, 0.3);
    text-underline-offset: 3px;
}

.hero__text a:hover {
    text-decoration-color: var(--primary-light);
}

.hero__address {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Contacts page Telegram in info block */
.feedback__telegram {
    display: inline-block;
}

.feedback__telegram a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-light);
}

.feedback__telegram a img {
    width: 20px;
    height: 20px;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
    padding: 4.5rem 2rem;
    position: relative;
}

.gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.gallery__title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, var(--text-main) 15%, #fb5599 65%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.gallery__wrapper {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery__item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    cursor: pointer;
    transition: var(--transition);
}

.gallery__preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}

.gallery__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(207, 18, 92, 0.15) 0%, rgba(19, 1, 11, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.gallery__item::before {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--text-main);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(28, 2, 19, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(253, 235, 243, 0.25);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
    pointer-events: none;
}

.gallery__item:hover {
    transform: translateY(-4px);
    border-color: rgba(170, 180, 20, 0.3);
    box-shadow: var(--shadow-glow);
}

.gallery__item:hover .gallery__preview {
    transform: scale(1.08);
}

.gallery__item:hover::after {
    opacity: 1;
}

.gallery__item:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ============================================
   ACCORDION (Instructions/FAQ)
   ============================================ */
.accordion {
    max-width: 800px;
    margin: 0 auto 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.accordion__item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.accordion__header {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: none;
    border: none;
    text-align: left;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-fast);
}

.accordion__header:hover {
    color: var(--primary-light);
}

.accordion__icon {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--primary);
    transition: transform 0.4s var(--ease-out);
    flex-shrink: 0;
}

.accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease-out);
    padding: 0 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.accordion__content p {
    padding-bottom: 1.2rem;
}

.accordion__content img {
    margin-bottom: 1.2rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

.accordion__item.active {
    border-color: rgba(207, 18, 92, 0.3);
    background: rgba(28, 2, 19, 0.95);
}

.accordion__item.active .accordion__icon {
    transform: rotate(45deg);
}

/* ============================================
   PALETTE GRID
   ============================================ */
.palette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1.25rem;
    max-width: 1240px;
    margin: 0 auto;
}

.palette-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    cursor: pointer;
    transition: var(--transition);
}

.palette-card__img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: calc(var(--radius-md) - 4px);
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.palette-card__title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
    padding-bottom: 0.2rem;
}

.palette-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #06060a;
    border-top: 1px solid var(--border-subtle);
    padding: 3.5rem 2rem;
    color: var(--text-secondary);
    margin-top: auto;
}

.footer__wrapper {
    max-width: 1240px;
    margin: 0 auto;
}

.address h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.8rem;
}

.address p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.address a {
    color: var(--primary-light);
    transition: var(--transition-fast);
}

.address a:hover {
    color: var(--text-main);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(6, 6, 10, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox__content {
    position: relative;
    max-width: 92%;
    max-height: 88%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__img {
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform: scale(0.92);
    transition: transform 0.4s var(--ease-out), opacity 0.2s ease;
}

.lightbox.active .lightbox__img {
    transform: scale(1);
}

.lightbox__close {
    position: absolute;
    top: -45px;
    right: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2.2rem;
    font-weight: 200;
    cursor: pointer;
    line-height: 1;
    padding: 0.5rem;
    transition: var(--transition-fast);
}

.lightbox__close:hover {
    color: var(--primary-light);
    transform: rotate(90deg);
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.4rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    user-select: none;
}

.lightbox__nav:hover {
    background: var(--primary-glow);
    border-color: var(--primary);
    color: var(--primary-light);
}

.lightbox__nav--prev { left: -65px; }
.lightbox__nav--next { right: -65px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }

    .burger {
        display: flex;
    }

    .hero__wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero__wrapper > div:first-child {
        grid-column: auto;
        grid-row: auto;
    }

    .hero__img {
        max-width: 500px;
        margin: 0 auto;
        order: -1;
        grid-column: auto;
        grid-row: auto;
    }

    .hero__text {
        columns: 1;
    }

    .hero__content {
        grid-column: auto;
        grid-row: auto;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .header__container {
        height: 60px;
        padding: 0 1.25rem;
    }

    .main {
        padding-top: 60px;
    }

    .header__phone span {
        display: none;
    }

    .header__phone a {
        padding: 0.45rem;
        border-radius: 50%;
        width: 38px;
        height: 38px;
        justify-content: center;
    }

    .header__phone a img {
        width: 16px;
        height: 16px;
    }

    .hero {
        padding: 2rem 1.25rem 3rem;
    }

    .hero__title {
        font-size: 2rem;
    }

    .gallery {
        padding: 3rem 1.25rem;
    }

    .gallery__wrapper {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.75rem;
    }

    .gallery__item {
        border-radius: var(--radius-sm);
    }

    .nav-overlay__link {
        font-size: 1.3rem;
        padding: 0.5rem 1.5rem;
    }

    .lightbox__nav {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }

    .lightbox__nav--prev { left: 10px; }
    .lightbox__nav--next { right: 10px; }

    .lightbox__close {
        top: -35px;
        right: 5px;
    }

    .footer {
        padding: 2.5rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .gallery__wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    .palette-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .hero__sub-title {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .nav-overlay__grid {
        grid-template-columns: 1fr;
        gap: 1.6rem;
        max-height: 65vh;
        overflow-y: auto;
        padding-right: 0.5rem;
    }
    
    .nav-overlay__group-title {
        margin-bottom: 0.8rem;
        font-size: 1rem;
    }
    
    .nav-overlay__link {
        font-size: 1.15rem;
        padding: 0.3rem 1rem;
    }
}

/* ============================================
   PALETTE PAGE EXPANSIONS
   ============================================ */
.palette-features-hero {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.palette-feature-card-hero {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: var(--transition);
}

.palette-feature-card-hero:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow), var(--shadow-soft);
}

.palette-feature-card__number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-light);
    line-height: 1;
    margin-bottom: 0.5rem;
    opacity: 0.85;
}

.palette-feature-card__title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.palette-feature-card__text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* 2. Curated Gallery Headers & CTA */
.gallery-title-alt {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 2rem;
}

.palette-cta-section {
    padding: 4rem 2rem;
    max-width: 1240px;
    margin: 0 auto;
}

.palette-cta-card {
    background: linear-gradient(135deg, rgba(170, 180, 20, 0.04) 0%, rgba(28, 2, 19, 0.5) 100%);
    border: 1px solid rgba(170, 180, 20, 0.15);
    border-radius: var(--radius-xl);
    padding: 3.5rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.palette-cta-card__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.palette-cta-card__text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 2.2rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.palette-cta-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    color: #13010b;
    background: var(--secondary-gradient);
    padding: 1rem 2.2rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(170, 180, 20, 0.2);
    transition: var(--transition);
}

.palette-cta-card__btn img {
    width: 20px;
    height: 20px;
    filter: brightness(0.1);
}

.palette-cta-card__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(170, 180, 20, 0.35);
    filter: brightness(1.1);
}

/* ============================================
   PALETTE RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .palette-features-hero {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .palette-cta-card {
        padding: 2.5rem 1.5rem;
    }

    .palette-cta-card__title {
        font-size: 1.6rem;
    }
}
