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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fa;
    color: #111827;
    line-height: 1.6;
}

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


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

.header {
    min-height: 76px;

    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(15px);

    display: flex;
    align-items: center;

    gap: 28px;

    padding: 0 40px;

    position: sticky;
    top: 0;

    z-index: 4000;

    border-bottom: 1px solid #e5e7eb;
}

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

    flex-shrink: 0;
}

.logo {
    font-size: 25px;

    font-weight: 800;

    letter-spacing: -1px;
}

.logo span {
    color: #0ea5e9;
}


/* =========================
   SEARCH
========================= */

.search {
    position: relative;

    flex: 1;

    max-width: 700px;

    margin: auto;
}

.search-input-wrapper {
    position: relative;

    width: 100%;
    height: 48px;

    display: flex;
    align-items: center;

    background: #f8fafc;

    border: 1px solid #d1d5db;

    border-radius: 12px;

    z-index: 4002;

    transition: .2s;
}

.search.open .search-input-wrapper {
    background: #ffffff;

    border-color: #0ea5e9;

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

.search-icon {
    position: absolute;

    left: 16px;

    color: #64748b;

    font-size: 25px;

    line-height: 1;

    pointer-events: none;
}

.search-input-wrapper input {
    width: 100%;
    height: 100%;

    border: none;
    outline: none;

    background: transparent;

    padding: 0 50px;

    font-size: 16px;

    color: #111827;
}

.search-input-wrapper input::placeholder {
    color: #94a3b8;
}

.search-clear {
    position: absolute;

    right: 12px;

    width: 28px;
    height: 28px;

    border: none;
    border-radius: 50%;

    background: #e5e7eb;

    color: #64748b;

    font-size: 20px;

    line-height: 28px;

    cursor: pointer;

    display: none;
}

.search.has-text .search-clear {
    display: block;
}

.search-clear:hover {
    background: #cbd5e1;
}


/* =========================
   SEARCH PANEL
========================= */

.search-panel {
    position: absolute;

    top: 48px;
    left: 0;

    width: 100%;

    background: white;

    border: 1px solid #d1d5db;
    border-top: none;

    border-radius: 0 0 16px 16px;

    box-shadow:
        0 18px 50px rgba(15, 23, 42, .18);

    overflow: hidden;

    display: none;

    z-index: 4001;
}

.search.open .search-panel {
    display: block;
}

.search-results {
    max-height: 420px;

    overflow-y: auto;
}


/* =========================
   SEARCH RESULT
========================= */

.search-result {
    display: flex;

    align-items: center;

    width: 100%;

    padding: 14px 18px;

    border-bottom: 1px solid #f1f5f9;

    background: white;

    transition: .15s;
}

.search-result:hover {
    background: #f8fafc;
}

.search-result-icon {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

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

    border-radius: 10px;

    background: #f1f5f9;

    font-size: 17px;
}

.search-result-content {
    flex: 1;

    padding-left: 12px;
}

.search-result-title {
    font-size: 16px;

    font-weight: 600;

    color: #111827;
}

.search-result-type {
    margin-top: 2px;

    font-size: 13px;

    color: #94a3b8;
}

.search-result-arrow {
    font-size: 21px;

    color: #94a3b8;
}


/* =========================
   NO RESULTS
========================= */

.no-results {
    padding: 30px 20px;

    text-align: center;

    color: #64748b;

    font-size: 15px;
}


/* =========================
   POPULAR SEARCHES
========================= */

.popular-searches {
    padding: 20px;

    border-top: 1px solid #e5e7eb;
}

.popular-searches h3 {
    margin-bottom: 14px;

    font-size: 16px;

    color: #111827;
}

.popular-list {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

.popular-list button {
    padding: 8px 13px;

    border: 1px solid #dbeafe;

    border-radius: 999px;

    background: #f8fbff;

    color: #334155;

    font-size: 13px;

    cursor: pointer;

    transition: .2s;
}

.popular-list button:hover {
    background: #e0f2fe;

    border-color: #7dd3fc;

    color: #0284c7;
}


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

.header-right {
    display: flex;

    align-items: center;

    gap: 8px;

    flex-shrink: 0;
}

.header-icon {
    height: 44px;

    display: flex;
    align-items: center;

    gap: 7px;

    padding: 0 13px;

    border: none;
    border-radius: 10px;

    background: #f1f5f9;

    font-family: inherit;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition: .25s;
}

.header-icon:hover {
    background: #e0f2fe;

    color: #0284c7;
}


/* =========================
   PHONE MENU
========================= */

.phone-dropdown {
    position: relative;
}

.phone-button {
    font-family: inherit;
}

.phone-menu {
    display: none;

    position: absolute;

    right: 0;
    top: calc(100% + 9px);

    width: 260px;

    background: white;

    border-radius: 14px;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, .15);

    overflow: hidden;

    z-index: 5000;
}

.phone-dropdown:hover .phone-menu {
    display: block;
}

.phone-menu a {
    display: block;

    padding: 16px;

    border-bottom: 1px solid #eee;

    font-weight: 600;

    color: #111827;
}

.phone-menu a:last-child {
    border-bottom: none;
}

.phone-menu a:hover {
    background: #f0f9ff;

    color: #0284c7;
}


/* =========================
   CATEGORY NAVIGATION
========================= */

.category-navigation {
    width: 100%;

    background: #ffffff;

    border-bottom: 1px solid #e5e7eb;

    position: sticky;

    top: 76px;

    z-index: 3000;

    box-shadow:
        0 4px 15px rgba(15, 23, 42, .04);
}

.category-navigation-inner {
    max-width: 1400px;

    margin: auto;

    padding: 14px 30px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    flex-wrap: wrap;
}

.category-link {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 9px 14px;

    border-radius: 9px;

    border: 1px solid transparent;

    color: #475569;

    background: #f8fafc;

    font-size: 14px;

    font-weight: 600;

    white-space: nowrap;

    transition: .2s;
}

.category-link:hover {
    color: #0284c7;

    background: #e0f2fe;

    border-color: #bae6fd;

    transform: translateY(-1px);
}


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

.hero {
    min-height: 570px;

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

    text-align: center;

    padding: 80px 25px;

    background:
        radial-gradient(
            circle at 20% 20%,
            #dff4ff,
            transparent 35%
        ),

        radial-gradient(
            circle at 80% 70%,
            #e0f2fe,
            transparent 35%
        ),

        #ffffff;
}

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

.hero-label {
    display: inline-block;

    padding: 8px 15px;

    border-radius: 50px;

    background: #e0f2fe;

    color: #0284c7;

    font-size: 13px;

    font-weight: 800;

    letter-spacing: .8px;

    margin-bottom: 25px;
}

.hero h1 {
    font-size: clamp(42px, 7vw, 76px);

    line-height: 1.05;

    letter-spacing: -3px;

    margin-bottom: 25px;
}

.hero h1 span {
    display: block;

    color: #0ea5e9;
}

.hero p {
    max-width: 680px;

    margin: auto auto 35px;

    font-size: 20px;

    color: #64748b;
}

.hero-buttons {
    display: flex;

    justify-content: center;

    gap: 15px;
}

.primary-button,
.secondary-button {
    padding: 14px 25px;

    border-radius: 10px;

    font-weight: 700;

    transition: .25s;
}

.primary-button {
    background: #0ea5e9;

    color: white;
}

.primary-button:hover {
    background: #0284c7;

    transform: translateY(-2px);
}

.secondary-button {
    background: white;

    border: 1px solid #d1d5db;
}

.secondary-button:hover {
    border-color: #0ea5e9;

    color: #0284c7;
}


/* =========================
   CATALOG
========================= */

.models {
    max-width: 1400px;

    margin: auto;

    padding: 90px 30px;
}

.section-heading {
    display: flex;

    justify-content: space-between;

    align-items: end;

    gap: 30px;

    margin-bottom: 40px;
}

.section-label {
    color: #0ea5e9;

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 1px;
}

.section-heading h2,
.about h2 {
    font-size: 42px;

    line-height: 1.1;

    margin-top: 8px;
}

.section-heading p {
    max-width: 400px;

    color: #64748b;
}

.model-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(260px, 1fr)
        );

    gap: 18px;
}

.model-card {
    position: relative;

    min-height: 170px;

    padding: 25px;

    background: white;

    border: 1px solid #e5e7eb;

    border-radius: 16px;

    overflow: hidden;

    transition: .25s;
}

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

    border-color: #7dd3fc;

    box-shadow:
        0 15px 35px rgba(15,23,42,.08);
}

.model-number {
    color: #cbd5e1;

    font-size: 13px;

    font-weight: 800;

    margin-bottom: 25px;
}

.model-card h3 {
    font-size: 19px;

    margin-bottom: 18px;
}

.model-card span {
    color: #0ea5e9;

    font-size: 14px;

    font-weight: 700;
}


/* =========================
   ABOUT
========================= */

.about {
    max-width: 1100px;

    margin: auto;

    padding: 90px 30px;
}

.about-heading {
    text-align: center;

    margin-bottom: 45px;
}

.about h2 {
    margin-top: 10px;
}

.about-text {
    background: white;

    padding: 50px;

    border-radius: 20px;

    border: 1px solid #e5e7eb;

    box-shadow:
        0 10px 40px rgba(15,23,42,.05);
}

.about-text p {
    font-size: 17px;

    line-height: 1.8;

    color: #475569;

    margin-bottom: 25px;
}

.about-text h3 {
    font-size: 27px;

    color: #111827;

    margin: 40px 0 18px;
}

.about-text strong {
    color: #111827;
}


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

footer {
    background: #0f172a;

    color: white;

    padding: 60px max(30px, calc((100% - 1340px) / 2));

    display: grid;

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

    gap: 60px;
}

footer .logo {
    color: white;

    margin-bottom: 15px;
}

footer p {
    color: #94a3b8;

    max-width: 350px;
}

footer h4 {
    margin-bottom: 18px;

    font-size: 16px;
}

footer a {
    display: block;

    color: #94a3b8;

    margin-bottom: 10px;

    transition: .2s;
}

footer a:hover {
    color: #38bdf8;
}


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

@media (max-width: 900px) {

    .header {
        padding: 15px 20px;

        flex-wrap: wrap;

        height: auto;
    }

    .header-left {
        width: auto;
    }

    .search {
        order: 3;

        flex-basis: 100%;

        margin: 0;
    }

    .header-icon span {
        display: none;
    }

    .section-heading {
        flex-direction: column;

        align-items: flex-start;
    }

    .category-navigation {
        position: relative;

        top: 0;
    }

    .category-navigation-inner {
        padding: 12px 15px;

        justify-content: flex-start;

        overflow-x: auto;

        flex-wrap: nowrap;

        scrollbar-width: none;
    }

    .category-navigation-inner::-webkit-scrollbar {
        display: none;
    }

    .category-link {
        flex-shrink: 0;

        font-size: 13px;

        padding: 8px 12px;
    }

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


@media (max-width: 650px) {

    .header {
        gap: 15px;
    }

    .logo {
        font-size: 22px;
    }

    .hero {
        min-height: 520px;

        padding: 60px 20px;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .hero p {
        font-size: 17px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        width: 100%;

        text-align: center;
    }

    .models,
    .about {
        padding: 60px 15px;
    }

    .section-heading h2,
    .about h2 {
        font-size: 34px;
    }

    .about-text {
        padding: 25px 20px;
    }

    .about-text p {
        font-size: 16px;
    }

    footer {
        grid-template-columns: 1fr;

        gap: 35px;

        padding: 45px 25px;
    }


    /* Пошук на телефоні */

    .search-panel {
        position: fixed;

        top: 76px;
        left: 0;

        width: 100%;

        max-height: calc(100vh - 76px);

        border-radius: 0;

        overflow-y: auto;
    }

    .search-results {
        max-height: none;
    }

    .phone-menu {
        right: -10px;
    }
}