:root {
    --primary: #408b3e;
    /* Mockup green */
    --primary-hover: #337531;
    --text-dark: #2a2a2a;
    --text-light: #6b6b6b;
    --bg-page: #f9fafb;
    --bg-card: #ffffff;
    --border: #eaeaea;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.08);
    --section-padding: 40px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.preloader-bg-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.p-circle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0.1;
    animation: float-circle 10s infinite alternate ease-in-out;
}

.p-circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
}

.p-circle-2 {
    width: 250px;
    height: 250px;
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

@keyframes float-circle {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.preloader-logo {
    width: 200px;
    height: auto;
    animation: preloader-pulse 2s infinite ease-in-out;
}

.preloader-progress {
    width: 160px;
    height: 4px;
    background: #f0f0f0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary);
    animation: progress-move 2s infinite ease-in-out;
}

@keyframes preloader-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes progress-move {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-dark);
    line-height: 1.5;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.w-100 {
    width: 100%;
}

.mb-3 {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-sm {
    padding: 10px 18px;
    font-size: 14px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
}

.btn-white {
    background-color: white;
    color: var(--text-dark);
    border: 1px solid var(--border);
}

.btn-white:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

/* Header Top Bar */
.header {
    background: white;
    border-bottom: 1px solid var(--border);
}

.top-bar {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.top-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 36px;
}

.logo-title {
    font-weight: 700;
    font-size: 18px;
    display: block;
    letter-spacing: 0.5px;
}

.logo-subtitle {
    font-size: 10px;
    color: var(--text-light);
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 600;
}

.header-addresses {
    display: flex;
    gap: 30px;
}

.address-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.address-item .icon-pin {
    color: var(--primary);
    font-size: 18px;
}

.address-text strong {
    display: block;
    font-size: 14px;
}

.address-text span {
    font-size: 12px;
    color: var(--text-light);
}

.mobile-region-badge {
    display: none;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-block {
    text-align: right;
}

.phone {
    display: block;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-dark);
    text-decoration: none;
}

.working-hours {
    font-size: 11px;
    color: var(--text-light);
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 32px;
    height: 32px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--border);
}

/* Nav */
.main-nav {
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    transition: all 0.3s ease;
}

.main-nav.scrolled {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 0;
    position: relative;
}

.nav-sep {
    font-size: 10px;
    color: #ddd;
    display: none;
}

.nav-container a {
    display: block;
    padding: 12px 10px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    flex: 1;
    transition: color 0.3s ease;
}

.nav-container a.active,
.nav-container a:hover {
    color: var(--text-dark);
}

.nav-indicator {
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, #408b3e 50%, #d32f2f 50%);
    border-radius: 3px 3px 0 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 2;
    pointer-events: none;
    width: 0;
}

.nav-container a span {
    font-size: 10px;
    vertical-align: middle;
}

.logo-img-main {
    max-height: 85px;
}

/* Hero Section Layout */
.hero-section {
    position: relative;
    padding: var(--section-padding) 0;
    min-height: calc(100vh - 145px);
    display: flex;
    align-items: center;
}

.hero-bg-split {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 0;
}

.hero-bg-left {
    width: 65%;
    background: #f4fbf4 url('images/tat-fon.png') no-repeat center;
    background-size: 1200px;
    /* Very large pattern */
    position: relative;
    z-index: 2;
    -webkit-mask-image:
        radial-gradient(circle at 15% 25%, black 10%, transparent 100%),
        radial-gradient(circle at 30% 55%, black 15%, transparent 100%),
        radial-gradient(circle at 20% 85%, black 10%, transparent 100%),
        linear-gradient(to right, black 20%, rgba(0, 0, 0, 0.4) 55%, transparent 100%);
    mask-image:
        radial-gradient(circle at 15% 25%, black 10%, transparent 100%),
        radial-gradient(circle at 30% 55%, black 15%, transparent 100%),
        radial-gradient(circle at 20% 85%, black 10%, transparent 100%),
        linear-gradient(to right, black 20%, rgba(0, 0, 0, 0.4) 55%, transparent 100%);
    -webkit-mask-composite: source-over;
    mask-composite: add;
    border-radius: 0;
    transform: none;
}

.hero-bg-left::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(244, 251, 244, 0.6), rgba(244, 251, 244, 0.6));
    z-index: -1;
}

.hero-bg-right {
    width: 45%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-bg-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1px;
    width: 250px;
    /* Wider smoke */
    height: 100%;
    background: linear-gradient(to right, #f4fbf4 0%, rgba(244, 251, 244, 0.8) 40%, transparent 100%);
    z-index: 2;
}

.hero-bg-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

.hero-container {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
    width: 100%;
    margin-top: -120px;
}

.hero-content-left {
    width: 50%;
    padding-right: 20px;
}

.hero-title {
    font-size: 52px;
    margin-bottom: 15px;
    color: #111;
    line-height: 1.1;
}

.hero-title span {
    color: #408b3e;
}

.hero-divider {
    display: block;
    max-width: 400px;
    width: 100%;
    margin: 10px 0 25px;
}

.hero-subtitle {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.4;
    max-width: 90%;
}

.hero-features-grid {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 20px;
    margin-bottom: 40px;
}

.hero-features-grid li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #444;
    font-weight: 500;
}

.check-icon {
    color: white;
    background: #4baf31;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    flex-shrink: 0;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-large {
    padding: 16px 36px;
    font-size: 16px;
}

.hero-buttons .btn-primary {
    background: #4baf31;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(75, 175, 49, 0.3);
}

.hero-buttons .btn-primary:hover {
    background: #3e9428;
}

.btn-outline-green {
    background: transparent;
    color: #4baf31;
    border: 2px solid #4baf31;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-outline-green:hover {
    background: #f0fdf4;
}

.tatarstan-badge-hero {
    position: absolute;
    left: 52%;
    top: 12%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(75, 175, 49, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 6px 20px 6px 6px;
    border-radius: 40px 15px 40px 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: badge-float 4s infinite ease-in-out;
    overflow: hidden;
    white-space: nowrap;
}

.tatarstan-badge-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(30deg);
    animation: badge-shine 4s infinite ease-in-out;
}

.tatarstan-badge-hero span {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.flag-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}

.flag-circle img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

@keyframes badge-float {

    0%,
    100% {
        transform: translate(-50%, -50%);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }

    50% {
        transform: translate(-50%, -60%);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    }
}

@keyframes badge-shine {
    0% {
        left: -100%;
    }

    20%,
    100% {
        left: 150%;
    }
}

.flag-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 2px;
}

.flag-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid white;
}

.tatarstan-badge-hero span {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
}

@media (max-width: 1024px) {
    .hero-bg-split {
        flex-direction: column;
    }

    .hero-bg-left {
        width: 100%;
        height: auto;
    }

    .hero-bg-left::after {
        display: none;
    }

    .hero-bg-right {
        width: 100%;
        height: 300px;
        display: none;
    }

    /* Hide image on mobile or show below */
    .hero-content-left {
        width: 100%;
        padding: 40px 0;
    }

    .tatarstan-badge-hero {
        position: static;
        transform: none;
        display: inline-flex;
        margin-top: 30px;
    }

    .hero-features-grid {
        grid-template-columns: 1fr;
    }
}

/* Generic Section */
.section-title {
    font-size: 32px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-ornament {
    height: 32px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.section-header .section-title {
    margin-bottom: 0;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
}

/* Plastic Products */
.plastic-products {
    padding: var(--section-padding) 0;
    position: relative;
    z-index: 10;
}

.product-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.p-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    position: relative;
    border: none;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.p-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.p-card-img {
    height: 240px;
    background-size: cover;
    background-position: center;
    border-radius: 12px 12px 0 0;
}

.p-card-bottom {
    position: relative;
    padding: 40px 20px 20px;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 0 0 12px 12px;
    flex-grow: 1;
}

.p-card-icon {
    position: absolute;
    top: -25px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 0 0 6px white;
    border: 2px solid var(--primary);
    z-index: 2;
}

.p-card-icon svg {
    width: 22px;
    height: 22px;
}

.p-card-text-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    margin-top: auto;
}

.p-card-text-row h3 {
    font-size: 16px;
    line-height: 1.3;
    margin: 0;
}

.arrow {
    color: var(--primary);
    font-weight: bold;
    font-size: 18px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.p-card:hover .arrow {
    transform: translateX(5px);
}

.p-card-info {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.p-card-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
}

.p-card-installment {
    font-size: 11px;
    color: #408b3e;
    background: #e8f5e9;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    align-self: flex-start;
    font-weight: 600;
}

/* Promotions */
.promotions-sec {
    padding: var(--section-padding) 0;
}

.promo-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.promo-card {
    background: #fafafa;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid #eaeaea;
    min-height: 240px;
    display: flex;
}

.promo-content {
    padding: 30px 20px;
    position: relative;
    z-index: 2;
    width: 65%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
}

.promo-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 1.2;
}

.promo-card p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.4;
}

.promo-card .btn-white {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-top: auto;
}

.promo-img {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    mask-image: linear-gradient(to right, transparent, black 30%);
    -webkit-mask-image: linear-gradient(to right, transparent, black 30%);
}

/* Why Us */
.why-us-sec {
    padding: var(--section-padding) 0;
}

.why-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.w-card {
    background: white;
    padding: 30px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.w-icon {
    width: 50px;
    height: 50px;
    background: #f0fdf4;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary);
}

.w-content h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.w-content p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

/* Production */
.production-sec {
    padding: var(--section-padding) 0;
}

.prod-new-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.prod-info-new {
    flex: 0 0 32%;
}

.prod-info-new .section-title {
    font-size: 36px;
    margin-bottom: 25px;
    line-height: 1.2;
    text-align: left;
    max-width: 400px;
    display: block;
}

.prod-desc-new {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 30px;
}

.prod-img-new {
    flex: 1;
    /* Take the rest of the width (68%) */
}

.prod-custom-grid {
    display: flex;
    gap: 12px;
    /* White gap between images */
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transform: translateZ(0);
    /* Fix border-radius clipping */
}

.prod-item-1,
.prod-item-2,
.prod-item-3 {
    height: 100%;
    border-radius: 12px;
    /* Inner rounded corners for the slanted cuts */
    overflow: hidden;
    transform: skewX(-10deg);
    position: relative;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    /* Fix inner clipping */
}

.prod-item-1 {
    width: calc(33.333% + 80px);
    margin-left: -80px;
    flex: none;
}

.prod-item-2 {
    flex: 1;
}

.prod-item-3 {
    width: calc(33.333% + 80px);
    margin-right: -80px;
    flex: none;
}

.prod-item-1 img,
.prod-item-2 img,
.prod-item-3 img {
    width: 150%;
    height: 100%;
    object-fit: cover;
    transform: skewX(10deg);
    /* Unskew image */
    position: absolute;
    top: 0;
    left: -25%;
}

@media (max-width: 1024px) {
    .prod-new-layout {
        flex-direction: column;
        gap: 40px;
    }

    .prod-info-new,
    .prod-img-new {
        flex: 0 0 100%;
        width: 100%;
    }

    .prod-info-new .section-title {
        font-size: 32px;
    }
}

.prod-img-large,
.prod-img-small {
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-sm);
}

.prod-img-small-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.prod-img-small {
    height: calc(50% - 7.5px);
}

/* Aluminum */
.aluminum-sec {
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

.aluminum-sec::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/tat-fon.png') repeat;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
    z-index: -1;
}

.alum-new-layout {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    /* Reduced top margin */
}

/* Sidebar */
.alum-sidebar {
    flex: 0 0 300px;
    /* Slightly wider sidebar */
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Slightly larger gap */
}

.alum-tab {
    flex: 1;
    /* Stretch to fill available vertical space */
    background: white;
    border: none;
    border-radius: 12px;
    padding: 15px 20px;
    /* Reduced padding to fit smaller height */
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.alum-tab-icon {
    color: var(--primary);
    display: flex;
}

.alum-tab-text {
    flex: 1;
    font-size: 17px;
    /* Larger text */
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

.alum-tab-arrow {
    color: #ccc;
    display: flex;
    transition: color 0.3s;
}

.alum-tab:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.alum-tab.active {
    background: #edf5ee;
    border: 1px solid #cce0cc;
}

.alum-tab.active .alum-tab-text,
.alum-tab.active .alum-tab-arrow {
    color: var(--primary);
}

/* Main Content */
.alum-content {
    flex: 1;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.alum-main-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center right;
    min-height: 420px;
    /* Decreased height so images are not cropped by height */
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease, background-image 0.3s ease;
}

.alum-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Gradient: Increased smoke area */
    background: linear-gradient(to right, #ffffff 0%, #ffffff 15%, rgba(255, 255, 255, 0.85) 35%, rgba(255, 255, 255, 0) 55%);
    z-index: 1;
}

.alum-text-area {
    position: relative;
    z-index: 2;
    flex: 1;
    width: 35%;
    /* Narrow text area */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 30px;
}

.alum-text-area h3 {
    font-size: 38px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.alum-text-area p {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 30px;
}

.alum-pager {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.pager-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.pager-dot.active {
    background: white;
}

/* Features */
.alum-features {
    display: flex;
    gap: 15px;
}

.alum-feat-card {
    flex: 1;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.alum-feat-icon {
    color: var(--primary);
    display: flex;
}

.alum-feat-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-dark);
}

@media (max-width: 1024px) {
    .alum-new-layout {
        flex-direction: column;
    }

    .alum-sidebar {
        flex: none;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .alum-tab {
        flex: 0 0 auto;
        padding: 15px;
        min-width: 200px;
    }

    .alum-main-card {
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        background-color: white !important;
        background-size: 0 0 !important;
        /* Hide on parent, show on overlay */
        border: 1px solid #eee;
        overflow: hidden;
    }

    .alum-card-overlay {
        display: block !important;
        height: 220px !important;
        /* Horizontal rectangle */
        width: 100% !important;
        background-image: inherit !important;
        /* Inherit the image from parent */
        background-size: cover !important;
        background-position: center !important;
        position: relative !important;
    }

    .alum-card-overlay::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: linear-gradient(to top, white, transparent);
    }

    .alum-text-area {
        width: 100% !important;
        padding: 20px 25px 40px !important;
        text-align: center !important;
        align-items: center !important;
        background: white !important;
    }

    .alum-text-area h3 {
        font-size: 26px !important;
        margin-bottom: 12px !important;
        color: var(--text-dark) !important;
    }

    .alum-text-area p {
        color: var(--text-dark) !important;
    }

    .alum-text-area .btn {
        align-self: center !important;
    }

    .alum-pager {
        top: 185px !important;
        bottom: auto !important;
        z-index: 3;
    }

    .alum-features {
        flex-direction: column;
    }
}

/* Portfolio */
.portfolio-sec {
    padding: var(--section-padding) 0;
}

.gallery-new-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 15px;
    height: 400px;
    /* Reduced height as requested */
}

.g-main {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.g-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.g-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-dark);
    padding: 12px 25px;
    border-radius: 12px;
    z-index: 5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.g-badge strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
}

.g-badge span {
    font-size: 13px;
    opacity: 0.8;
}

.g-main-arrows {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 5;
}

.g-main-arrows button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.g-main-arrows button:hover {
    transform: scale(1.05);
    background: var(--primary);
    color: white;
}

.g-side-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
}

.g-side-item:nth-child(3) {
    grid-column: 3;
    grid-row: 1 / span 2;
}

.g-side-item {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.g-side-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.g-side-item:hover img {
    transform: scale(1.1);
}

@media (max-width: 1024px) {
    .gallery-new-layout {
        grid-template-columns: 1fr;
        height: auto;
    }

    .g-main {
        height: 400px;
    }

    .g-side-grid {
        height: auto;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .g-side-item:nth-child(n+5) {
        display: none;
    }

    .g-side-item:nth-child(3) {
        grid-column: auto;
        grid-row: auto;
    }
}

/* Advantages Section */
.advantages-sec {
    padding: var(--section-padding) 0;
    background: #f9fafb;
}

.adv-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
}

.adv-left-card {
    background: white url('images/adv-main.png') no-repeat bottom center;
    background-size: 110%;
    border-radius: 30px;
    padding: 60px 50px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.03);
    min-height: 650px;
}

/* Deeper smoke safe zone for text */
.adv-left-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.8) 30%, rgba(255, 255, 255, 0) 80%),
        linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.9) 30%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0) 95%);
    z-index: 1;
}

.adv-left-content {
    position: relative;
    z-index: 2;
}

.adv-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    padding: 8px 16px;
    border-radius: 40px;
    margin-bottom: 25px;
}

.adv-label img {
    height: 18px;
    width: auto;
}

.adv-label span {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

.adv-main-title {
    font-size: 42px;
    line-height: 1.1;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.adv-divider-wrap {
    margin: 20px 0;
}

.adv-divider-img {
    height: 24px;
    width: auto;
}

.adv-main-desc {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 30px;
}

.adv-img-wrap {
    position: relative;
    margin-top: auto;
    border-radius: 20px;
    overflow: hidden;
}


.adv-main-pic {
    width: 100%;
    display: block;
    position: relative;
    z-index: 1;
    transition: transform 0.5s ease;
}

.adv-left-card:hover .adv-main-pic {
    transform: scale(1.05);
}

.adv-bottom-badge {
    position: absolute;
    bottom: 40px;
    left: 40px;
    background: #4baf31;
    color: white;
    padding: 10px 28px 10px 10px;
    border-radius: 60px 20px 60px 60px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    z-index: 3;
    animation: badge-float-bottom 4s infinite ease-in-out;
    overflow: hidden;
}

@keyframes badge-float-bottom {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.adv-bottom-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(30deg);
    animation: badge-shine 4s infinite ease-in-out;
}

.adv-badge-icon {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adv-badge-icon img {
    height: 28px;
}

.adv-badge-text {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    color: white;
}

.adv-bg-pattern {
    position: absolute;
    top: -40px;
    left: -40px;
    width: 380px;
    height: 380px;
    background: url('images/adv-uzor.png') no-repeat center;
    background-size: contain;
    opacity: 0.12;
    z-index: 2;
    pointer-events: none;
    transform: rotate(0deg);
}

.adv-right-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 24px;
}

.adv-item {
    background: white;
    border-radius: 24px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.adv-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(64, 139, 62, 0.1);
}

.adv-icon-box {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.adv-icon-box img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.adv-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 5px;
}

.adv-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.adv-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .adv-grid {
        grid-template-columns: 1fr;
    }

    .adv-main-title {
        font-size: 32px;
    }

    .adv-left-card {
        min-height: 550px !important;
        background-size: 130% auto !important;
    }

    .adv-left-card::before {
        background:
            linear-gradient(to bottom,
                rgba(255, 255, 255, 1) 0%,
                rgba(255, 255, 255, 0.95) 40%,
                rgba(255, 255, 255, 0.6) 65%,
                rgba(255, 255, 255, 0) 100%) !important;
    }
}

@media (max-width: 600px) {
    .adv-right-grid {
        grid-template-columns: 1fr;
    }

    .adv-left-card {
        padding: 30px;
    }
}

/* Lead Form Section */
.lead-form-sec {
    padding: var(--section-padding) 0;
}

.premium-lead {
    background: #ffffff url('images/aktsya.png') no-repeat left center;
    background-size: 40% auto;
    border-radius: 30px;
    padding: 60px 60px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 40px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

/* Gradient overlay to create the 'smoke' transition */
.premium-lead::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0) 12%,
            rgba(255, 255, 255, 0.5) 25%,
            rgba(255, 255, 255, 0.95) 35%,
            rgba(255, 255, 255, 1) 40%,
            rgba(255, 255, 255, 1) 100%);
    z-index: 1;
}

.premium-lead .lead-text,
.premium-lead .lead-actions {
    position: relative;
    z-index: 2;
}

.premium-lead .lead-text {
    flex: 1;
    max-width: 450px;
    margin-left: 15%;
    /* Pushed content further right */
}

.premium-lead h3 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 15px;
    line-height: 1.2;
}

.premium-lead p {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

.lead-actions {
    display: flex;
    flex-direction: column;
    /* Stacked buttons as per screenshot */
    gap: 15px;
    min-width: 280px;
}

.lead-btn {
    padding: 18px 30px;
    border-radius: 12px;
    font-size: 16px;
    width: 100%;
    /* Consistent width */
    box-shadow: 0 8px 20px rgba(75, 175, 49, 0.2);
}

.lead-btn-white {
    padding: 18px 30px;
    border-radius: 12px;
    font-size: 16px;
    width: 100%;
    /* Consistent width */
    background: #ffffff;
    border: 1px solid #eee;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.lead-btn-white:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1024px) {
    .premium-lead {
        flex-direction: column;
        text-align: center;
        padding: 50px 25px !important;
        background: #ffffff !important;
        gap: 30px !important;
    }

    .premium-lead::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: url('images/tat-fon.png') repeat !important;
        opacity: 0.2 !important;
        /* Increased opacity for visibility */
        z-index: 1 !important;
        mask-image: none !important;
        -webkit-mask-image: none !important;
        background-size: 300px !important;
    }

    .premium-lead .lead-text {
        margin-left: 0 !important;
        max-width: 100% !important;
        flex: none !important;
    }

    .premium-lead h3 {
        font-size: 30px !important;
        margin-bottom: 12px !important;
    }

    .lead-actions {
        flex-direction: column;
        width: 100%;
        margin: 0 !important;
        min-width: auto !important;
    }

    .lead-btn,
    .lead-btn-white {
        width: 100%;
    }

    .tatarstan-badge-hero {
        left: auto;
        right: 20px;
        top: 20px;
        transform: translate(0, 0) scale(0.85);
        animation: none;
    }
}

/* Map Contacts Block */
.map-contacts-sec {
    position: relative;
    width: 100%;
}

.yandex-map-container {
    width: 100%;
    height: 600px;
}

.map-wrapper {
    position: relative;
}

.map-container {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.map-card {
    background: rgba(255, 255, 255, 0.6);
    /* Increased transparency */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 30px;
    /* Even more rounded */
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.4);
    pointer-events: auto;
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.map-card-logo {
    max-height: 45px;
    margin-bottom: 25px;
}

.map-card h3 {
    font-size: 28px;
    margin-bottom: 30px;
}

.map-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.map-info-icon {
    width: 22px;
    height: 22px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 3px;
}

.map-info-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.map-info-content strong {
    font-size: 13px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
}

.map-info-content span,
.map-phone {
    font-size: 16px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    line-height: 1.4;
}

/* Footer */
.main-footer {
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/tat-fon.png') repeat;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 25%, black 100%);
    mask-image: linear-gradient(to bottom, transparent, black 25%, black 100%);
    opacity: 0.5;
    z-index: -1;
}

.footer-logo {
    max-height: 80px;
    /* Even larger logo */
    margin-bottom: 25px;
    display: block;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
    padding-top: 40px;
}

.f-desc {
    font-size: 13px;
    color: var(--text-light);
    margin: 20px 0;
    max-width: 80%;
}

.f-socials {
    display: flex;
    gap: 15px;
}

.f-socials a {
    width: 48px;
    height: 48px;
    background: rgba(75, 175, 49, 0.1);
    border-radius: 50%;
    display: grid !important;
    /* Grid is more reliable for perfect centering */
    place-items: center !important;
    color: var(--primary);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    padding: 0;
}

.f-socials a svg {
    width: 24px;
    height: 24px;
    display: block;
    margin: 0;
}

.f-socials a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(75, 175, 49, 0.2);
}

.f-col-nav h4 {
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 700;
}

.f-col-nav ul {
    list-style: none;
}

.f-col-nav li {
    margin-bottom: 12px;
}

.f-col-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.f-col-nav a:hover {
    color: var(--primary);
    transform: translateX(8px);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 10px 0;
    font-size: 13px;
    color: var(--text-light);
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.dev-link {
    text-decoration: none;
    color: var(--text-light);
    transition: color 0.3s;
    font-weight: 500;
}

.dev-link:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
    }
}

/* Responsive adjustments */
@media (max-width: 1024px) {

    .header-addresses,
    .working-hours {
        display: none;
    }

    .hero-bg {
        width: 100%;
        opacity: 0.3;
    }

    .hero-section::before {
        width: 100%;
        background: rgba(249, 250, 251, 0.8);
    }

    .features-bar {
        flex-wrap: wrap;
    }

    .product-cards,
    .why-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .p-card-img {
        height: 180px !important;
    }

    .p-card-bottom {
        padding: 30px 15px 15px !important;
    }

    .promo-cards {
        grid-template-columns: 1fr;
    }

    .prod-grid {
        grid-template-columns: 1fr;
    }

    .alum-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-masonry {
        grid-template-columns: 1fr;
        height: auto;
    }

    .g-grid-small {
        display: none;
        /* simplifies mobile view */
    }

    .lead-box {
        flex-direction: column;
        text-align: center;
    }

    .form-inputs {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-window {
    background: white;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-window {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
}

.modal-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.modal-text {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 25px;
}

/* Floating MAX Button */
.floating-max-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(64, 139, 62, 0.4);
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    animation: pulse-green 2s infinite;
}

.floating-max-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 20px rgba(64, 139, 62, 0.6);
    animation: none;
}

.floating-max-btn img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(64, 139, 62, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(64, 139, 62, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(64, 139, 62, 0);
    }
}

/* Features Banner */
.features-bar-sec {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    z-index: 5;
    margin-top: 0;
}

.features-banner {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 25px 35px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.f-banner-item {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.f-banner-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.f-banner-icon svg {
    width: 100%;
    height: 100%;
}

.f-banner-text {
    display: flex;
    flex-direction: column;
}

.f-banner-text strong {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 3px;
    line-height: 1.2;
}

.f-banner-text span {
    font-size: 11px;
    color: #333;
    /* Darker for better contrast on transparent background */
    line-height: 1.3;
}

@media (max-width: 1024px) {
    .features-banner {
        flex-wrap: wrap;
    }

    .f-banner-item {
        width: 45%;
        margin-bottom: 15px;
    }

    .features-bar-sec {
        margin-top: 20px;
    }
}

@media (max-width: 600px) {
    .f-banner-item {
        width: 100%;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -300px;
    /* Hidden initially */
    left: 30px;
    width: 320px;
    background: rgba(255, 255, 255, 0.45);
    /* More transparent */
    backdrop-filter: blur(16px);
    /* More blur */
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: bottom 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-banner.show {
    bottom: 30px;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.cookie-content p {
    font-size: 13px;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.5;
}

.cookie-content a {
    color: var(--primary);
    text-decoration: underline;
}

.btn-cookie {
    padding: 12px;
    font-size: 14px;
    width: 100%;
}

@media (max-width: 600px) {
    .cookie-banner {
        left: 20px;
        right: 20px;
        width: auto;
        bottom: -300px;
    }

    .cookie-banner.show {
        bottom: 20px;
    }
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-slide-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal-slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Marquee Running Line */
.marquee-sec {
    background: #ffffff;
    /* White background */
    padding: 8px 0;
    overflow: hidden;
    position: relative;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.marquee-wrapper {
    display: flex;
    width: 100%;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee-run 60s linear infinite;
    /* Slower speed */
}

.marquee-content span {
    font-size: 14px;
    /* Slightly smaller */
    font-weight: 600;
    color: var(--primary);
    /* Green as accent color */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding-right: 60px;
}

@keyframes marquee-run {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.marquee-sec:hover .marquee-content {
    animation-play-state: paused;
}


/* Specific delays for grid items */
.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* View All Promotions Hover */
.view-all {
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.view-all:hover {
    transform: translateX(10px);
    color: var(--primary);
    text-shadow: 0 0 10px rgba(75, 175, 49, 0.2);
}

/* Unified Arrow Hover Animations */
.arrow,
.g-arrow-prev svg,
.g-arrow-next svg,
.alum-tab-arrow svg {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.g-arrow-prev:hover svg {
    transform: translateX(-8px) scale(1.1);
}

.g-arrow-next:hover svg {
    transform: translateX(8px) scale(1.1);
}

.alum-tab:hover .alum-tab-arrow svg {
    transform: translateX(8px) scale(1.1);
}

.p-card:hover .arrow {
    transform: translateX(10px) scale(1.2);
}


/* Slide Transition Enhancement */
.g-main img,
.alum-main-card,
.g-side-grid {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-out {
    opacity: 0;
    transform: scale(0.97);
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- Mobile Menu Toggle --- */
.mobile-menu-toggle {
    display: none;
    position: relative;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 2000;
}

.mobile-menu-toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Burger lines positions */
.mobile-menu-toggle span:nth-child(1) {
    top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-toggle span:nth-child(3) {
    bottom: 0;
}

/* Perfect Cross active state */
.mobile-menu-toggle.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    background: var(--primary);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translate(-10px, -50%);
}

.mobile-menu-toggle.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
    background: var(--primary);
}

/* Mobile Nav Overlay Premium Styling */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.82);
    /* More transparent */
    backdrop-filter: blur(20px);
    /* Slightly softer blur for better transparency feel */
    z-index: 1600;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 80px 25px 40px;
    overflow-y: auto;
}

.mobile-nav-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/tat-fon.png') repeat;
    background-size: 600px;
    opacity: 0.05;
    z-index: -1;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-ornament {
    position: absolute;
    width: 180px;
    height: 180px;
    background: url('images/adv-uzor.png') no-repeat center;
    background-size: contain;
    opacity: 0.12;
    z-index: -1;
    pointer-events: none;
}

.mobile-nav-ornament.top-right {
    top: -40px;
    right: -40px;
    transform: rotate(180deg);
}

.mobile-nav-ornament.bottom-left {
    bottom: -40px;
    left: -40px;
}

.mobile-nav-content {
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.mobile-nav-header {
    text-align: center;
    padding-bottom: 25px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.mobile-nav-logo {
    height: 55px;
    margin-bottom: 12px;
}

.mobile-nav-desc {
    font-size: 12px;
    color: #777;
    line-height: 1.4;
    max-width: 250px;
    margin: 0 auto;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-nav-links a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.nav-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    font-family: serif;
    font-style: italic;
    opacity: 0.6;
}

.nav-text {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-dark);
}

.mobile-nav-links a:active {
    padding-left: 10px;
    color: var(--primary);
}

.mobile-nav-contact-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 15px;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.mobile-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.m-icon {
    width: 32px;
    height: 32px;
    background: rgba(64, 139, 62, 0.1);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.m-icon svg {
    width: 18px;
    height: 18px;
}

.m-info strong {
    display: block;
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.m-info span {
    font-size: 12px;
    color: #666;
}

.mobile-nav-contact-stack {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Aligned left */
    gap: 20px;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.m-stack-item {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    justify-content: flex-start;
    /* Aligned left */
    text-align: left;
}

.m-stack-item .m-icon {
    width: 36px;
    height: 36px;
    background: rgba(64, 139, 62, 0.08);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.m-stack-item .m-icon svg {
    width: 18px;
    height: 18px;
}

.m-text strong {
    display: block;
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.m-text span,
.m-hours {
    font-size: 12px;
    color: #777;
    display: block;
}

.m-phone {
    font-size: 17px;
    /* Reduced font size */
    font-weight: 800;
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    margin-bottom: 2px;
}

.m-social-row {
    display: flex;
    flex-direction: column;
    /* Stacked social buttons */
    gap: 12px;
    width: 100%;
}

.m-social-row .social-icon {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
}

.m-social-row .social-icon svg {
    width: 36px;
    height: 36px;
    padding: 8px;
    border: 1.5px solid #408b3e;
    /* More visible border */
    border-radius: 50%;
    flex-shrink: 0;
    display: block !important;
    stroke: #408b3e !important;
    /* Force color */
}

/* --- Responsive Media Queries --- */

@media (max-width: 1024px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header {
        padding: 0;
        position: sticky;
        top: 0;
        z-index: 2001;
        /* Must be higher than overlay */
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }

    .top-bar {
        padding-bottom: 0 !important;
    }

    .top-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "region phone"
            "sep sep"
            "logo burger";
        padding: 8px 15px;
        gap: 8px 10px;
        align-items: center;
    }

    .header-addresses {
        display: none !important;
    }

    .mobile-region-badge {
        grid-area: region;
        display: inline-flex !important;
        align-items: center;
        gap: 7px;
        min-width: 0;
    }

    .mobile-region-badge__img {
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
        object-fit: contain;
    }

    .mobile-region-badge__text {
        display: flex;
        flex-direction: column;
        min-width: 0;
        line-height: 1.12;
    }

    .mobile-region-badge__text span {
        font-size: 9px;
        font-weight: 600;
        color: #666;
        white-space: nowrap;
    }

    .mobile-region-badge__text strong {
        font-size: 10px;
        font-weight: 800;
        white-space: nowrap;
        color: var(--text-dark);
    }

    .header-contact {
        grid-area: phone;
        width: auto;
        margin: 0;
        justify-content: flex-end;
        display: flex;
        align-items: center;
    }

    .phone-block {
        text-align: right;
    }

    .phone {
        font-size: 11px !important;
        font-weight: 800;
        white-space: nowrap;
    }

    .working-hours,
    .social-icons,
    .social-icon {
        display: none !important;
    }

    /* Horizontal Separator */
    .top-container::after {
        content: '';
        grid-area: sep;
        height: 1px;
        background: rgba(0, 0, 0, 0.06);
        width: 100%;
    }

    .logo {
        grid-area: logo;
        width: auto;
        justify-self: start;
        padding-top: 4px;
    }

    .logo-img-main {
        height: 54px !important;
    }

    .btn-primary.btn-icon {
        display: none !important;
    }

    .mobile-menu-toggle {
        grid-area: burger;
        justify-self: end;
        margin: 0;
        padding-top: 4px;
    }

    /* Hero Banner Fix for Mobile */
    .hero-section {
        min-height: auto;
        display: flex;
        flex-direction: column;
        background-color: #f4fbf4 !important;
        position: relative;
        padding-top: 0 !important;
        margin-top: -35px !important;
        /* Pull up to cover gap */
    }

    .hero-bg-split {
        position: relative !important;
        height: 45vh !important;
        min-height: 300px;
        width: 100% !important;
        display: block !important;
        order: -1;
    }

    .hero-bg-right {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        display: block !important;
    }

    .hero-bg-right img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }

    .hero-bg-right::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 0;
        width: 100%;
        height: 180px;
        /* Increased height for smoother transition */
        background: linear-gradient(to top, #f4fbf4 30%, transparent 100%);
        z-index: 2;
    }

    .hero-container {
        position: relative;
        height: auto !important;
        padding: 0 !important;
        margin-top: -60px !important;
        /* Adjusted pull-up */
        z-index: 10;
        text-align: center;
    }

    .tatarstan-badge-hero {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        display: inline-flex !important;
        margin: 0 auto 15px !important;
        background: rgba(75, 175, 49, 0.95) !important;
        color: white !important;
        padding: 6px 18px 6px 6px !important;
        border-radius: 40px !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
        animation: badge-float-mobile 3s infinite ease-in-out !important;
    }

    .hero-buttons {
        margin-top: 25px;
        padding: 0 15px;
        margin-bottom: 0 !important;
    }

    .hero-content-left {
        width: 100% !important;
        padding: 0 15px !important;
        background: none !important;
    }

    .hero-buttons .btn {
        width: 100% !important;
        padding: 18px !important;
        font-size: 16px !important;
        border-radius: 12px !important;
    }

    .hero-buttons .btn.mobile-hidden {
        display: none !important;
    }

    .hero-features-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    /* Banner styles inherited from 1024px query, no extra overrides needed for basic layout */

    .hero-container {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    .hero-title {
        font-size: 32px !important;
        line-height: 1.1 !important;
        margin-top: 10px !important;
        text-align: center !important;
    }

    .hero-subtitle {
        font-size: 15px !important;
        margin: 15px auto !important;
        padding: 0 10px !important;
        text-align: center !important;
        display: block !important;
    }

    .hero-divider {
        width: 180px !important;
        margin: 20px auto !important;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-features-grid {
        grid-template-columns: 1fr;
    }

    .p-grid,
    .adv-right-grid,
    .product-cards {
        grid-template-columns: 1fr !important;
    }

    .p-card-img {
        height: 220px !important;
    }

    .section-title {
        font-size: 28px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col {
        align-items: center;
    }
}

/* --- Laptop & Zoomed/Short Viewports Responsive Fix --- */

/* Stage 1: Standard Laptops & 110%-125% Zoom (Height <= 880px or Width <= 1440px) */
@media (min-width: 1025px) and (max-width: 1440px), (min-width: 1025px) and (max-height: 880px) {
    .hero-section {
        min-height: calc(100vh - 145px) !important;
        display: flex !important;
        align-items: center !important;
        padding: var(--section-padding) 0 !important;
    }

    .hero-container {
        margin-top: -70px !important;
    }

    .hero-content-left {
        zoom: 0.88;
    }

    .features-bar-sec {
        position: absolute !important;
        bottom: 25px !important;
        left: 0 !important;
        width: 100% !important;
    }

    .features-banner {
        zoom: 0.88;
        margin: 0 auto !important;
    }

    .tatarstan-badge-hero {
        position: absolute !important;
        left: 52% !important;
        top: 12% !important;
        transform: translate(-50%, -50%) !important;
    }
}

/* Stage 2: Small Laptops, 1366x768 screens, & Zoom (Height <= 780px or Width <= 1366px) */
@media (min-width: 1025px) and (max-width: 1366px), (min-width: 1025px) and (max-height: 780px) {
    .hero-container {
        margin-top: -65px !important;
    }

    .hero-content-left {
        zoom: 0.80;
    }

    .features-bar-sec {
        bottom: 15px !important;
    }

    .features-banner {
        zoom: 0.80;
        margin: 0 auto !important;
    }

    .tatarstan-badge-hero {
        position: absolute !important;
        left: 52% !important;
        top: 11% !important;
        transform: translate(-50%, -50%) !important;
    }
}
