/*
Theme Name: Apparel
Theme URI: https://apparel.uz
Author: Apparel
Description: Тема для сайта APPAREL — производство одежды
Version: 1.0
Text Domain: apparel
*/

/* ================= ПЕРЕМЕННЫЕ И ТЕМНАЯ ТЕМА ================= */
:root {
    --ink: #151210;
    --paper: #f6f2ea;
    --paper-2: #efe9dd;
    --orange: #ef7f1a;
    --orange-2: #bb6314;
    --line: rgba(21,18,16,0.14);
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    color-scheme: light dark;
}

*, *::before, *::after {
    box-sizing: inherit;
}

html {
    scroll-padding-top: 78px;
    scroll-behavior: smooth;
    max-width: 100% !important;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Montserrat', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    max-width: 100% !important;
}

:root[data-theme="dark"] {
    --ink: #f3ede2;
    --paper: #151210;
    --paper-2: #1c1815;
    --line: rgba(243,237,226,.14);
}

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

a {
    color: inherit;
    text-decoration: none;
}

.wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}

h1, h2, h3 {
    font-family: 'Montserrat', system-ui, sans-serif;
    margin: 0;
    line-height: 1.06;
    letter-spacing: -0.01em;
}

section {
    padding: 35px 0;
}

.kicker {
    font-size: 38px;
    font-weight: 600;
    color: var(--orange);
    margin-bottom: 12px;
}

.section-head {
    max-width: 640px;
    margin-bottom: 44px;
}

.section-head h2 {
    font-size: clamp(26px, 4vw, 42px);
}

.section-head p {
    margin-top: 14px;
    font-size: 16px;
    opacity: .72;
    max-width: 50ch;
}

/* ================= HEADER (ШАПКА САЙТА) ================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 50;
    padding-top: env(safe-area-inset-top, 0px);
    background: color-mix(in srgb, var(--paper) 90%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.headbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 28px;
    max-width: 1240px;
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand img {
    height: 42px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    flex-shrink: 0;
}

.brand small {
    font-size: 10px;
    line-height: 1.35;
    font-weight: 600;
    opacity: .65;
    border-left: 1px solid var(--line);
    padding-left: 12px;
}

nav {
    display: flex;
    gap: 22px;
    font-size: 13px;
    font-weight: 500;
}

nav a {
    transition: color 0.15s ease;
}

nav a:hover {
    color: var(--orange);
}

.head-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* КНОПКИ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ef7f1a;
    color: #ffffff;
    font-weight: 500;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}

.btn2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #767676;
    color: #ffffff;
    font-weight: 500;
    padding: 10px 17px;
    border: none;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}

.btn2:hover { background: var(--orange); color: #ffffff; }
.btn:hover { background: var(--orange-2); color: #ffffff; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--orange); color: var(--orange); background: transparent; }

/* ВЫПАДАЮЩЕЕ МЕНЮ (DROPDOWN) */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown .dropbtn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--paper, #ffffff);
    min-width: 220px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.15);
    border: 1px solid var(--line, rgba(0,0,0,0.1));
    border-radius: 6px;
    padding: 8px 0;
    z-index: 100;
}

.dropdown-content a {
    color: var(--ink, #151210);
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-content a:hover {
    background-color: var(--paper-2, #efe9dd);
    color: var(--orange, #ef7f1a);
}

@media (min-width: 981px) {
    .dropdown:hover .dropdown-content {
        display: block;
    }
}

/* ================= HERO (ГЛАВНЫЙ СЛАЙДЕР) ================= */
.hero {
    position: relative;
    height: 560px;
    min-height: unset;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin-top: 70px;
}

.hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 100%;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-bg {
    position: absolute;
    inset: 0;
    height: 100%;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(10,9,8,.72) 0%, rgba(10,9,8,.38) 45%, rgba(10,9,8,.08) 68%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    color: #e6ded0;
    padding: 24px 50px 80px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    font-size: 12px;
    font-weight: bold;
}

.hero-copy { max-width: 820px; }
.hero-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .04em; color: var(--orange); margin-bottom: 12px; }
.hero-eyebrow2 { font-size: 38px; font-weight: 700; letter-spacing: .04em; color: #FFFFFF; margin-bottom: 12px; }
.hero h1 { font-size: clamp(30px, 4.5vw, 48px); font-weight: 800; color: #f6f2ea; }
.zagal { font-size: clamp(26px, 3.5vw, 38px); font-weight: 800; color: var(--orange); }
.foot { font-size: 14px; color: #000000; }
.hero h1 .accent { color: var(--orange); }
.hero-copy p { font-size: 17px; max-width: 46ch; margin-top: 18px; color: #e6ded0; }
.cta-row { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.stats-row {
    display: flex;
    gap: 32px;
    margin-top: 36px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.stat {
    font-size: 13px;
    color: #cfc6b5;
    line-height: 1.3;
}

.stat b {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #f6f2ea;
    line-height: 1.1;
    margin-bottom: 2px;
}

.stat span {
    font-size: 12px;
    color: #cfc6b5;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(21, 18, 16, 0.4);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: var(--orange, #ef7f1a);
    border-color: var(--orange, #ef7f1a);
    transform: translateY(-50%) scale(1.05);
}

.hero-prev { left: 24px; }
.hero-next { right: 24px; }

/* ================= НАПРАВЛЕНИЯ (DIRECTIONS) ================= */
.grid-directions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.dir-card {
    position: relative;
    background: #151210;
    border-radius: 16px !important;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    height: 230px;
    box-sizing: border-box;
    border: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-decoration: none !important;
}

.dir-card .dir-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
}

.dir-card .dir-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: transform 0.5s ease;
}

.dir-card:hover .dir-img img {
    transform: scale(1.05);
}

.dir-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10, 9, 8, 0.92) 0%, rgba(10, 9, 8, 0.35) 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.dir-card .dir-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    padding: 0;
    height: auto;
}

.dir-card .dir-text h3 {
    color: #ffffff !important;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 4px;
}

.dir-card .dir-text p {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 13px;
    margin: 0;
}

.dir-card .dir-arrow {
    width: 36px;
    height: 36px;
    background-color: var(--orange, #ef7f1a);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.dir-card:hover .dir-arrow {
    transform: scale(1.1);
    background-color: var(--orange-2, #bb6314);
}

/* ================= РЕШЕНИЯ (SOLUTIONS / PRODUCTS) ================= */
.solutions-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 24px !important;
    flex-wrap: wrap;
}

.grid-solutions2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.sol-card2 {
    position: relative;
    aspect-ratio: 4/3;
    background: #f9f5f2 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    color: #ff7800;
}

.sol-card2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    opacity: .75;
    transition: transform .5s ease, opacity .3s ease;
}

.sol-card2.fit-img img {
    object-fit: contain !important;
    background-color: #f9f5f2;
    opacity: 1 !important;
}

.sol-card2.fit-img .sol-body {
    background: rgba(255, 255, 255, 0.9) !important;
}

.sol-card2.fit-img .sol-body h3,
.sol-card2.fit-img .sol-body p {
    color: #111111 !important;
}

a.sol-card2 {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
}

.sol-card2:hover img {
    transform: scale(1.05);
    opacity: .9;
}

.sol-num {
    position: absolute;
    top: 16px;
    left: 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: var(--orange);
    z-index: 2;
    font-weight: bold;
}

.sol-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 9px 13px;
    z-index: 2;
    background: linear-gradient(0deg, rgba(10,9,8,.9), transparent 85%);
}

.sol-body h3 { font-size: 16px; margin-bottom: 6px; }
.sol-body p { margin: 0; font-size: 12.5px; opacity: .75; }
.podp { font-size: 14px; font-weight: 500; color: #000000; line-height: 1.4; }

/* ================= ПРОИЗВОДСТВО (PRODUCTION) ================= */
.prod-wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: start; }
.prod-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; width: 100%; min-width: 0; }

.prod-step {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden !important;
    border-radius: 15px !important;
    background: var(--paper-2);
}

.prod-step img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prod-label { position: relative; z-index: 2; padding: 12px 10px; width: 100%; background: linear-gradient(0deg, rgba(10,9,8,.85), transparent 80%); color: #f6f2ea; font-weight: bold; }
.prod-num { font-family: 'Montserrat', sans-serif; font-size: 14px; color: var(--orange); }
.prod-title { font-size: 16px; font-weight: 700; margin-top: 2px; }

/* ================= ПОЧЕМУ APPAREL (WHY) ================= */
.why-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; margin-top: 8px; }
.why-item { display: flex; flex-direction: column; gap: 10px; }
.why-item svg { width: 28px; height: 28px; stroke: var(--orange); }
.why-item span { font-size: 13.5px; font-weight: 600; }

/* ================= КЕЙСЫ (CASES) ================= */
.cases { background: var(--ink); color: #f6f2ea; }
.cases .kicker { color: var(--orange); }
.cases-head { max-width: 520px; margin-bottom: 44px; }
.cases-head h2 { font-size: clamp(28px, 4vw, 42px); color: #f6f2ea; }
.cases-head p { margin-top: 14px; opacity: .7; font-size: 16px; }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.case-card {
    position: relative;
    aspect-ratio: 16/10 !important;
    border-radius: 15px !important;
    overflow: hidden !important;
}

a.case-card {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
}

.case-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.case-card:hover img { transform: scale(1.05); }
.case-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; background: linear-gradient(0deg, rgba(10,9,8,.92), transparent 75%); }
.case-tag { font-size: 14px; font-weight: bold; color: var(--orange); margin-bottom: 6px; }
.case-body h3 { font-size: 17px; color: #f6f2ea; }
.case-body p { margin: 4px 0 0; font-size: 13px; opacity: .7; }

/* ================= О КОМПАНИИ (ABOUT) ================= */
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-copy p { margin-top: 16px; font-size: 16px; opacity: .75; max-width: 48ch; }

.about-visual-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    min-width: 0;
}

.about-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 15px;
}

.about-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================= КОНТАКТЫ И ФОРМА ================= */
.final { background: var(--ink) !important; color: #f6f2ea !important; }
.final2 { background: #1f1f1f !important; color: #f6f2ea !important; }
.final-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: stretch; }
.final h2, .final h2 .accent, .final .kicker, .final p { color: inherit; }
.final h2 { font-size: clamp(28px, 4.4vw, 46px); max-width: 14ch; }
.final p { margin-top: 16px; opacity: .72; font-size: 16px; max-width: 42ch; }

form { display: flex; flex-direction: column; gap: 14px; }
input { background: transparent; border: 1px solid rgba(255,255,255,.25); color: inherit; padding: 16px 18px; font-size: 16px; font-family: 'Montserrat', sans-serif; outline: none; }
input::placeholder { color: rgba(255,255,255,.45); }
input:focus { border-color: var(--orange); }
form .btn { margin-top: 6px; justify-content: center; }
.status { font-size: 14px; min-height: 20px; color: var(--orange); }

/* ИКОНКИ В КОНТАКТАХ */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.contact-icon {
    font-size: 18px;
    color: var(--orange, #ef7f1a);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 3px;
}

.contact-icon.icon-tg { color: #0088cc; }
.contact-icon.icon-wa { color: #25d366; }

.contact-info a {
    transition: color 0.2s ease;
}

.contact-info a:hover {
    color: var(--orange, #ef7f1a) !important;
}

.contact-map { min-height: 350px; border-radius: 15px; overflow: hidden; }

/* ================= FOOTER (ПОДВАЛ) ================= */
footer { padding: 36px 0; border-top: 1px solid var(--line); }
.foot-row { display: flex; justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 14px; opacity: .7; }

/* ================= БУРГЕР МЕНЮ И АДАПТИВНОСТЬ ================= */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 60;
}

.burger span {
    width: 100%;
    height: 3px;
    background-color: var(--ink);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger.active span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

@media (max-width: 980px) {
    nav { display: none; }
    .brand small { display: none; }

    .burger { display: flex !important; }

    nav#navMenu {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--paper);
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
        transform: translateY(-150%);
        transition: transform 0.35s ease;
        z-index: 55;
    }

    nav#navMenu.open { transform: translateY(0); }
    nav#navMenu a { font-size: 16px; font-weight: 600; }

    .dropdown { width: 100%; }

    .dropdown-content {
        position: static;
        display: flex;
        flex-direction: column;
        box-shadow: none;
        border: none;
        background: transparent;
        padding-left: 16px;
        gap: 8px;
        margin-top: 8px;
    }

    .dropdown-content a {
        padding: 6px 0;
        font-size: 14px;
        opacity: 0.85;
    }
}

@media (max-width: 768px) {
    .wrap {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    section { padding: 30px 0 !important; }

    .head-right .btn2 {
        padding: 6px 12px !important;
        font-size: 12px !important;
        white-space: nowrap;
    }

    .hero {
        height: auto !important;
        min-height: 100vh !important;
        padding-top: 60px;
        padding-bottom: 40px;
    }

    .hero-inner {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .hero-eyebrow2 { font-size: 24px !important; }
    .stats-row { gap: 16px !important; margin-top: 24px !important; }
    .stat b { font-size: 18px !important; }

    .grid-directions,
    .grid-solutions2,
    .cases-grid,
    .why-strip,
    .prod-strip,
    .about-wrap,
    .prod-wrap,
    .final-wrap {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .sol-card2 { aspect-ratio: 4/3 !important; }
    .headbar { padding: 10px 16px !important; }

    .hero-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .hero-prev { left: 12px; }
    .hero-next { right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

.hero-copy p strong {
    font-weight: 450 !important;
    color: rgba(230, 222, 208, 0.85) !important;
}
.style1 {color: #FF9900}

/* Сдвигаем фиксированную шапку вниз, если открыта админ-панель WordPress */
body.admin-bar header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar header {
        top: 46px;
    }
}