/* Халяль Экспресс - Современный премиум дизайн */

/* ===== FONTS ===== */
@font-face {
    font-family: 'TildaSans';
    src: url('/static/fonts/TildaSans-VF.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}

/* ===== CSS VARIABLES ===== */
:root {
    /* Цвета флага Татарстана */
    --color-primary: rgb(40, 147, 28);        /* Зеленый - символ весны */
    --color-primary-light: rgb(56, 180, 42);
    --color-primary-dark: rgb(28, 105, 20);
    --color-primary-darker: rgb(20, 75, 14);

    /* Красный Татарстана - символ силы и энергии */
    --color-red: rgb(193, 39, 45);
    --color-red-light: rgb(220, 60, 66);
    --color-red-dark: rgb(150, 30, 35);

    /* Белый - символ чистоты */
    --color-white: #FFFFFF;
    --color-cream: #F8FAF5;
    --color-cream-dark: #E8F0E3;

    /* Золотой - символ халяль */
    --color-gold: rgb(212, 175, 55);
    --color-gold-light: rgb(255, 215, 100);
    --color-gold-dark: rgb(184, 134, 11);

    /* Дополнительные цвета */
    --color-accent: rgb(193, 39, 45);        /* Используем красный как акцент */
    --color-accent-light: rgb(220, 60, 66);
    --color-accent-dark: rgb(150, 30, 35);

    --color-black: #000000;
    --color-gray-dark: #2C2C2C;
    --color-gray: #5A5A5A;
    --color-gray-light: #B8B8B8;

    /* Текст */
    --color-text: #1A1A1A;
    --color-text-secondary: #4A4A4A;
    --color-text-muted: #7A7A7A;

    /* Тени */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
    --shadow-green: 0 8px 24px rgba(40, 147, 28, 0.2);

    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    --gradient-primary-light: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
    --gradient-dark: linear-gradient(135deg, var(--color-gray-dark) 0%, var(--color-black) 100%);
    /* Флаг Татарстана: горизонтальные полосы зеленый-белый-красный */
    --gradient-tatarstan: linear-gradient(to bottom,
        var(--color-primary) 0%,
        var(--color-primary) 47%,
        var(--color-white) 47%,
        var(--color-white) 53%,
        var(--color-red) 53%,
        var(--color-red) 100%
    );

    /* Размеры */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Анимации */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'TildaSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-cream);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 {
    font-family: 'TildaSans', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-gray-dark);
}

h1 {
    -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.3);
    text-stroke: 1.5px rgba(0, 0, 0, 0.3);
    paint-order: stroke fill;
}

h2 {
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.25);
    text-stroke: 1px rgba(0, 0, 0, 0.25);
    paint-order: stroke fill;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    overflow-x: hidden;
}

/* ===== SVG ICONS ===== */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon svg {
    width: 100%;
    height: 100%;
}

/* ===== HEADER ===== */
header {
    background: var(--color-white);
    padding: 16px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

/* Простая граница вместо флага */
header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-primary);
    box-shadow: 0 2px 6px rgba(40, 147, 28, 0.3);
    z-index: 1;
}

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

.logo {
    color: var(--color-primary);
    font-family: 'TildaSans', serif;
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.logo:hover {
    color: var(--color-primary-dark);
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--color-primary);
}

.logo-icon img {
    width: 26px;
    height: 26px;
    filter: none !important;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
}

nav a {
    color: var(--color-gray-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.85rem;
}

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

.mobile-menu {
    display: none;
    background: var(--color-cream);
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

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

.mobile-menu .icon {
    width: 24px;
    height: 24px;
}

/* ===== HERO SECTION ===== */
.hero {
    background: var(--gradient-primary);
    padding: 180px 0 120px;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}


.hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
}


.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-accent);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    margin-bottom: 28px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    box-shadow: 0 4px 16px rgba(193, 39, 45, 0.3);
}

.hero-badge .icon {
    width: 22px;
    height: 22px;
    color: var(--color-white);
}

.hero-text h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    margin-bottom: 28px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 800;
}

.hero-text h1 .highlight {
    color: var(--color-gold);
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 650px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 36px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.btn .icon {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--color-white);
    border-color: var(--color-red);
    box-shadow: 0 4px 20px rgba(193, 39, 45, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(193, 39, 45, 0.5);
    background: var(--color-red-dark);
}

.btn-primary:hover .icon {
    transform: translateX(4px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-3px);
}

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

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

/* ===== SECTION STYLES ===== */
.section {
    padding: 100px 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 64px;
}

.section-title .label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    margin-bottom: 16px;
    padding: 8px 20px 8px 24px;
    background: var(--color-cream);
    border-radius: var(--radius-full);
    border: 2px solid var(--color-primary);
    position: relative;
}

/* Декоративный акцент в label */
.section-title .label::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--color-primary);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(40, 147, 28, 0.3);
}

.section-title .label .icon {
    width: 18px;
    height: 18px;
}

.section-title h2 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    color: var(--color-gray-dark);
    margin-bottom: 20px;
    font-weight: 800;
}

.section-title p {
    color: var(--color-text-muted);
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== ABOUT SECTION ===== */
.about {
    background: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.about-card {
    background: var(--color-cream);
    padding: 48px 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 3px solid transparent;
}

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

.about-icon {
    width: 96px;
    height: 96px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    color: var(--color-white);
    box-shadow: var(--shadow-green);
    transition: var(--transition);
}

.about-icon .icon {
    width: 48px;
    height: 48px;
}

.about-card:hover .about-icon {
    transform: scale(1.1) rotate(5deg);
}

.about-card h3 {
    color: var(--color-gray-dark);
    margin-bottom: 16px;
    font-size: 1.5rem;
    font-weight: 700;
}

.about-card p {
    color: var(--color-text-muted);
    line-height: 1.7;
    font-size: 1rem;
}

/* ===== PRODUCTS SECTION ===== */
.products {
    background: var(--color-cream);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.product-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 3px solid transparent;
}

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

.product-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: var(--color-cream-dark);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid var(--color-white);
}

.product-badge .icon {
    width: 16px;
    height: 16px;
}

.product-info {
    padding: 32px 28px;
}

.product-info h3 {
    color: var(--color-gray-dark);
    margin-bottom: 12px;
    font-size: 1.5rem;
    font-weight: 700;
}

.product-info p {
    color: var(--color-text-muted);
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
}

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

.product-price {
    font-family: 'TildaSans', serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-red);
}

.product-link {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: var(--transition);
    border: 3px solid var(--color-primary);
}

.product-link:hover {
    background: var(--color-white);
    color: var(--color-primary);
    transform: rotate(45deg);
}

.product-link .icon {
    width: 22px;
    height: 22px;
}

.product-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
}

.product-placeholder .icon {
    width: 100px;
    height: 100px;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 32px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 3px dashed var(--color-primary);
}

.no-products .icon {
    width: 100px;
    height: 100px;
    color: var(--color-primary);
    margin-bottom: 28px;
    opacity: 0.5;
}

.no-products p {
    color: var(--color-text-muted);
    font-size: 1.2rem;
}

/* ===== DELIVERY SECTION ===== */
.delivery {
    background: var(--color-white);
}

.delivery-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.delivery-image {
    position: relative;
}

.delivery-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.delivery-image:hover img {
    transform: translateY(-10px) rotate(-2deg);
}

.delivery-image-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--color-white);
}

.delivery-image-badge .icon {
    width: 22px;
    height: 22px;
}

.delivery-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 28px;
    background: var(--color-cream);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 3px solid transparent;
}

.feature-item:hover {
    background: var(--color-white);
    box-shadow: var(--shadow-lg);
    transform: translateX(10px);
    border-color: var(--color-primary);
}

.feature-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    box-shadow: var(--shadow-green);
}

.feature-icon .icon {
    width: 32px;
    height: 32px;
}

.feature-text h4 {
    color: var(--color-gray-dark);
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-weight: 700;
}

.feature-text p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* ===== CERTIFICATES SECTION ===== */
.certificates {
    background: var(--color-white);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.certificate-card {
    background: var(--color-cream);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 3px solid transparent;
    cursor: pointer;
}

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

.certificate-image {
    position: relative;
    height: 360px;
    overflow: hidden;
    background: var(--color-white);
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: var(--transition-slow);
}

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

.certificate-info {
    padding: 24px;
    background: var(--color-white);
}

.certificate-info h3 {
    color: var(--color-gray-dark);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.certificate-info p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ===== TATARSTAN PRIDE DIVIDER ===== */
.tatarstan-divider {
    height: 16px;
    background: linear-gradient(to bottom,
        var(--color-primary) 0%,
        var(--color-primary) 47%,
        var(--color-white) 47%,
        var(--color-white) 53%,
        var(--color-red) 53%,
        var(--color-red) 100%
    );
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    position: relative;
}

/* Татарский орнамент pattern */
.tatarstan-pattern {
    position: relative;
    padding: 40px 0;
    background: var(--color-cream);
}

.tatarstan-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(40, 147, 28, 0.03) 35px, rgba(40, 147, 28, 0.03) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(193, 39, 45, 0.03) 35px, rgba(193, 39, 45, 0.03) 70px);
    pointer-events: none;
}

/* ===== MERCURY SECTION ===== */
.mercury {
    padding: 100px 0;
    background: var(--gradient-dark);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.mercury::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, rgba(40, 147, 28, 0.15) 0%, transparent 70%);
}

.mercury-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
    position: relative;
    z-index: 1;
}

.mercury-text {
    flex: 1;
    max-width: 750px;
}

.mercury-text h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 24px;
    color: var(--color-white);
    font-weight: 800;
}

.mercury-text p {
    opacity: 0.9;
    font-size: 1.2rem;
    line-height: 1.8;
}

.mercury-icon {
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.mercury-icon .icon {
    width: 70px;
    height: 70px;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 100px 0;
    background: var(--gradient-primary);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -10%;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.2) 0%, transparent 70%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    position: relative;
    z-index: 1;
}

.contact-info h2 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    margin-bottom: 24px;
    color: var(--color-white);
    font-weight: 800;
}

.contact-info > p {
    opacity: 0.95;
    margin-bottom: 44px;
    font-size: 1.2rem;
    line-height: 1.8;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
    border-color: var(--color-white);
}

.contact-item-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item-icon .icon {
    width: 26px;
    height: 26px;
}

.contact-item span {
    font-size: 1.05rem;
    font-weight: 500;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 48px;
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    border: 3px solid rgba(255, 255, 255, 0.15);
}

.contact-form h3 {
    font-family: 'TildaSans', serif;
    margin-bottom: 36px;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-white);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 18px 24px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font-size: 1.05rem;
    font-family: inherit;
    transition: var(--transition);
    font-weight: 500;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.15);
}

.btn-submit {
    width: 100%;
    padding: 20px;
    font-size: 1.1rem;
    background: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

.btn-submit:hover {
    background: var(--color-gray-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.form-message {
    margin-top: 20px;
    padding: 18px;
    border-radius: var(--radius-md);
    text-align: center;
    display: none;
    font-weight: 600;
}

.form-message.success {
    display: block;
    background: rgba(76, 175, 80, 0.2);
    color: #a5d6a7;
    border: 2px solid rgba(76, 175, 80, 0.4);
}

.form-message.error {
    display: block;
    background: rgba(244, 67, 54, 0.2);
    color: #ef9a9a;
    border: 2px solid rgba(244, 67, 54, 0.4);
}

/* ===== FOOTER ===== */
footer {
    background: var(--color-gray-dark);
    color: var(--color-white);
    padding: 64px 0 32px;
    position: relative;
}


.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
    margin-bottom: 40px;
}

.footer-logo {
    color: var(--color-white);
    font-family: 'TildaSans', serif;
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
}

.footer-logo .icon {
    width: 36px;
    height: 36px;
    color: var(--color-primary);
}

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.85rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 28px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.95rem;
}

/* Флаг Татарстана в футере */
.tatarstan-flag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.flag-icon {
    width: 40px;
    height: 26px;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(to bottom,
        var(--color-primary) 0%,
        var(--color-primary) 47%,
        var(--color-white) 47%,
        var(--color-white) 53%,
        var(--color-red) 53%,
        var(--color-red) 100%
    );
    border: 1px solid rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

/* Блеск на флаге */
.flag-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: flag-shine 3s infinite;
}

@keyframes flag-shine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    /* Однотонные фоны для планшетов - убираем градиенты */
    .hero {
        background: var(--color-primary) !important;
    }

    .hero::before {
        display: none;
    }

    .hero-badge {
        background: var(--color-red) !important;
    }

    .btn-primary {
        background: var(--color-primary) !important;
    }

    .mercury {
        background: var(--color-gray-dark) !important;
    }

    .mercury::before {
        display: none;
    }

    .contact {
        background: var(--color-primary) !important;
    }

    .contact::before {
        display: none;
    }

    .about-icon,
    .product-badge,
    .product-placeholder,
    .delivery-image-badge,
    .feature-icon {
        background: var(--color-primary) !important;
    }

    .section {
        padding: 80px 0;
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .delivery-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .delivery-image {
        order: -1;
        text-align: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 64px 0;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        border-top: 2px solid var(--color-primary);
        box-shadow: var(--shadow-lg);
    }

    nav ul.active {
        display: flex;
    }

    nav a {
        padding: 14px 20px;
        width: 100%;
        border-radius: var(--radius-md);
    }

    .mobile-menu {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero {
        padding: 150px 0 80px;
        background: var(--color-primary) !important;
    }

    .hero::before {
        display: none;
    }

    .hero-badge {
        background: var(--color-red) !important;
    }

    .btn-primary {
        background: var(--color-primary) !important;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .about-icon,
    .product-badge,
    .product-placeholder,
    .delivery-image-badge,
    .feature-icon {
        background: var(--color-primary) !important;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

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

    .mercury {
        background: var(--color-gray-dark) !important;
    }

    .mercury::before {
        display: none;
    }

    .mercury-content {
        flex-direction: column;
        text-align: center;
    }

    .mercury-icon {
        order: -1;
    }

    .contact {
        background: var(--color-primary) !important;
    }

    .contact::before {
        display: none;
    }

    .contact-form {
        padding: 36px 28px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

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

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

    .btn {
        padding: 16px 28px;
        font-size: 0.95rem;
    }

    .product-image,
    .certificate-image {
        height: 240px;
    }

    .feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 20px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }
}
