:root {
    --primary-color: #7115a6;
    --primary-hover: #8e1dcf;
    --secondary-color: #fbae17;
    --secondary-dark: #d47f00;
    --bg-color: #f6f3f8;
    --text-main: #1a1224;
    --text-muted: #5b5666;
    --card-bg: #ffffff;
    --border-color: #eadff3;
    --header-start: #fff700;
    --header-end: #d47f00;
    --shadow: 0 8px 24px rgba(113, 21, 166, 0.08);
    --radius: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

a {
    color: var(--primary-color);
}

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--header-start), var(--header-end));
    color: #111;
    text-align: center;
    padding: 1.75rem 1.25rem 1.5rem;
}

.main-title {
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-logo {
    font-size: clamp(2rem, 6vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #1a1224;
    text-shadow: 0 2px 0 rgba(255, 255, 255, 0.35);
}

.site-logo span {
    color: var(--primary-color);
}

.img-title {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

/* Layout */
.page {
    flex: 1;
    width: 100%;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.header-title {
    font-size: clamp(1.25rem, 3vw, 1.85rem);
    font-weight: 650;
    text-align: center;
    padding: 2.25rem 0 1.75rem;
    color: var(--text-main);
}

/* Controls */
.controls-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: stretch;
}

.search-wrapper {
    width: 100%;
    max-width: none;
}

#searchInput {
    width: 100%;
    padding: 0.95rem 1.35rem;
    font-size: 1.05rem;
    border: 2px solid var(--border-color);
    border-radius: 999px;
    outline: none;
    background: var(--card-bg);
    color: var(--text-main);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(17, 24, 39, 0.04);
}

#searchInput:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(113, 21, 166, 0.12);
}

.view-toggle {
    display: flex;
    align-self: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.toggle-btn {
    background: none;
    border: none;
    padding: 0.7rem 1.15rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.2s, color 0.2s;
}

.toggle-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.toggle-btn:hover {
    background: #f4edf8;
    color: var(--primary-color);
}

.toggle-btn.active,
.toggle-btn.active:hover,
.toggle-btn.active:focus {
    background: var(--primary-color);
    color: #fff;
}

/* Catalog */
.catalog {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    padding-bottom: 2.5rem;
}

.product-card {
    position: relative;
    background-color: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: visible;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(113, 21, 166, 0.12);
}

.product-media {
    position: relative;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.product-image {
    width: 100%;
    max-width: 420px;
    height: auto;
    object-fit: contain;
}

.icon-video {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.product-content {
    padding: 1.25rem 1.35rem 1.4rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.75rem;
}

.product-title-area {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.product-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.25;
}

.product-age {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.82rem;
    background-color: var(--secondary-color);
    color: var(--text-main);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    white-space: nowrap;
}

.product-desc {
    color: var(--text-muted);
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.product-price {
    font-size: 1.05rem;
    font-weight: 700;
}

.product-price .links {
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.product-price .links:hover {
    border-bottom-color: currentColor;
}

.ribbon {
    position: absolute;
    top: 14px;
    left: -18px;
    z-index: 1;
    padding: 0.4rem 0.85rem;
    /* border-radius: 999px; */
    background: var(--secondary-color);
    color: #111;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    @media (max-width: 768px) {
        font-size: 0.8rem;
    }
}
.ribbon::after {
    content: "";
    position: absolute;
    bottom: -18px;
    left: 0;
    border-top: 18px solid #FBAE17;
    filter: brightness(70%);
    border-left: 18px solid transparent;
    
}

.btn-link {
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    padding: 0.7rem 1.15rem;
    border-radius: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: background-color 0.2s, transform 0.2s;
}

.btn-link:hover {
    background-color: var(--primary-hover);
    color: #fff;
}

.no-results {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    display: none;
    padding: 1.5rem 1rem 2rem;
}

.catalog.grid-view {
    grid-template-columns: 1fr;
    align-items: stretch;
}

@media (min-width: 700px) {
    .catalog.grid-view {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .catalog.grid-view {
        grid-template-columns: repeat(3, 1fr);
    }
}

.catalog.grid-view .product-card {
    flex-direction: column;
    height: 100%;
}

.catalog.grid-view .product-media {
    min-height: 250px;
    height: 260px;
}

.catalog.grid-view .product-image {
    max-width: 100%;
    max-height: 230px;
}

.catalog.grid-view .product-title-area {
    flex-direction: column;
    align-items: flex-start;
}

/* Telesales */
.telesales {
    background: linear-gradient(180deg, #f3edfa 0%, #ece4f7 100%);
    border: 1px solid #ddccec;
    border-radius: var(--radius);
    padding: 2.25rem 1.5rem;
    text-align: center;
    margin: 0.5rem 0 3.5rem;
    @media (max-width: 700px) {
        padding: 2.25rem 0.5rem;
    }
}

.telesales h2 {
    color: var(--primary-color);
    margin-bottom: 0.4rem;
    font-size: 1.7rem;
}

.telesales p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.links {
    color: var(--primary-color);
}

.telesales .links {
    text-decoration: none;
}

.contact-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
    align-items: stretch;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 600;
    background: #fff;
    padding: 0.9rem 1.35rem;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(113, 21, 166, 0.06);
    min-width: min(100%, 250px);
    @media (max-width: 700px) {
        padding: 0.9rem 0.35rem;    
    }
}

/* Footer */
footer {
    background-color: #1d1b1b;
    color: #d1d5db;
    text-align: center;
    padding: 2rem 1.25rem;
}

footer p {
    margin-bottom: 0.65rem;
}

.social-links {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    vertical-align: middle;
    margin-left: 0.35rem;
}

.social-links a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    transition: background-color 0.2s, transform 0.2s;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.social-links img {
    width: 20px;
    height: 20px;
}

@media (min-width: 768px) {
    .controls-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .search-wrapper {
        max-width: 520px;
        flex: 1;
    }

    .view-toggle {
        align-self: auto;
    }

    .catalog:not(.grid-view) .product-card {
        flex-direction: row;
        align-items: stretch;
    }

    .catalog:not(.grid-view) .product-media {
        flex: 0 0 280px;
        max-width: 280px;
        padding: 1.25rem;
    }

    .catalog:not(.grid-view) .product-image {
        max-width: 100%;
    }

    .catalog:not(.grid-view) .product-content {
        padding: 1.5rem 1.75rem 1.5rem 0.5rem;
    }
}

@media (min-width: 988px) {
    .catalog:not(.grid-view) .product-media {
        flex-basis: 340px;
        max-width: 340px;
    }
}

@media (max-width: 599px) {
    .contact-item {
        width: 100%;
    }

    .product-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-link {
        width: 100%;
    }
}
