/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #2d2d2d;
    background-color: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e5e5;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 20px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #4a4a4a;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #1a1a1a;
}

.grid-badges {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.grid-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.grid-badge.top {
    background: darkgreen;
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1a1a1a;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.catalog-link {
    background: #1a1a1a;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.catalog-link::after {
    display: none;
}

.catalog-link:hover {
    background: #333;
}

.profile-link {
    color: #1a1a1a !important;
    background-color: transparent;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
}

.profile-link::after {
    display: none;
}

.profile-link:hover {
    color: #333;
}

.profile-link.active {
    background: #1a1a1a;
}

.logo-header {
    color: #1a1a1a;
    text-decoration: none
}
.element__interacted_none {
    user-select: none;
}

/* Cart Dropdown Styles */
.cart-dropdown {
    position: relative;
    display: flex;
}

.cart-toggle {
    color: #1a1a1a;
    border: none;
    padding: 0.5rem 1rem;
    background-color: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Inter', sans-serif;
}

.cart-toggle:hover {
    color: #333;
}

.cart-count {
  background: #ef4444;
  color: #fff;
  border-radius: 999px;

  min-width: 20px;
  height: 20px;
  padding: 0 6px;

  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-weight: 600;
  line-height: 1;
  white-space: nowrap;

  flex-shrink: 0;
}

.cart-count.is-hidden {
  display: none !important;
}

.cart-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.price-discount {
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
}

.cart-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e5e5;
}

.cart-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
}

.cart-total {
    color: #6a6a6a;
    font-size: 0.9rem;
}

.cart-items {
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.cart-item-info p {
    color: #6a6a6a;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.cart-item-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quantity {
    color: #6a6a6a;
    font-size: 0.85rem;
}

.price {
    font-weight: 600;
    color: #1a1a1a;
}

.remove-item {
    position: absolute;
    top: 0.5rem;
    right: 0;
    background: none;
    border: none;
    color: #a0a0a0;
    cursor: pointer;
    font-size: 1.2rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.remove-item:hover {
    background: #f5f5f5;
    color: #ef4444;
}

.cart-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e5e5;
}

.cart-subtotal {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.cart-actions {
    display: flex;
    gap: 0.75rem;
}

.cart-actions .btn {
    flex: 1;
    padding: 0.75rem;
    font-size: 0.9rem;
    text-align: center;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #1a1a1a;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding-top: 80px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.highlight {
    color: #4a4a4a;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #6a6a6a;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-secondary {
    background: transparent;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
}

.btn-secondary:hover {
    background: #1a1a1a;
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #4a4a4a;
    border: 1px solid #e5e5e5;
    padding: 0.75rem 1.5rem;
}

.btn-outline:hover {
    background: #f8f9fa;
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.btn-primary {
    background: #1a1a1a;
    color: white;
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
}

/* Hero Illustration */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lock-illustration {
    position: relative;
    width: 300px;
    height: 400px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.lock-body {
    width: 200px;
    height: 300px;
    background: linear-gradient(145deg, #e0e0e0, #f5f5f5);
    border-radius: 20px;
    position: absolute;
    top: 50px;
    left: 50px;
    box-shadow:
        20px 20px 40px rgba(0,0,0,0.1),
        -20px -20px 40px rgba(255,255,255,0.8);
}

.lock-screen {
    width: 120px;
    height: 80px;
    background: #1a1a1a;
    border-radius: 10px;
    position: absolute;
    top: 100px;
    left: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lock-screen::after {
    content: '';
    width: 60px;
    height: 2px;
    background: #4ade80;
    animation: scan 2s ease-in-out infinite;
}

@keyframes scan {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.lock-keypad {
    position: absolute;
    bottom: 80px;
    left: 90px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.key {
    width: 25px;
    height: 25px;
    background: #d0d0d0;
    border-radius: 50%;
    box-shadow: inset 2px 2px 4px rgba(0,0,0,0.1);
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1a1a1a;
}

/* Advantages Section */
.advantages {
    padding: 6rem 0;
    background: white;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.advantage-card {
    padding: 2rem;
    background: #fafafa;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.advantage-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.advantage-card p {
    color: #6a6a6a;
    line-height: 1.6;
}

/* Featured Products */
.featured-products {
    padding: 6rem 0;
    background: #f8f9fa;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e5e5e5;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.product-description {
    color: #6a6a6a;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.products-cta {
    text-align: center;
}

/* FAQ Section */
.faq {
    padding: 6rem 0;
    background: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 1rem;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.price-now {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.faq-question:hover {
    color: #1a1a1a;
}

.faq-question h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d2d2d;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    color: #6a6a6a;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 1.5rem;
}

.faq-answer p {
    color: #6a6a6a;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #e5e5e5;
}

.footer-section p {
    color: #a0a0a0;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-block;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #a0a0a0;
}

.price-grid {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.old-price {
    font-size: 1rem;
    color: #a0a0a0;
    text-decoration: line-through;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .nav-link:hover::after {
    width: 0;
}

    .price-now {
        font-size: 1.75rem;
    }
    .mobile-menu-toggle {
        display: flex;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .lock-illustration {
        width: 250px;
        height: 350px;
    }

    .lock-body {
        width: 180px;
        height: 270px;
    }
    .nav-link {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .price-grid {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}
@media (max-width: 900px) {
    .nav-link {
        font-size: 14px;
    }
    .cart-toggle {
        font-size: 14px;
    }
    .cart-count {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 830px) {
    .nav-link {
        font-size: 12px;
    }
    .cart-toggle {
        font-size: 12px;
    }
    .cart-count {
        width: 16px;
        height: 16px;
    }
}


/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile Navigation Fixes */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem 0;
        transition: left 0.3s ease;
        z-index: 999;
        border-top: 1px solid #e5e5e5;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        overflow-x: scroll;
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 2rem;
        width: 100%;
        text-align: center;
    }

    .nav-menu .nav-link {
        font-size: 1.1rem;
        padding: 1rem;
        display: inline-block;
        width: 90%;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .nav-menu .nav-link:hover {
        background: #f8f9fa;
    }

    .nav-menu .catalog-link,
    .nav-menu .profile-link {
        margin: 0.5rem auto;
        width: 90%;
        display: block;
        text-align: center;
    }

    .mobile-menu-toggle {
        display: flex;
    }


    .cart-menu {
        width: 300px;
        right: -75%;
    }

    .header-actions {
        order: 1;
    }

    .mobile-menu-toggle {
        order: 2;
    }
}
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.full-btn {
    display: flex;
    justify-content: center;
}

.filters-mobile {
    display: none;
    justify-content: center;
}

.filters-mobile > * {
    width: 100%;
}

@media (max-width: 1024px) {
    .filters-mobile {
        display: flex;
    }
}

/* Добавить в конец styles.css */

/* Search Overlay (новый функционал) */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    padding-top: 0;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    width: 90%;
    padding: 2rem 0;
}

.search-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.close-search {
    background: transparent;
    border: none;
    color: #1a1a1a;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-search:hover {
    background: #f5f5f5;
    color: #333;
}

.close-search svg {
    width: 24px;
    height: 24px;
}

.search-form {
    flex: 1;
    position: relative;
}

#searchInput {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

#searchInput:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

.search-submit {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #6a6a6a;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit:hover {
    color: #1a1a1a;
}

.search-submit svg {
    width: 18px;
    height: 18px;
}

/* Search Results */
.search-results {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.search-placeholder {
    padding: 2rem;
    text-align: center;
    color: #a0a0a0;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 1rem;
    flex-shrink: 0;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-info {
    flex: 1;
}

.search-result-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.search-result-info p {
    font-size: 0.85rem;
    color: #6a6a6a;
}

.search-result-price {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1rem;
    margin-left: 1rem;
    flex-shrink: 0;
}

.view-all-results {
    display: block;
    padding: 1rem;
    text-align: center;
    background: #f8f9fa;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 12px 12px;
    transition: all 0.3s ease;
}

.view-all-results:hover {
    background: #1a1a1a;
    color: white;
}

/* Loading Animation for Search */
.search-loading {
    text-align: center;
    padding: 2rem;
    color: #6a6a6a;
}

.search-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e5e5e5;
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: searchLoading 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes searchLoading {
    to {
        transform: rotate(360deg);
    }
}

/* Desktop Search Icon */
.search-icon.desktop-search {
    background: transparent;
    border: none;
    color: #1a1a1a;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-icon.desktop-search:hover {
    background: #f5f5f5;
    color: #333;
}

.search-icon.desktop-search svg {
    width: 16px;
    height: 16px;
}

/* Mobile Icons */
.mobile-icons {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

.mobile-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #1a1a1a;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-icon:hover {
    background: #f5f5f5;
    color: #333;
}

.mobile-icon svg {
    width: 18px;
    height: 18px;
}

.phone-icon, .geo-icon {
    text-decoration: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .mobile-icons {
        display: flex;
        order: 2;
    }

    .header-actions {
        order: 1;
    }

    .mobile-menu-toggle {
        order: 3;
    }

    /* Hide desktop search icon on mobile */
    .search-icon.desktop-search {
        display: none !important;
    }

    .search-container {
        width: 95%;
        padding: 1rem 0;
    }

    .search-header {
        margin-bottom: 1.5rem;
    }


    .mobile-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
    }

    .mobile-icon svg {
        width: 16px;
        height: 16px;
    }
}
/* Добавить в конец файла styles.css */

/* Hide cart on mobile */
@media (max-width: 768px) {
    .cart-dropdown {
        display: none !important;
    }
}

/* Mobile Navigation Container */
.mobile-nav-container {
    display: none;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    margin-left: auto;
}

/* Mobile Icons - равномерное распределение */
.mobile-icons {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-around;
    gap: 0;
}

.mobile-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #1a1a1a;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    flex: 1;
    min-width: 0;
}

.mobile-icon:hover {
    background: #f5f5f5;
    color: #333;
}

.mobile-icon svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.phone-icon, .geo-icon {
    text-decoration: none;
}

/* Mobile Toggle Wrapper */
.mobile-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: 10px;
}

/* Mobile Menu Toggle (три полоски) */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: #f5f5f5;
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: #1a1a1a;
    transition: 0.3s;
}

/* Desktop Search Icon */
.search-icon.desktop-search {
    background: transparent;
    border: none;
    color: #1a1a1a;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-icon.desktop-search:hover {
    background: #f5f5f5;
    color: #333;
}

.search-icon.desktop-search svg {
    width: 16px;
    height: 16px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .mobile-nav-container {
        display: flex;
        order: 2;
    }

    .header-actions {
        order: 1;
    }

    .mobile-menu-toggle {
        order: 3;
    }

    /* Hide desktop search icon on mobile */
    .search-icon.desktop-search {
        display: none !important;
    }

    /* Adjust mobile icons for better spacing */
    .mobile-icon {
        width: 36px;
        height: 36px;
        padding: 0.4rem;
    }

    .mobile-icon svg {
        width: 16px;
        height: 16px;
    }

    .mobile-toggle-wrapper {
        width: 36px;
        height: 36px;
    }

    .mobile-menu-toggle span {
        width: 18px;
    }
}

@media (min-width: 769px) {
    /* Show desktop search icon on desktop */
    .search-icon.desktop-search {
        display: flex !important;
    }
}
/* ===== Dropdown / Submenu ===== */

.nav-item {
  position: relative;
}

.nav-item__row{
  display: flex;
  align-items: center;
  gap: 10px;
}

/* кнопка-стрелка по умолчанию скрыта (нужна на мобилках) */
.submenu-toggle{
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #1a1a1a;
  padding: 6px;
  border-radius: 8px;
  line-height: 0;
}

/* Подменю на десктопе */
.submenu{
  list-style: none;
  margin: 0;
  padding: 10px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);

  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  z-index: 1100;

  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all .2s ease;
  pointer-events: none;
}

.submenu li a{
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 500;
}

/* Показываем подменю при наведении (десктоп) */
@media (hover: hover) and (pointer: fine){
  .nav-item.has-submenu:hover > .submenu,
  .nav-item.has-submenu.open > .submenu{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* ===== Mobile: подменю как accordion внутри выезжающего меню ===== */
@media (max-width: 768px){
  /* ваша nav-menu уже становится фиксированной панелью :contentReference[oaicite:2]{index=2} */

  .nav-item{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .nav-item__row{
    width: 90%; /* совпадает с .nav-menu .nav-link width:90% :contentReference[oaicite:3]{index=3} */
  }

  .submenu-toggle{
    display: inline-flex;
    margin-left: auto;
  }

  /* подменю на мобилке НЕ absolute, а внутри потока */
  .submenu{
    position: static;
    width: 90%;
    min-width: 0;
    box-shadow: none;
    border-radius: 12px;
    margin-top: 8px;

    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;

    /* скрываем через max-height */
    max-height: 0;
    overflow: hidden;
    padding: 0 10px;
    border-width: 0;
    transition: max-height .25s ease, padding .25s ease, border-width .25s ease;
  }

  .nav-item.open > .submenu{
    max-height: 500px; /* достаточно для списка */
    padding: 10px;
    border-width: 1px;
              overflow-y: auto;
  }

  .nav-item.open .submenu-toggle svg{
    transform: rotate(180deg);
    transition: transform .2s ease;
  }
}
@media (hover: hover) and (pointer: fine){
  .submenu{
    top: 100%;     /* было calc(100% + 10px) */
    margin-top: 0; /* если вдруг добавляли */
  }
}
@media (max-width: 768px) {
  /* 75% ссылка + 25% кнопка-стрелка */
  .nav-item__row{
    width: 90%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0;
  }

  .nav-item__row > .nav-link{
    flex: 0 0 75%;
    width: auto !important;
      text-align: left;
    padding-right: 12px; /* больше не нужно место "под стрелку" */
  }

  .submenu-toggle{
    flex: 0 0 25%;
    position: static;
    display: inline-flex !important;
    justify-content: center;
    align-items: center;

    /* увеличиваем hit-area */
    padding: 14px 0;
    border-radius: 12px;

    background: transparent;
    border: none;
    cursor: pointer;

    color: #000; /* чёрная стрелка */
  }
}

@media (hover: hover) and (pointer: fine){
  .nav-item.has-submenu > .submenu{
    /* ВАЖНО: перебиваем .nav-menu ul { display:flex } */
    display: block;          /* или display:flex + flex-direction ниже */
    /* display: flex;
       flex-direction: column; */

    left: 50%;
    right: auto;
    top: calc(100% + 10px);  /* если хотите с отступом */
    min-width: 240px;
    max-width: min(90vw, 360px);

    transform: translate(-50%, 6px); /* X и Y сразу */
  }

  .nav-item.has-submenu:hover > .submenu,
  .nav-item.has-submenu:focus-within > .submenu{
    transform: translate(-50%, 0);
  }

  .nav-item.has-submenu > .submenu > li{
    width: 100%;
  }
}

@media (hover: hover) and (pointer: fine){
  .nav-item.has-submenu > .submenu{
    top: calc(100% + 10px); /* красивый отступ */
  }

  /* Невидимая зона в 10px между кнопкой и меню */
  .nav-item.has-submenu > .submenu::before{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
    background: transparent;   /* полностью невидимо */
  }
}
@media (hover: hover) and (pointer: fine){
  .nav-item.has-submenu:hover > .nav-item__row > .nav-link::after,
  .nav-item.has-submenu:focus-within > .nav-item__row > .nav-link::after{
    width: 100%;
  }
}
@media (hover: hover) and (pointer: fine){
  /* Держим цвет, пока открыт dropdown */
  .nav-item.has-submenu:hover > .nav-item__row > .nav-link,
  .nav-item.has-submenu:focus-within > .nav-item__row > .nav-link{
    color: #1a1a1a;
  }
}

@media (hover: hover) and (pointer: fine){
  .submenu{
    padding: 10px;
  }

  .submenu > li > a{
    position: relative;
    display: flex;
    align-items: center;

    padding: 10px 12px;
    border-radius: 10px;

    color: #1a1a1a;
    text-decoration: none;

    transition:
      background-color .18s ease,
      transform .18s ease,
      box-shadow .18s ease;
  }

  /* Левый “акцент” (появляется при hover) */
  .submenu > li > a::before{
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%) scaleY(0.2);
    transform-origin: center;

    width: 3px;
    height: 60%;
    border-radius: 999px;

    background: #1a1a1a;
    opacity: 0;

    transition: opacity .18s ease, transform .18s ease;
  }

  .submenu > li > a:hover{
    background: #f6f6f6;
    transform: translateX(2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  }

  .submenu > li > a:hover::before{
    opacity: 1;
    transform: translateY(-50%) scaleY(1);
  }

  /* Поддержка клавиатуры (Tab) — выглядит как “выбранный” */
  .submenu > li > a:focus-visible{
    outline: none;
    background: #f6f6f6;
    box-shadow: 0 0 0 3px rgba(26,26,26,0.15);
  }

  /* Нажатие */
  .submenu > li > a:active{
    transform: translateX(2px) scale(0.98);
  }
}

/* На случай “уменьшить анимации” */
@media (prefers-reduced-motion: reduce){
  .submenu > li > a,
  .submenu > li > a::before{
    transition: none !important;
  }
}
/* ===== Home: tabs + cards ===== */
/* Приводим блок "Хит продаж" к общему UI сайта: меньше "пилюль", меньше тени, больше аккуратных линий */

.door-block-head{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  margin-bottom:24px;
}

/* У .section-title на сайте большой нижний отступ — в шапке блока он не нужен */
.door-block-head .section-title{
  margin-bottom:0;
  text-align:center;
}

/* Tabs */
.door-tabs{
  display:inline-flex;
  background:#fff;
  padding:1rem;
  gap:4px;
  border:1px solid #e5e5e5;
  border-radius:8px;
}

.door-tab{
  border:none;
  background:transparent;
  padding:8px 12px;
  border-radius:6px;
  cursor:pointer;
  font-weight:600;
  font-size:0.9rem;
  color:#4a4a4a;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

@media (hover:hover) and (pointer:fine){
  .door-tab:hover{
    background:#f8f9fa;
    color:#1a1a1a;
  }
}
.door-tab:active{ transform: scale(0.99); }

.door-tab.is-active{
  background:#1a1a1a;
  color:#fff;
}

.door-tab:focus-visible{
  outline:none;
  box-shadow: 0 0 0 3px rgba(26,26,26,0.12);
}

/* Panels + grid */
.door-panel{ display:none; }
.door-panel.is-active{ display:block; }

.door-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:18px;
}

@media (max-width: 992px){
  .door-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .door-grid{ grid-template-columns: 1fr; }
}

/* Card */
.door-card{
  background:#fff;
  border:1px solid #e5e5e5;
  border-radius:12px;
  overflow:hidden;
  box-shadow:none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

@media (hover:hover) and (pointer:fine){
  .door-card:hover{
    transform: translateY(-2px);
    border-color:#dcdcdc;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  }
}

.door-card__img{
  position:relative;
  background:#fff;
  aspect-ratio: 1 / 1;
}

.door-card__img img{
  width:100%;
  height:100%;
  object-fit: contain;
  display:block;
  padding:12px;
}

.door-card__badges{
  position:absolute;
  top:12px;
  left:12px;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  z-index:2;
}

/* Badges: цвета оставляем, форму делаем ближе к общему стилю */
.pbadge{
  font-size:0.70rem;
  font-weight:700;
  padding:4px 8px;
  border-radius:6px;
  border:1px solid rgba(0,0,0,0.08);
  background:#fff;
  color:#1a1a1a;
  text-transform:uppercase;
  letter-spacing:0.4px;
}

.pbadge--featured{ background:#1a1a1a; color:#fff; border-color:#1a1a1a; }
.pbadge--bestseller{ background:#16a34a; color:#fff; border-color:#16a34a; }
.pbadge--new{ background:#0ea5e9; color:#fff; border-color:#0ea5e9; }

.door-card__body{
  padding:16px;
}

.door-card__title{
  font-weight:600;
  font-size:1rem;
  line-height:1.3;
  margin-bottom:0;
  color:#1a1a1a;
  padding-bottom:10px;
}

.door-card__installment{
  display:block;
  text-align:center;              /* по центру */
  padding:10px 8px 0;
  margin:0 0 12px;
  font-size:0.78rem;
  font-weight:700;
  color:#4a4a4a;
}

.door-card__row{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}

.door-card__permonth-value{
  font-size:1.25rem;
  font-weight:700;
  color:#1a1a1a;
}
.door-card__permonth-currency{
  font-weight:700;
  color:#1a1a1a;
  margin-left:4px;
}
.door-card__permonth-sub{
  font-size:0.75rem;
  color:#6a6a6a;
  margin-top:2px;
}

/* Select: квадратнее, как кнопки на сайте */
.door-card__months{
  border:1px solid #e5e5e5;
  border-radius:8px;
  padding:8px 10px;
  font-weight:600;
  background:#fff;
  color:#1a1a1a;
  cursor:pointer;
  transition: border-color .18s ease, box-shadow .18s ease;
  font-family: 'Inter', sans-serif;
}

.door-card__months:focus{
  outline:none;
  border-color:#1a1a1a;
  box-shadow: 0 0 0 3px rgba(26,26,26,0.10);
}

.door-card__actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.door-card__btn{
  flex:1;
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  background:#1a1a1a;
  color:#fff;
  border-radius:8px;
  padding:12px 14px;
  font-weight:700;
  transition: background .18s ease, transform .18s ease;
}

@media (hover:hover) and (pointer:fine){
  .door-card__btn:hover{ background:#333; }
}
.door-card__btn:active{ transform: scale(0.99); }

.door-card__btn:focus-visible{
  outline:none;
  box-shadow: 0 0 0 3px rgba(26,26,26,0.12);
}

.door-card__fav{
  width:44px;
  height:44px;
  border-radius:8px;
  border:1px solid #e5e5e5;
  background:#fff;
  cursor:pointer;
  font-size:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

@media (hover:hover) and (pointer:fine){
  .door-card__fav:hover{ background:#f5f5f5; }
}
.door-card__fav:active{ transform: scale(0.98); }

.door-card__fav:focus-visible{
  outline:none;
  box-shadow: 0 0 0 3px rgba(26,26,26,0.10);
}

/* На маленьких экранах чуть плотнее */
@media (max-width: 480px){
  .door-card__body{ padding:14px; }
  .door-card__btn{ padding:11px 12px; }
  .door-card__months{ padding:7px 9px; }
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.featured {
    background: #1a1a1a;
    color: white;
}

.badge.bestseller {
    background: #22c55e;
    color: white;
}

.badge.new {
    background: #3b82f6;
    color: white;
}
/* ===== Catalog: images without cropping + equal card heights ===== */

/* чтобы карточки в сетке были одной высоты */
.catalog-content .product-card{
  display: flex;
  flex-direction: column;
  height: 100%;
}

.catalog-content .product-info{
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* (если у тебя внутри door-card контент) прижимаем actions вниз */
.catalog-content .door-card__actions{
  margin-top: auto;
}

/* GRID view: делаем блок картинки квадратным и без обрезки */
.catalog-content .products-grid:not(.list-view) .product-image{
  height: auto;            /* перебиваем 250px из styles.css */
  aspect-ratio: 1 / 1;     /* одинаковая высота у всех карточек */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.catalog-content .products-grid:not(.list-view) .product-image img{
  width: 100%;
  height: 100%;
  object-fit: contain;     /* ключ: больше НЕ режем */
  padding: 12px;
}

/* LIST view: оставляем фикс. высоту, но тоже без обрезки */
.catalog-content .products-grid.list-view .product-image{
  height: 150px;           /* у тебя уже есть такое правило */
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.catalog-content .products-grid.list-view .product-image img{
  object-fit: contain;
  padding: 8px;
}

/* при object-fit: contain сильный zoom на hover может снова подрезать края */
.catalog-content .product-card:hover .product-image img{
  transform: scale(1.03);  /* вместо 1.08 */
}

/* Выравниваем высоту лайка под высоту кнопки */
.catalog-content .door-card__actions{
  align-items: stretch; /* вместо center */
}

.catalog-content .door-card__fav{
  height: auto;           /* даём растягиваться */
  width: auto;
  aspect-ratio: 1 / 1;    /* всегда квадрат */
  min-width: 44px;        /* нижняя граница, чтобы не схлопнулся */
  padding: 0;             /* чтобы не “раздувало” кнопку */
}

/* ===== Home cards: одинаковая высота заголовка (2 строки) ===== */
.door-card__title{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.3em * 2);
}

/* ===== Home cards: кнопка (Подробнее слева, цена справа) ===== */
.door-card__btn{
  justify-content: space-between;
  gap: 12px;
}
.door-card__btn-text{
  font-weight: 700;
}
.door-card__btn-price{
  font-weight: 700;
  white-space: nowrap;
}

/* ===== Home cards: красивый “переключатель” рассрочки (select) ===== */
.door-card__months{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  min-height: 44px;
  padding: 10px 38px 10px 12px;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  background-color: #fff;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M6 8l4 4 4-4' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 14px;
}
.door-card__months::-ms-expand{ display: none; }
@media (hover:hover) and (pointer:fine){
  .door-card__months:hover{ border-color:#cfcfcf; }
}

/* ===== Tabs (Двери в квартиру/дом) — компактнее и “в стиле” ===== */
.door-tabs{
  background: #f5f5f5;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  gap: 4px;
}
.door-tab{
  border-radius: 999px;
  padding: 10px 16px;
}
.door-tab.is-active{
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

/* ===== Featured products (Home): match Catalog card look & hover ===== */

/* grid like catalog */
.featured-products .products-grid{
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.featured-products .product-card.door-card{
  position: relative;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: none;
  transition: all 0.3s ease;

  display: flex;
  flex-direction: column;
  height: 100%;
}

@media (hover:hover) and (pointer:fine){
  .featured-products .product-card.door-card:hover{
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  }
}

/* badges like in catalog */
.featured-products .product-badges{
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
}

/* image: same height across cards + no crop */
.featured-products .product-image{
  height: auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.featured-products .product-image img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.3s ease;
}

@media (hover:hover) and (pointer:fine){
  .featured-products .product-card:hover .product-image img{
    transform: scale(1.08);
  }
}

/* actions pinned + like same height as button */
.featured-products .product-info{
  display: flex;
  flex-direction: column;
  flex: 1;
}

.featured-products .door-card__actions{
  margin-top: auto;
  align-items: stretch;
}

.featured-products .door-card__fav{
  height: auto;
  width: auto;
  aspect-ratio: 1 / 1;
  min-width: 44px;
  padding: 0;
}

.door-grid {
    margin-bottom: 48px;
}

/* ============================
   Mobile cart (open from bottom-nav "Оформить")
   ============================ */

/* ===== Mobile cart drawer (open from bottom-nav) ===== */
body.cart-open { overflow: hidden; }

@media (max-width: 768px){
  /* на мобилке используем cart-dropdown как полноэкранный overlay */
  .cart-dropdown{
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 3000 !important; /* выше header (1000) и bottom-nav (900) */
    pointer-events: none;
  }

  .cart-dropdown::before{
    content:"";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    transition: opacity .25s ease;
  }

  .cart-dropdown.open{
    pointer-events: auto;
  }
  .cart-dropdown.open::before{
    opacity: 1;
  }

  /* прячем desktop-кнопки в шапке на мобилке */
  .cart-dropdown > button{
    display:none !important;
  }

  /* сама корзина — fixed снизу */
  .cart-menu{
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: auto !important;
    bottom: calc(var(--bottom-nav-height, 64px) + env(safe-area-inset-bottom) + 12px) !important;

    width: auto !important;
    max-width: 560px;
    margin-left: auto !important;
    margin-right: auto !important;

    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);

    transform: translateY(18px);
  }

  .cart-menu.active{
    transform: translateY(0);
  }

  .cart-items{
    max-height: min(55vh, 420px);
  }
}
@media (max-width: 768px) {
  .bottom-nav__item--primary { position: relative; }

  .bottom-nav__item--primary .cart-count--bottom {
    position: absolute;
    top: 10px;      /* около иконки */
    left: 50%;
    transform: translate(14px, -50%);

    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.7rem;
  }
}
/* ===== Measure modal ===== */
.measure-modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2500;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.measure-modal-overlay.active{
  opacity: 1;
  visibility: visible;
}

.measure-modal{
  background: #fff;
  width: 100%;
  max-width: 560px;
  border-radius: 20px 20px 0 0;
  padding: 18px;
  transform: translateY(100%);
  transition: transform .25s ease;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.18);
}

.measure-modal-overlay.active .measure-modal{
  transform: translateY(0);
}

.measure-modal-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.measure-modal-header h3{
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
}

.measure-modal-close{
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #6a6a6a;
  cursor: pointer;
}
.measure-modal-close:hover{
  background: #f5f5f5;
  color: #333;
}

.measure-form{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.measure-field{
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.95rem;
  color: #333;
}

.measure-field input{
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  font-size: 1rem;
}
.measure-field input:focus{
  border-color: #cfcfcf;
}

.measure-msg{
  min-height: 18px;
  font-size: 0.9rem;
  color: #333;
}

.measure-submit{
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
  background: #1a1a1a;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.measure-submit:disabled{
  opacity: .6;
  cursor: default;
}

/* ===== Measure success state ===== */
.measure-success{
  padding: 24px 4px;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.measure-success__content{
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.measure-success.is-active .measure-success__content{
  opacity: 1;
  transform: translateY(0);
}

.measure-success__title{
  font-size: 1.2rem;
  font-weight: 800;
  margin-top: 10px;
  color: #1a1a1a;
}

.measure-success__text{
  margin-top: 6px;
  font-size: 0.95rem;
  color: #4a4a4a;
}

.measure-success__btn{
  margin-top: 16px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
  background: #1a1a1a;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* прячем форму красиво */
.measure-form.is-hidden{
  display: none;
}
.measure-success[hidden]{
  display: none !important;
}
/* measureSuccess hidden не должен раздувать модалку */
.measure-success[hidden]{ display:none !important; }

/* центрируем контент нормально */
.measure-success__content{
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Bootstrap check-circle: размер/вид/анимация */
.bs-check{
  width: 112px !important;
  height: 112px !important;
  display: block;
  margin: 0 auto 10px !important;

  color: #22c55e;                 /* зелёный как success */
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.12));

  opacity: 0;
  transform: scale(0.7);
  animation: bsCheckIn 420ms cubic-bezier(.2,.8,.2,1) forwards,
             bsCheckPop 260ms ease-in-out 420ms both;
}

/* лёгкое появление + pop */
@keyframes bsCheckIn{
  to { opacity: 1; transform: scale(1); }
}
@keyframes bsCheckPop{
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
/* measureSuccess hidden не должен раздувать модалку */
.measure-success[hidden]{ display:none !important; }

/* центрируем контент */
.measure-success__content{
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ===== Animated check for measure modal (НЕ checkmark) ===== */
.measure-check{
  width: 110px !important;
  height: 110px !important;
  display: block;
  margin: 0 auto 10px !important;

  stroke: #22c55e;
  stroke-width: 3.5;
  stroke-miterlimit: 10;
  stroke-linecap: round;
  stroke-linejoin: round;

  border-radius: 50%;
  box-shadow: inset 0 0 0 rgba(34,197,94,0);
  animation: measureCheckFill .4s ease-in-out .4s forwards,
             measureCheckScale .3s ease-in-out .9s both;
}

.measure-check__circle{
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: measureCheckStroke .6s cubic-bezier(0.65,0,0.45,1) forwards;
}

.measure-check__mark{
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: measureCheckStroke .35s cubic-bezier(0.65,0,0.45,1) .75s forwards;
}

@keyframes measureCheckStroke{
  100%{ stroke-dashoffset: 0; }
}

@keyframes measureCheckScale{
  0%,100%{ transform: none; }
  50%{ transform: scale3d(1.05,1.05,1); }
}

@keyframes measureCheckFill{
  100%{ box-shadow: inset 0 0 0 999px rgba(34,197,94,0.12); }
}

/* ===== Contact FAB (mobile) ===== */
.contact-fab{
  position: fixed;
  right: 14px;
  bottom: calc(var(--bottom-nav-height, 64px) + env(safe-area-inset-bottom) + 18px);
  z-index: 1200; /* выше bottom-nav (900) */
}

/* показываем только на мобилке, где есть bottom-nav */
@media (max-width: 768px){
  .contact-fab{ display: block; }
}

/* кнопка */
.contact-fab__btn{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 0;
  background: #1a1a1a;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

/* пульсация */
.contact-fab__btn::after{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:999px;
  background: rgba(26,26,26,0.18);
  transform: scale(0.85);
  opacity: 0;
  animation: fabPulse 1.6s ease-out infinite;
}

@keyframes fabPulse{
  0%   { transform: scale(0.85); opacity: 0.0; }
  25%  { opacity: 0.7; }
  100% { transform: scale(1.25); opacity: 0.0; }
}

/* иконки */
.contact-fab__icon{
  width: 22px;
  height: 22px;
  fill: currentColor;
  position: absolute;
    top: 34%;
  transition: transform .18s ease, opacity .18s ease;
}

.contact-fab__icon--close{
  opacity: 0;
  transform: scale(0.7) rotate(-10deg);
}

/* меню */
.contact-fab__menu{
  position: absolute;
  right: 0;
  bottom: 66px;
  display: flex;
  flex-direction: column;
  gap: 10px;

  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

/* элементы меню */
.contact-fab__item{
  min-width: 160px;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  color: #1a1a1a;
  background: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 14px 34px rgba(0,0,0,0.14);
}

/* маленькие цветовые подсказки */
.contact-fab__item--tg{ border-left: 4px solid #229ED9; }
.contact-fab__item--ig{ border-left: 4px solid #E1306C; }
.contact-fab__item--sms{ border-left: 4px solid #22c55e; }

/* OPEN state */
.contact-fab.is-open .contact-fab__menu{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.contact-fab.is-open .contact-fab__btn::after{
  animation: none; /* убираем пульс когда открыто */
  opacity: 0;
}

.contact-fab.is-open .contact-fab__icon--chat{
  opacity: 0;
  transform: scale(0.7) rotate(10deg);
}

.contact-fab.is-open .contact-fab__icon--close{
  opacity: 1;
  transform: scale(1) rotate(0);
}
/* меню теперь вертикальная колонка кругов */
.contact-fab__menu{
  position: absolute;
  right: 0;
  bottom: 66px;
  display: flex;
  flex-direction: column;
  gap: 12px;

  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

/* круглая кнопка-иконка */
.contact-fab__item{
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: grid;
  place-items: center;

  text-decoration: none;
  color: #1a1a1a;
  background: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 14px 34px rgba(0,0,0,0.14);

  -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease;
}

.contact-fab__item svg{
  width: 22px !important;
  height: 22px !important;
}

/* hover только на устройствах, где он вообще бывает */
@media (hover:hover) and (pointer:fine){
  .contact-fab__item:hover{
    transform: scale(1.06);                 /* лёгкий pop */
    border-color: currentColor;             /* аккуратное кольцо цветом иконки */
    box-shadow: 0 16px 38px rgba(0,0,0,0.16);
    background-color: #fff;                 /* оставляем чисто */
  }

  .contact-fab__item:hover svg{
    transform: scale(1.04);                 /* чуть оживить иконку */
    transition: transform .16s ease;
  }
}

/* красивый фокус с клавиатуры */
.contact-fab__item:focus-visible{
  outline: 3px solid rgba(26,26,26,0.18);
  outline-offset: 3px;
  border-color: currentColor;
}

/* нажатие (tap/press) */
.contact-fab__item:active{
  transform: scale(0.98);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

/* ===== Home: featured collections tiles ===== */
.featured-collections{padding: 2rem 0 0;
  background: #f8f9fa;
}

.collections-subtitle{
  max-width: 640px;
}

.collections-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
    margin-bottom: 32px;
}

@media (max-width: 1024px){
  .collections-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px){
  .collections-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;margin-bottom: 24px;
  }
}

@media (max-width: 420px){
  .collections-grid{ grid-template-columns: 1fr; }
}

.collection-tile{
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  text-decoration: none;
  color: inherit;
  transform: translateZ(0);
}

.collection-tile__media{
  position: relative;
  aspect-ratio: 4 / 3;
  background: #efefef;
}

.collection-tile__media::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.18) 100%);
  pointer-events: none;
}

.collection-tile__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 280ms ease;
}

.collection-tile__label{
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
  line-height: 1.15;
}

.collection-tile__label svg{
  flex-shrink: 0;
  opacity: 0.85;
}

/* Hover: без "тяжёлой тени" — аккуратный лифт + контраст рамки */
@media (hover: hover){
  .collection-tile{
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
  }
  .collection-tile:hover{
    transform: translateY(-3px);
    border-color: #1a1a1a;
  }
  .collection-tile:hover .collection-tile__media img{
    transform: scale(1.07);
  }
  .collection-tile:hover .collection-tile__label svg{
    transform: translateX(2px);
  }
  .collection-tile__label svg{
    transition: transform 220ms ease, opacity 220ms ease;
  }
}

.collection-tile:focus-visible{
  outline: 3px solid rgba(26,26,26,0.22);
  outline-offset: 2px;
}
/* Door quiz offer modal */
body.quiz-open{ overflow: hidden; }

.quiz-offer-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.quiz-offer-overlay.active{
  opacity: 1;
  visibility: visible;
}

.quiz-offer{
  width: min(520px, 100%);
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  padding: 18px 18px 16px;
  position: relative;
  transform: translateY(10px);
  transition: transform .25s ease;
}

.quiz-offer-overlay.active .quiz-offer{
  transform: translateY(0);
}

.quiz-offer__close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  background: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.quiz-offer__title{
  margin: 6px 40px 6px 0;
  font-weight: 800;
  color: #1a1a1a;
}

.quiz-offer__text{
  margin: 0 0 10px 0;
  color: #5a5a5a;
}

.quiz-offer__bullets{
  margin: 0 0 14px 0;
  padding-left: 18px;
  color: #1a1a1a;
}

.quiz-offer__actions{
  display: flex;
  gap: 10px;
  align-items: center;
}

.quiz-offer__go{ flex: 1; }
.quiz-offer__later{
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
}

/* На мобилке — как bottom sheet (смотрится роднее твоим модалкам) */
@media (max-width: 768px){
  .quiz-offer-overlay{
    align-items: flex-end;
  }
  .quiz-offer{
    border-radius: 18px 18px 0 0;
    width: 100%;
    max-width: 100%;
  }
}
/* CTA button under collections */
.featured-collections .products-cta{
  display: flex;
  justify-content: center;
  margin-top: 0;
}
.featured-collections .products-cta .btn{ min-width: 240px; }
@media (max-width: 520px){
  .featured-collections .products-cta .btn{
    width: 100%;
    max-width: 360px;
  }
}
@media (max-width: 768px){
  .quiz-cta{ padding: 2.5rem 0 4rem; }
}
/* Salon address block (home) */
.salon-address{
  padding: 4rem 0;
}

.salon-address__title{
  margin: 0 0 1.25rem;
}

.salon-address__map{
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e5e5;
}

.salon-address__iframe{
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

@media (max-width: 768px){
  .salon-address{ padding: 3rem 0; }
  .salon-address__iframe{ height: 400px; }
}
/* --- Header logo SVG override (важно из-за глобальных svg { width/height }) --- */
.logo-header{
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

/* перебиваем твои глобальные svg-правила */
.logo-header .h-logo__svg{
  display: block;
  height: 32px;     /* можно 28–36 по вкусу */
  width: auto;
  max-width: 240px; /* чтобы не расползалось */
}

/* чтобы цвет был управляемый (и точно видимый) */
.logo-header{ color: #1a1a1a; }
.logo-header .h-logo__svg path{ fill: currentColor; }

@media (max-width: 768px){
  .logo-header .h-logo__svg{
    height: 26px;
    max-width: 180px;
  }
}

/* visually hidden */
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
/* Logo (SVG) */
.nav-brand { display: flex; align-items: center; }

.nav-brand h1{
  display: flex;
  align-items: center;
  line-height: 1;              /* убирает «воздух» от line-height: 1.6 */
}

/* сама ссылка-логотип */
.logo-header{
  display: flex;
  align-items: center;
  line-height: 1;
}

/* SVG — задаём высоту, ширина сама */
.logo-header .h-logo__svg{
  display: block;
  height: 28px;               /* можно 24–32 под вкус */
  width: auto;
}

/* если логотип всё ещё на 1–2px выше — подвинем вниз */
.logo-header .h-logo__svg{
  transform: translateY(1px);
}

@media (max-width: 768px){
  .logo-header .h-logo__svg{ height: 24px; }
}
/* Лого в хедере: выравниваем по центру и не даём резать края */
.nav-brand, .nav-brand h1, .logo-header{
  display: flex;
  align-items: center;
  line-height: 1;
}

/* Сам SVG логотип */
.logo-header .h-logo__svg{
  display: block;
  height: 28px;     /* подгони под свою шапку */
  width: auto;
  overflow: visible;
}

/* маленький запас справа — чтобы даже при плотной вёрстке не “подрезало” визуально */
.logo-header{ padding-right: 6px; }

@media (max-width: 768px){
  .logo-header .h-logo__svg{ height: 24px; }
}
/* Top bar above header */
.topbar{
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
}

.topbar__inner{
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar__phones{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.topbar__phone{
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  opacity: 0.9;
}
.topbar__phone:hover{ opacity: 1; }

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

.topbar__where{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  opacity: 0.9;
}
.topbar__where:hover{ opacity: 1; }
.topbar__where svg{ flex-shrink: 0; }

.topbar__measure{
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
  white-space: nowrap;
}

/* Mobile: оставляем действия, телефоны можно скрыть или переносить */
@media (max-width: 773px){
  .topbar__inner{
    gap: 10px;
  }
  .topbar__phones{
    display: none; /* если хочешь показывать — убери эту строку */
  }
  .topbar__measure{
    height: 36px;
  }
}
/* TOPBAR (desktop-only quick actions) */
.topbar{
  background: #f3f4f6;            /* серый фон, отличается от хедера */
  border-bottom: 1px solid #e5e5e5;
}

.topbar__inner{
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar__left,
.topbar__right{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* кнопки-чипы одинакового визуального веса */
.topbar__chip{
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.topbar__chip svg{
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

/* телефоны — как “легкие кнопки” */
.topbar__chip--phone{
  color: #1a1a1a;
  background: rgba(255,255,255,0.85);
  border: 1px solid #e5e5e5;
}
.topbar__chip--phone:hover{
  background: #fff;
}

/* где купить — можно сделать чуть “выделеннее” */
.topbar__chip--link{
  color: #1a1a1a;
  background: rgba(255,255,255,0.85);
  border: 1px solid #e5e5e5;
}
.topbar__chip--link:hover{
  background: #fff;
}

/* уравниваем высоту primary-кнопки в топбаре */
.topbar .btn{
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
  line-height: 1;
  border-radius: 999px;
}

/* Скрыть топбар на мобилке — он заменяет mobile-buttons */
@media (max-width: 773px){
  .topbar{ display: none; }
}

/* И скрыть "Почему выбрать нас?" на десктопе (оставляем на мобилке) */
@media (min-width: 992px){
    .advantages{ display: none !important; }
}

/* Topbar: одинаковый размер двух кнопок справа (desktop) */
@media (min-width: 769px){
  .topbar__right > .topbar__chip--link,
  .topbar__right > .topbar__measure{
    height: 34px;
    padding: 0 12px;
    font-size: 13px;
    line-height: 1;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;

    min-width: 172px; /* если надо — подстрой */
  }

}

.btn-black {
    background: #1a1a1a;
    color: white;
}
.modal-open {
    overflow:hidden;
}
/* И скрыть "Почему выбрать нас?" на десктопе (оставляем на мобилке) */
@media (min-width: 992px){
    .advantages{ display: none !important; }
}

/* ===== Home: quiz CTA ===== */
.quiz-cta{
  padding: 3rem 0 0;
  background: #f8f9fa;
}

.quiz-cta__card{
  display: flex;
  align-items: stretch;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
    transform: translateY(-3px);
    border-color: #1a1a1a;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    max-width: 1100px;
    margin: 0 auto;
}

.quiz-cta__content{
  flex: 1 1 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quiz-cta__title{
  margin: 0 0 0.75rem 0;
  text-align: left;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  color: #1a1a1a;
}

.quiz-cta__text{
  margin: 0 0 14px 0;
  color: #5a5a5a;
  max-width: 560px;
  line-height: 1.5;
}

.quiz-cta__badges{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.quiz-cta__badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f8f9fa;
  border: 1px solid #e5e5e5;
  font-weight: 700;
  font-size: 13px;
  color: #1a1a1a;
}

.quiz-cta__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

/* чтобы кнопки не растягивались «на всю ширину» внутри flex-контейнера */
.quiz-cta__actions .btn{
  flex: 0 0 auto;
}

.quiz-cta__btn{
  padding-left: 18px;
  padding-right: 18px;
}

.quiz-cta__ghost{
  background: #fff;
  border: 1px solid #e5e5e5;
  color: #1a1a1a;
}

.quiz-cta__ghost:hover{
  border-color: #1a1a1a;
}

.quiz-cta__art{
  flex: 0 0 44%;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  border-left: 1px solid #f0f0f0;
}

.quiz-cta__svg{
  width: 100%;
  height: 100%;
  max-height: 320px;
  display: block;
}
@media (hover:hover) and (pointer:fine){
  .quiz-cta__card{
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  }

}

@media (max-width: 900px){
  .quiz-cta__card{ flex-direction: column; }
  .quiz-cta__art{
    order: -1;
    flex-basis: auto;
    min-height: 220px;
    border-left: 0;
    border-bottom: 1px solid #f0f0f0;
  }
}
/* =========================
   Home: мини-иконки под слайдером (desktop only)
   ========================= */

.hero-mini-icons{
    padding-top: 32px;
}

.hero-mini-icons__grid{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
}

.hero-mini-icons__item{ text-align: center; }

.hero-mini-icons__icon{
    width: 76px;
    height: 76px;
    margin: 0 auto 10px;

    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.14);
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);

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

    color: #111111; /* чёрный стиль */
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.hero-mini-icons__icon svg{
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-mini-icons__label{
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
}

@media (hover: hover) and (pointer: fine){
    .hero-mini-icons__item:hover .hero-mini-icons__icon{
        transform: translateY(-2px);
        border-color: rgba(0, 0, 0, 0.22);
        box-shadow: 0 14px 30px rgba(0,0,0,0.10);
    }
}

@media (prefers-reduced-motion: reduce){
    .hero-mini-icons__icon{ transition: none !important; }
}

/* Показать мини-иконки только на компьютерах */
@media (max-width: 991px){
    .hero-mini-icons{ display: none !important; }
}
.quiz-cta__img{
  width: 100%;
  height: 100%;
  max-height: 320px;
  display: block;
    object-fit: cover;
}
