/* =========================================
   UNEED — CCTV STORE
   Main stylesheet
========================================= */

:root {
    --bg: #f5f6f8;
    --surface: #ffffff;
    --surface-dark: #111318;
    --text: #111318;
    --text-soft: #6b7078;
    --border: #e5e7eb;

    --accent: #2563eb;
    --accent-dark: #1d4ed8;

    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 30px;

    --shadow:
        0 20px 50px rgba(0, 0, 0, 0.08);

    --container: 1240px;
}


/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    background: var(--bg);
    color: var(--text);

    line-height: 1.5;

    -webkit-font-smoothing: antialiased;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

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

.container {
    width: min(
        calc(100% - 40px),
        var(--container)
    );

    margin: 0 auto;
}


/* =========================================
   HEADER
========================================= */

.header {
    position: sticky;
    top: 0;
    z-index: 100;

    background:
        rgba(255, 255, 255, 0.9);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-bottom:
        1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* LOGO */

.logo {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    font-size: 21px;
    font-weight: 800;

    letter-spacing: -0.7px;
}

.logo-mark {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--text);
    color: #fff;

    border-radius: 11px;

    font-size: 19px;
    font-weight: 800;
}


/* NAV */

.nav {
    display: flex;
    align-items: center;

    gap: 30px;

    margin-left: auto;
}

.nav a {
    position: relative;

    color: #444851;

    font-size: 14px;
    font-weight: 600;

    transition: color 0.2s ease;
}

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

.nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    border-radius: 10px;

    background: var(--accent);

    transition: width 0.2s ease;
}

.nav a:hover::after {
    width: 100%;
}


/* HEADER ACTIONS */

.header-actions {
    display: flex;
    align-items: center;

    gap: 10px;
}

.catalog-button,
.cart-button {
    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 17px;

    border-radius: 12px;

    font-size: 14px;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.catalog-button {
    background: var(--text);
    color: #fff;
}

.catalog-button:hover {
    background: #292c32;
    transform: translateY(-1px);
}

.cart-button {
    gap: 8px;

    background: #eef2ff;
    color: var(--accent);
}

.cart-button:hover {
    background: #e0e7ff;
}

.cart-count {
    min-width: 20px;
    height: 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 5px;

    border-radius: 20px;

    background: var(--accent);
    color: #fff;

    font-size: 11px;
}


/* =========================================
   HERO
========================================= */

.hero {
    padding:
        70px 0
        55px;
}

.hero-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(380px, 0.9fr);

    gap: 70px;

    align-items: center;
}

.hero-content {
    max-width: 700px;
}

.hero-label {
    width: fit-content;

    padding: 8px 13px;

    margin-bottom: 23px;

    border-radius: 50px;

    background: #e8efff;
    color: var(--accent);

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.hero h1 {
    max-width: 720px;

    margin-bottom: 23px;

    font-size:
        clamp(
            42px,
            5.2vw,
            74px
        );

    line-height: 0.98;

    letter-spacing: -4px;
}

.hero h1 span {
    display: block;

    color: var(--accent);
}

.hero-content > p {
    max-width: 600px;

    margin-bottom: 30px;

    color: var(--text-soft);

    font-size: 18px;
    line-height: 1.7;
}


/* HERO BUTTONS */

.hero-buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 42px;
}

.button {
    min-height: 52px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 23px;

    border-radius: 14px;

    font-size: 14px;
    font-weight: 750;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--accent);
    color: #fff;

    box-shadow:
        0 10px 25px
        rgba(37, 99, 235, 0.23);
}

.button-primary:hover {
    background: var(--accent-dark);

    box-shadow:
        0 14px 30px
        rgba(37, 99, 235, 0.3);
}

.button-secondary {
    background: #fff;

    border:
        1px solid var(--border);
}

.button-secondary:hover {
    box-shadow: var(--shadow);
}


/* HERO FEATURES */

.hero-features {
    display: flex;
    flex-wrap: wrap;

    gap: 15px;
}

.hero-features > div {
    min-width: 135px;

    display: flex;
    flex-direction: column;

    padding-right: 20px;

    border-right:
        1px solid var(--border);
}

.hero-features > div:last-child {
    border-right: none;
}

.hero-features strong {
    margin-bottom: 3px;

    font-size: 14px;
}

.hero-features span {
    color: var(--text-soft);

    font-size: 12px;
}


/* =========================================
   HERO CAMERA CARD
========================================= */

.hero-card {
    min-height: 500px;

    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 40px;

    border-radius: var(--radius-lg);

    background:
        radial-gradient(
            circle at 70% 20%,
            #38404d 0,
            #171a20 42%,
            #0c0e12 100%
        );

    box-shadow:
        0 35px 70px
        rgba(0, 0, 0, 0.18);
}

.hero-card::before {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    top: -170px;
    right: -130px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.06);
}


/* CAMERA DRAWING */

.camera-visual {
    min-height: 320px;

    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-body {
    width: 270px;
    height: 170px;

    position: relative;

    border-radius:
        80px 80px
        50px 50px;

    background:
        linear-gradient(
            145deg,
            #f9fafb,
            #cfd3da
        );

    box-shadow:
        0 35px 50px
        rgba(0, 0, 0, 0.35);

    transform:
        rotate(-7deg);
}

.camera-body::before {
    content: "";

    position: absolute;

    width: 95px;
    height: 45px;

    left: 50%;
    bottom: -35px;

    transform:
        translateX(-50%);

    background:
        linear-gradient(
            #cfd3da,
            #9ea4ad
        );

    border-radius:
        0 0 18px 18px;
}

.camera-body::after {
    content: "";

    position: absolute;

    width: 150px;
    height: 18px;

    left: 50%;
    bottom: -48px;

    transform:
        translateX(-50%);

    border-radius: 50px;

    background: #9298a1;
}

.camera-lens {
    width: 100px;
    height: 100px;

    position: absolute;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    border:
        12px solid #b8bec6;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            #2367a6 0%,
            #142c43 22%,
            #05070a 58%,
            #16191d 100%
        );

    box-shadow:
        inset 0 0 20px
        rgba(255, 255, 255, 0.15);
}

.camera-lens::after {
    content: "";

    position: absolute;

    width: 15px;
    height: 15px;

    top: 18px;
    left: 22px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.55);

    filter: blur(1px);
}


/* HERO CARD TEXT */

.hero-card-info {
    position: relative;
    z-index: 3;

    display: flex;
    flex-direction: column;

    gap: 7px;

    color: #fff;
}

.hero-card-info span {
    color: #aab0bb;

    font-size: 13px;
}

.hero-card-info strong {
    max-width: 330px;

    font-size: 23px;
    line-height: 1.25;
}


/* =========================================
   GENERAL SECTION
========================================= */

.section {
    padding: 80px 0;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 35px;
}

.section-heading h2,
.ready-grid h2 {
    margin-top: 8px;

    font-size:
        clamp(
            30px,
            4vw,
            46px
        );

    line-height: 1.05;

    letter-spacing: -2px;
}

.section-heading > a {
    color: var(--accent);

    font-size: 14px;
    font-weight: 700;
}

.section-label {
    color: var(--accent);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1px;
    text-transform: uppercase;
}


/* =========================================
   CATEGORIES
========================================= */

.categories {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;
}

.category-card {
    min-height: 190px;

    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;

    padding: 25px;

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    background: var(--surface);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.category-card:hover {
    transform:
        translateY(-5px);

    border-color:
        rgba(37, 99, 235, 0.3);

    box-shadow: var(--shadow);
}

.category-icon {
    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: auto;

    border-radius: 15px;

    background: #eff3ff;
    color: var(--accent);

    font-size: 13px;
    font-weight: 850;

    letter-spacing: -0.3px;
}

.category-card strong {
    margin-top: 25px;

    font-size: 18px;
}

.category-card small {
    margin-top: 4px;

    color: var(--text-soft);

    font-size: 13px;
}


/* =========================================
   DARK SECTION
========================================= */

.section-dark {
    width:
        min(
            calc(100% - 40px),
            1360px
        );

    margin: 40px auto;

    padding:
        80px 0;

    border-radius: 35px;

    background:
        linear-gradient(
            135deg,
            #101217,
            #1a1e25
        );

    color: #fff;
}

.ready-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 70px;

    align-items: center;
}

.ready-grid h2 {
    max-width: 570px;

    margin-bottom: 20px;
}

.ready-grid p {
    max-width: 570px;

    margin-bottom: 28px;

    color: #aeb4bd;

    line-height: 1.7;
}

.button-light {
    background: #fff;
    color: #111318;
}

.button-light:hover {
    background: #f0f1f3;
}


/* READY STATS */

.ready-stats {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 12px;
}

.ready-stats div {
    min-height: 145px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 25px;

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    border-radius: 20px;

    background:
        rgba(255, 255, 255, 0.05);
}

.ready-stats strong {
    margin-bottom: 4px;

    font-size: 38px;
    letter-spacing: -2px;
}

.ready-stats span {
    color: #aeb4bd;

    font-size: 13px;
}


/* =========================================
   SERVICES
========================================= */

.services-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;
}

.service-card {
    min-height: 230px;

    padding: 25px;

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    background: #fff;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.service-card:hover {
    transform:
        translateY(-4px);

    box-shadow: var(--shadow);
}

.service-card > span {
    display: block;

    margin-bottom: 45px;

    color: var(--accent);

    font-size: 12px;
    font-weight: 800;
}

.service-card h3 {
    margin-bottom: 10px;

    font-size: 20px;
}

.service-card p {
    color: var(--text-soft);

    font-size: 14px;
    line-height: 1.65;
}


/* =========================================
   FOOTER
========================================= */

.footer {
    margin-top: 50px;

    padding:
        65px 0
        25px;

    background: #0d0f13;
    color: #fff;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        2fr 1fr 1fr;

    gap: 60px;

    padding-bottom: 55px;
}

.footer-logo {
    margin-bottom: 18px;
}

.footer .logo-mark {
    background: #fff;
    color: #111318;
}

.footer-grid > div {
    display: flex;
    flex-direction: column;

    align-items: flex-start;
}

.footer-grid p {
    max-width: 330px;

    color: #8e949d;

    font-size: 14px;
}

.footer-grid strong {
    margin-bottom: 15px;

    font-size: 14px;
}

.footer-grid a:not(.logo) {
    margin-bottom: 9px;

    color: #9399a2;

    font-size: 13px;

    transition: color 0.2s ease;
}

.footer-grid a:hover {
    color: #fff;
}

.copyright {
    padding-top: 23px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.08);

    color: #737983;

    font-size: 12px;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {

    .nav {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .hero-content {
        max-width: 800px;
    }

    .hero-card {
        min-height: 440px;
    }

    .categories {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .ready-grid {
        gap: 40px;
    }

    .services-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {

    .container {
        width:
            min(
                calc(100% - 28px),
                var(--container)
            );
    }

    .header-inner {
        min-height: 68px;

        gap: 10px;
    }

    .logo {
        font-size: 18px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;

        font-size: 17px;
    }

    .catalog-button {
        display: none;
    }

    .cart-button {
        min-height: 38px;

        padding:
            0 12px;

        font-size: 12px;
    }


    /* HERO */

    .hero {
        padding:
            45px 0
            25px;
    }

    .hero-grid {
        gap: 35px;
    }

    .hero-label {
        margin-bottom: 18px;

        font-size: 10px;
    }

    .hero h1 {
        margin-bottom: 18px;

        font-size: 45px;

        letter-spacing: -2.7px;
    }

    .hero-content > p {
        font-size: 15px;
    }

    .hero-buttons {
        display: grid;

        grid-template-columns: 1fr;

        margin-bottom: 32px;
    }

    .button {
        width: 100%;
    }

    .hero-features {
        display: grid;

        grid-template-columns:
            repeat(3, 1fr);

        gap: 0;
    }

    .hero-features > div {
        min-width: 0;

        padding:
            0 10px;

        text-align: center;
    }

    .hero-features > div:first-child {
        padding-left: 0;
    }

    .hero-features > div:last-child {
        padding-right: 0;
    }

    .hero-features strong {
        font-size: 12px;
    }

    .hero-features span {
        font-size: 10px;
    }


    /* CAMERA */

    .hero-card {
        min-height: 370px;

        padding: 25px;

        border-radius: 24px;
    }

    .camera-visual {
        min-height: 250px;
    }

    .camera-body {
        width: 210px;
        height: 135px;
    }

    .camera-lens {
        width: 80px;
        height: 80px;

        border-width: 10px;
    }

    .hero-card-info strong {
        font-size: 19px;
    }


    /* SECTIONS */

    .section {
        padding: 55px 0;
    }

    .section-heading {
        align-items: flex-start;
    }

    .section-heading h2,
    .ready-grid h2 {
        font-size: 32px;

        letter-spacing: -1.5px;
    }

    .section-heading > a {
        display: none;
    }


    /* CATEGORIES */

    .categories {
        grid-template-columns: 1fr;

        gap: 10px;
    }

    .category-card {
        min-height: 130px;

        display: grid;

        grid-template-columns:
            55px 1fr;

        grid-template-rows:
            auto auto;

        column-gap: 15px;

        align-items: center;

        padding: 18px;
    }

    .category-icon {
        grid-row:
            1 / span 2;

        margin: 0;
    }

    .category-card strong {
        align-self: end;

        margin: 0;
    }

    .category-card small {
        align-self: start;

        margin: 0;
    }


    /* DARK */

    .section-dark {
        width:
            calc(100% - 16px);

        margin: 20px auto;

        padding:
            55px 0;

        border-radius: 25px;
    }

    .ready-grid {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .ready-stats {
        gap: 8px;
    }

    .ready-stats div {
        min-height: 110px;

        padding: 18px;
    }

    .ready-stats strong {
        font-size: 30px;
    }


    /* SERVICES */

    .services-grid {
        grid-template-columns: 1fr;

        gap: 10px;
    }

    .service-card {
        min-height: auto;
    }

    .service-card > span {
        margin-bottom: 25px;
    }


    /* FOOTER */

    .footer {
        margin-top: 20px;

        padding-top: 45px;
    }

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 35px;

        padding-bottom: 40px;
    }
}
/* =========================================
   LANGUAGE SWITCHER
========================================= */

.language-switcher {
    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    padding: 0 12px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: #fff;

    font-size: 12px;
    font-weight: 700;
}

.language-switcher a {
    color: var(--text-soft);

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.language-switcher a:hover {
    color: var(--accent);
}

.language-switcher a.active {
    color: var(--accent);
    font-weight: 800;
}

.language-divider {
    color: #c4c7cc;
    font-weight: 400;
}


/* MOBILE */

@media (max-width: 650px) {

    .language-switcher {
        min-height: 38px;

        padding: 0 9px;

        gap: 4px;

        font-size: 10px;
    }

}