/* --- RESET & BASE --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Product Modal Grid */
.product-modal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

@media (min-width: 768px) {
    .product-modal-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-2xl);
    }
}

.product-modal__gallery {
    position: relative;
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

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

.product-modal__info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.product-modal__header {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: var(--spacing-md);
}

.product-modal__brand {
    display: inline-block;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-xs);
}

.product-modal__title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0;
}

.product-modal__specs {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);
}

.spec-label {
    color: var(--text-secondary);
}

.spec-value {
    font-weight: 500;
    color: var(--text-primary);
}

.product-modal__price-block {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.price-label {
    font-size: var(--text-lg);
    color: var(--text-secondary);
}

.product-modal__price {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--primary-color);
}

.product-modal__desc h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.product-modal__desc p {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Catalog Page Specific Styles */

/* Page Header */
.page-header {
    background-color: var(--bg-light);
    padding: var(--spacing-3xl) 0;
    text-align: center;
}

.page-header__title {
    font-size: var(--text-4xl);
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.page-header__subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Filters Section */
.catalog-filters {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: var(--spacing-2xl);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    border: none;
}

@media (min-width: 768px) {
    .catalog-filters {
        grid-template-columns: 2fr 1fr 1fr;
        align-items: end;
    }
}

.filter-label {
    display: block;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-xs);
    margin-left: 4px;
}

.search-wrapper,
.select-wrapper {
    position: relative;
    width: 100%;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 14px 20px;
    padding-right: 44px;
    /* Space for icon */
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    /* Pill shape for modern feel */
    font-family: inherit;
    font-size: var(--text-base);
    color: var(--text-primary);
    background-color: var(--bg-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    appearance: none;
    /* Remove default arrow */
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.search-icon,
.select-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    pointer-events: none;
}

/* Product Grid Enhancements */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-3xl);
    color: var(--text-secondary);
    font-size: var(--text-lg);
    background: var(--bg-light);
    border-radius: var(--radius-lg);
}

.loading-spinner {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-3xl);
    color: var(--text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: var(--spacing-md);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 0;
}

/* Adjust header height for mobile */
@media (max-width: 767px) {
    :root {
        --header-height: 56px;
    }
}

main {
    /* padding-top: var(--header-height); */
    padding-top: 100px;
    min-height: 60vh;
}

main.index-page {
    padding-top: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

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

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.25rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    h3 {
        font-size: 1.75rem;
    }

    h4 {
        font-size: 1.5rem;
    }
}

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

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

.text-muted {
    color: var(--text-secondary);
}

/* --- LAYOUT --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    width: 100%;
}

.section {
    padding: var(--spacing-md) 0;
    position: relative;
}

@media (min-width: 768px) {
    .section {
        padding: var(--spacing-md) 0;
    }
}

@media (min-width: 1024px) {
    .section {
        /* padding: var(--spacing-md) 0; */
    }
}

.section--bg-light {
    background-color: var(--bg-light);
}

.section--center {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.section__header {
    margin-bottom: var(--spacing-2xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Header with Link */
.section__header--flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    text-align: left;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--primary-color);
    font-weight: 600;
    transition: gap 0.2s;
    margin-bottom: var(--spacing-sm);
    /* Align with title baseline */
}

.link-arrow:hover {
    gap: var(--spacing-md);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .section__header--flex {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }

    .link-arrow {
        margin-bottom: 0;
    }
}

.section__title {
    font-size: var(--text-3xl);
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

@media (min-width: 768px) {
    .section__title {
        font-size: var(--text-4xl);
    }
}

.section__subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* --- BREADCRUMBS --- */
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-top: var(--spacing-sm);
}

.breadcrumbs a {
    color: var(--text-light);
    transition: color 0.2s;
}

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

.breadcrumbs__sep {
    color: var(--text-light);
    font-size: 0.8em;
}

.breadcrumbs__current {
    color: var(--text-main);
    font-weight: 500;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    border: 1px solid transparent;
    font-family: var(--font-main);
    font-size: var(--text-base);
    gap: 0.5rem;
    user-select: none;
}

.btn--primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn--primary:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-lg);
}

.btn--secondary {
    background-color: var(--bg-white);
    color: var(--text-main);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
    background-color: var(--bg-light);
    border-color: var(--text-secondary);
}

.btn--accent {
    background-color: var(--accent-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn--accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--outline {
    background-color: transparent;
    border: 2px solid currentColor;
    color: white;
}

.btn--outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn--outline-primary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn--outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn--sm {
    padding: 0.5rem 1rem;
    font-size: var(--text-sm);
}

.btn--lg {
    padding: 1rem 2rem;
    font-size: var(--text-lg);
    border-radius: var(--radius-lg);
}

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

/* --- FORMS --- */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.input,
.textarea,
.select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: var(--text-base);
    transition: var(--transition-fast);
    background-color: var(--bg-white);
    color: var(--text-main);
}

.textarea {
    resize: none;
    /* Prevent manual resizing */
}

.input:hover,
.textarea:hover,
.select:hover {
    border-color: var(--text-light);
}

.input:focus,
.textarea:focus,
.select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.input::placeholder,
.textarea::placeholder {
    color: var(--text-light);
}

/* --- PAGE HEADER --- */
.page-header {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    background-color: var(--bg-light);
    text-align: left;
    /* Left aligned */
    position: relative;
}

.page-header__title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    /* Reduced size */
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-xs);
    /* Reduced margin */
    line-height: 1.2;
}

.page-header__subtitle {
    color: var(--text-secondary);
    font-size: var(--text-base);
    /* Reduced from text-lg */
    max-width: 800px;
    /* Increased max-width for left alignment */
    margin: 0;
    /* Removed auto margins */
}

/* --- HEADER --- */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-base);
}

/* Top Bar */
.header__top {
    background-color: var(--secondary-color);
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-xs);
    padding: 6px 0;
    position: relative;
    z-index: 1001;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: none;
    /* Hidden on Mobile */
}

@media (min-width: 768px) {
    .header__top {
        display: block;
    }
}

.header__top-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 24px;
}

.header__top-left,
.header__top-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

/* Language Selector */
.header__lang-wrapper {
    position: relative;
}

.header__lang-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    font-family: var(--font-main);
    font-size: var(--text-xs);
    font-weight: 500;
}

.header__lang-btn:hover,
.header__lang-btn[aria-expanded="true"] {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.header__lang-btn .icon {
    color: var(--primary-color);
}

.header__lang-btn .arrow-down {
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.header__lang-btn[aria-expanded="true"] .arrow-down {
    transform: rotate(180deg);
}

.lang-label {
    color: rgba(255, 255, 255, 0.6);
    display: none;
}

@media (min-width: 768px) {
    .lang-label {
        display: inline;
    }
}

/* Language Dropdown */
.lang-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 140px;
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-xs);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-light);
}

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

.lang-option {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 8px 12px;
    font-family: var(--font-main);
    font-size: var(--text-sm);
    color: var(--text-main);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.lang-option:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.lang-option.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
}

/* Top Nav */
.top-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.top-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: var(--text-xs);
    transition: color 0.2s;
}

.top-link .icon {
    color: var(--primary-color);
    opacity: 0.8;
    transition: opacity 0.2s;
}

.top-link:hover {
    color: white;
}

.top-link:hover .icon {
    opacity: 1;
}

.desktop-only {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-only {
        display: flex;
    }
}

/* Main Header */
.header__main {
    padding: var(--spacing-sm) 0;
}

@media (min-width: 1024px) {
    .header__main {
        padding: var(--spacing-md) 0;
    }
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 32px;
    width: auto;
    transition: height 0.3s;
}

@media (min-width: 768px) {
    .logo img {
        height: 40px;
    }
}

/* Desktop Nav */
.desktop-nav {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: block;
    }
}

.nav__list {
    display: flex;
    gap: var(--spacing-xl);
}

.nav__list a {
    font-weight: 600;
    color: var(--secondary-color);
    position: relative;
    padding: 4px 0;
    font-size: var(--text-base);
}

.nav__list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

/* Header Actions */
.header__actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* Mobile Phone Btn */
.mobile-phone-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--primary-color);
    transition: var(--transition-fast);
}

.mobile-phone-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

@media (min-width: 768px) {
    .mobile-phone-btn {
        display: none;
    }
}

/* Header Contacts (Desktop) */
.header__contacts {
    display: none;
    align-items: center;
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .header__contacts {
        display: flex;
    }
}

.header__phone {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.header__phone a {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: var(--text-lg);
    transition: color 0.2s;
}

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

.header__phone .badge {
    font-size: 11px;
    color: var(--primary-color);
    font-weight: 600;
    background-color: var(--primary-light);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    margin-top: 2px;
}

.header__contacts .btn {
    display: none;
}

@media (min-width: 1024px) {
    .header__contacts .btn {
        display: inline-flex;
    }
}

/* Burger Menu */
.burger {
    display: block;
    width: 40px;
    height: 40px;
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--secondary-color);
    padding: 0;
    z-index: 1100;
    /* Above mobile menu overlay */
}

@media (min-width: 1024px) {
    .burger {
        display: none;
    }
}

.burger-box {
    width: 24px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.burger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
    width: 24px;
    height: 2px;
    background-color: currentColor;
    border-radius: 2px;
    position: absolute;
    transition: transform 0.15s ease;
}

.burger-inner::before,
.burger-inner::after {
    width: 24px;
    height: 2px;
    background-color: currentColor;
    border-radius: 2px;
    position: absolute;
    transition: transform 0.15s ease;
    content: "";
    display: block;
}

.burger-inner::before {
    top: -8px;
}

.burger-inner::after {
    bottom: -8px;
}

/* Burger Active State */
.burger.is-active .burger-inner {
    transform: rotate(45deg);
}

.burger.is-active .burger-inner::before {
    top: 0;
    opacity: 0;
}

.burger.is-active .burger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1050;
    visibility: hidden;
    transition: visibility 0s 0.3s;
}

.mobile-menu.is-active {
    visibility: visible;
    transition: visibility 0s;
}

.mobile-menu__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.mobile-menu.is-active .mobile-menu__overlay {
    opacity: 1;
}

.mobile-menu__content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 320px;
    height: 100%;
    background-color: white;
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-menu.is-active .mobile-menu__content {
    transform: translateX(0);
}

.mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
}

.logo--mobile img {
    height: 32px;
    width: auto;
}

.mobile-menu__close {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.mobile-menu__close:hover {
    color: var(--primary-color);
}

.mobile-menu__body {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.mobile-nav__list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.mobile-nav__list a {
    display: block;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.2s;
}

.mobile-nav__list a:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

.mobile-menu__contacts {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.mobile-contact-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: var(--text-sm);
    transition: color 0.2s;
}

.mobile-contact-link .icon {
    color: var(--primary-color);
    font-size: var(--text-lg);
}

.mobile-contact-link:hover {
    color: var(--primary-color);
}

/* Mobile Language Switcher */
.mobile-menu__lang {
    display: flex;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 4px;
    gap: 4px;
}

.mobile-lang-btn {
    flex: 1;
    padding: 8px;
    border: none;
    background: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-lang-btn.active {
    background-color: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

/* --- LANDSCAPE SUPPORT --- */
@media (orientation: landscape) and (max-height: 500px) {
    .header__main {
        padding: 4px 0;
    }

    .logo img {
        height: 28px;
    }

    .mobile-menu__content {
        max-width: 100%;
    }

    .mobile-menu__header {
        padding: var(--spacing-sm);
    }

    .mobile-menu__body {
        padding: var(--spacing-md);
        gap: var(--spacing-lg);
    }

    .mobile-nav__list {
        gap: var(--spacing-sm);
    }

    .mobile-nav__list a {
        font-size: var(--text-base);
        padding: 4px 0;
    }
}

/* --- ANIMATIONS & UI ENHANCEMENTS --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    animation: fadeIn 0.5s ease-out;
}

.nav__list a {
    position: relative;
    transition: color 0.3s ease;
}

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

/* Removed blue dot hover effect */
/* .nav__list a::before was here */
/* .nav__list a:hover::before was here */

/* Button Hover Effects */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:active::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }

    100% {
        transform: scale(40, 40);
        opacity: 0;
    }
}

/* Prevent body scroll */
body.no-scroll {
    overflow: hidden;
}

/* --- HERO --- */
/* --- HERO SECTION --- */
.hero {
    position: sticky;
    /* Changed from relative for sticky effect */
    top: 0;
    /* Stick to top */
    min-height: 100svh;
    /* Modern mobile viewport unit */
    width: 100%;
    display: flex;
    align-items: center;
    background-color: var(--bg-dark);
    color: white;
    overflow: hidden;
    padding-top: var(--header-height);
    /* Ensure content isn't hidden behind fixed header */
    z-index: 1;
    /* Lower z-index so content scrolls over it */
}

/* Ensure all sections following hero are on top */
.section {
    position: relative;
    z-index: 2;
    background-color: var(--bg-white);
    /* Ensure opaque background */
}

/* Shadow only for the first section after hero for the "cover" effect */
.hero+.section {
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.1);
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    /* Slight scale for parallax readiness */
    transition: transform 0.5s ease-out;
    will-change: transform;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Improved gradient for better text readability */
    background: linear-gradient(90deg,
            rgba(15, 23, 42, 0.95) 0%,
            rgba(15, 23, 42, 0.8) 40%,
            rgba(15, 23, 42, 0.4) 100%);
    z-index: 1;
}

.hero__container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-4xl);
    /* Space for scroll indicator */
}

.hero__content {
    max-width: 100%;
    animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (min-width: 768px) {
    .hero__content {
        max-width: 600px;
    }
}

@media (min-width: 1024px) {
    .hero__content {
        max-width: 700px;
    }
}

.hero__title {
    /* Fluid typography: 36px at 320px -> 64px at 1200px */
    font-size: clamp(2.25rem, 5vw + 1rem, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: white;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #cbd5e1;
    /* Slate-300 */
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    line-height: 1.6;
    font-weight: 400;
}

/* Badge */
.hero__badge-wrapper {
    margin-bottom: var(--spacing-lg);
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 6px 12px;
    background-color: rgba(37, 99, 235, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: var(--radius-full);
    color: #bfdbfe;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.hero__badge:hover {
    background-color: rgba(37, 99, 235, 0.25);
    border-color: rgba(37, 99, 235, 0.5);
}

/* Actions */
.hero__actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    width: 100%;
}

@media (min-width: 480px) {
    .hero__actions {
        flex-direction: row;
        width: auto;
    }
}

.hero__actions .btn {
    width: 100%;
    justify-content: center;
}

@media (min-width: 480px) {
    .hero__actions .btn {
        width: auto;
    }
}

/* Stats */
.hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .hero__stats {
        display: flex;
        align-items: center;
        gap: var(--spacing-xl);
        margin-top: var(--spacing-3xl);
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    display: none;
}

@media (min-width: 768px) {
    .stat-divider {
        display: block;
        width: 1px;
        height: 40px;
        background-color: rgba(255, 255, 255, 0.15);
    }
}

/* Scroll Indicator */
.hero__scroll {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
    cursor: pointer;
    animation: bounce 2s infinite;
    z-index: 2;
}

.hero__scroll:hover {
    color: white;
}

.hero__scroll-text {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-6px);
    }

    60% {
        transform: translateX(-50%) translateY(-3px);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- LANDSCAPE ORIENTATION SUPPORT --- */
@media (orientation: landscape) and (max-height: 600px) {
    .hero {
        min-height: 100vh;
        padding-top: calc(var(--header-height) + 10px);
    }

    .hero__container {
        padding-top: 0;
        padding-bottom: var(--spacing-xl);
    }

    .hero__title {
        font-size: 2rem;
        /* Smaller title for landscape mobile */
        margin-bottom: var(--spacing-xs);
    }

    .hero__subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
    }

    .hero__badge-wrapper {
        margin-bottom: var(--spacing-sm);
    }

    .hero__stats {
        margin-top: var(--spacing-lg);
        display: flex;
        /* Switch to flex for landscape to save vertical space */
        gap: var(--spacing-lg);
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .hero__scroll {
        display: none;
        /* Hide scroll indicator in landscape to save space */
    }
}

/* --- FEATURES --- */
.features {
    background-color: var(--bg-body);
    position: relative;
    overflow: hidden;
}

.features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

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

@media (max-width: 767px) {
    .feature-card {
        /* Mobile optimization */
        padding: var(--spacing-lg);
        /* Center content on mobile for better balance */
        align-items: center;
        text-align: center;
        /* Ensure large enough touch target */
        min-height: 200px;
    }

    /* Adjust icon margin for mobile */
    .feature-card__icon {
        margin-bottom: var(--spacing-md);
    }
}

@media (min-width: 1024px) {
    .features__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-xl);
    }
}

.feature-card {
    background-color: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    position: relative;
    z-index: 1;
}

/* Gradient Border Effect on Hover */
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card__icon {
    width: 64px;
    height: 64px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card__icon svg {
    width: 32px;
    height: 32px;
    z-index: 2;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-card__icon {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1) rotate(3deg);
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
}

.feature-card:hover .feature-card__icon svg {
    transform: scale(1.1);
}

.feature-card__title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.feature-card:hover .feature-card__title {
    color: var(--primary-color);
}

.feature-card__text {
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: 1.6;
}

.feature-card__badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background-color: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

/* Staggered Animation Entry */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card {
    animation: fadeInUp 0.6s backwards;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* --- CATALOG PREVIEW --- */
.catalog-preview {
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
    padding: var(--spacing-2xl) 0;
}

.catalog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

/* Tablet: 2 Columns */
@media (min-width: 640px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
}

/* Laptop: 3 Columns */
@media (min-width: 1024px) {
    .catalog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-xl);
    }
}

/* Desktop: 4 Columns */
@media (min-width: 1280px) {
    .catalog-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- CATEGORY CARD --- */
.category-card {
    position: relative;
    height: 320px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    background-color: var(--bg-white);
    border: 1px solid transparent;
    isolation: isolate;
    /* Create stacking context */
}

.category-card:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px var(--primary-light);
    border-color: var(--primary-color);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.category-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.category-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}

.category-card:hover .category-card__image img {
    transform: scale(1.1);
}

.category-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(15, 23, 42, 0.9) 0%,
            rgba(15, 23, 42, 0.5) 50%,
            rgba(15, 23, 42, 0.1) 100%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.category-card:hover .category-card__overlay {
    background: linear-gradient(to top,
            rgba(15, 23, 42, 0.95) 0%,
            rgba(15, 23, 42, 0.6) 50%,
            rgba(15, 23, 42, 0.2) 100%);
}

.category-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-xl);
    z-index: 2;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    /* Full height to allow spacing distribution if needed */
    pointer-events: none;
    /* Let clicks pass through to card */
}

.category-card__title {
    color: white;
    margin-bottom: var(--spacing-xs);
    font-size: 1.5rem;
    /* Increased for better hierarchy */
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transform: translateY(0);
    transition: transform 0.3s ease;
    margin-top: auto;
    /* Push to bottom */
}

.category-card:hover .category-card__title {
    transform: translateY(-4px);
}

.category-card__link {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover .category-card__link {
    opacity: 1;
    transform: translateY(0);
}

.category-card__link svg {
    transition: transform 0.3s ease;
}

.category-card:hover .category-card__link svg {
    transform: translateX(4px);
}

/* --- CATALOG & PRODUCTS (General) --- */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.product-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(37, 99, 235, 0.2);
}

.product-card__image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background-color: var(--bg-light);
}

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

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

.product-card__badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background-color: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    z-index: 1;
}

.product-card__body {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card__brand {
    font-size: var(--text-xs);
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-xs);
}

.product-card__title {
    font-size: var(--text-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--secondary-color);
}

.product-card__price {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-top: auto;
    margin-bottom: var(--spacing-md);
}

/* Product Modal */
.product-modal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

@media (min-width: 768px) {
    .product-modal-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.product-modal__image {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.product-modal__price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: var(--spacing-md) 0;
}

/* --- BRANDS --- */
.brands-section {
    background-color: var(--bg-light);
    padding: var(--spacing-2xl) 0;
}

.brands-grid {
    display: grid;
    gap: var(--spacing-md);
    width: 100%;
    /* Mobile: 2 columns (standard for logos) */
    grid-template-columns: repeat(2, 1fr);
}

/* Tablet: 3 columns */
@media (min-width: 640px) {
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
    }
}

/* Desktop: 4 columns */
@media (min-width: 1024px) {
    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.brand-item {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    height: 140px;
    /* Increased height for name */
    display: flex;
    flex-direction: column;
    /* Stack image and text */
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    gap: var(--spacing-xs);
}

.brand-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.brand-name {
    font-size: var(--text-xs);
    /* Smaller font for name */
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    transition: color 0.3s ease;
    word-break: break-word;
    line-height: 1.2;
    z-index: 1;
    margin-top: 4px;
}

.brand-item:hover .brand-name {
    color: var(--primary-color);
}

.brand-image {
    max-width: 90%;
    max-height: 60%;
    /* Reduced to make room for text */
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    z-index: 1;
}

.brand-item:hover .brand-image {
    filter: grayscale(0%);
    opacity: 1;
}

/* Decorative background element for brands */
.brand-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.brand-item:hover::before {
    opacity: 1;
}

/* Focus states for accessibility */
.brand-item:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px var(--primary-light);
    border-color: var(--primary-color);
}

/* --- CONTACTS SECTION --- */
.contacts-section {
    position: relative;
    overflow: hidden;
    /* Prevent overflow if map has issues */
    padding: var(--spacing-2xl) 0;
}

.contacts-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

/* Desktop: Side-by-side layout */
@media (min-width: 1024px) {
    .contacts-wrapper {
        grid-template-columns: 1fr 1.2fr;
        align-items: stretch;
        gap: var(--spacing-2xl);
    }
}

.contacts-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    order: 2;
    /* Content below map on mobile if desired, or keep default order */
}

/* On Desktop, ensure order is natural */
@media (min-width: 1024px) {
    .contacts-content {
        order: 1;
    }
}

.contacts-header {
    margin-bottom: var(--spacing-md);
}

/* Contact Items List */
.contacts-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

/* Tablet: Grid for items if needed, or keep stack */
@media (min-width: 640px) and (max-width: 1023px) {
    .contacts-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-details h3 {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-link,
.contact-text {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.3;
    transition: color 0.2s;
    word-break: break-word;
}

.contact-link:hover {
    color: var(--primary-color);
}

.contact-sub {
    font-size: var(--text-xs);
    color: var(--text-light);
    margin-top: 4px;
    font-weight: 500;
}

/* City Selector Widget */
.contacts-widget {
    background-color: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    margin-bottom: var(--spacing-xl);
}

/* Compact styles for widget items */
.contacts-widget .contact-item {
    padding: var(--spacing-md);
    gap: var(--spacing-md);
    align-items: center;
}

.contacts-widget .contact-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
}

.contacts-widget .contact-link,
.contacts-widget .contact-text {
    font-size: var(--text-base);
}

.contacts-widget .contact-details h3 {
    font-size: var(--text-xs);
    margin-bottom: 2px;
}

.city-selector-wrapper {
    margin-bottom: var(--spacing-lg);
}

.city-select {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: var(--text-base);
    color: var(--text-main);
    background-color: var(--bg-white);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.city-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Mini Form Card */
.contacts-form-card {
    background-color: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    margin-top: auto;
    /* Push to bottom in flex container */
    position: relative;
    isolation: isolate;
}

.form-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--secondary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* Map Wrapper */
.contacts-map-wrapper {
    position: relative;
    min-height: 300px;
    /* Mobile height */
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background-color: var(--bg-light);
    order: 1;
    /* Map first on mobile */
}

@media (min-width: 1024px) {
    .contacts-map-wrapper {
        min-height: 100%;
        /* Full height on desktop */
        height: auto;
        order: 2;
    }
}

/* --- CONTACTS ADAPTIVE (Mobile & Tablet) --- */
@media (max-width: 1024px) {
    .contacts-map-wrapper {
        /* Ensure map has enough height when stacked */
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .contacts-section {
        padding: var(--spacing-lg) 0;
    }

    .contacts-wrapper {
        gap: var(--spacing-lg);
    }

    /* Adjust map for smaller screens */
    .contacts-map-wrapper {
        min-height: 300px;
        border-radius: var(--radius-lg);
        margin-bottom: var(--spacing-md);
    }

    /* Contact Items Optimization */
    .contact-item {
        padding: var(--spacing-md);
        gap: var(--spacing-md);
        flex-direction: row;
        /* Keep row but ensure alignment */
        align-items: center;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        /* Prevent shrinking */
    }

    .contact-link {
        font-size: var(--text-base);
        padding: 4px 0;
        /* Increase touch area */
        display: inline-block;
    }

    .contact-text {
        font-size: var(--text-base);
    }

    /* Branches Grid on Mobile */
    .branches-grid {
        grid-template-columns: 1fr;
        /* Stack branches */
    }

    .branch-card {
        padding: var(--spacing-md);
    }

    /* Feedback Section */
    .feedback-wrapper {
        padding: var(--spacing-lg);
        width: 100%;
        border-radius: var(--radius-lg);
    }

    .feedback-form .form-group {
        margin-bottom: var(--spacing-md);
    }

    /* Inputs Touch Friendly */
    .input,
    .textarea {
        min-height: 44px;
        /* Apple Design Guidelines */
        font-size: 16px;
        /* Prevent iOS zoom */
    }

    .btn--lg {
        width: 100%;
        /* Full width button */
        padding: 14px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {

    /* Tablet specific adjustments */
    .contacts-map-wrapper {
        min-height: 450px;
    }

    .contacts-list {
        /* Ensure 2 columns on tablet as per existing rule, but enforce gap */
        gap: var(--spacing-lg);
    }

    .feedback-wrapper {
        padding: var(--spacing-xl);
    }
}

.contacts-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.form-title {
    font-size: var(--text-xl);
    margin-bottom: var(--spacing-lg);
    color: var(--secondary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

@media (min-width: 480px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- BRANCHES LIST --- */
.branches-section {
    margin-top: var(--spacing-xl);
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.branch-card {
    background-color: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
    cursor: default;
}

.branch-card:hover,
.branch-card.active {
    border-color: var(--primary-color);
    background-color: var(--bg-light);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.branch-card.active {
    background-color: var(--primary-light);
}

.branch-name {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.branch-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #22c55e;
    /* Green-500 */
    display: inline-block;
}

.branch-address {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.4;
}

.branch-phone {
    display: block;
    margin-top: var(--spacing-sm);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.branch-phone:hover {
    text-decoration: underline;
}

/* --- FEEDBACK SECTION --- */
.feedback-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-white);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.feedback-content {
    text-align: center;
}

.feedback-form {
    margin-top: var(--spacing-xl);
    text-align: left;
}

.feedback-form .form-group {
    margin-bottom: var(--spacing-lg);
    position: relative;
}

/* Floating Label / Modern Input */
.feedback-form .form-label {
    display: block;
    margin-bottom: 6px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.feedback-form .input:focus+.form-label,
.feedback-form .input:not(:placeholder-shown)+.form-label {
    color: var(--primary-color);
}

.feedback-form .input,
.feedback-form .textarea {
    background-color: var(--bg-light);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.feedback-form .input:hover,
.feedback-form .textarea:hover {
    background-color: white;
    border-color: var(--border-color);
}

.feedback-form .input:focus,
.feedback-form .textarea:focus {
    background-color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-light);
}

@media (max-width: 480px) {
    .feedback-wrapper {
        padding: var(--spacing-lg);
    }
}

/* --- CATEGORY CARD --- */
.category-card {
    position: relative;
    height: 300px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    display: block;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.category-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.category-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.category-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    z-index: 1;
}

.category-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-xl);
    z-index: 2;
    color: white;
}

.category-card__title {
    color: white;
    margin-bottom: var(--spacing-xs);
    font-size: var(--text-xl);
}

.category-card__link {
    color: var(--accent-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-base);
}

.category-card:hover .category-card__link {
    opacity: 1;
    transform: translateY(0);
}

/* --- GALLERY --- */
.gallery-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

.gallery-tab {
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    font-size: var(--text-sm);
    /* Ensure touch target size */
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gallery-tab:hover {
    background-color: var(--bg-light);
    color: var(--text-main);
}

.gallery-tab.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    .gallery-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: var(--spacing-sm);
        padding-bottom: var(--spacing-xs);
        -webkit-overflow-scrolling: touch;
        /* Hide scrollbar for cleaner look but keep functionality */
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
    }

    .gallery-tabs::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .gallery-tab {
        flex: 0 0 auto;
        padding: 0.5rem 1.25rem;
        font-size: var(--text-sm);
        white-space: nowrap;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        /* Single column for vertical flow */
        gap: var(--spacing-lg);
        /* Larger gap for better separation */
    }
}

/* Tablet (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Fixed 3 columns */
        gap: var(--spacing-lg);
    }
}

/* Desktop (>= 1025px) - Keep original or enhance */
@media (min-width: 1025px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        /* Fixed 4 columns for consistency */
        gap: var(--spacing-xl);
    }
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    background-color: var(--bg-light);
    /* Placeholder color */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* --- PAYMENT & DELIVERY --- */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.payment-card {
    background: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.payment-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.payment-card__icon {
    margin-bottom: var(--spacing-lg);
    height: 120px;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-card__icon img {
    width: auto;
    height: 100%;
    object-fit: contain;
}

.payment-card__title {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-size: var(--text-lg);
    font-weight: 700;
}

.payment-card__text {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-size: var(--text-sm);
}

.payment-card__list {
    padding-left: 0;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-top: auto;
    list-style: none;
    width: 100%;
    text-align: left;
}

.payment-card__list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 24px;
    display: flex;
    align-items: center;
}

.payment-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* --- PRIVACY POLICY & TEXT PAGES --- */
.text-content {
    width: 100%;
    background-color: var(--bg-white);
    padding: var(--spacing-3xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

/* Top accent line */
.text-content::before {
    display: none;
}

.text-content .text-muted {
    display: inline-block;
    background-color: var(--bg-light);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
}

.policy-block {
    margin-bottom: var(--spacing-2xl);
}

.policy-block:last-of-type {
    margin-bottom: var(--spacing-xl);
}

.policy-block h2 {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--secondary-color);
}

.policy-block p {
    margin-bottom: var(--spacing-md);
    color: var(--text-main);
    line-height: 1.6;
}

.policy-block ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: var(--spacing-md);
    display: block;
}

.policy-block li {
    margin-bottom: 8px;
    padding-left: 0;
    line-height: 1.6;
    color: var(--text-main);
}

.policy-block li::before {
    display: none;
}

.actions {
    margin-top: var(--spacing-3xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border-light);
}

@media (max-width: 768px) {
    .text-content {
        padding: var(--spacing-lg);
    }

    .policy-block h2 {
        font-size: var(--text-xl);
    }
}

/* --- ERROR PAGE --- */
.error-page__code {
    font-size: 8rem;
    line-height: 1;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-weight: 800;
}

.error-page__text {
    max-width: 500px;
    margin: 0 auto var(--spacing-xl);
}

.error-page__actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* --- CTA SECTION --- */
.cta-section {
    padding: var(--spacing-2xl) 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-xl);
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    isolation: isolate;
    /* Create stacking context */
}

@media (min-width: 768px) {
    .cta-box {
        padding: var(--spacing-2xl);
    }
}

@media (min-width: 1024px) {
    .cta-box {
        grid-template-columns: 1.5fr 1fr;
        align-items: center;
        padding: var(--spacing-3xl);
        gap: var(--spacing-3xl);
    }
}

/* Decorative circles */
.cta-box::before,
.cta-box::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
    pointer-events: none;
}

.cta-box::before {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation: pulse-slow 8s infinite alternate ease-in-out;
}

.cta-box::after {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    animation: pulse-slow 6s infinite alternate-reverse ease-in-out;
}

.cta-box__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.cta-box__title {
    color: white;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

.cta-box__text {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-lg);
    margin: 0;
    max-width: 600px;
    line-height: 1.6;
}

/* CTA Form */
.cta-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    width: 100%;
    max-width: 600px;
    margin-top: var(--spacing-lg);
}

@media (min-width: 640px) {
    .cta-form {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-form .form-group,
    .cta-form .btn {
        grid-column: 1 / -1;
    }
}

.cta-form .input {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 14px 20px;
    width: 100%;
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
    font-size: var(--text-base);
}

.cta-form .input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.cta-form .input:focus {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: white;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15);
    outline: none;
}

/* Specific button style for CTA */
.btn--accent {
    background-color: var(--accent-color);
    color: white;
    border: none;
    font-size: var(--text-base);
    font-weight: 700;
    padding: 16px 32px;
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: var(--radius-lg);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn--accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn--accent:active {
    transform: translateY(0);
}

.cta-box__note {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--spacing-sm);
    line-height: 1.5;
}

.cta-box__note a {
    text-decoration: underline;
    text-decoration-skip-ink: auto;
    transition: color 0.2s;
    color: rgba(255, 255, 255, 0.9);
}

.cta-box__note a:hover {
    color: white;
}

/* Image side */
.cta-box__image {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    order: -1;
    /* Show image first on mobile or hide */
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

@media (max-width: 991px) {
    .cta-box__image {
        display: none;
        /* Hide image on mobile/tablet to save space */
    }
}

@media (min-width: 1024px) {
    .cta-box__image {
        order: 1;
        opacity: 1;
        justify-content: flex-end;
        display: flex;
    }
}

.cta-box__image img {
    max-width: 100%;
    height: auto;
    max-height: 160px;
    object-fit: contain;
}

@media (min-width: 768px) {
    .cta-box__image img {
        max-height: 240px;
    }
}

/* Keyframes for decorative circles */
@keyframes pulse-slow {
    0% {
        transform: scale(1);
        opacity: 0.1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }

    100% {
        transform: scale(1);
        opacity: 0.1;
    }
}

/* --- FOOTER --- */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding-top: var(--spacing-3xl);
    border-top: var(--spacing-xs) solid var(--primary-color);
    font-family: var(--font-main);
}

/* Flexible Container */
.footer__top {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
    padding-bottom: var(--spacing-3xl);
    width: 100%;
    justify-content: flex-start;
}

.footer__col {
    flex: 1 1 240px;
    min-width: 0;
    transition: flex-basis 0.3s ease;
}

.footer__col--info {
    flex: 1.5 1 320px;
}

/* Dynamic Layout Adaptation */
@supports selector(:has(*)) {
    .footer__top:not(:has(> :nth-child(4))) {
        justify-content: center;
    }

    .footer__top:not(:has(> :nth-child(4)))>.footer__col {
        flex-grow: 0;
        flex-basis: 300px;
    }

    .footer__top:has(> :nth-child(4)):not(:has(> :nth-child(7))) {
        justify-content: space-between;
    }

    .footer__top:has(> :nth-child(7)) {
        justify-content: flex-start;
        gap: var(--spacing-lg);
    }
}

.footer__desc {
    color: var(--text-light);
    margin: var(--spacing-md) 0 var(--spacing-lg);
    max-width: 300px;
    line-height: 1.6;
    font-size: var(--text-sm);
}

.logo--footer img {
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.2s;
}

.logo--footer:hover img {
    opacity: 1;
}

/* Socials Footer */
.socials {
    display: flex;
    gap: var(--spacing-md);
}

.socials--footer {
    justify-content: flex-start;
}

.socials--footer .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.socials--footer .social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.socials--footer .social-link:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

.footer__title {
    color: white;
    font-size: var(--text-lg);
    margin-bottom: var(--spacing-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

/* Footer Nav */
.footer__nav {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer__nav a {
    color: var(--text-light);
    display: inline-block;
    transition: all 0.2s ease;
    font-size: var(--text-sm);
    line-height: 1.4;
    position: relative;
}

.footer__nav a:hover {
    color: white;
    transform: translateX(4px);
}

.footer__nav a:focus-visible {
    outline: 2px solid white;
    border-radius: 2px;
}

@supports selector(:has(*)) {
    .footer__nav:has(li:nth-child(7)) {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-sm) var(--spacing-md);
    }
}

/* Contacts List */
#footer-contacts-container {
    /* Reset previous styles */
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

/* Footer Contacts New UI */
.footer__contacts-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.footer__selector-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer__selector-label {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.footer__select-wrapper {
    position: relative;
    width: 100%;
}

.footer__city-select {
    width: 100%;
    appearance: none;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    padding-right: 36px;
    color: white;
    font-family: var(--font-main);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.footer__city-select:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.footer__city-select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.2);
}

.footer__city-select option {
    background-color: var(--bg-dark);
    color: white;
    padding: 8px;
}

.footer__select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer__contact-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 80px;
    /* Prevent layout shift */
}

.footer__general-contacts {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-sm);
    line-height: 1.4;
}

.footer__contact-item .icon {
    flex-shrink: 0;
    color: var(--primary-color);
    margin-top: 2px;
}

.footer__contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.footer__contact-item a:hover {
    color: white;
}

/* Animation */
.animate-fade {
    animation: fadeInShort 0.3s ease-out forwards;
}

@keyframes fadeInShort {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons in Footer */
.btn--outline-white {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    margin-top: var(--spacing-sm);
    padding: 0.5rem 1.5rem;
    font-size: var(--text-sm);
    transition: all 0.2s;
}

.btn--outline-white:hover {
    background-color: white;
    color: var(--secondary-color);
    border-color: white;
    transform: translateY(-1px);
}

/* Footer Bottom */
.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-lg) 0;
    color: var(--text-light);
    font-size: var(--text-xs);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    text-align: center;
}

@media (min-width: 768px) {
    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer__legal {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    justify-content: center;
}

.footer__legal a {
    color: var(--text-light);
    transition: color 0.2s;
}

.footer__legal a:hover {
    color: white;
    text-decoration: underline;
}

/* --- FOOTER MOBILE OPTIMIZATION --- */
@media (max-width: 767px) {
    .footer__top {
        flex-direction: column;
        /* Force stack on mobile */
        gap: var(--spacing-xl);
        /* Consistent spacing */
        padding-bottom: var(--spacing-2xl);
    }

    .footer__col {
        flex: 0 0 100%;
        /* Full width */
        width: 100%;
        max-width: 100%;
    }

    /* Adaptive Typography & Touch Targets */
    .footer__title {
        margin-bottom: var(--spacing-md);
        font-size: clamp(1.25rem, 5vw, 1.5rem);
        /* 20px-24px adaptive */
    }

    .footer__nav a {
        padding: 12px 0;
        /* Larger hit area (44px min target achieved with line-height) */
        display: block;
        width: 100%;
        font-size: clamp(1rem, 4vw, 1.125rem);
        /* 16px-18px adaptive */
    }

    /* Mobile Touch Interactions (:active) */
    .footer__nav a:active,
    .footer__contact-item a:active,
    .footer__legal a:active {
        opacity: 0.7;
        transform: translateX(2px);
        transition: all 0.1s ease;
    }

    /* Ensure icons in contacts don't shrink */
    .footer__contact-item .icon {
        width: 20px;
        height: 20px;
        margin-top: 2px;
    }

    .footer__contact-item {
        margin-bottom: var(--spacing-sm);
        align-items: center;
        /* Align center for better mobile look */
        font-size: clamp(0.9375rem, 3.5vw, 1rem);
    }

    /* Full width button for easier tapping */
    .btn--outline-white {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 14px;
        font-size: clamp(1rem, 4vw, 1.125rem);
    }

    .btn--outline-white:active {
        background-color: rgba(255, 255, 255, 0.2);
        transform: scale(0.98);
        transition: all 0.1s ease;
    }

    /* Socials spacing & interaction */
    .socials--footer {
        gap: var(--spacing-lg);
    }

    .socials--footer .social-link {
        width: 48px;
        /* Larger touch target */
        height: 48px;
    }

    .socials--footer .social-link:active {
        transform: scale(0.9);
        opacity: 0.8;
        transition: all 0.1s ease;
    }

    /* Copyright and Legal stack spacing */
    .footer__bottom {
        gap: var(--spacing-lg);
        padding-top: var(--spacing-xl);
    }

    .footer__legal {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: center;
    }
}

/* --- TABLET OPTIMIZATION (768px - 1023px) --- */
@media (min-width: 768px) and (max-width: 1023px) {

    /* Optimized Layout: Info top, Links bottom side-by-side */
    .footer__col--info {
        flex: 0 0 100%;
        /* Full width top row */
        margin-bottom: var(--spacing-lg);
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Center info on tablet */
        text-align: center;
    }

    .footer__desc {
        max-width: 500px;
        /* Wider text block for tablet */
        margin-left: auto;
        margin-right: auto;
        font-size: clamp(0.9375rem, 2vw, 1rem);
    }

    /* Adaptive Title */
    .footer__title {
        font-size: clamp(1.375rem, 3vw, 1.625rem);
        /* ~22px-26px */
    }

    .socials--footer {
        justify-content: center;
    }

    /* Columns for Catalog and Contacts */
    .footer__col {
        flex: 1 1 45%;
        /* Share second row */
    }

    /* Better touch targets and typography */
    .footer__nav a {
        padding: 10px 0;
        font-size: clamp(0.9375rem, 2vw, 1.0625rem);
    }

    /* Tablet Touch Interactions */
    .footer__nav a:active,
    .footer__contact-item a:active {
        opacity: 0.7;
        transform: translateX(2px);
        transition: all 0.1s ease;
    }

    .btn--outline-white {
        padding: 12px 24px;
        font-size: clamp(0.9375rem, 2vw, 1rem);
    }

    .btn--outline-white:active {
        transform: scale(0.98);
        transition: all 0.1s ease;
    }

    .socials--footer .social-link:active {
        transform: scale(0.9);
        transition: all 0.1s ease;
    }
}

/* --- UTILS --- */
.alert {
    background: #fff3cd;
    color: #856404;
    padding: 1rem;
    margin-bottom: 2rem;
    border: 1px solid #ffeeba;
    border-radius: var(--radius-md);
    text-align: center;
}

/* --- CASES (OUR WORKS) --- */
.cases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    width: 100%;
}

@media (min-width: 640px) {
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }
}

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

.case-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    will-change: transform, box-shadow;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.case-card__image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background-color: var(--bg-light);
}

.case-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-card:hover .case-card__image img {
    transform: scale(1.1);
}

.case-card__content {
    padding: var(--spacing-xl);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    justify-content: space-between;
}

.case-card__info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.case-card__title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.3;
    margin: 0;
}

.case-card__desc {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--primary-color);
    font-weight: 600;
    font-size: var(--text-sm);
    transition: gap 0.2s ease;
    margin-top: auto;
    /* Push to bottom if needed */
}

.case-card__link svg {
    transition: transform 0.2s ease;
}

.case-card:hover .case-card__link {
    gap: var(--spacing-sm);
    text-decoration: underline;
}

.case-card:hover .case-card__link svg {
    transform: translateX(2px);
}


/* --- MODALS --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: var(--spacing-sm);
    /* Ensure spacing on small screens */
}

.modal.is-active,
.modal[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.modal.is-active .modal__content,
.modal[aria-hidden="false"] .modal__content {
    transform: translateY(0);
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.8);
    /* secondary-color with opacity */
    backdrop-filter: blur(4px);
}

.modal__content {
    position: relative;
    background-color: var(--bg-white);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    /* Adaptive padding */
    width: 100%;
    max-width: 480px;
    /* Default for small modals */
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2001;
    max-height: 90vh;
    /* Prevent overflow */
    overflow-y: auto;
    /* Scroll if content is too long */
    margin: auto;
    /* Center if flex fails */
}

/* Wide modal variant (e.g. Product Modal) */
.modal__content--wide,
#modal-product .modal__content {
    max-width: 900px;
}

.modal__close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.2s;
    border-radius: var(--radius-sm);
    z-index: 10;
}

.modal__close:hover {
    color: var(--primary-color);
    background-color: var(--bg-light);
}

.modal__title {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    /* Adaptive title */
    color: var(--secondary-color);
    margin-bottom: var(--spacing-xs);
    text-align: center;
}

.modal__subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-bottom: var(--spacing-xl);
}

/* --- MODAL RESPONSIVE STYLES --- */

/* Mobile (320px - 767px) */
@media (max-width: 767px) {
    .modal__content {
        width: 95%;
        /* Maximize width with small margin */
        padding: var(--spacing-lg);
        border-radius: var(--radius-lg);
    }

    /* Larger touch target for close button */
    .modal__close {
        width: 44px;
        height: 44px;
        top: var(--spacing-sm);
        right: var(--spacing-sm);
        font-size: 28px;
    }

    .product-modal-grid {
        gap: var(--spacing-lg);
    }

    .product-modal__image {
        max-height: 250px;
    }

    .product-modal__title {
        font-size: var(--text-xl);
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .modal__content {
        width: 90%;
        max-width: 600px;
        /* Allow slightly wider default modals on tablet */
    }

    #modal-product .modal__content {
        max-width: 720px;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {

    /* Fine-tuning for large screens */
    .modal__close {
        top: var(--spacing-lg);
        right: var(--spacing-lg);
    }
}

/* --- LIGHTBOX (ENHANCED) --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox.is-active {
    opacity: 1;
    visibility: visible;
}

.lightbox__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox__container {
    position: relative;
    z-index: 3001;
    display: flex;
    flex-direction: column;
    /* Stack content and controls vertically */
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: var(--spacing-lg);
    pointer-events: none;
    /* Let clicks pass through to backdrop */
}

/* Controls Container */
.lightbox__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
    pointer-events: auto;
    z-index: 3010;
}

/* Default Layout (Simple / Gallery) */
.lightbox__content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.lightbox.is-active .lightbox__content {
    transform: scale(1);
    opacity: 1;
}

.lightbox__media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.lightbox__image,
.lightbox__video {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    user-select: none;
    transition: opacity 0.3s ease;
}

.lightbox__info {
    display: none;
}

/* Simple Caption Mode */
.lightbox--simple-caption .lightbox__info {
    display: block;
    width: 100%;
    text-align: center;
    padding-top: var(--spacing-md);
    color: white;
    animation: slideUp 0.3s ease-out;
}

.lightbox--simple-caption .lightbox__title {
    color: white;
    font-size: var(--text-lg);
    margin: 0;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* --- SPLIT LAYOUT (Detailed View) --- */
.lightbox--has-info .lightbox__content {
    flex-direction: row;
    background-color: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    width: 95vw;
    max-width: 1200px;
    height: 80vh;
    box-shadow: var(--shadow-2xl);
    padding: 0;
}

/* Left Side: Media */
.lightbox--has-info .lightbox__media {
    flex: 1.6;
    /* ~61.5% width */
    background-color: #0f172a;
    /* Slate-900 */
    height: 100%;
    position: relative;
}

.lightbox--has-info .lightbox__image,
.lightbox--has-info .lightbox__video {
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    max-height: none;
}

/* Right Side: Content */
.lightbox--has-info .lightbox__info {
    display: flex;
    flex: 1;
    /* ~38.5% width */
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-3xl);
    background-color: white;
    color: var(--text-primary);
    text-align: left;
    overflow-y: auto;
    position: relative;
}

.lightbox__title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--secondary-color);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.lightbox__description {
    font-family: 'Inter', sans-serif;
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Custom Scrollbar for Info Panel */
.lightbox__info::-webkit-scrollbar {
    width: 6px;
}

.lightbox__info::-webkit-scrollbar-track {
    background: transparent;
}

.lightbox__info::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

/* --- CONTROLS --- */
.lightbox__close,
.lightbox__prev,
.lightbox__next {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    outline: none;
    background: transparent;
    color: white;
    transition: all 0.2s ease;
    pointer-events: auto;
}

.lightbox__close {
    position: absolute;
    z-index: 3010;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    font-size: 28px;
    line-height: 1;
}

.lightbox__close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

/* Navigation Arrows */
.lightbox__prev,
.lightbox__next {
    position: relative;
    /* Reset absolute positioning */
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    font-size: 24px;
}

.lightbox__prev:hover,
.lightbox__next:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .lightbox--has-info .lightbox__content {
        width: 95vw;
        height: 85vh;
    }

    .lightbox--has-info .lightbox__info {
        padding: var(--spacing-xl);
    }
}

@media (max-width: 900px) {
    .lightbox--has-info .lightbox__content {
        flex-direction: column;
        height: auto;
        max-height: 90vh;
        width: 95vw;
        overflow: hidden;
        border-radius: var(--radius-lg);
    }

    .lightbox--has-info .lightbox__media {
        flex: none;
        height: 300px;
        /* Fixed height for mobile image */
        width: 100%;
        background-color: #000;
    }

    .lightbox--has-info .lightbox__info {
        flex: none;
        height: auto;
        max-height: 50vh;
        /* Scrollable text area */
        padding: var(--spacing-lg);
        overflow-y: auto;
        justify-content: flex-start;
    }

    /* Adjust controls for mobile */
    .lightbox__controls {
        margin-top: var(--spacing-md);
        gap: var(--spacing-lg);
    }

    .lightbox__prev,
    .lightbox__next {
        width: 48px;
        height: 48px;
        background: rgba(255, 255, 255, 0.1);
        /* No absolute positioning needed */
    }

    /* Reset split view specific positioning since we moved to controls container */
    .lightbox--has-info .lightbox__prev,
    .lightbox--has-info .lightbox__next {
        top: auto;
        transform: none;
    }

    .lightbox__close {
        top: var(--spacing-md);
        right: var(--spacing-md);
        background: rgba(0, 0, 0, 0.5);
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .lightbox__container {
        padding: var(--spacing-xs);
    }

    /* Default layout adjustments */
    .lightbox__content {
        max-width: 100%;
        width: 100%;
    }

    .lightbox__image {
        max-height: 80vh;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: slideUp 0.6s ease-out forwards;
}

/* Index Page Specific Styles */
.index-page .section {
    padding: var(--spacing-3xl) 0;
}

/* --- BACK TO TOP --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 900;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.4);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}