/* ==========================================================================
   STUDIO — Premium Architecture Studio Stylesheet
   ========================================================================== */

:root {
    --color-bg: #f7f5f1;
    --color-bg-alt: #efece6;
    --color-text: #1a1a1a;
    --color-text-light: #6b6b6b;
    --color-accent: #c9a96e;
    --color-accent-dark: #a8884a;
    --color-dark: #0e0e0e;
    --color-white: #ffffff;
    --color-border: #e3e0d8;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    --container: 1320px;
    --header-h: 80px;

    --transition: 0.4s cubic-bezier(0.65, 0.05, 0.36, 1);
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; }

/* CONTAINER */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 30px;
}

/* PRELOADER */
.preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--color-bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}
.preloader-inner {
    display: flex;
    gap: 8px;
}
.preloader-inner span {
    width: 12px; height: 12px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}
.preloader-inner span:nth-child(1) { animation-delay: -0.32s; }
.preloader-inner span:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* HEADER */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: rgba(247, 245, 241, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}
.header.scrolled {
    background: rgba(247, 245, 241, 0.98);
    border-bottom-color: var(--color-border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.header-spacer { 
    height: var(--header-h);
    height: 80px;

 }
 .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--color-dark);
    text-decoration: none;
    transition: opacity 0.3s ease;
}
.logo:hover { opacity: 0.85; }

.logo-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.logo-icon svg { width: 100%; height: 100%; display: block; }

.logo-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
}
.logo-main {
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.06em;
    color: var(--color-dark);
    line-height: 1;
}
.logo-sub {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    color: var(--color-text-light);
    margin-top: 5px;
    line-height: 1;
}

@media (max-width: 600px) {
    .logo { gap: 9px; }
    .logo-icon { width: 38px; height: 38px; }
    .logo-main { font-size: 1.1rem; }
    .logo-sub { font-size: 0.6rem; letter-spacing: 0.18em; margin-top: 3px; }
}
@media (max-width: 380px) {
    .logo-sub { display: none; }
}

/* NAVIGATION */
.nav-list {
    display: flex;
    gap: 40px;
    align-items: center;
}
.nav-link {
    position: relative;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    transition: color var(--transition);
}
.nav-link::before {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 0; height: 1px;
    background: var(--color-accent);
    transition: width var(--transition);
}
.nav-link:hover::before,
.nav-link.active::before { width: 100%; }
.nav-link.active { color: var(--color-accent-dark); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.menu-toggle {
    display: none;
    width: 26px;
    height: 14px;
    flex-direction: column;
    justify-content: space-between;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}
.menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--color-dark);
    transition: var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    white-space: nowrap;
}
.btn-sm { padding: 10px 22px; font-size: 0.85rem; }
.btn-lg { padding: 18px 40px; font-size: 1rem; }
.btn-primary {
    background: var(--color-dark);
    color: var(--color-white);
    border-color: var(--color-dark);
}
.btn-primary:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-outline {
    border-color: var(--color-dark);
    color: var(--color-dark);
}
.btn-outline:hover {
    background: var(--color-dark);
    color: var(--color-white);
}
.btn-light {
    background: var(--color-white);
    color: var(--color-dark);
}
.btn-light:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

/* HERO */




.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    /*background-image: url('/static/images/hero-bg.jpg');*/
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(28, 25, 23, 0.55);
}

.hero .container {
    position: relative;
    z-index: 10;
}
/*////////////////////////////////////////////////////*/
/*.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
    background-image:
        linear-gradient(rgba(28, 25, 23, 0.65), rgba(28, 25, 23, 0.65)),
        url('/static/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero .container {
    position: relative;
    z-index: 10;
}*/

.hero-images {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin-left: 0;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #d4a76a;
    margin-bottom: 30px;
}

.hero-tag::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--color-accent);
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 6rem);
    font-weight: 400;
    line-height: 1.05;
    margin-bottom: 30px;
    color: #ffffff;
}
.word-wave span {
    display: inline-block;
    margin-right: 0.25em;
}

.hero-title em {
    font-style: italic;
    color: #d4a76a;
}

.hero-description {
     font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 100%;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* SECTION TITLES */
.section { padding: 100px 0; }
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--color-accent-dark);
    margin-bottom: 20px;
}
.section-tag::before {
    content: '';
    width: 30px; height: 1px;
    background: var(--color-accent);
}
.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 24px;
    color: var(--color-dark);
}
.section-description {
    font-size: 1.05rem;
    color: var(--color-text-light);
    max-width: 700px;
    line-height: 1.7;
}
.section-header {
    margin-bottom: 60px;
    max-width: 800px;
}
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }

/* SERVICES GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.service-card {
    background: var(--color-white);
    padding: 50px 40px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 1s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 1s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    will-change: transform;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 3px;
    background: var(--color-accent);
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover {
    transform: scale(1.03);
    box-shadow: 0 22px 48px -12px rgba(0,0,0,0.16);
    border-color: transparent;
    z-index: 2;
}
.service-card:hover::before { width: 100%; }
.service-icon {
    width: 60px; height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    border-radius: 50%;
    margin-bottom: 24px;
    font-size: 1.5rem;
    color: var(--color-accent-dark);
    transition: background 1s cubic-bezier(0.16, 1, 0.3, 1),
                color 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover .service-icon {
    background: var(--color-accent);
    color: var(--color-white);
}
.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--color-dark);
}
.service-card p {
    color: var(--color-text-light);
    margin-bottom: 24px;
    line-height: 1.7;
}
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-dark);
}
.service-link i { transition: transform var(--transition); }
.service-link:hover { color: var(--color-accent-dark); }
.service-link:hover i { transform: translateX(5px); }

/* PROJECTS GRID */
.projects-filter {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.filter-btn {
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid var(--color-border);
    background: transparent;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    transition: all var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
    background: var(--color-dark);
    color: var(--color-white);
    border-color: var(--color-dark);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.project-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-white);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    aspect-ratio: 4/5;
    perspective: 1000px;
    transform-style: preserve-3d;
}
.project-card:hover {
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.35);
}
.project-image {
    width: 100%; height: 100%;
    overflow: hidden;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
    will-change: transform;
}
.project-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.6s ease;
}
.project-card:hover .project-image img {
    transform: scale(1.12);
    filter: brightness(1.05) contrast(1.05);
}

/* Yangi: yuqori-o'ng burchakdagi "ko'rish" strelka indikator */
.project-card .project-arrow {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    background: var(--color-accent);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    opacity: 0;
    transform: translate(20px, -20px) rotate(-45deg) scale(0.6);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 4;
    pointer-events: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.project-card:hover .project-arrow {
    opacity: 1;
    transform: translate(0, 0) rotate(0) scale(1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.3) 45%, rgba(0,0,0,0) 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: var(--color-white);
    transition: background 0.5s ease;
    z-index: 2;
}
.project-card:hover .project-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.1) 85%);
}
.project-overlay > * {
    transform: translateY(8px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover .project-overlay > * {
    transform: translateY(0);
}
.project-overlay > *:nth-child(1) { transition-delay: 0.05s; }
.project-overlay > *:nth-child(2) { transition-delay: 0.1s; }
.project-overlay > *:nth-child(3) { transition-delay: 0.15s; }
.project-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: 10px;
}
.project-title {
    font-size: 1.2rem;
    font-family: var(--font-serif);
    color: var(--color-white);
    margin-bottom: 8px;
    line-height: 1.25;
    font-weight: 500;
}
.project-meta {
    font-size: 0.85rem;
    opacity: 0.8;
    display: flex;
    gap: 16px;
}

/* ABOUT SECTION */
.about-section {
    background: var(--color-bg-alt);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/5;
}
.about-image img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.about-image::after {
    content: '';
    position: absolute;
    bottom: -20px; right: -20px;
    width: 60%; height: 60%;
    border: 2px solid var(--color-accent);
    border-radius: 8px;
    z-index: -1;
}

/* ABOUT — KOLLAJ (3 ta ustma-ust rasm) */
.about-collage {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
}
.collage-img {
    position: absolute;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}
.collage-img-1 {
    top: 0;
    left: 0;
    width: 44%;
    height: 32%;
    transform: rotate(-6deg);
    z-index: 1;
}
.collage-img-2 {
    top: 22%;
    left: 14%;
    width: 70%;
    height: 50%;
    transform: rotate(2deg);
    z-index: 2;
}
.collage-img-3 {
    bottom: 0;
    right: 0;
    width: 55%;
    height: 38%;
    transform: rotate(-3deg);
    z-index: 3;
}
/* Eski hover qoidalari yangi "focus mode" tizimi bilan almashtirildi (pastga qarang) */

@media (max-width: 768px) {
    .about-collage { aspect-ratio: auto; min-height: 460px; }
}

/* STATS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid var(--color-border);
}
.stat-item h3 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 8px;
    font-family: var(--font-serif);
}
.stat-item h3 span {
    color: var(--color-accent-dark);
}
.stat-item p {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

/* ==================================================
   FEATURES — Nima uchun biz (premium karta)
   ================================================== */
.features-section {
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.feature-item {
    position: relative;
    text-align: center;
    padding: 48px 28px 40px;
    background: transparent;
    border: 1px solid rgba(125, 100, 56, 0.12);
    border-radius: 0; /* Arxitektura — keskin burchaklar */
    box-shadow: none;
    overflow: hidden;
    transition: border-color 0.6s ease,
                background 0.6s ease,
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* === HOVER SHINE — oltin yorug'lik kartani kesib o'tadi === */
.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(105deg,
        transparent 35%,
        rgba(201, 169, 110, 0.08) 46%,
        rgba(232, 201, 139, 0.18) 50%,
        rgba(201, 169, 110, 0.08) 54%,
        transparent 65%);
    transition: left 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}
.feature-item:hover::before {
    left: 100%;
}

/* Blueprint burchak markerlari — arxitektura chizmasi uslubi */
.feature-corner {
    position: absolute;
    width: 16px;
    height: 16px;
    pointer-events: none;
    /* Reveal: boshlang'ich holat — kichik va shaffof */
    opacity: 0;
    transform: scale(0.4);
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.5s ease,
                box-shadow 0.5s ease,
                opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 3;
}
.feature-corner--tl {
    top: -1px;
    left: -1px;
    border-top: 2px solid var(--color-accent);
    border-left: 2px solid var(--color-accent);
    transform-origin: top left;
}
.feature-corner--br {
    bottom: -1px;
    right: -1px;
    border-bottom: 2px solid var(--color-accent);
    border-right: 2px solid var(--color-accent);
    transform-origin: bottom right;
}

/* === REVEAL ANIMATSIYASI: burchak markerlari kontentdan keyin paydo bo'ladi === */
.feature-item--reveal.is-revealed .feature-corner--tl {
    opacity: 1;
    transform: scale(1);
    transition-delay: calc(0.4s + var(--i, 0) * 120ms);
}
.feature-item--reveal.is-revealed .feature-corner--br {
    opacity: 1;
    transform: scale(1);
    transition-delay: calc(0.55s + var(--i, 0) * 120ms);
}

/* === DAVRIY PULSE — har 6 sekundda burchaklar yumshoq pulsatsiyalanadi === */
.feature-item--reveal.is-revealed .feature-corner--tl {
    animation: cornerPulse 6s ease-in-out infinite;
    animation-delay: calc(2s + var(--i, 0) * 0.4s);
}
.feature-item--reveal.is-revealed .feature-corner--br {
    animation: cornerPulse 6s ease-in-out infinite;
    animation-delay: calc(2.3s + var(--i, 0) * 0.4s);
}
@keyframes cornerPulse {
    0%, 92%, 100% {
        box-shadow: 0 0 0 rgba(201, 169, 110, 0);
    }
    96% {
        box-shadow: 0 0 12px rgba(201, 169, 110, 0.5);
    }
}

.feature-item:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 169, 110, 0.25);
    background: rgba(255, 255, 255, 0.5);
}
.feature-item:hover .feature-corner {
    width: 26px;
    height: 26px;
    border-color: var(--color-accent);
    box-shadow: 0 0 16px rgba(201, 169, 110, 0.4);
    animation-play-state: paused;
}

/* Ikonka — oltin nozik dumaloq (gradient minimal, premium hissi) */
.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(201, 169, 110, 0.4);
    border-radius: 50%;
    margin: 0 auto 26px;
    font-size: 1.4rem;
    color: var(--color-accent);
    position: relative;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.5s ease,
                color 0.5s ease,
                border-color 0.5s ease;
}
/* Ikona ichida ozod dumaloq nuqta - hover'da fadelaydi */
.feature-icon::before {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: rgba(201, 169, 110, 0.06);
    transition: background 0.5s ease, opacity 0.5s ease;
    z-index: -1;
}
.feature-item:hover .feature-icon {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
    transform: scale(1.06);
    box-shadow: 0 10px 26px -8px rgba(201, 169, 110, 0.4);
}
.feature-item:hover .feature-icon::before {
    background: transparent;
}

/* Sarlavha */
.feature-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 14px;
    color: #1a1614;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

/* Matn */
.feature-text {
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

/* === REVEAL ANIMATSIYASI — stagger har biri biroz kechikkan === */
.feature-item--reveal {
    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);
    transition-delay: calc(var(--i, 0) * 120ms);
}
.feature-item--reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Section tag chiziq — boshqa joylarda ham ishlatish mumkin */
.section-tag .section-tag-line {
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--color-accent);
    margin-right: 12px;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .feature-item { padding: 38px 22px 30px; }
    .feature-num { font-size: 3.5rem; top: 10px; right: 14px; }
    .feature-icon { width: 64px; height: 64px; font-size: 1.35rem; margin-bottom: 22px; }
    .feature-title { font-size: 1.08rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .feature-item, .feature-item:hover {
        transition: none;
        transform: none;
    }
    .feature-item:hover .feature-icon { transform: none; }
}

/* REVIEWS */
.reviews-section {
    position: relative;
    overflow: hidden;
    background: #1c1917;
}

/* Orqa fonda rasm — parallax bilan harakatlanadi */
.reviews-section::before {
    content: '';
    position: absolute;
    top: -25%;
    left: 0;
    right: 0;
    bottom: -25%;
    background-image: url('/images/hero-3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: translateY(var(--parallax-y, 0));
    opacity: 0.32;
    z-index: 0;
    will-change: transform;
    filter: blur(1px);
}

/* Qora overlay — matn o'qiluvchanligini ta'minlaydi */
.reviews-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(20, 18, 16, 0.78) 0%,
        rgba(20, 18, 16, 0.72) 50%,
        rgba(20, 18, 16, 0.85) 100%);
    z-index: 1;
}

.reviews-section .container {
    position: relative;
    z-index: 2;
}
.reviews-section .section-title { color: var(--color-white); }
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.review-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 40px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}
.review-stars {
    color: var(--color-accent);
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.review-text {
    font-style: italic;
    margin-bottom: 30px;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
}
.review-author {
    display: flex;
    align-items: center;
    gap: 16px;
}
.review-author-img {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--color-white);
    overflow: hidden;
}
.review-author-img img { width: 100%; height: 100%; object-fit: cover; }
.review-author-info h5 {
    font-family: var(--font-sans);
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--color-white);
}
.review-author-info p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* ==================================================
   CONTACT — PREMIUM
   ================================================== */
.contact-section {
    background: var(--color-bg-alt);
}
.contact-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.15fr;
    gap: 36px;
    align-items: stretch; /* Ikkala karta bir xil balandlikda */
}

/* === CHAP: INFO KARTA === */
.contact-info-card {
    position: relative;
    background: linear-gradient(160deg, #1f1a16 0%, #14110e 100%);
    color: var(--color-white);
    padding: 42px 38px;
    border-radius: 14px;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 30px 70px -20px rgba(20, 15, 10, 0.4),
                0 0 0 1px rgba(201, 169, 110, 0.1);
    /* Flex column — content yuqoridan, footer pastga ergashadi */
    display: flex;
    flex-direction: column;
}

/* Yumshoq radial yorug'lik */
.contact-info-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(201,169,110,0.18) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}
/* Oltin aksent chizigʻi yuqorida */
.contact-info-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,169,110,0.6), transparent);
    z-index: 1;
}

/* Blueprint pattern — CSS gradient orqali, SVG kerak emas */
.contact-info-card {
    background-image:
        linear-gradient(rgba(201,169,110,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201,169,110,0.05) 1px, transparent 1px),
        linear-gradient(160deg, #1f1a16 0%, #14110e 100%);
    background-size: 40px 40px, 40px 40px, 100% 100%;
    background-position: 0 0, 0 0, 0 0;
}

.contact-info-card > * { position: relative; z-index: 2; }

/* Onlayn indikator */
.contact-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(201, 169, 110, 0.1);
    border: 1px solid rgba(201, 169, 110, 0.22);
    border-radius: 100px;
    margin-bottom: 22px;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.8);
}
.contact-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    animation: contactLivePulse 1.6s ease-in-out infinite;
    position: relative;
}
.contact-live-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid #4ade80;
    opacity: 0;
    animation: contactLiveRipple 1.6s ease-out infinite;
}
@keyframes contactLivePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.7; transform: scale(1.2); }
}
@keyframes contactLiveRipple {
    0%   { opacity: 0.6; transform: scale(1); }
    100% { opacity: 0; transform: scale(2.5); }
}

.contact-info-title {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    margin: 0 0 12px;
    color: #fff;
    line-height: 1.2;
}
.contact-info-lead {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 0 0 28px;
    max-width: 320px;
}

/* Info list */
.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
}
.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.88);
    transition: transform 0.3s ease;
}
.contact-info-list li:hover {
    transform: translateX(3px);
}
.contact-info-ic {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 169, 110, 0.1);
    border: 1px solid rgba(201, 169, 110, 0.22);
    border-radius: 10px;
    color: var(--color-accent);
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-info-list li:hover .contact-info-ic {
    background: var(--color-accent);
    color: #1a1614;
    transform: scale(1.06) rotate(-5deg);
    box-shadow: 0 8px 22px rgba(201, 169, 110, 0.35);
}
.contact-info-text {
    flex: 1;
    min-width: 0;
}
.contact-info-text strong {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 4px;
}
.contact-info-text span,
.contact-info-text a {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.94rem;
    line-height: 1.45;
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-info-text a:hover { color: var(--color-accent); }

/* Ajratuvchi chiziq — pastga "ergashadi" karta balandligi cho'zilsa */
.contact-info-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,169,110,0.2), transparent);
    margin: 18px 0;
    margin-top: auto; /* Form balandroq boʻlsa ham foot pastga yopishadi */
}

/* Pastki: ijtimoiy */
.contact-info-foot {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.contact-foot-label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.22em;
}

.contact-social {
    display: flex;
    gap: 10px;
}
.contact-social a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-social a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-accent) 0%, #a8854a 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}
.contact-social a:hover {
    color: #1a1614;
    border-color: var(--color-accent);
    transform: translateY(-3px) rotate(-3deg);
    box-shadow: 0 10px 24px rgba(201, 169, 110, 0.38);
}
.contact-social a:hover::before { opacity: 1; }

/* === OʻNG: FORMA === */
.contact-form {
    background: var(--color-white);
    padding: 42px 38px;
    border-radius: 14px;
    box-shadow: 0 30px 70px -20px rgba(40, 30, 15, 0.12),
                0 0 0 1px rgba(125, 100, 56, 0.06);
    position: relative;
    overflow: hidden;
}
/* Yengil dekorativ aksent oltin chizigʻi */
.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,169,110,0.5), transparent);
}

.contact-form-head { margin-bottom: 28px; }
.contact-form-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 12px;
}
.contact-form-tag-line {
    width: 28px;
    height: 1px;
    background: var(--color-accent);
}
.contact-form-title {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    line-height: 1.2;
    margin: 0 0 8px;
    color: #1a1614;
}
.contact-form-subtitle {
    color: var(--color-text-light);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
    max-width: 480px;
}

/* === FLOATING LABEL FORM === */
.form-group { margin-bottom: 18px; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group--floating {
    position: relative;
}
.form-group--floating .form-input,
.form-group--floating .form-textarea,
.form-group--floating .form-select {
    width: 100%;
    padding: 22px 14px 10px;
    border: 1px solid #e6dfd3;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--color-text);
    background: #fbf8f3;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
}
.form-group--floating .form-textarea {
    min-height: 110px;
    resize: vertical;
    padding-top: 26px;
}
.form-group--floating .form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'><path d='M3 5l4 4 4-4' stroke='%23c9a96e' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}
.form-group--floating .form-input:focus,
.form-group--floating .form-textarea:focus,
.form-group--floating .form-select:focus {
    outline: none;
    border-color: var(--color-accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.12);
}

/* Floating label */
.form-group--floating .form-label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--color-text-light);
    pointer-events: none;
    background: transparent;
    transition: top 0.25s ease, font-size 0.25s ease, color 0.25s ease;
    z-index: 1;
    margin: 0;
}
.form-group--floating .form-textarea ~ .form-label {
    top: 22px;
    transform: none;
}
.form-group--floating .form-input:focus ~ .form-label,
.form-group--floating .form-input:not(:placeholder-shown) ~ .form-label,
.form-group--floating .form-textarea:focus ~ .form-label,
.form-group--floating .form-textarea:not(:placeholder-shown) ~ .form-label,
.form-group--floating .form-select ~ .form-label {
    top: 8px;
    transform: none;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
/* Select uchun label doim yuqorida — "Tanlang" placeholder bilan toʻqnashmasin */
.form-group--floating .form-select ~ .form-label {
    background: #fbf8f3;
    padding: 0 4px;
    margin-left: -4px;
}
.form-group--floating .form-select:focus ~ .form-label {
    background: #fff;
}
.form-group--floating .required { color: var(--color-accent); }

/* Placeholder default holatda yashirin (label bilan toʻqnashmasin) */
.form-group--floating .form-input::placeholder,
.form-group--floating .form-textarea::placeholder {
    color: transparent;
    transition: color 0.25s ease;
}
/* Fokus payti placeholder koʻrinadi — label allaqachon yuqoriga sirpadi */
.form-group--floating .form-input:focus::placeholder,
.form-group--floating .form-textarea:focus::placeholder {
    color: rgba(125, 100, 56, 0.4);
}

/* === SUBMIT TUGMASI === */
.contact-submit {
    width: 100%;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    padding: 18px 28px;
    position: relative;
    overflow: hidden;
    border-radius: 100px;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.contact-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-accent) 0%, #a8854a 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}
.contact-submit:hover::before { opacity: 1; }
.contact-submit > * { position: relative; z-index: 1; }
.contact-submit-icon {
    display: inline-flex;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-submit:hover .contact-submit-icon {
    transform: translateX(4px) rotate(-12deg);
}

/* Maxfiylik */
.contact-form-policy {
    font-size: 0.78rem;
    color: var(--color-text-light);
    margin: 16px 0 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.contact-form-policy i {
    color: var(--color-accent);
    font-size: 0.85rem;
}
.contact-form-policy a {
    color: var(--color-accent-dark, #a8854a);
    text-decoration: underline;
    text-underline-offset: 3px;
    margin: 0 4px;
}

/* === MOBIL === */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .contact-info-card { padding: 36px 28px; }
    .contact-form { padding: 36px 28px; }
}
@media (max-width: 600px) {
    .contact-info-card { padding: 28px 22px; }
    .contact-form { padding: 28px 22px; }
    .form-row { grid-template-columns: 1fr; gap: 14px; }
    .contact-info-title,
    .contact-form-title { font-size: 1.5rem; }
}

/* SOCIAL LINKS */
.social-links {
    display: flex;
    gap: 14px;
    margin-top: 24px;
}
.social-links a {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-dark);
    transition: all var(--transition);
    border: 1px solid var(--color-border);
}
.social-links a:hover {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
    transform: translateY(-3px);
}

/* === FOOTER — PREMIUM === */
.footer {
    position: relative;
    background: linear-gradient(180deg, #1a1614 0%, #0e0c0a 100%);
    color: rgba(255,255,255,0.7);
    padding: 64px 0 24px;
    overflow: hidden;
    isolation: isolate;
}

/* Yumshoq radial yorug'lik tepa-markazda */
.footer::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 560px;
    height: 160px;
    background: radial-gradient(ellipse at center, rgba(201,169,110,0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Yuqori gradient aksent chiziq */
.footer-accent-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(201,169,110,0.05) 20%,
        rgba(201,169,110,0.6) 50%,
        rgba(201,169,110,0.05) 80%,
        transparent 100%);
    z-index: 2;
}

/* Blueprint chizmali orqa fon */
.footer-blueprint {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.55;
    z-index: 0;
}
.footer-blueprint svg {
    width: 100%;
    height: 100%;
    display: block;
}

.footer > .container { position: relative; z-index: 2; }

.footer-top {
    display: grid;
    grid-template-columns: 1.9fr 1fr 1.3fr;
    gap: 48px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(201,169,110,0.1);
}

/* === BRAND === */
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.footer-brand:hover { transform: translateY(-2px); }
.footer-brand-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(201,169,110,0.08);
    border: 1px solid rgba(201,169,110,0.18);
    box-shadow: inset 0 0 16px rgba(201,169,110,0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.footer-brand:hover .footer-brand-icon {
    background: rgba(201,169,110,0.14);
    border-color: rgba(201,169,110,0.35);
    box-shadow: inset 0 0 16px rgba(201,169,110,0.08),
                0 0 24px rgba(201,169,110,0.18);
}
.footer-brand-icon svg { width: 30px; height: 30px; }
.footer-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.footer-brand-line-1 {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: #fff;
}
.footer-brand-line-2 {
    font-family: var(--font-sans);
    font-size: 0.64rem;
    font-weight: 500;
    letter-spacing: 0.32em;
    color: var(--color-accent);
    margin-top: 3px;
    text-transform: uppercase;
}
.footer-about-text {
    font-size: 0.88rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.58);
    max-width: 340px;
    margin-bottom: 20px;
}

/* === TITLE === */
.footer-title {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    position: relative;
    padding-bottom: 10px;
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
}

/* === LINKS — animatsion underline === */
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: rgba(255,255,255,0.66);
    display: inline-flex;
    align-items: center;
    gap: 0;
    position: relative;
    padding-left: 0;
    transition: color 0.3s ease, gap 0.3s ease, padding-left 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
}
.footer-links .link-arrow {
    display: inline-block;
    color: var(--color-accent);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.3s ease, transform 0.3s ease, margin-right 0.3s ease;
    margin-right: 0;
    font-size: 0.8rem;
}
.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 3px;
}
.footer-links a:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
    margin-right: 7px;
}

/* === CONTACT === */
.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
    font-size: 0.88rem;
}
.footer-contact a {
    color: rgba(255,255,255,0.78);
    transition: color 0.3s ease;
}
.footer-contact a:hover { color: var(--color-accent); }
.footer-contact-ic {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(201,169,110,0.08);
    border: 1px solid rgba(201,169,110,0.18);
    border-radius: 8px;
    color: var(--color-accent);
    font-size: 0.82rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.footer-contact li:hover .footer-contact-ic {
    background: var(--color-accent);
    color: #1a1614;
    transform: scale(1.08) rotate(-5deg);
    box-shadow: 0 6px 18px rgba(201,169,110,0.32);
}

/* === SOCIAL ICONS === */
.footer-socials { gap: 10px; }
.footer .social-links a,
.footer-socials a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(201,169,110,0.18);
    color: rgba(255,255,255,0.85);
    font-size: 0.92rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(6px);
}
.footer .social-links a::before,
.footer-socials a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-accent) 0%, #a8854a 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}
.footer .social-links a:hover,
.footer-socials a:hover {
    color: #1a1614;
    border-color: var(--color-accent);
    transform: translateY(-3px) rotate(-3deg);
    box-shadow: 0 10px 24px rgba(201,169,110,0.38),
                0 0 0 1px rgba(201,169,110,0.4);
}
.footer .social-links a:hover::before,
.footer-socials a:hover::before { opacity: 1; }

/* === FOOTER BOTTOM === */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    gap: 16px;
    flex-wrap: wrap;
}
.footer-copy strong {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    letter-spacing: 0.05em;
}
.footer-made {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.42);
    font-size: 0.78rem;
}
.footer-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 8px var(--color-accent);
    animation: footerDot 2s ease-in-out infinite;
}
@keyframes footerDot {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.3); }
}
.footer-heart {
    color: #e63946;
    display: inline-block;
    animation: footerHeart 1.4s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(230,57,70,0.5);
}
@keyframes footerHeart {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.25); }
}
.footer-admin-link a {
    color: rgba(255,255,255,0.5);
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: color 0.3s ease, border-color 0.3s ease;
}
.footer-admin-link a:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* === MOBIL === */
@media (max-width: 900px) {
    .footer { padding: 48px 0 22px; }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 28px;
    }
    .footer-about-text { max-width: 100%; }
    .footer-bottom {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 8px;
        padding-top: 16px;
    }
}

/* ==================================================
   BACK-TO-TOP — premium oltin doira progress bilan
   ================================================== */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1f1a16 0%, #14110e 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.85);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s 0.5s,
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.4s ease,
                box-shadow 0.4s ease;
    z-index: 99;
    text-decoration: none;
    box-shadow: 0 10px 30px -10px rgba(20, 15, 10, 0.45),
                0 0 0 1px rgba(201, 169, 110, 0.15);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s 0s,
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.4s ease,
                box-shadow 0.4s ease;
}

/* Aylanma progress chiziq — qancha pastga aylantirilgani */
.back-to-top::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(
        var(--color-accent) calc(var(--scroll-progress, 0) * 1%),
        transparent calc(var(--scroll-progress, 0) * 1%)
    );
    mask: radial-gradient(circle, transparent 56%, #000 58%);
    -webkit-mask: radial-gradient(circle, transparent 56%, #000 58%);
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

/* Ichki ikon */
.back-to-top i {
    font-size: 0.95rem;
    color: var(--color-accent);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
    position: relative;
    z-index: 2;
}

/* Hover holat */
.back-to-top:hover {
    background: linear-gradient(135deg, #2a221c 0%, #1c1714 100%);
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 18px 40px -10px rgba(20, 15, 10, 0.55),
                0 0 0 1px rgba(201, 169, 110, 0.35),
                0 0 24px rgba(201, 169, 110, 0.25);
}
.back-to-top:hover i {
    color: #f4d585;
    transform: translateY(-2px);
}
.back-to-top:hover::before {
    opacity: 1;
}

/* Mobilda kichikroq */
@media (max-width: 600px) {
    .back-to-top {
        bottom: 18px;
        right: 18px;
        width: 46px;
        height: 46px;
    }
}

/* PAGE HEADER */
.page-header {
    padding: 80px 0 60px;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
}
.breadcrumb {
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
}
.breadcrumb a:hover { color: var(--color-accent-dark); }
.breadcrumb span { color: var(--color-accent-dark); }

/* SINGLE PROJECT/ARTICLE */
.single-hero {
    padding: 60px 0 40px;
}
.single-hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 20px;
}
.single-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    color: var(--color-text-light);
    font-size: 0.95rem;
}
.single-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}
.single-meta i { color: var(--color-accent-dark); }
.single-image {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 60px;
    aspect-ratio: 16/9;
}
.single-image img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.single-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
}
.single-content p { margin-bottom: 24px; }
.single-content h2 {
    font-size: 2rem;
    margin: 40px 0 20px;
}
.single-content h3 {
    font-size: 1.5rem;
    margin: 30px 0 16px;
}
.single-content img {
    margin: 30px 0;
    border-radius: 8px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 40px;
}
.gallery-grid a,
.single-image a {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    cursor: zoom-in;
}
.gallery-grid img {
    border-radius: 6px;
    aspect-ratio: 4/3;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}
.gallery-grid a:hover img,
.single-image a:hover img { transform: scale(1.05); }

/* ==================================================
   STUDIO JARAYONI — SKROMNIY TIMELINE (boxsiz)
   ================================================== */
.process-section {
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
    position: relative;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    margin-top: 70px;
    padding-top: 60px;
}

/* Yuqori arxitektura chiziq — barcha bosqichlardan o'tadi */
.process-timeline::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(to right,
        transparent,
        rgba(201, 169, 110, 0.3) 8%,
        rgba(201, 169, 110, 0.55) 50%,
        rgba(201, 169, 110, 0.3) 92%,
        transparent);
    z-index: 0;
}

/* Pastdagi arxitektura chiziq — har bosqich tagidan ham o'tadi */
.process-timeline::after {
    content: '';
    position: absolute;
    bottom: 14px;
    left: 4%;
    right: 4%;
    height: 1px;
    background: linear-gradient(to right,
        transparent,
        rgba(201, 169, 110, 0.12),
        transparent);
    z-index: 0;
}

.process-step {
    position: relative;
    text-align: center;
    padding: 0 22px 36px;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

/* Yuqori chiziqdagi dumaloq nuqta — bosqich markeri */
.process-step::before {
    content: '';
    position: absolute;
    top: -38px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fbf8f3;
    border: 2px solid var(--color-accent);
    box-shadow: 0 0 0 6px rgba(251, 248, 243, 1);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.process-step:hover {
    transform: translateY(-4px);
}
.process-step:hover::before {
    background: var(--color-accent);
    box-shadow: 0 0 0 6px rgba(251, 248, 243, 1),
                0 0 16px rgba(201, 169, 110, 0.5);
    transform: translateX(-50%) scale(1.15);
}

/* Katta serif raqam — minimal, faqat kontur ko'rinishida */
.process-num {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 400;
    color: rgba(125, 100, 56, 0.32);
    line-height: 1;
    margin: 0 0 6px;
    letter-spacing: -0.04em;
    transition: color 0.5s ease;
}
.process-step:hover .process-num {
    color: var(--color-accent);
}

/* Ikonka — minimal, fonsiz, oltin tusda */
.process-icon {
    width: auto;
    height: auto;
    margin: 0 auto 18px;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 1.15rem;
    opacity: 0.7;
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.process-step:hover .process-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Sarlavha */
.process-title {
    font-family: var(--font-serif);
    font-size: 1.18rem;
    font-weight: 500;
    margin: 0 0 10px;
    color: #1a1614;
    letter-spacing: 0.01em;
    transition: color 0.4s ease;
}

/* Matn */
.process-desc {
    color: var(--color-text-light);
    font-size: 0.88rem;
    line-height: 1.65;
    margin: 0;
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
}

/* Vertikal ajratuvchi chiziqlar — bosqichlar orasida (minimal) */
.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50px;
    right: 0;
    width: 1px;
    height: 60%;
    background: linear-gradient(to bottom,
        transparent,
        rgba(125, 100, 56, 0.1) 30%,
        rgba(125, 100, 56, 0.1) 70%,
        transparent);
}

@media (max-width: 992px) {
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px 0;
    }
    .process-timeline::before {
        display: none;
    }
    .process-step::before {
        top: -28px;
    }
    .process-step:not(:nth-child(2n))::after { display: block; }
    .process-step:nth-child(2n)::after { display: none; }
}
@media (max-width: 600px) {
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 36px 0;
        padding-top: 0;
        margin-top: 40px;
    }
    .process-timeline::before,
    .process-timeline::after {
        display: none;
    }
    .process-step {
        padding: 0 0 28px;
        border-bottom: 1px solid rgba(125, 100, 56, 0.1);
    }
    .process-step:last-child {
        border-bottom: none;
    }
    .process-step::before,
    .process-step::after {
        display: none;
    }
    .process-num {
        font-size: 2.4rem;
    }
}

/* === SCROLL SVG — /services sahifa orqa fonida uy chiziladi === */
.scroll-svg-wrap {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(80vw, 900px);
    height: auto;
    color: var(--color-dark);
    opacity: 0.07;
    pointer-events: none;
    z-index: 0;
    user-select: none;
}
.scroll-svg {
    width: 100%;
    height: auto;
    display: block;
}
.scroll-path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
/* Kontent SVG'dan ustun bo'lishi uchun */
.services-list-section { position: relative; z-index: 1; }
.page-header { position: relative; z-index: 1; }

@media (max-width: 768px) {
    .scroll-svg-wrap { display: none; }
}
body.dark-mode .scroll-svg-wrap { opacity: 0.12; color: var(--color-accent); }

/* === /SERVICES SAHIFASI — PREMIUM TARTIB === */
.services-list-section { padding: 80px 0 100px; }

.service-item {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}
.service-item + .service-item {
    border-top: 1px solid var(--color-border);
}

/* Katta dekorativ raqam (orqada watermark) */
.service-bg-num {
    position: absolute;
    top: 30%;
    right: -30px;
    font-family: var(--font-serif);
    font-size: clamp(10rem, 22vw, 22rem);
    font-weight: 600;
    line-height: 0.85;
    letter-spacing: -8px;
    color: var(--color-accent);
    opacity: 0.06;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}
.service-item--reversed .service-bg-num {
    right: auto;
    left: -30px;
}

.service-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 70px;
    align-items: center;
}
.service-item--reversed .service-grid {
    grid-template-columns: 1fr 1.05fr;
}
.service-item--reversed .service-visual { order: 2; }
.service-item--reversed .service-content { order: 1; }

/* Rasm taraf */
.service-image-wrap {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 50px -18px rgba(0,0,0,0.18);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.8s ease;
}
.service-image-wrap:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 60px -16px rgba(0,0,0,0.28);
}
.service-image-wrap:hover img {
    transform: scale(1.08);
    filter: brightness(1.04);
}

/* Rasm ustida kichik raqam-badge */
.service-num-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--color-white);
    color: var(--color-accent-dark);
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 30px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    z-index: 2;
}

/* Matn taraf */
.service-icon-badge {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: 22px;
    box-shadow: 0 12px 28px -8px rgba(201, 169, 110, 0.5);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.service-item:hover .service-icon-badge {
    transform: rotate(-6deg) scale(1.05);
}

.service-tag {
    display: inline-block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-accent-dark);
    margin-bottom: 12px;
    font-weight: 600;
}
.service-heading {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: 18px;
    line-height: 1.1;
    letter-spacing: -1px;
}
.service-lead {
    font-size: 1.15rem;
    color: var(--color-text);
    margin-bottom: 18px;
    line-height: 1.55;
    font-weight: 500;
}
.service-text {
    color: var(--color-text-light);
    line-height: 1.75;
    margin-bottom: 30px;
    font-size: 0.98rem;
}
.service-price {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    padding: 12px 22px;
    background: var(--color-bg-alt);
    border-left: 3px solid var(--color-accent);
    border-radius: 4px;
    margin-bottom: 30px;
}
.service-price-label {
    font-size: 0.85rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.service-price-value {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-accent-dark);
}
.service-cta { margin-top: 6px; }

/* Scroll reveal — har xizmat o'z tomonidan kiradi */
.service-visual,
.service-content {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-visual { transform: translateX(-50px); }
.service-content { transform: translateX(50px); transition-delay: 0.15s; }
.service-item--reversed .service-visual { transform: translateX(50px); }
.service-item--reversed .service-content { transform: translateX(-50px); }

.service-item.is-revealed .service-visual,
.service-item.is-revealed .service-content {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 992px) {
    .service-grid,
    .service-item--reversed .service-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .service-item--reversed .service-visual { order: 1; }
    .service-item--reversed .service-content { order: 2; }
    .service-visual,
    .service-content,
    .service-item--reversed .service-visual,
    .service-item--reversed .service-content {
        transform: translateY(40px);
    }
    .service-item.is-revealed .service-visual,
    .service-item.is-revealed .service-content {
        transform: translateY(0);
    }
    .service-bg-num { font-size: 12rem; opacity: 0.04; }
}
@media (max-width: 600px) {
    .service-item { padding: 50px 0; }
    .service-bg-num { font-size: 8rem; }
}

/* === XIZMAT KARTALARI — PREMIUM REVEAL === */
.service-card--reveal {
    opacity: 0;
    transform: translateY(50px) scale(0.96);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0ms);
}
.service-card--reveal.is-revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Yumshoq raqam — yuqori o'ng burchakda */
.service-card { position: relative; }
.service-num {
    position: absolute;
    top: 18px;
    right: 22px;
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--color-accent);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--reveal-delay, 0ms) + 250ms);
    pointer-events: none;
    letter-spacing: -1px;
}
.service-card--reveal.is-revealed .service-num {
    opacity: 0.45;
    transform: translateY(0);
}
.service-card:hover .service-num {
    opacity: 1;
    color: var(--color-accent-dark);
}

/* Ikonkaning kichik flip-reveal */
.service-card--reveal .service-icon {
    transform: scale(0) rotate(-180deg);
    transition: transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 1s cubic-bezier(0.16, 1, 0.3, 1),
                color 1s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--reveal-delay, 0ms) + 200ms);
}
.service-card--reveal.is-revealed .service-icon {
    transform: scale(1) rotate(0);
}

/* Hover paytida raqam ranglandi animatsiyasini buzmaslik uchun */
.service-card:hover .service-icon { transition-delay: 0s; }

/* === LOYIHA KARTALARI — PARDA REVEAL + KEN BURNS === */
.project-card--reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--card-delay, 0ms);
}
.project-card--reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Pardali rasm reveal — ranglangan parda surilib rasmni ochib beradi */
.project-card--reveal .project-image {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.project-card--reveal .project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-accent-dark) 0%, var(--color-dark) 100%);
    transform: translateX(0);
    transition: transform 1.2s cubic-bezier(0.83, 0, 0.17, 1);
    transition-delay: calc(var(--card-delay, 0ms) + 150ms);
    z-index: 3;
    pointer-events: none;
}
.project-card--reveal.is-revealed .project-image::after {
    transform: translateX(101%);
}

/* Ken Burns reverse — rasm 1.2 dan 1.0 ga kichrayadi reveal paytida */
.project-card--reveal .project-image img {
    transform: scale(1.18);
    filter: brightness(0.92);
    transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1),
                filter 1s ease;
    transition-delay: calc(var(--card-delay, 0ms) + 200ms);
}
.project-card--reveal.is-revealed .project-image img {
    transform: scale(1);
    filter: brightness(1);
}

/* Hover paytida — rasm chuqurroq zoom + overlay kuchayadi */
.project-card:hover .project-image img {
    transform: scale(1.08);
    filter: brightness(1.05);
    transition-duration: 0.8s;
    transition-delay: 0s;
}

/* === ABOUT KOLLAJ — KREATIV ANIMATSIYA SISTEMASI === */
/* 3D perspektiv konteyner */
.about-collage {
    perspective: 1400px;
}

/* Har rasm individual translate/rotate/scale orqali boshqariladi (komponentlar mustaqil) */
.about-collage .collage-img {
    opacity: 0;
    translate: var(--enter-x, 0) var(--enter-y, 0);
    rotate: var(--enter-rz, 0deg);
    scale: var(--enter-scale, 0.85);
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                translate 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                rotate 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                scale 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.5s ease;
    will-change: translate, rotate, scale, transform, filter;
}

/* Kirib kelish boshlang'ich nuqtalari — har biri boshqa tomondan */
.about-collage .collage-img-1 { --enter-x: -60px; --enter-y: -40px; --enter-rz: -15deg; }
.about-collage .collage-img-2 { --enter-x: 0px;   --enter-y: 60px;  --enter-rz: 8deg;   transition-delay: 0.15s; }
.about-collage .collage-img-3 { --enter-x: 60px;  --enter-y: 40px;  --enter-rz: 8deg;   transition-delay: 0.3s; }

/* Reveal — joyiga keladi */
.about-collage.is-revealed .collage-img {
    opacity: 1;
    translate: 0 0;
    scale: 1;
}
.about-collage.is-revealed .collage-img-1 { rotate: -6deg; }
.about-collage.is-revealed .collage-img-2 { rotate:  2deg; }
.about-collage.is-revealed .collage-img-3 { rotate: -3deg; }

/* Reveal tugagandan keyin — uzluksiz suzuvchi harakat + Ken Burns */
.about-collage.is-revealed .collage-img-1 {
    animation: collageFloat1 7s ease-in-out 1.4s infinite,
               collageKB1 16s ease-in-out 1.4s infinite;
}
.about-collage.is-revealed .collage-img-2 {
    animation: collageFloat2 9s ease-in-out 1.6s infinite,
               collageKB2 14s ease-in-out 1.6s infinite;
}
.about-collage.is-revealed .collage-img-3 {
    animation: collageFloat3 8s ease-in-out 1.8s infinite,
               collageKB3 18s ease-in-out 1.8s infinite;
}

/* Suzuvchi harakat — har biri turli amplituda va fazada */
@keyframes collageFloat1 {
    0%, 100% { translate: 0 0; }
    50%      { translate: -4px -12px; }
}
@keyframes collageFloat2 {
    0%, 100% { translate: 0 0; }
    50%      { translate: 6px -16px; }
}
@keyframes collageFloat3 {
    0%, 100% { translate: 0 0; }
    50%      { translate: -5px -10px; }
}

/* Ken Burns — yumshoq zoom har birida */
@keyframes collageKB1 { 0%, 100% { scale: 1; } 50% { scale: 1.05; } }
@keyframes collageKB2 { 0%, 100% { scale: 1; } 50% { scale: 1.06; } }
@keyframes collageKB3 { 0%, 100% { scale: 1; } 50% { scale: 1.04; } }

/* FOCUS MODE — bitta rasm hover bo'lganda boshqalari sal so'nadi */
.about-collage:hover .collage-img {
    filter: saturate(0.82) brightness(0.92);
    opacity: 0.72;
}
.about-collage .collage-img:hover {
    filter: saturate(1.12) brightness(1.06) contrast(1.04) !important;
    opacity: 1 !important;
    box-shadow: 0 30px 80px rgba(125, 100, 56, 0.32),
                0 0 0 1px rgba(201, 169, 110, 0.45),
                0 0 60px -10px rgba(201, 169, 110, 0.5);
    z-index: 20 !important;
    animation-play-state: paused;
    cursor: pointer;
}

/* Sichqoncha 3D tilt — JS --rx/--ry o'rnatadi, transform anim yumshoq bo'lsin */
.about-collage .collage-img.is-tilting {
    transition: transform 0.12s ease-out,
                box-shadow 0.4s ease,
                filter 0.4s ease;
    animation-play-state: paused;
}

/* Mobil — animatsiyani sodda qil (battareya va performans uchun) */
@media (max-width: 768px) {
    .about-collage.is-revealed .collage-img-1,
    .about-collage.is-revealed .collage-img-2,
    .about-collage.is-revealed .collage-img-3 {
        animation: none;
    }
}

/* Reduced motion — animatsiyani o'chirib qo'y */
@media (prefers-reduced-motion: reduce) {
    .about-collage.is-revealed .collage-img-1,
    .about-collage.is-revealed .collage-img-2,
    .about-collage.is-revealed .collage-img-3 {
        animation: none;
    }
}

/* === PREMIUM ANIMATSIYALAR === */

/* Magnit tugmalar — sichqoncha bilan yengil harakat */
@media (min-width: 1025px) {
    .btn-lg, .btn-primary, .magnetic {
        transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                    background 0.3s ease;
        will-change: transform;
    }
    .btn-primary.btn-glow,
    .btn-outline.btn-glow {
        box-shadow: 0 12px 30px -8px rgba(201, 169, 110, 0.5);
    }
}

/* Hero slide parallax — JS scale/translate qiladi, CSS willChange optimallashtirish */
.hero-slide {
    will-change: transform;
    transition: opacity 1.2s ease;
}

/* Matn reveal animatsiyasi (data-reveal atributi orqali) */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}
[data-reveal][data-reveal-delay="100"] { transition-delay: 0.1s; }
[data-reveal][data-reveal-delay="200"] { transition-delay: 0.2s; }
[data-reveal][data-reveal-delay="300"] { transition-delay: 0.3s; }
[data-reveal][data-reveal-delay="400"] { transition-delay: 0.4s; }

/* PDF tugma uslubi (loyiha sahifasida) */
.pdf-btn {
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.pdf-btn i { color: #d4524d; }

/* === LOYIHALAR — TOOLBAR + XARITA KO'RINISHI === */
.projects-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 36px;
}
.view-toggle {
    display: inline-flex;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 4px;
}
.view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 0;
    background: transparent;
    color: var(--color-text-light);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.view-btn:hover { color: var(--color-text); }
.view-btn.active {
    background: var(--color-white);
    color: var(--color-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.projects-map-wrap { position: relative; }
#projectsMap {
    width: 100%;
    height: 560px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.10);
}
.map-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--color-text-light);
    background: var(--color-bg-alt);
    border-radius: 12px;
}

/* Maxsus pin */
.project-pin { display: block; }
.pin-dot {
    display: block;
    width: 22px;
    height: 22px;
    background: var(--color-accent);
    border: 3px solid var(--color-white);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.2s ease;
}
.project-pin:hover .pin-dot { transform: scale(1.15); }

/* Xarita popup */
.leaflet-popup-content-wrapper {
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
}
.leaflet-popup-content { margin: 0; min-width: 220px; }
.map-popup img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}
.map-popup-body { padding: 12px 14px 14px; }
.map-popup-cat {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent-dark);
    margin-bottom: 6px;
}
.map-popup-body h4 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    color: var(--color-dark);
}
.map-popup-link {
    font-size: 0.85rem;
    color: var(--color-accent-dark);
    font-weight: 600;
}
.map-popup-link:hover { color: var(--color-accent); }

@media (max-width: 768px) {
    #projectsMap { height: 420px; }
    .projects-toolbar { gap: 12px; }
    .view-btn span { display: none; }
    .view-btn { padding: 8px 12px; }
}

/* TEAM GRID */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}
.team-card {
    text-align: center;
}
.team-image {
    aspect-ratio: 3/4;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--color-bg-alt);
    position: relative;
}
.team-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.team-card:hover .team-image img { transform: scale(1.05); }
.team-name {
    font-size: 1.25rem;
    margin-bottom: 4px;
}
.team-position {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 12px;
}
.team-social {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.team-social a {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all var(--transition);
}
.team-social a:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

/* NEWS GRID */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.news-card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    transition: all var(--transition);
    border: 1px solid var(--color-border);
}
.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}
.news-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--color-bg);
}
.news-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.news-card:hover .news-image img { transform: scale(1.08); }
.news-content { padding: 30px; }
.news-date {
    font-size: 0.8rem;
    color: var(--color-accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}
.news-title {
    font-size: 1.3rem;
    margin-bottom: 14px;
    line-height: 1.3;
}
.news-card:hover .news-title { color: var(--color-accent-dark); }
.news-excerpt {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 60px;
}
.pagination a,
.pagination span {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}
.pagination a:hover,
.pagination .active {
    background: var(--color-dark);
    color: var(--color-white);
    border-color: var(--color-dark);
}

/* ALERTS */
.alert {
    padding: 16px 20px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-size: 0.95rem;
}
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.alert-error { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }
.alert-info { background: #e3f2fd; color: #1565c0; border: 1px solid #bbdefb; }

/* EMPTY STATE */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--color-text-light);
}
.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

/* ANIMATIONS */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* UTILITIES */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
/*///////////////////////////////////////////////////////////////////////////////////////////////////////*/
.floating-svg {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 200px;
    z-index: 999;
    pointer-events: none;
}

.floating-svg svg {
    width: 100%;
    height: 100%;
}

@media (max-width: 1024px) {
    .floating-svg {
        display: none;
    }
}


/*//////////////////////////////////////////////////////////////////////*/
/* Maxsus kursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
}

.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #d4a76a;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1.5px solid #d4a76a;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s, transform 0.15s ease-out;
}

/* Hover holatida kattalashadi */
.cursor-ring.hover {
    width: 60px;
    height: 60px;
    border-color: #ffffff;
    background: rgba(212, 167, 106, 0.1);
}

.cursor-dot.hover {
    width: 12px;
    height: 12px;
    background: #ffffff;
}

/* Sichqoncha bosilganda */
.cursor-ring.click {
    width: 30px;
    height: 30px;
}

/* Mobil va planshetda yashirin */
@media (max-width: 1024px) {
    .custom-cursor,
    .cursor-dot,
    .cursor-ring {
        display: none;
    }
}

/* Standart kursorni yashirish (faqat hover qilinadigan elementlarda emas) */
@media (min-width: 1025px) {
    body {
        cursor: none;
    }
    a, button, input, textarea, select, .menu-toggle {
        cursor: none;
    }
}
/*/////////////////////////////////////////////////////////////////////////////////////////*/
/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    background: #1c1917;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-bottom: 10px;
    font-family: var(--font-serif, 'Playfair Display', serif);
    letter-spacing: 0.04em;
}
.preloader-logo--sub {
    margin-bottom: 40px;
    gap: 3px;
}
.preloader-logo--sub span {
    font-size: clamp(1.6rem, 4vw, 3.4rem) !important;
    -webkit-text-stroke-width: 1.2px !important;
}

.preloader-logo span {
    display: inline-block;
    font-size: clamp(2.2rem, 5.5vw, 4.4rem);
    font-weight: 500;
    color: transparent;
    -webkit-text-stroke: 1.5px #d4a76a;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    animation: letterUp 0.8s ease forwards;
    animation-delay: calc(0.06s * var(--i, 0) + 0.1s);
}

.preloader-logo span::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    color: #d4a76a;
    overflow: hidden;
    width: 0;
    animation: letterFill 0.6s ease forwards;
    animation-delay: calc(0.05s * var(--i, 0) + 1s);
}

@keyframes letterUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes letterFill {
    to { width: 100%; }
}

.preloader-line {
    width: 300px;
    max-width: 80vw;
    height: 1px;
    background: rgba(212, 167, 106, 0.2);
    margin: 0 auto 16px;
    overflow: hidden;
    position: relative;
}

.preloader-line-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: #d4a76a;
    transition: width 0.3s ease;
}

.preloader-percent {
    color: rgba(212, 167, 106, 0.7);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    font-weight: 500;
}

/* Body skroll preloader vaqtida o'chiriladi */
body.preloading {
    overflow: hidden;
}
/*/////////////////////////////////////////////////////////*/
/* Light mode (default) */
:root {
    --color-bg: #ffffff;
    --color-bg-alt: #f5f1ec;
    --color-text: #1c1917;
    --color-text-light: #6b7280;
    --color-dark: #1c1917;
    --color-white: #ffffff;
    --color-accent: #d4a76a;
    --color-accent-dark: #b8895a;
    --color-border: #e5e7eb;
}

/* Dark mode */
body.dark-mode {
    --color-bg: #1c1917;
    --color-bg-alt: #292524;
    --color-text: #f5f1ec;
    --color-text-light: #a8a29e;
    --color-dark: #f5f1ec;
    --color-white: #1c1917;
    --color-border: #44403c;
}

body {
    background: var(--color-bg);
    color: var(--color-text);
    transition: background 0.4s ease, color 0.4s ease;
}
/* Theme toggle */
.theme-toggle {
    background: none;
    border: 1.5px solid var(--color-border);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: border-color 0.3s, transform 0.3s;
    color: var(--color-text);
}

.theme-toggle:hover {
    border-color: var(--color-accent);
    transform: rotate(15deg);
}

.theme-toggle i {
    position: absolute;
    transition: opacity 0.3s, transform 0.3s;
    font-size: 1rem;
}

.theme-toggle .fa-sun { opacity: 0; transform: rotate(-90deg); }
.theme-toggle .fa-moon { opacity: 1; transform: rotate(0); }

body.dark-mode .theme-toggle .fa-sun { opacity: 1; transform: rotate(0); color: var(--color-accent); }
body.dark-mode .theme-toggle .fa-moon { opacity: 0; transform: rotate(90deg); }
/* === DARK MODE — barcha matnlarni to'g'rilash === */

/* Body va asosiy konteynerlar */
body.dark-mode {
    color: #f5f1ec;
}

/* Sarlavhalar */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #f5f1ec;
}

/* Matn */
body.dark-mode p,
body.dark-mode span,
body.dark-mode li,
body.dark-mode label,
body.dark-mode a {
    color: #d6d3d1;
}

/* Sarlavha katta matnlar — qattiq qora bo'lsa, oqqa */
body.dark-mode .section-title {
    color: #f5f1ec !important;
}

body.dark-mode .section-description,
body.dark-mode .hero-description {
    color: rgba(255, 255, 255, 0.75);
}

/* Kartochkalar */
body.dark-mode .service-card,
body.dark-mode .review-card,
body.dark-mode .team-card,
body.dark-mode .news-card,
body.dark-mode .feature-item,
body.dark-mode .contact-info-card,
body.dark-mode .contact-form {
    background: #292524;
    color: #f5f1ec;
    border-color: #44403c;
}

body.dark-mode .service-card h3,
body.dark-mode .news-title,
body.dark-mode .team-name,
body.dark-mode .feature-item h4 {
    color: #f5f1ec;
}

body.dark-mode .service-card p,
body.dark-mode .news-excerpt,
body.dark-mode .team-position,
body.dark-mode .feature-item p {
    color: #d6d3d1;
}

/* Form input va textarea */
body.dark-mode .form-input,
body.dark-mode .form-select,
body.dark-mode .form-textarea {
    background: #292524;
    color: #f5f1ec;
    border-color: #44403c;
}

body.dark-mode .form-label {
    color: #d6d3d1;
}

/* Header */
body.dark-mode .header {
    background: rgba(28, 25, 23, 0.95);
}

body.dark-mode .nav-link {
    color: #d6d3d1;
}

body.dark-mode .nav-link:hover,
body.dark-mode .nav-link.active {
    color: #d4a76a;
}

body.dark-mode .logo-text {
    color: #f5f1ec;
}

/* Footer — har doim qora bo'lib qolsin */
body.dark-mode .footer {
    background: #0c0a09;
}

/* Section background */
body.dark-mode section[style*="--color-bg-alt"],
body.dark-mode .section[style*="background"] {
    background: #292524 !important;
}

/* Filter va tugmalar */
body.dark-mode .filter-btn {
    color: #d6d3d1;
    border-color: #44403c;
}

body.dark-mode .filter-btn.active,
body.dark-mode .filter-btn:hover {
    background: #d4a76a;
    color: #1c1917;
    border-color: #d4a76a;
}

/* Breadcrumb */
body.dark-mode .breadcrumb {
    color: #a8a29e;
}

body.dark-mode .breadcrumb a {
    color: #d4a76a;
}

/* Empty state */
body.dark-mode .empty-state {
    color: #a8a29e;
}

/* News date */
body.dark-mode .news-date {
    color: #d4a76a;
}

/* Page header */
body.dark-mode .page-header {
    background: #1c1917;
}
/* Light mode — tugma bosilsa */
body.light-mode {
    background: #ffffff;
    color: #1c1917;
}

body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6,
body.light-mode .section-title,
body.light-mode .hero-title {
    color: #1c1917 !important;
}

body.light-mode .hero-description,
body.light-mode .section-description {
    color: #44403c !important;
}

body.light-mode .service-card,
body.light-mode .review-card,
body.light-mode .team-card,
body.light-mode .news-card,
body.light-mode .feature-item {
    background: #f5f1ec;
    color: #1c1917;
}

body.light-mode .header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

body.light-mode .nav-link,
body.light-mode .logo-text {
    color: #1c1917;
}

body.light-mode .form-input,
body.light-mode .form-select,
body.light-mode .form-textarea {
    background: #f5f1ec;
    color: #1c1917;
    border-color: #e7e5e4;
}

body.light-mode .page-header,
body.light-mode section[style*="--color-bg-alt"] {
    background: #f5f1ec !important;
}
/*/////////////////////////////////xarita///////////////////////////////*/
/* Interaktiv xarita */
.map-container {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    position: relative;
}

#contactMap {
    width: 100%;
    height: 100%;
}

/* Xarita ustidagi maxsus marker uchun */
.custom-marker {
    background: #d4a76a;
    width: 24px;
    height: 24px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    animation: markerPulse 2s ease-in-out infinite;
}

@keyframes markerPulse {
    0%, 100% { transform: rotate(-45deg) scale(1); }
    50% { transform: rotate(-45deg) scale(1.15); }
}

/* Leaflet'ning sukut bo'yicha popup'ini sozlash */
.leaflet-popup-content-wrapper {
    border-radius: 6px;
    background: #1c1917;
    color: #f5f1ec;
}

.leaflet-popup-content {
    margin: 14px 18px;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 0.9rem;
    line-height: 1.5;
}

.leaflet-popup-tip {
    background: #1c1917;
}

.leaflet-popup-content strong {
    color: #d4a76a;
    display: block;
    margin-bottom: 4px;
}

/* Light mode uchun popup */
body.light-mode .leaflet-popup-content-wrapper,
body.light-mode .leaflet-popup-tip {
    background: #ffffff;
    color: #1c1917;
}
/*/////////////////////////////////////////////////////////////////////////////////////////////*/
/* Sharhlar karusel */
.reviews-carousel {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 70px;
}

.reviews-track-wrapper {
    overflow: hidden;
    position: relative;
}

.reviews-track {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.7, 0, 0.3, 1);
}

.review-slide {
    flex: 0 0 100%;   /* har bir slayd to'liq kenglik */
    box-sizing: border-box;
    padding: 0 12px;
}

.reviews-carousel .review-card {
    text-align: left;
    padding: 36px 30px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.reviews-carousel .review-stars {
    margin-bottom: 18px;
    color: #d4a76a;
    font-size: 1rem;
    display: flex;
    gap: 4px;
}

.reviews-carousel .review-text {
    font-size: 1rem;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.9);
    flex: 1;
}

.reviews-carousel .review-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.reviews-carousel .review-author-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #d4a76a;
    color: #1c1917;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    overflow: hidden;
    flex-shrink: 0;
}

.reviews-carousel .review-author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviews-carousel .review-author-info h5 {
    font-size: 0.95rem;
    margin: 0;
    color: #f5f1ec;
}

.reviews-carousel .review-author-info p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Strelka tugmalar */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1.5px solid rgba(212, 167, 106, 0.3);
    background: rgba(28, 25, 23, 0.8);
    color: #d4a76a;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.carousel-btn:hover {
    background: #d4a76a;
    color: #1c1917;
    border-color: #d4a76a;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev { left: 0; }
.carousel-next { right: 0; }

/* Nuqtalar */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(212, 167, 106, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: #d4a76a;
    width: 30px;
    border-radius: 5px;
}

/* Mobilda — bitta karta */
@media (max-width: 768px) {
    .reviews-carousel {
        padding: 0 40px;
    }
    .review-slide {
        flex: 0 0 100%;
    }
    .carousel-btn {
        width: 38px;
        height: 38px;
    }
}
/* (Eskirgan dublikat qoidalar olib tashlandi — endi yagona .reviews-track / .review-slide yuqorida 2024-qator atrofida) */
/*////////////////////////////////////////////rasm,oldin hozirgi ////////////////////////////////////////*/
/* Before/After Slider */
.before-after-slider {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 60px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 12px;
    user-select: none;
    cursor: ew-resize;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.ba-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.ba-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.ba-image-before {
    clip-path: inset(0 50% 0 0);
}

.ba-label {
    position: absolute;
    top: 20px;
    padding: 8px 18px;
    background: rgba(28, 25, 23, 0.8);
    color: #d4a76a;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    border-radius: 4px;
}

.ba-label-before { left: 20px; }
.ba-label-after { right: 20px; }

.ba-slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: #ffffff;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
}

.ba-slider-line {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, #ffffff 20%, #ffffff 80%, transparent);
}

.ba-slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ffffff;
    color: #1c1917;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    pointer-events: none;
}

.ba-slider-button i {
    font-size: 0.85rem;
}

.before-after-slider:hover .ba-slider-button {
    transform: translate(-50%, -50%) scale(1.1);
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .before-after-slider {
        aspect-ratio: 4 / 3;
    }
    .ba-slider-button {
        width: 44px;
        height: 44px;
    }
    .ba-label {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
}
/*////////////////////////////////////////3d////////////////////////////////////////////*/
/* 3D Hero canvas */
.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 3;
}
/*////////////////////////////////////////////////////////////////////////////////////////*/
/* Virtual 360° tur */
.panorama-section {
    margin: 80px auto;
    max-width: 1200px;
}

.panorama-header {
    text-align: center;
    margin-bottom: 30px;
}

.panorama-header h2 {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 12px;
}

.panorama-hint {
    /*color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;*/
      user-select: none;
}

.panorama-hint i {
    color: #d4a76a;
    margin-right: 8px;
}

.panorama-viewer {
    width: 100% !important;
    height: 600px !important;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    cursor: grab;
    position: relative;
}

.panorama-viewer:active {
    cursor: grabbing;
}

/* Pannellum ichki konteynerlari */
.panorama-viewer .pnlm-container {
    width: 100% !important;
    height: 100% !important;
    background: #000 !important;
}

@media (max-width: 768px) {
    .panorama-viewer {
        height: 400px !important;
    }
}
/*///////////////////////////////////////////////////////////////////////////*/
/* Hero Slayder */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    /* Avvalgi background-image va background-attachment qoldirilmasligi kerak — yangi slider almashtiradi */
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

/* Slayd konteyner — opacity ni boshqaradi, scale ichki div da */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 2.2s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 0;
    overflow: hidden;
}
.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Ichki bg — sekin Ken Burns zoom uchun ajratilgan */
.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.0);
    transform-origin: center center;
    will-change: transform;
}
/* Active slayd ichidagi rasm sekin kattalashadi — kinematografik Ken Burns */
.hero-slide.active .hero-slide-bg {
    animation: heroKenBurns 22s linear forwards;
}
@keyframes heroKenBurns {
    from { transform: scale(1.0) translate(0, 0); }
    to   { transform: scale(1.12) translate(-1%, -0.5%); }
}

/* Yaxshilangan gradient qoplama — matn qatlami uchun toza, surat uchun ozod */
.hero-slider::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 78% 22%, transparent 0%, rgba(28, 25, 23, 0.18) 75%),
        linear-gradient(112deg,
            rgba(28, 25, 23, 0.72) 0%,
            rgba(28, 25, 23, 0.52) 30%,
            rgba(28, 25, 23, 0.32) 60%,
            rgba(28, 25, 23, 0.42) 100%);
    z-index: 2;
    pointer-events: none;
}

/* ==================================================
   HERO SCROLL INDIKATOR — skromniy "pastga" ko'rsatkichi
   ================================================== */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    opacity: 0;
    animation: heroScrollIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 2.2s forwards;
    transition: color 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-scroll:hover {
    color: rgba(255, 255, 255, 0.95);
}
.hero-scroll-mouse {
    width: 22px;
    height: 36px;
    border: 1.5px solid currentColor;
    border-radius: 12px;
    position: relative;
    display: block;
}
.hero-scroll-wheel {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 2.5px;
    height: 6px;
    background: currentColor;
    border-radius: 2px;
    transform: translateX(-50%);
    animation: heroScrollWheel 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes heroScrollWheel {
    0%   { transform: translateX(-50%) translateY(0);    opacity: 1; }
    60%  { transform: translateX(-50%) translateY(12px); opacity: 0; }
    100% { transform: translateX(-50%) translateY(12px); opacity: 0; }
}
.hero-scroll-text {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}
@keyframes heroScrollIn {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Mobilda kichikroq va ozroq joy egallashi */
@media (max-width: 768px) {
    .hero-scroll {
        bottom: 20px;
        gap: 6px;
    }
    .hero-scroll-mouse { width: 18px; height: 30px; }
    .hero-scroll-text { font-size: 0.6rem; }
}

/* Reduced motion — animatsiyalarni pasaytirish */
@media (prefers-reduced-motion: reduce) {
    .hero-slide.active .hero-slide-bg { animation: none; }
    .hero-scroll-wheel { animation: none; }
}

/* Kontentni slayd ustiga chiqarish */
.hero .container {
    position: relative;
    z-index: 10;
}

.hero-canvas {
    z-index: 5 !important;
}

/* Slayd indikatorlari (Çağlayan stilida) */
.hero-indicators {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    z-index: 20;
}

.hero-indicator {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    cursor: pointer;
    padding: 12px 0;
    position: relative;
    transition: color 0.3s ease;
    font-family: var(--font-sans, 'Inter', sans-serif);
}

.hero-indicator::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.3s ease;
}

.hero-indicator.active {
    color: #ffffff;
}

.hero-indicator.active::after {
    background: #d4a76a;
    animation: indicatorFill 5s linear;
}

@keyframes indicatorFill {
    0% { transform: scaleX(0); transform-origin: left; }
    100% { transform: scaleX(1); transform-origin: left; }
}

.hero-indicator:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    .hero-indicators {
        bottom: 30px;
        gap: 15px;
    }
    .hero-indicator {
        font-size: 0.75rem;
    }
}

/* ==================================================
   STORY SECTION — "Bizning hikoya" (noodatiy hero)
   ================================================== */
.story-section {
    position: relative;
    padding: 110px 0;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(180deg, #faf8f5 0%, #f3ede4 100%);
}

/* --- Orqa fon dekoratsiyalari --- */
.story-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.story-bg-year {
    position: absolute;
    top: 50%;
    right: -3vw;
    transform: translateY(-50%);
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: clamp(12rem, 24vw, 26rem);
    font-weight: 900;
    line-height: 1;
    color: rgba(125, 100, 56, 0.045);
    letter-spacing: -0.04em;
    user-select: none;
    pointer-events: none;
    z-index: 0;
}
.story-bg-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.story-section > .container {
    position: relative;
    z-index: 2;
}

/* --- Layout: assimetrik grid --- */
.story-layout {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 80px;
    align-items: center;
}

/* === VIZUAL TARAFI === */
.story-visual {
    position: relative;
    aspect-ratio: 4 / 5;
    perspective: 1400px;
}

/* Asosiy katta rasm */
.story-img {
    position: absolute;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 30px 80px -20px rgba(40, 30, 15, 0.28);
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.story-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.story-img:hover img {
    transform: scale(1.06);
}

.story-img-main {
    top: 0;
    left: 0;
    width: 78%;
    height: 78%;
    z-index: 2;
}

.story-img-second {
    bottom: 0;
    right: 0;
    width: 52%;
    height: 42%;
    z-index: 3;
    border: 8px solid #faf8f5;
    box-shadow: 0 40px 80px -15px rgba(40, 30, 15, 0.35);
}
.story-img-second:hover {
    transform: translateY(-6px) rotate(-1deg);
}

/* Burchak chiziqlari — arxitektura belgisi sifatida */
.story-img-corner {
    position: absolute;
    width: 28px;
    height: 28px;
    border: 2px solid var(--color-accent);
    z-index: 4;
    pointer-events: none;
}
.story-img-corner-tl {
    top: -8px;
    left: -8px;
    border-right: none;
    border-bottom: none;
}
.story-img-corner-br {
    bottom: -8px;
    right: -8px;
    border-left: none;
    border-top: none;
}

/* Tajriba bejak */
.story-exp-badge {
    position: absolute;
    top: 8%;
    right: -10px;
    z-index: 5;
    background: #1a1614;
    color: #fff;
    padding: 22px 26px;
    border-radius: 4px;
    box-shadow: 0 25px 60px -15px rgba(40, 30, 15, 0.5),
                0 0 0 1px rgba(201, 169, 110, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 120px;
    transform: rotate(3deg);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.story-exp-badge:hover {
    transform: rotate(0deg) scale(1.04);
}
.story-exp-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        transparent 40%,
        rgba(201, 169, 110, 0.08) 50%,
        transparent 60%);
    pointer-events: none;
}
.exp-num {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-accent);
    background: linear-gradient(135deg, #e8c98b 0%, #c9a96e 50%, #a8854a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.exp-plus {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 1.2rem;
    color: var(--color-accent);
    font-weight: 600;
}
.exp-label {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

/* Blueprint EST. tagi */
.story-blueprint-tag {
    position: absolute;
    bottom: 8%;
    left: -8px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(201, 169, 110, 0.3);
    padding: 9px 16px;
    border-radius: 100px;
    box-shadow: 0 12px 30px -8px rgba(40, 30, 15, 0.2);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: #1a1614;
    backdrop-filter: blur(8px);
}
.bp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 10px var(--color-accent);
    animation: footerDot 2s ease-in-out infinite;
}

/* === KONTENT TARAFI === */
.story-content {
    position: relative;
}

/* Yuqori marker — chiziq + matn */
.story-marker {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}
.story-marker .marker-line {
    width: 48px;
    height: 1px;
    background: var(--color-accent);
}
.story-marker .marker-text {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent);
}

/* Sarlavha */
.story-title {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-weight: 500;
    line-height: 1.1;
    margin: 0 0 28px;
    color: #1a1614;
}
.story-title-1 {
    display: block;
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, #1a1614 0%, #4a3e2c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.story-title-2 {
    display: block;
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    color: #1a1614;
    margin-top: 4px;
}

.story-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: 28px;
    max-width: 520px;
}

/* Sitata bloki */
.story-quote {
    position: relative;
    padding: 22px 22px 22px 56px;
    margin: 28px 0;
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.08) 0%, rgba(201, 169, 110, 0.02) 100%);
    border-left: 3px solid var(--color-accent);
    border-radius: 0 6px 6px 0;
}
.story-quote-mark {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 28px;
    height: 24px;
    color: var(--color-accent);
    opacity: 0.7;
}
.story-quote p {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: 1.08rem;
    font-style: italic;
    line-height: 1.6;
    color: #2a221a;
    margin: 0;
}

.story-text {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 540px;
}

/* Mini-statistika */
.story-stats {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-top: 28px;
    border-top: 1px solid rgba(125, 100, 56, 0.15);
}
.story-stat {
    display: flex;
    flex-direction: column;
    position: relative;
}
.story-stat-num {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    color: #1a1614;
    background: linear-gradient(135deg, #4a3e2c 0%, #c9a96e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.story-stat-plus {
    font-size: 1.4rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-left: 2px;
}
.story-stat-lbl {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-text-light);
    margin-top: 6px;
}
.story-stat-sep {
    width: 1px;
    height: 36px;
    background: linear-gradient(180deg, transparent, rgba(125, 100, 56, 0.3), transparent);
}

/* === MOBIL === */
@media (max-width: 992px) {
    .story-section { padding: 70px 0; }
    .story-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .story-visual {
        max-width: 540px;
        margin: 0 auto;
        aspect-ratio: 4 / 4;
    }
    .story-bg-year { font-size: 14rem; right: -8vw; }
}
@media (max-width: 600px) {
    .story-section { padding: 56px 0; }
    .story-visual { aspect-ratio: 4 / 4.3; }
    .story-exp-badge {
        padding: 16px 18px;
        min-width: 100px;
        right: -4px;
    }
    .exp-num { font-size: 2.4rem; }
    .story-blueprint-tag {
        font-size: 0.65rem;
        padding: 7px 12px;
        left: -4px;
    }
    .story-quote { padding: 18px 16px 18px 48px; }
    .story-quote p { font-size: 1rem; }
    .story-stats {
        gap: 18px;
        flex-wrap: wrap;
    }
    .story-stat-num { font-size: 1.7rem; }
    .story-stat-sep { display: none; }
    .story-bg-year { font-size: 9rem; opacity: 0.7; }
}

/* Reveal animatsiyalari */
.story-visual,
.story-content {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.story-visual { transform: translateX(-40px); }
.story-content { transform: translateX(40px); }
.story-visual.is-revealed,
.story-content.is-revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .story-visual, .story-content { transform: none; }
}

/* Dark mode */
body.dark-mode .story-section {
    background: linear-gradient(180deg, #1a1614 0%, #14110f 100%);
}
body.dark-mode .story-bg-year { color: rgba(201, 169, 110, 0.04); }
body.dark-mode .story-title-1 { background: linear-gradient(135deg, #f5f0e6 0%, #c9a96e 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
body.dark-mode .story-title-2 { color: #f5f0e6; }
body.dark-mode .story-quote p { color: #e8e0d2; }
body.dark-mode .story-img-second { border-color: #1a1614; }
body.dark-mode .story-blueprint-tag {
    background: rgba(30, 25, 20, 0.92);
    color: #f5f0e6;
}

/* ==================================================
   SCROLL PROGRESS BAR — yuqorida oltin chiziq
   ================================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(201, 169, 110, 0.4) 15%,
        var(--color-accent) 40%,
        #f4d585 50%,
        var(--color-accent) 60%,
        rgba(201, 169, 110, 0.4) 85%,
        transparent 100%);
    transform-origin: left center;
    transform: scaleX(0);
    z-index: 10000;
    pointer-events: none;
    box-shadow: 0 0 14px rgba(201, 169, 110, 0.55),
                0 0 6px rgba(244, 213, 133, 0.4);
    will-change: transform;
}
/* Yumshoq sirpanish — JS rAF bilan sinxron */
.scroll-progress {
    transition: transform 0.08s linear;
}

/* ==================================================
   SAHIFA OʻTISH ANIMATSIYALARI (View Transitions API + Blueprint chizish)
   ================================================== */
@view-transition {
    navigation: auto;
}

/* Eski sahifa chiqishi — yuqoriga ozgina siljib soʻnadi */
::view-transition-old(root) {
    animation: pageOut 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}
/* Yangi sahifa kirishi — pastdan koʻtarilib paydo boʻladi */
::view-transition-new(root) {
    animation: pageIn 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageOut {
    0%   { opacity: 1; transform: translateY(0); filter: blur(0); }
    100% { opacity: 0; transform: translateY(-12px); filter: blur(2px); }
}
@keyframes pageIn {
    0%   { opacity: 0; transform: translateY(16px); filter: blur(4px); clip-path: inset(0 100% 0 0); }
    50%  { opacity: 0.7; clip-path: inset(0 0 0 0); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); clip-path: inset(0 0 0 0); }
}

/* === BLUEPRINT CHIZISH OVERLAY === */
/* Sahifa o'tishida ekran bo'ylab oltin chiziq sirpadi */
.page-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
}
.page-transition-overlay.is-active {
    opacity: 1;
    animation: blueprintSweep 0.7s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.page-transition-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(201, 169, 110, 0.5) 30%,
        var(--color-accent) 50%,
        rgba(201, 169, 110, 0.5) 70%,
        transparent 100%);
    box-shadow: 0 0 20px rgba(201, 169, 110, 0.6),
                0 0 40px rgba(201, 169, 110, 0.3);
    transform: translateY(-2px);
    animation: blueprintLine 0.7s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
@keyframes blueprintSweep {
    0% { opacity: 0; }
    20% { opacity: 1; }
    100% { opacity: 0; }
}
@keyframes blueprintLine {
    0%   { transform: translateY(-2px); }
    100% { transform: translateY(100vh); }
}

/* JS-asoslangan fallback (View Transitions yoʻq brauzerlar uchun) */
body.is-page-leaving {
    opacity: 0;
    transform: translateY(-12px);
    filter: blur(2px);
    transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
    pointer-events: none;
}
body.is-page-entering {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(4px);
}

/* Reduced motion — animatsiyalarni o'chirish */
@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation: none;
    }
    body.is-page-leaving,
    body.is-page-entering {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

/* Hero canvas — zarralar effekti o'chirildi, canvas yashirilgan */
.hero-canvas { display: none !important; }

/* ==================================================
   PRINT STYLESHEET — bosma uchun toza ko'rinish
   ================================================== */
@media print {
    /* Bosma rangsiz/oddiy — qora va kulrang */
    body {
        background: #fff !important;
        color: #000 !important;
        font-family: 'Georgia', serif !important;
        font-size: 11pt;
        line-height: 1.5;
    }

    /* Yashirish — bosma uchun keraksiz elementlar */
    .header,
    .header-spacer,
    .footer,
    .back-to-top,
    .scroll-progress,
    .article-progress,
    .toast-container,
    .cookie-banner,
    .custom-cursor,
    .preloader,
    .hero-slider,
    .hero-scroll,
    .scroll-svg-wrap,
    .page-transition-overlay,
    .nav,
    .menu-toggle,
    .hero-actions,
    .breadcrumb,
    .article-share,
    .article-related,
    .project-nav-section,
    .pdf-btn,
    .contact-form,
    .map-container,
    .reviews-section,
    .news-grid,
    .projects-grid,
    .services-list-section .service-cta,
    button,
    .btn,
    iframe,
    video {
        display: none !important;
    }

    /* Konteyner — to'liq kenglik */
    .container,
    .article-narrow {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    /* Page break boshqaruvi */
    h1, h2, h3, h4 {
        page-break-after: avoid;
        color: #000 !important;
        font-family: 'Playfair Display', Georgia, serif !important;
    }
    h1 { font-size: 22pt; }
    h2 { font-size: 16pt; }
    h3 { font-size: 13pt; }
    p, li {
        page-break-inside: avoid;
        orphans: 3;
        widows: 3;
    }

    /* Rasm — toʻliq kenglik, page break sakrash */
    img {
        max-width: 100% !important;
        height: auto !important;
        page-break-inside: avoid;
        filter: grayscale(20%);
    }

    /* Linklar — URL ko'rsatish */
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
    .article-content a::after,
    .project-stat a::after {
        content: ' (' attr(href) ')';
        font-size: 9pt;
        color: #555;
    }
    /* Ichki linklar URL'sini yashirish */
    a[href^="#"]::after,
    a[href^="/"]::after {
        content: '' !important;
    }

    /* Article — bosma uchun toza */
    .article-single,
    .article-header,
    .article-content {
        padding: 0 !important;
        margin: 0 !important;
    }
    .article-content > p:first-of-type::first-letter {
        font-size: 32pt;
        color: #555 !important;
        background: none !important;
        -webkit-text-fill-color: #555 !important;
    }
    .article-meta {
        font-size: 10pt;
        color: #555;
        margin-bottom: 20pt;
    }
    .article-hero-image {
        max-height: 200pt;
        overflow: hidden;
        box-shadow: none !important;
    }
    .article-content blockquote {
        border-left: 2pt solid #555 !important;
        background: none !important;
        padding: 8pt 14pt !important;
        font-style: italic;
    }
    .article-content blockquote::before { display: none !important; }

    /* Project sahifa — bosma uchun */
    .project-hero {
        padding: 0 !important;
    }
    .project-title {
        font-size: 24pt !important;
        margin-bottom: 16pt !important;
    }
    .project-stats-grid {
        border: 1pt solid #555 !important;
        padding: 12pt !important;
        gap: 8pt !important;
        page-break-inside: avoid;
    }
    .project-stat-icon { display: none !important; }
    .project-stat-label { font-size: 9pt; }
    .project-stat-value { font-size: 11pt; }

    /* Galereya — birinchi 3 rasm */
    .gallery-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6pt !important;
        page-break-inside: avoid;
    }
    .gallery-grid > *:nth-child(n+4) { display: none !important; }

    /* Section spacing — kichkina */
    .section {
        padding: 20pt 0 !important;
    }
    .page-header {
        padding: 0 0 20pt 0 !important;
    }

    /* Page break logic */
    .section { page-break-inside: avoid; }
    .project-stats-grid + * { page-break-before: avoid; }

    /* Print-friendly header at top (logo) */
    body::before {
        content: 'UNIVERSE ARCHITECT GROUP — ortiqov.onetech.uz';
        display: block;
        font-family: 'Playfair Display', Georgia, serif;
        font-size: 9pt;
        text-align: center;
        padding: 6pt 0;
        border-bottom: 1pt solid #999;
        margin-bottom: 16pt;
        letter-spacing: 0.2em;
        text-transform: uppercase;
    }

    /* Sahifa pastida — sana */
    @page {
        margin: 1.5cm 1.5cm 2cm 1.5cm;
    }
}

/* ==================================================
   SECTION DIVIDERS — bo'limlar orasida arxitektura chizig'i
   ================================================== */
.section-divider {
    width: 100%;
    padding: 0;
    margin: 0;
    text-align: center;
    line-height: 0;
    position: relative;
}
.section-divider-inner {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 36px 0;
    color: var(--color-accent);
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    opacity: 0.7;
    line-height: 1;
}
.section-divider-line {
    display: inline-block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}
.section-divider-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 8px rgba(201, 169, 110, 0.4);
}
/* Variantlar */
.section-divider--minimal .section-divider-inner { gap: 18px; }
.section-divider--minimal .section-divider-line { width: 80px; }

/* Avto-divider: ikki section orasida (background turlari farqlansa avtomatik chiqadi) */
.section + .section:not([style*="background"]):not(.contact-section):not(.reviews-section)::before {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.4), transparent);
    margin: 0 auto 60px;
}

/* ==================================================
   COOKIE BANNER — pastdan yumshoq slide-in
   ================================================== */
.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 9998;
    max-width: 720px;
    margin: 0 auto;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.5s ease;
}
.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
}
.cookie-banner-inner {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(201, 169, 110, 0.18);
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: 0 24px 60px -10px rgba(20, 15, 10, 0.2),
                0 0 0 1px rgba(201, 169, 110, 0.05);
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.cookie-banner-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(232, 201, 139, 0.2) 0%, rgba(201, 169, 110, 0.25) 100%);
    border: 1px solid rgba(201, 169, 110, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 1.15rem;
}
.cookie-banner-text {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.4;
}
.cookie-banner-text strong {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: #1a1614;
    font-weight: 600;
}
.cookie-banner-text span {
    font-size: 0.85rem;
    color: var(--color-text-light);
}
.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.cookie-banner-actions .btn {
    white-space: nowrap;
    min-width: auto;
}

/* Dark mode */
body.dark-mode .cookie-banner-inner {
    background: rgba(30, 25, 20, 0.97);
    border-color: rgba(201, 169, 110, 0.25);
}
body.dark-mode .cookie-banner-text strong { color: #f5f0e6; }
body.dark-mode .cookie-banner-text span { color: rgba(255, 255, 255, 0.7); }

@media (max-width: 600px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
    .cookie-banner-inner {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .cookie-banner-icon { display: none; }
    .cookie-banner-actions { width: 100%; }
    .cookie-banner-actions .btn { flex: 1; justify-content: center; }
}

/* ==================================================
   ERROR PAGES — 404 va 500 (arxitektura uslubida)
   ================================================== */
.error-page {
    min-height: calc(100vh - 80px);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    background: linear-gradient(180deg, #faf8f5 0%, #f3ede4 100%);
    overflow: hidden;
}
.error-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.8;
    z-index: 0;
}
.error-bg svg {
    width: 100%;
    height: 100%;
    display: block;
}
.error-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
}
.error-tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 26px;
}
.error-tag-line {
    width: 32px;
    height: 1px;
    background: var(--color-accent);
}

/* Katta raqamlar — 4_4 / 5_0 */
.error-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 28px;
    font-family: var(--font-serif);
    font-size: clamp(5rem, 14vw, 9rem);
    font-weight: 700;
    line-height: 1;
    color: #1a1614;
    letter-spacing: -0.04em;
}
.error-digit {
    background: linear-gradient(135deg, #1a1614 0%, #4a3e2c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.error-digit--center {
    width: clamp(80px, 14vw, 130px);
    height: clamp(80px, 14vw, 130px);
    -webkit-text-fill-color: initial;
    background: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: errorPulse 3s ease-in-out infinite;
}
.error-digit--center svg {
    width: 100%;
    height: 100%;
}
@keyframes errorPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.05); opacity: 0.85; }
}

.error-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 600;
    color: #1a1614;
    margin: 0 0 16px;
    line-height: 1.2;
}
.error-description {
    color: var(--color-text-light);
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0 auto 36px;
    max-width: 540px;
}

.error-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.error-quick-links {
    padding-top: 28px;
    border-top: 1px solid rgba(125, 100, 56, 0.15);
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px;
    font-size: 0.9rem;
    color: var(--color-text-light);
}
.error-quick-label {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.error-quick-links a {
    color: var(--color-accent-dark, #a8854a);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: border-color 0.3s ease;
}
.error-quick-links a:hover {
    border-bottom-color: var(--color-accent);
}

@media (max-width: 600px) {
    .error-actions { flex-direction: column; width: 100%; max-width: 320px; margin-left: auto; margin-right: auto; }
    .error-actions .btn { width: 100%; justify-content: center; }
    .error-quick-links { flex-direction: column; gap: 10px; }
}

/* Dark mode */
body.dark-mode .error-page {
    background: linear-gradient(180deg, #1a1614 0%, #14110f 100%);
}
body.dark-mode .error-title,
body.dark-mode .error-digit { color: #f5f0e6; }
body.dark-mode .error-digit { background: linear-gradient(135deg, #f5f0e6 0%, #c9a96e 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* ==================================================
   PROJECT — yagona loyiha sahifasi (premium portfolio)
   ================================================== */
.project-hero {
    padding: 40px 0 50px;
}
.project-category-tag {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent);
    padding: 5px 14px;
    background: rgba(201, 169, 110, 0.1);
    border: 1px solid rgba(201, 169, 110, 0.22);
    border-radius: 100px;
    margin-bottom: 22px;
}
.project-detail-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 600;
    line-height: 1.15;
    color: #1a1614;
    margin: 0 0 36px;
    max-width: 900px;
}

/* Statistika grid */
.project-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    padding: 28px 0;
    border-top: 1px solid rgba(125, 100, 56, 0.15);
    border-bottom: 1px solid rgba(125, 100, 56, 0.15);
    margin: 0 0 26px;
}
.project-stat {
    display: flex;
    align-items: center;
    gap: 14px;
}
.project-stat-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(201, 169, 110, 0.1);
    border: 1px solid rgba(201, 169, 110, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 1rem;
}
.project-stat-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.project-stat-label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 3px;
}
.project-stat-value {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 500;
    color: #1a1614;
    line-height: 1.3;
}

/* Prev/Next navigation */
.project-nav-section {
    padding: 60px 0 30px;
    border-top: 1px solid rgba(125, 100, 56, 0.12);
}
.project-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
}
.project-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    text-decoration: none;
    color: #1a1614;
    background: transparent;
    border: 1px solid rgba(125, 100, 56, 0.15);
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 360px;
    overflow: hidden;
}
.project-nav-prev { justify-self: start; }
.project-nav-next {
    justify-self: end;
    text-align: right;
    flex-direction: row;
}
.project-nav-link:hover {
    background: rgba(201, 169, 110, 0.06);
    border-color: rgba(201, 169, 110, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -12px rgba(40, 30, 15, 0.15);
}
.project-nav-arrow {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(201, 169, 110, 0.1);
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}
.project-nav-prev:hover .project-nav-arrow {
    transform: translateX(-4px);
    background: var(--color-accent);
    color: #fff;
}
.project-nav-next:hover .project-nav-arrow {
    transform: translateX(4px);
    background: var(--color-accent);
    color: #fff;
}
.project-nav-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}
.project-nav-label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 4px;
}
.project-nav-title {
    font-family: var(--font-serif);
    font-size: 0.98rem;
    font-weight: 500;
    color: #1a1614;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.project-nav-grid {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(125, 100, 56, 0.08);
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    text-decoration: none;
}
.project-nav-grid:hover {
    background: var(--color-accent);
    color: #fff;
    transform: scale(1.08);
}

@media (max-width: 768px) {
    .project-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
        padding: 22px 0;
    }
    .project-stat-icon { width: 38px; height: 38px; font-size: 0.9rem; }
    .project-stat-value { font-size: 0.95rem; }
    .project-nav {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .project-nav-link {
        max-width: none;
        justify-self: stretch !important;
        text-align: left !important;
    }
    .project-nav-grid {
        order: -1;
        margin: 0 auto;
    }
}
@media (max-width: 480px) {
    .project-stats-grid { grid-template-columns: 1fr; }
}

/* ==================================================
   ARTICLE — yangiliklar maqola sahifasi (premium kitob uslubi)
   ================================================== */
/* Maqola uchun alohida progress bar (umumiy scroll-progress dan tashqari) */
.article-progress {
    position: fixed;
    top: 3px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), #f4d585, var(--color-accent));
    transform-origin: left center;
    transform: scaleX(0);
    z-index: 9999;
    box-shadow: 0 0 8px rgba(201, 169, 110, 0.4);
    transition: transform 0.08s linear;
    pointer-events: none;
}

/* Maqola page header — kichikroq */
.article-page-header {
    padding: 80px 0 0 !important;
}

/* Asosiy maqola konteyneri */
.article-single {
    padding: 30px 0 80px;
}
.article-narrow {
    max-width: 760px !important;
}

/* === Sarlavha bloki === */
.article-header {
    text-align: center;
    margin-bottom: 50px;
}
.article-tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 22px;
}
.article-tag-line {
    width: 32px;
    height: 1px;
    background: var(--color-accent);
}
.article-title {
    font-family: var(--font-serif);
    font-size: clamp(1.7rem, 3.6vw, 2.6rem);
    font-weight: 600;
    line-height: 1.2;
    color: #1a1614;
    margin: 0 0 22px;
    letter-spacing: -0.01em;
}
.article-excerpt {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.55;
    color: var(--color-text-light);
    margin: 0 auto 30px;
    max-width: 620px;
}

/* Meta info — sana, muallif, ko'rishlar */
.article-meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    font-size: 0.85rem;
    color: var(--color-text-light);
}
.article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.article-meta-item i {
    color: var(--color-accent);
    font-size: 0.8rem;
}
.article-meta-divider {
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(125, 100, 56, 0.3);
}

/* === Hero rasm === */
.article-hero-image {
    margin: 0 0 50px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(40, 30, 15, 0.25);
    aspect-ratio: 16 / 9;
}
.article-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* === Article kontent — kitob uslubi === */
.article-content {
    font-family: var(--font-serif);
    font-size: 1.12rem;
    line-height: 1.85;
    color: #2c2620;
}
.article-content > *:first-child {
    margin-top: 0;
}

/* Drop cap — birinchi paragraf birinchi harfi */
.article-content > p:first-of-type::first-letter {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    font-weight: 600;
    float: left;
    line-height: 0.9;
    margin: 8px 14px 0 0;
    color: var(--color-accent);
    background: linear-gradient(135deg, #d4b275 0%, #a8854a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.article-content p {
    margin: 0 0 22px;
}
.article-content h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 50px 0 18px;
    color: #1a1614;
}
.article-content h3 {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 600;
    margin: 36px 0 14px;
    color: #1a1614;
}
.article-content h2::before {
    content: '';
    display: block;
    width: 36px;
    height: 2px;
    background: var(--color-accent);
    margin-bottom: 16px;
}

.article-content a {
    color: var(--color-accent-dark, #a8854a);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(201, 169, 110, 0.4);
    transition: text-decoration-color 0.3s ease;
}
.article-content a:hover {
    text-decoration-color: var(--color-accent);
}

.article-content blockquote {
    margin: 36px 0;
    padding: 24px 28px 24px 56px;
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.08) 0%, rgba(201, 169, 110, 0.02) 100%);
    border-left: 3px solid var(--color-accent);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    position: relative;
    font-size: 1.18rem;
    line-height: 1.6;
    color: #1a1614;
}
.article-content blockquote::before {
    content: '"';
    position: absolute;
    top: 8px;
    left: 18px;
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: var(--color-accent);
    opacity: 0.6;
    line-height: 1;
}
.article-content blockquote p:last-child {
    margin-bottom: 0;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 28px 0;
    box-shadow: 0 16px 40px -12px rgba(40, 30, 15, 0.18);
}

.article-content ul,
.article-content ol {
    margin: 0 0 22px;
    padding-left: 28px;
}
.article-content li {
    margin-bottom: 8px;
}
.article-content ul li::marker {
    color: var(--color-accent);
}

.article-content hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(125, 100, 56, 0.25), transparent);
    margin: 40px 0;
}

/* === Share buttons === */
.article-share {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(125, 100, 56, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.article-share-label {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-light);
}
.article-share-buttons {
    display: flex;
    gap: 10px;
}
.article-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(125, 100, 56, 0.2);
    color: var(--color-text-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}
.article-share-btn:hover {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(201, 169, 110, 0.35);
}

/* === Related articles bo'limi === */
.article-related {
    background: var(--color-bg-alt);
}

/* === Mobil === */
@media (max-width: 768px) {
    .article-single { padding: 20px 0 60px; }
    .article-header { margin-bottom: 36px; }
    .article-content { font-size: 1.05rem; line-height: 1.75; }
    .article-content > p:first-of-type::first-letter {
        font-size: 3.5rem;
        margin: 6px 10px 0 0;
    }
    .article-content h2 { font-size: 1.45rem; margin: 36px 0 14px; }
    .article-content h3 { font-size: 1.25rem; }
    .article-content blockquote {
        padding: 18px 18px 18px 44px;
        font-size: 1.05rem;
        margin: 24px 0;
    }
    .article-content blockquote::before { font-size: 2.5rem; left: 12px; }
    .article-hero-image { margin-bottom: 36px; }
    .article-meta { gap: 10px; font-size: 0.78rem; }
    .article-excerpt { font-size: 1.05rem; }
    .article-share { gap: 12px; flex-direction: column; }
    .article-share-btn { width: 38px; height: 38px; }
}

/* ==================================================
   TOAST BILDIRISHNOMALAR — yuqori-oʻngda paydo boʻladi
   ================================================== */
.toast-container {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
    width: calc(100% - 48px);
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 40px -10px rgba(20, 15, 10, 0.18),
                0 0 0 1px rgba(125, 100, 56, 0.08);
    border-left: 4px solid var(--color-accent);
    pointer-events: auto;
    opacity: 0;
    transform: translateX(40px) scale(0.96);
    animation: toastIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
    overflow: hidden;
}
.toast.toast--exit {
    animation: toastOut 0.4s cubic-bezier(0.4, 0, 1, 1) forwards;
}
.toast-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.95rem;
}
.toast-body {
    flex: 1;
    min-width: 0;
    line-height: 1.4;
}
.toast-title {
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 600;
    color: #1a1614;
    margin: 0 0 2px;
}
.toast-message {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin: 0;
}
.toast-close {
    flex-shrink: 0;
    background: transparent;
    border: 0;
    width: 22px;
    height: 22px;
    cursor: pointer;
    color: var(--color-text-light);
    font-size: 1.1rem;
    line-height: 1;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}
.toast-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #1a1614;
}
/* Pastdagi progress bar — vaqtni ko'rsatadi */
.toast::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--color-accent);
    width: 100%;
    transform-origin: left center;
    animation: toastProgress 4s linear forwards;
}

/* Toast turlari */
.toast--success { border-left-color: #16a34a; }
.toast--success .toast-icon { background: rgba(22, 163, 74, 0.12); color: #16a34a; }
.toast--success::after { background: #16a34a; }

.toast--error { border-left-color: #dc2626; }
.toast--error .toast-icon { background: rgba(220, 38, 38, 0.12); color: #dc2626; }
.toast--error::after { background: #dc2626; }

.toast--info { border-left-color: var(--color-accent); }
.toast--info .toast-icon { background: rgba(201, 169, 110, 0.15); color: var(--color-accent); }
.toast--info::after { background: var(--color-accent); }

@keyframes toastIn {
    0%   { opacity: 0; transform: translateX(40px) scale(0.96); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastOut {
    0%   { opacity: 1; transform: translateX(0) scale(1); }
    100% { opacity: 0; transform: translateX(40px) scale(0.96); }
}
@keyframes toastProgress {
    0%   { transform: scaleX(1); }
    100% { transform: scaleX(0); }
}

/* Mobilda toast — toʻliq kenglik pastda */
@media (max-width: 600px) {
    .toast-container {
        top: auto;
        bottom: 20px;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: none;
    }
}

/* Dark mode */
body.dark-mode .toast {
    background: #292524;
    color: #f5f1ec;
}
body.dark-mode .toast-title { color: #f5f1ec; }
body.dark-mode .toast-message { color: #d6d3d1; }

/* ==================================================
   SMOOTH SUBMIT BUTTON — yuborilmoqda / yuborildi
   ================================================== */
.contact-submit {
    position: relative;
    transition: background 0.4s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-submit-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
/* idle holat — default */
.contact-submit[data-state="idle"] .contact-submit-content--idle {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
    inset: auto;
}
/* loading holat */
.contact-submit[data-state="loading"] .contact-submit-content--loading {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.contact-submit[data-state="loading"] {
    pointer-events: none;
    cursor: wait;
}
/* success holat */
.contact-submit[data-state="success"] .contact-submit-content--success {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.contact-submit[data-state="success"] {
    background: #16a34a !important;
    pointer-events: none;
    transform: scale(1.02);
}
.contact-submit[data-state="success"]::before {
    opacity: 0 !important;
}

/* Spinner — yuborilmoqda */
.contact-submit-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: submitSpin 0.7s linear infinite;
}
@keyframes submitSpin {
    to { transform: rotate(360deg); }
}

/* Success check SVG — chiziq chiziladi */
.contact-submit-check {
    width: 22px;
    height: 22px;
}
.contact-submit-check .check-path {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: submitCheckDraw 0.6s cubic-bezier(0.65, 0, 0.35, 1) 0.1s forwards;
}
@keyframes submitCheckDraw {
    to { stroke-dashoffset: 0; }
}