/* ========== ИМПОРТ ШРИФТОВ ========== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Open+Sans:wght@300;400;600;700&display=swap');

/* ========== CSS ПЕРЕМЕННЫЕ ========== */
:root {
    --primary: #0a4d8c;
    --primary-light: #2a6eb0;
    --primary-dark: #06345c;
    --secondary: #ffaa00;
    --secondary-light: #ffc44d;
    --secondary-dark: #cc8800;
    --accent: #00a896;
    --accent-light: #02c3a8;
    --dark: #1e2b3a;
    --gray-800: #2d3a4a;
    --gray-600: #4a5a6e;
    --gray-400: #8a9bb0;
    --gray-200: #d0d9e6;
    --gray-100: #edf2f7;
    --light: #f8fafd;
    --white: #ffffff;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 20px 40px rgba(0, 75, 141, 0.2);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ========== ОБНУЛЕНИЕ И БАЗОВЫЕ СТИЛИ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* ========== ШАПКА ========== */
header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
    color: var(--white);
    padding: 1.2rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

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

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--white), var(--secondary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.logo span {
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
}

.contact-info {
    text-align: right;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 25px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info .phone {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.contact-info .phone i {
    color: var(--secondary);
    font-size: 1.4rem;
}

.contact-info .phone:hover {
    color: var(--secondary);
    transform: translateX(-5px);
}

.contact-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
}

.contact-info p i {
    color: var(--secondary);
    margin-right: 5px;
}

/* ========== НАВИГАЦИЯ ========== */
nav {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 5px;
    flex-wrap: wrap;
}

.nav-links li {
    flex: 0 1 auto;
}

.nav-links a {
    display: block;
    padding: 1.2rem 2rem;
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 80%;
}

.nav-links a:hover {
    color: var(--primary);
    background: linear-gradient(180deg, transparent, rgba(10, 77, 140, 0.05));
}

.nav-links a.active {
    color: var(--primary);
    font-weight: 700;
    background: linear-gradient(180deg, transparent, rgba(10, 77, 140, 0.08));
}

/* Бейдж непрочитанных у «Чат с поддержкой» */
.nav-chat-link .nav-chat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.15rem;
    height: 1.15rem;
    margin-left: 0.35rem;
    padding: 0 0.3rem;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    background: linear-gradient(135deg, #e11d48, #ea580c);
    border-radius: 999px;
    vertical-align: middle;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.nav-chat-badge[hidden] {
    display: none !important;
}

/* ========== ОСНОВНОЙ КОНТЕЙНЕР ========== */
main {
    max-width: 1400px;
    margin: 3rem auto;
    padding: 0 30px;
    min-height: 60vh;
}

/* ========== ЗАГОЛОВКИ ========== */
.page-header {
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--gray-200);
    position: relative;
    animation: fadeInUp 0.65s ease backwards;
}

.page-header::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.page-header h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.page-header p {
    color: var(--gray-600);
    font-size: 1.1rem;
    max-width: 700px;
}

.section-title {
    font-size: 2rem;
    color: var(--primary-dark);
    margin: 3rem 0 2rem;
    position: relative;
    display: inline-block;
    animation: fadeInUp 0.55s ease backwards;
    animation-delay: 0.08s;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* ========== СЕТКА ТОВАРОВ ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* ========== КАРТОЧКА ТОВАРА ========== */
.product-card {
    --stagger: 0;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
    animation: cardEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: calc(var(--stagger) * 70ms);
}

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

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
}

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

.product-image {
    height: 220px;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.1));
    pointer-events: none;
}

.product-image i {
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
    transform: scale(1);
    transition: var(--transition);
}

.product-card:hover .product-image i {
    transform: scale(1.1) rotate(5deg);
    color: var(--secondary);
}

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

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

.product-info {
    padding: 25px 20px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-brand {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    align-self: flex-start;
    box-shadow: 0 4px 8px rgba(10, 77, 140, 0.3);
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--dark);
    font-weight: 700;
    line-height: 1.4;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin: 15px 0 10px;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.product-price::before {
    content: 'от';
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--gray-400);
}

.product-offer-note {
    font-size: 0.72rem;
    color: var(--gray-500);
    margin: -0.2rem 0 0.8rem;
    line-height: 1.4;
}

.product-description {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.product-description strong {
    color: var(--primary);
}

.product-description p {
    margin: 0 0 0.5rem;
}

.product-description p:last-child {
    margin-bottom: 0;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 1rem;
    align-items: stretch;
}

.product-actions .btn,
.product-actions a.btn {
    flex: 1 1 calc(50% - 0.35rem);
    min-width: 8.5rem;
    text-align: center;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    gap: 0.35rem;
}

@media (max-width: 380px) {
    .product-actions .btn,
    .product-actions a.btn {
        flex: 1 1 100%;
        min-width: 0;
    }
}

/* ========== КНОПКИ ========== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 16px rgba(10, 77, 140, 0.3);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(10, 77, 140, 0.4);
}

.legal-links {
    margin-top: 0.65rem;
    font-size: 0.75rem;
    opacity: 0.84;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.legal-links a:hover {
    text-decoration: underline;
}

.legal-owner {
    margin-top: 0.35rem;
    font-size: 0.72rem;
    opacity: 0.72;
}

.consent-inline {
    margin-top: 0.85rem;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--gray-700);
}

.consent-inline input {
    margin-right: 0.45rem;
}

.consent-inline a {
    color: var(--primary);
}

.order-offer-note {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: var(--gray-500);
    line-height: 1.4;
}

.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 9999;
    background: rgba(18, 27, 38, 0.96);
    color: #fff;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.cookie-banner__text {
    font-size: 0.82rem;
    line-height: 1.45;
    margin: 0;
    max-width: 760px;
}

.cookie-banner__text a {
    color: #9fd3ff;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.55rem;
}

.cookie-banner__btn {
    border: 0;
    border-radius: 999px;
    padding: 0.5rem 0.9rem;
    font-size: 0.82rem;
    cursor: pointer;
}

.cookie-banner__btn--accept {
    background: #2f8bfd;
    color: #fff;
}

.cookie-banner__btn--close {
    background: #29384a;
    color: #d8e5f3;
}

.legal-main {
    max-width: 1050px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.legal-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(15, 32, 55, 0.08);
    padding: 1.4rem 1.4rem 1.2rem;
    border: 1px solid rgba(10, 77, 140, 0.08);
}

.legal-card h1 {
    margin-bottom: 0.9rem;
    color: var(--dark);
}

.legal-card h2 {
    margin-top: 1.25rem;
    margin-bottom: 0.45rem;
    color: var(--primary-dark);
    font-size: 1.15rem;
}

.legal-card p,
.legal-card li {
    color: var(--gray-700);
    line-height: 1.65;
}

.legal-card ul {
    margin: 0.35rem 0 0.4rem 1.2rem;
}

.about-hero {
    background: linear-gradient(135deg, rgba(10, 77, 140, 0.1), rgba(79, 172, 254, 0.1));
    border: 1px solid rgba(10, 77, 140, 0.15);
    border-radius: 18px;
    padding: 1.2rem 1.2rem 1rem;
    margin-bottom: 1rem;
}

.about-hero h2 {
    margin-bottom: 0.55rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.about-card {
    background: #fff;
    border: 1px solid rgba(15, 32, 55, 0.08);
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 8px 20px rgba(15, 32, 55, 0.05);
}

.about-card h3 {
    margin-bottom: 0.45rem;
    color: var(--primary-dark);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 1rem 0;
}

.about-stat {
    border-radius: 12px;
    border: 1px solid rgba(10, 77, 140, 0.14);
    background: #f6faff;
    text-align: center;
    padding: 0.85rem 0.55rem;
}

.about-stat strong {
    display: block;
    font-size: 1.25rem;
    color: var(--primary-dark);
}

.about-steps {
    margin: 1rem 0;
    padding-left: 1.1rem;
}

.about-steps li {
    margin-bottom: 0.45rem;
    color: var(--gray-700);
}

.about-cta {
    margin-top: 1rem;
    border-radius: 14px;
    border: 1px solid rgba(15, 32, 55, 0.08);
    background: #fff;
    padding: 1rem;
}

.about-page .about-hero,
.about-page .about-card,
.about-page .about-stat,
.about-page .about-cta {
    opacity: 0;
    transform: translateY(18px);
    animation: aboutFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.about-page .about-hero {
    animation-delay: 0.06s;
}

.about-page .about-grid .about-card:nth-child(1) {
    animation-delay: 0.16s;
}

.about-page .about-grid .about-card:nth-child(2) {
    animation-delay: 0.24s;
}

.about-page .about-stats .about-stat:nth-child(1) {
    animation-delay: 0.32s;
}

.about-page .about-stats .about-stat:nth-child(2) {
    animation-delay: 0.39s;
}

.about-page .about-stats .about-stat:nth-child(3) {
    animation-delay: 0.46s;
}

.about-page > .about-card {
    animation-delay: 0.54s;
}

.about-page .about-cta {
    animation-delay: 0.62s;
}

.about-page .about-card,
.about-page .about-stat,
.about-page .about-cta {
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.about-page .about-card:hover,
.about-page .about-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(15, 32, 55, 0.12);
    border-color: rgba(10, 77, 140, 0.2);
}

.about-page .about-stat:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 10px 20px rgba(15, 32, 55, 0.1);
    border-color: rgba(10, 77, 140, 0.24);
}

@keyframes aboutFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-page .about-hero,
    .about-page .about-card,
    .about-page .about-stat,
    .about-page .about-cta {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

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

    .about-stats {
        grid-template-columns: 1fr;
    }
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(10, 77, 140, 0.3);
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

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

.btn-outline::before {
    background: rgba(10, 77, 140, 0.1);
}

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

/* ========== ОСОБЕННОСТИ (ГЛАВНАЯ) ========== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.feature-item {
    text-align: center;
    padding: 40px 30px;
    background: var(--white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: translateY(-100%);
    transition: var(--transition);
}

.feature-item:hover::before {
    transform: translateY(0);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/* Не использовать background-clip:text на Font Awesome — глифы ломаются (видно «owflake» и т.п.) */
.feature-item i {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: var(--transition);
    filter: drop-shadow(0 2px 6px rgba(10, 77, 140, 0.2));
}

.feature-item:hover i {
    transform: scale(1.1) rotate(360deg);
    color: var(--secondary);
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.feature-item p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========== КАТЕГОРИИ НА ГЛАВНОЙ ========== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.category-card {
    background: var(--white);
    padding: 40px 25px;
    text-align: center;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    color: var(--dark);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.category-card:hover::before {
    opacity: 0.05;
}

.category-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.category-card:hover::after {
    width: 100%;
}

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

.category-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.category-card:hover i {
    transform: scale(1.1);
    color: var(--secondary);
}

.category-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.category-card p {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

/* ========== О КОМПАНИИ ========== */
.about-section {
    background: linear-gradient(135deg, var(--white), var(--gray-100));
    padding: 50px 40px;
    border-radius: var(--border-radius-xl);
    margin: 50px 0;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.5);
}

.about-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    opacity: 0.1;
    animation: rotate 40s linear infinite;
}

.about-section h2 {
    color: var(--primary-dark);
    font-size: 2rem;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.about-section p {
    color: var(--gray-600);
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.about-section a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.about-section a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--secondary);
}

/* ========== Страница «О нас» — появление текста ========== */
.about-page .page-header {
    animation: fadeInUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 0.06s;
}

.about-page .page-header h2 {
    animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 0.1s;
}

.about-page .page-header p {
    animation: fadeInUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 0.2s;
}

.about-page > .about-section h2 {
    animation: fadeInUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.about-page > .about-section:nth-child(2) h2 {
    animation-delay: 0.26s;
}

.about-page > .about-section:nth-child(3) h2 {
    animation-delay: 0.4s;
}

.about-page > .about-section:nth-child(5) h2 {
    animation-delay: 0.72s;
}

.about-page > .about-section p {
    animation: fadeInUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.about-page > .about-section:nth-child(2) p:nth-of-type(1) {
    animation-delay: 0.32s;
}

.about-page > .about-section:nth-child(2) p:nth-of-type(2) {
    animation-delay: 0.4s;
}

.about-page > .about-section:nth-child(3) p:nth-of-type(1) {
    animation-delay: 0.46s;
}

.about-page > .about-section:nth-child(3) p:nth-of-type(2) {
    animation-delay: 0.54s;
}

.about-page > .about-section:nth-child(5) p {
    animation-delay: 0.78s;
}

.about-page .features {
    animation: fadeInUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 0.48s;
}

.about-page .features .feature-item {
    animation: fadeInUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.about-page .features .feature-item:nth-child(1) {
    animation-delay: 0.52s;
}

.about-page .features .feature-item:nth-child(2) {
    animation-delay: 0.58s;
}

.about-page .features .feature-item:nth-child(3) {
    animation-delay: 0.64s;
}

.about-page .features .feature-item:nth-child(4) {
    animation-delay: 0.7s;
}

@media (prefers-reduced-motion: reduce) {
    .about-page .page-header,
    .about-page .page-header h2,
    .about-page .page-header p,
    .about-page > .about-section h2,
    .about-page > .about-section p,
    .about-page .features,
    .about-page .features .feature-item,
    .support-chat-page .page-header,
    .support-chat-page .page-header h2,
    .support-chat-page .page-header p,
    .support-chat-page .chat-layout.form-card,
    .support-chat-page #thread-setup > .form-hint,
    .support-chat-page #thread-setup > .form-field,
    .support-chat-page #thread-setup > p:not(.form-hint),
    .support-chat-page #thread-setup > .chat-contact-row,
    .support-chat-page #thread-active.chat-panel-enter .chat-messages,
    .support-chat-page #thread-active.chat-panel-enter .chat-inpanel,
    .support-chat-page #thread-active.chat-panel-enter .chat-inpanel-label,
    .support-chat-page #thread-active.chat-panel-enter .chat-quick-actions .chat-quick-send,
    .support-chat-page #thread-active.chat-panel-enter .chat-input-row,
    .support-chat-page #thread-active.chat-panel-enter > p.form-hint,
    .order-page .page-header,
    .order-page .page-header h2,
    .order-page .page-header p,
    .order-page .form-card,
    .order-page #order-summary.order-summary,
    .order-page .form-grid > .form-field,
    .order-page #application-form > p:has(button[type="submit"]),
    .order-page #form-status.form-status,
    .contacts-page .page-header,
    .contacts-page .page-header h2,
    .contacts-page .page-header p,
    .contacts-page .contact-card,
    .contacts-page .contacts-actions,
    .contacts-page > .about-section {
        animation: none;
    }
}

/* ========== Чат с поддержкой — появление блоков ========== */
.support-chat-page .page-header {
    animation: fadeInUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 0.06s;
}

.support-chat-page .page-header h2 {
    animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 0.1s;
}

.support-chat-page .page-header p {
    animation: fadeInUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 0.2s;
}

.support-chat-page .chat-layout.form-card {
    animation: cardEnter 0.62s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 0.12s;
}

.support-chat-page #thread-setup > .form-hint {
    animation: fadeInUp 0.52s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 0.22s;
}

.support-chat-page #thread-setup > .form-field:nth-child(2) {
    animation: fadeInUp 0.52s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 0.3s;
}

.support-chat-page #thread-setup > .form-field:nth-child(3) {
    animation: fadeInUp 0.52s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 0.38s;
}

.support-chat-page #thread-setup > p:not(.form-hint) {
    animation: fadeInUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 0.46s;
}

.support-chat-page #thread-setup > .chat-contact-row {
    animation: fadeInUp 0.52s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 0.54s;
}

.support-chat-page .chat-thread-active {
    animation: none;
}

.support-chat-page #thread-active.chat-panel-enter .chat-messages {
    animation: fadeInUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.04s;
}

.support-chat-page #thread-active.chat-panel-enter .chat-inpanel {
    animation: fadeInUp 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.12s;
}

.support-chat-page #thread-active.chat-panel-enter .chat-inpanel-label {
    animation: fadeInUp 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.08s;
}

.support-chat-page #thread-active.chat-panel-enter .chat-quick-actions .chat-quick-send {
    animation: fadeInUp 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.support-chat-page #thread-active.chat-panel-enter .chat-quick-actions .chat-quick-send:nth-child(1) {
    animation-delay: 0.14s;
}

.support-chat-page #thread-active.chat-panel-enter .chat-quick-actions .chat-quick-send:nth-child(2) {
    animation-delay: 0.18s;
}

.support-chat-page #thread-active.chat-panel-enter .chat-quick-actions .chat-quick-send:nth-child(3) {
    animation-delay: 0.22s;
}

.support-chat-page #thread-active.chat-panel-enter .chat-quick-actions .chat-quick-send:nth-child(4) {
    animation-delay: 0.26s;
}

.support-chat-page #thread-active.chat-panel-enter .chat-quick-actions .chat-quick-send:nth-child(5) {
    animation-delay: 0.3s;
}

.support-chat-page #thread-active.chat-panel-enter .chat-quick-actions .chat-quick-send:nth-child(6) {
    animation-delay: 0.34s;
}

.support-chat-page #thread-active.chat-panel-enter .chat-quick-actions .chat-quick-send:nth-child(7) {
    animation-delay: 0.38s;
}

.support-chat-page #thread-active.chat-panel-enter .chat-input-row {
    animation: fadeInUp 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.18s;
}

.support-chat-page #thread-active.chat-panel-enter > p.form-hint {
    animation: fadeInUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.26s;
}

/* ========== Заявка на покупку — появление блоков ========== */
.order-page .page-header {
    animation: fadeInUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 0.06s;
}

.order-page .page-header h2 {
    animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 0.1s;
}

.order-page .page-header p {
    animation: fadeInUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 0.2s;
}

.order-page .form-card {
    animation: cardEnter 0.62s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 0.12s;
}

.order-page #order-summary.order-summary {
    animation: fadeInUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 0.18s;
}

.order-page .form-grid > .form-field {
    animation: fadeInUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.order-page .form-grid > .form-field:nth-child(1) {
    animation-delay: 0.26s;
}

.order-page .form-grid > .form-field:nth-child(2) {
    animation-delay: 0.33s;
}

.order-page .form-grid > .form-field:nth-child(3) {
    animation-delay: 0.4s;
}

.order-page .form-grid > .form-field:nth-child(4) {
    animation-delay: 0.47s;
}

.order-page .form-grid > .form-field:nth-child(5) {
    animation-delay: 0.54s;
}

.order-page .form-grid > .form-field:nth-child(6) {
    animation-delay: 0.61s;
}

.order-page .form-grid > .form-field:nth-child(7) {
    animation-delay: 0.68s;
}

.order-page .form-grid > .form-field:nth-child(8) {
    animation-delay: 0.75s;
}

.order-page #application-form > p:has(button[type="submit"]) {
    animation: fadeInUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 0.82s;
}

.order-page #form-status.form-status {
    animation: fadeInUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 0.88s;
}

/* ========== Контакты — стили и анимации ========== */
.contacts-page .page-header {
    animation: fadeInUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 0.06s;
}

.contacts-page .page-header h2 {
    animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 0.1s;
}

.contacts-page .page-header p {
    animation: fadeInUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 0.2s;
}

.contacts-page {
    position: relative;
}

.contacts-page::before {
    content: none;
}

.contacts-hero {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.95rem;
    margin: 0 0 1.5rem;
}

.contacts-hero-item {
    background: #fff;
    border: 1px solid rgba(10, 77, 140, 0.1);
    border-radius: var(--border-radius-md);
    padding: 1.05rem 1.1rem;
    box-shadow: 0 6px 18px rgba(15, 32, 55, 0.06);
    position: relative;
    overflow: hidden;
    animation: cardEnter 0.58s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contacts-hero-item:nth-child(1) { animation-delay: 0.22s; }
.contacts-hero-item:nth-child(2) { animation-delay: 0.3s; }
.contacts-hero-item:nth-child(3) { animation-delay: 0.38s; }

.contacts-hero-item::after {
    content: "";
    position: absolute;
    top: -120%;
    left: -25%;
    width: 36%;
    height: 240%;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(20deg);
    transition: transform 0.65s ease;
}

.contacts-hero-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(15, 32, 55, 0.1);
    border-color: rgba(10, 77, 140, 0.18);
}

.contacts-hero-item:hover::after {
    transform: translateX(360%) rotate(20deg);
}

.contacts-hero-label {
    display: inline-flex;
    align-items: center;
    font-size: 0.73rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.46rem;
}

.contacts-hero-item a {
    display: block;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--primary-dark);
    text-decoration: none;
    margin-bottom: 0.35rem;
    line-height: 1.35;
}

.contacts-hero-item:nth-child(1) a,
.contacts-hero-item:nth-child(2) a {
    font-size: 1.34rem;
    line-height: 1.25;
    letter-spacing: 0.01em;
}

.contacts-hero-item small {
    color: var(--gray-600);
    font-size: 0.84rem;
    line-height: 1.45;
}

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

.contact-card {
    --stagger: 0;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem 1.35rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: cardEnter 0.58s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: calc(var(--stagger) * 85ms + 0.26s);
    min-height: 208px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.contact-card:nth-child(1) { --stagger: 0; }
.contact-card:nth-child(2) { --stagger: 1; }
.contact-card:nth-child(3) { --stagger: 2; }
.contact-card:nth-child(4) { --stagger: 3; }

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: translateY(-100%);
    transition: var(--transition);
}

.contact-card:hover::before {
    transform: translateY(0);
}

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

.contact-card::after {
    content: "";
    position: absolute;
    inset: auto -45% -48% auto;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(10, 77, 140, 0.12) 0%, rgba(10, 77, 140, 0) 72%);
    transition: transform 0.35s ease;
}

.contact-card:hover::after {
    transform: translate(-6px, -6px);
}

.contact-card-icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(10, 77, 140, 0.12), rgba(255, 170, 0, 0.18));
    color: var(--primary);
    margin-bottom: 0.9rem;
    transition: var(--transition);
}

.contact-card:hover .contact-card-icon {
    color: var(--secondary-dark);
    transform: rotate(8deg) scale(1.08);
}

.contact-card h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 0.45rem;
}

.contact-card p {
    margin-bottom: 0.36rem;
    color: var(--gray-600);
    line-height: 1.45;
}

.contact-card a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--secondary);
}

.contact-card-note {
    margin-top: auto;
    padding-top: 0.45rem;
    font-size: 0.86rem;
    color: var(--gray-600);
}

.contacts-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 0 2rem;
    animation: fadeInUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 0.66s;
}

.contacts-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contacts-page > .about-section {
    animation: cardEnter 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 0.78s;
}

.contacts-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.95rem;
    margin: 0.5rem 0 2rem;
}

.contacts-highlight-card {
    background: #fff;
    border: 1px solid rgba(15, 32, 55, 0.09);
    border-radius: 14px;
    padding: 1rem 1rem 0.95rem;
    box-shadow: 0 8px 20px rgba(15, 32, 55, 0.05);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    animation: cardEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    min-height: 150px;
}

.contacts-highlight-card:nth-child(1) { animation-delay: 0.72s; }
.contacts-highlight-card:nth-child(2) { animation-delay: 0.8s; }
.contacts-highlight-card:nth-child(3) { animation-delay: 0.88s; }

.contacts-highlight-card i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 0.55rem;
}

.contacts-highlight-card h3 {
    color: var(--primary-dark);
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.contacts-highlight-card p {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.55;
}

.contacts-highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(15, 32, 55, 0.12);
    border-color: rgba(10, 77, 140, 0.2);
}

@media (max-width: 600px) {
    .contacts-actions .btn {
        flex: 1 1 100%;
    }

    .contact-card {
        min-height: 0;
    }
}

@media (max-width: 960px) {
    .contacts-hero,
    .contacts-highlights {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contacts-hero-item,
    .contacts-highlight-card {
        animation: none;
    }

    .contacts-hero-item::after {
        transition: none;
    }
}

/* ========== КАТАЛОГ ========== */
.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
    background: var(--white);
    padding: 25px 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.55s ease backwards;
}

.catalog-header h1 {
    color: var(--primary-dark);
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filters select {
    padding: 12px 25px;
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    font-size: 0.95rem;
    cursor: pointer;
    background: var(--white);
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
    padding-right: 45px;
}

.filters select:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(10, 77, 140, 0.1);
}

.filters select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(255, 170, 0, 0.2);
}

.no-products {
    text-align: center;
    padding: 60px;
    font-size: 1.2rem;
    color: var(--gray-400);
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

/* ========== ПОДВАЛ (в тон шапке: синий градиент, акцентная полоса, анимации) ========== */
footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
    color: var(--white);
    padding: 4rem 0 1.5rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -12px 40px rgba(10, 77, 140, 0.18);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-light), var(--secondary), var(--accent), var(--primary-light));
    background-size: 200% 100%;
    animation: footerAccentSweep 8s ease-in-out infinite;
    z-index: 3;
}

@keyframes footerAccentSweep {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

footer::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 120%;
    height: 180%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 65%);
    animation: rotate 38s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 2;
}

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

.footer-section {
    animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.footer-section:nth-child(1) { animation-delay: 0.08s; }
.footer-section:nth-child(2) { animation-delay: 0.18s; }
.footer-section:nth-child(3) { animation-delay: 0.28s; }

.footer-section h4 {
    color: var(--secondary-light);
    font-size: 1.3rem;
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--accent-light));
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(255, 170, 0, 0.35);
}

.footer-section p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.88);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.footer-section p:hover {
    transform: translateX(6px);
    color: var(--white);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.footer-section i {
    color: var(--accent-light);
    width: 20px;
    font-size: 1.1rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    transition: var(--transition);
}

.footer-section p:hover i {
    color: var(--secondary-light);
    transform: scale(1.08);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    animation: fadeInUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.4s backwards;
}

.footer-bottom p {
    letter-spacing: 0.02em;
}

@media (prefers-reduced-motion: reduce) {
    footer::before {
        animation: none;
        background: linear-gradient(90deg, var(--primary-light), var(--secondary), var(--accent));
        background-size: 100% 100%;
    }
    footer::after {
        animation: none;
    }
    .footer-section,
    .footer-bottom {
        animation: none;
    }
}

/* ========== АНИМАЦИИ ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes chatBubbleIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.feature-item {
    animation: cardEnter 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.feature-item:nth-child(1) { animation-delay: 0.08s; }
.feature-item:nth-child(2) { animation-delay: 0.16s; }
.feature-item:nth-child(3) { animation-delay: 0.24s; }
.feature-item:nth-child(4) { animation-delay: 0.32s; }

.category-card {
    animation: cardEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.category-card:nth-child(1) { animation-delay: 0.06s; }
.category-card:nth-child(2) { animation-delay: 0.12s; }
.category-card:nth-child(3) { animation-delay: 0.18s; }
.category-card:nth-child(4) { animation-delay: 0.24s; }

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 20px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .contact-info .phone {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .contact-info {
        text-align: center;
        width: 100%;
    }
    
    .nav-links {
        justify-content: center;
    }
    
    .nav-links a {
        padding: 1rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .page-header h2 {
        font-size: 1.8rem;
    }
    
    .catalog-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .catalog-header h1 {
        font-size: 1.6rem;
    }
    
    .filters {
        width: 100%;
    }
    
    .filters select {
        flex: 1;
        min-width: 200px;
    }
    
    .features {
        gap: 20px;
    }
    
    .feature-item {
        padding: 30px 20px;
    }
    
    .about-section {
        padding: 30px 20px;
    }
    
    .about-section h2 {
        font-size: 1.6rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section p {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .contact-info .phone {
        font-size: 1.1rem;
    }
    
    .nav-links a {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .page-header h2 {
        font-size: 1.5rem;
    }
    
    .product-price {
        font-size: 1.5rem;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .filters select {
        width: 100%;
    }
}

/* ========== ФОРМЫ И ЧАТ ========== */
.form-page {
    max-width: 720px;
    margin: 0 auto;
}

.form-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 2rem 2.25rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.order-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(10, 77, 140, 0.06), rgba(14, 165, 164, 0.06));
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(10, 77, 140, 0.12);
}

.order-product-visual {
    flex: 0 0 auto;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    font-size: 3.5rem;
    color: var(--primary);
}

.order-product-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.order-summary-text {
    flex: 1 1 220px;
    min-width: 0;
}

.order-summary-text h3 {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
    color: var(--gray-900);
}

.order-price-lines {
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 1rem;
    font-size: 0.95rem;
}

.order-price-lines dt {
    margin: 0;
    color: var(--gray-600);
    font-weight: 500;
}

.order-price-lines dd {
    margin: 0;
    text-align: right;
    font-weight: 600;
    color: var(--gray-900);
}

.mount-opt {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 0.75rem;
    user-select: none;
}

.mount-opt input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--primary);
}

.order-total {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary);
}

.order-total strong {
    color: var(--gray-800);
}

.form-grid {
    display: grid;
    gap: 1.25rem;
}

.form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--gray-800);
    font-size: 0.95rem;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--gray-200);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 77, 140, 0.12);
}

.form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-top: 0.35rem;
}

.form-status {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-sm);
    display: none;
}

.form-status.is-visible {
    display: block;
}

.form-status.success {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.form-status.error {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.order-success-modal {
    margin-top: 1rem;
    animation: fadeInUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.order-success-card {
    background: linear-gradient(165deg, #ffffff, #f4f9ff);
    border: 1px solid rgba(10, 77, 140, 0.16);
    border-radius: var(--border-radius-lg);
    padding: 2rem 1.6rem 1.7rem;
    box-shadow: 0 14px 35px rgba(15, 32, 55, 0.12);
    text-align: center;
}

.order-success-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 0.9rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 35% 35%, #53d88e, #14a44d);
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 12px 26px rgba(20, 164, 77, 0.32);
}

.order-success-card h3 {
    color: var(--primary-dark);
    font-size: 2rem;
    margin-bottom: 0.6rem;
}

.order-success-card p {
    margin: 0 auto;
    max-width: 680px;
    color: var(--gray-700);
}

.order-success-card #order-success-text {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.5;
}

.order-success-hint {
    margin-top: 0.55rem !important;
    margin-bottom: 1.15rem !important;
    font-size: 0.95rem;
}

.chat-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: min(1040px, 96vw);
    margin: 0 auto;
}

.chat-layout.form-card {
    padding: 2.5rem 2.25rem;
}

.chat-thread-active {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    animation: fadeInUp 0.5s ease both;
}

.chat-messages {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem 1.35rem;
    min-height: min(52vh, 520px);
    max-height: min(72vh, 720px);
    overflow-y: auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
    flex: 1;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-bot-welcome {
    flex-shrink: 0;
    padding-bottom: 0.85rem;
    margin-bottom: 0.35rem;
    border-bottom: 1px dashed var(--gray-200);
}

.chat-messages-list {
    flex: 1;
    min-height: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.chat-bubble.bot {
    margin-right: auto;
    margin-left: 0;
    max-width: 92%;
    background: linear-gradient(135deg, var(--gray-800), var(--gray-600));
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.chat-bubble.bot strong {
    color: var(--secondary-light);
    font-weight: 700;
}

.chat-bubble.bot .chat-meta {
    color: rgba(255, 255, 255, 0.85);
}

.chat-inpanel {
    background: linear-gradient(180deg, rgba(10, 77, 140, 0.06), rgba(255, 170, 0, 0.08));
    border-radius: var(--border-radius-md);
    padding: 0.85rem 1rem;
    border: 1px solid rgba(10, 77, 140, 0.12);
    animation: fadeInUp 0.45s ease both;
}

.chat-inpanel-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-dark);
    margin-bottom: 0.55rem;
    opacity: 0.9;
}

.chat-inpanel .chat-quick-actions {
    margin-top: 0;
}

.chat-inpanel .chat-quick-send {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-inpanel .chat-quick-send:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 14px rgba(10, 77, 140, 0.2);
}

.chat-inpanel .chat-quick-send:active {
    transform: scale(0.98);
}

.chat-bubble {
    margin-bottom: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    max-width: 85%;
    line-height: 1.5;
    font-size: 1rem;
}

.chat-bubble.client {
    margin-left: auto;
    margin-right: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
}

.chat-bubble.staff {
    margin-right: auto;
    margin-left: 0;
    background: var(--gray-100);
    color: var(--dark);
}

.chat-bubble.msg-anim {
    animation: chatBubbleIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.chat-meta {
    font-size: 0.75rem;
    opacity: 0.85;
    margin-bottom: 0.2rem;
}

.chat-input-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.chat-input-row input[type="text"] {
    flex: 1;
    min-width: 220px;
    padding: 0.85rem 1.1rem;
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--gray-200);
    font-size: 1.05rem;
}

.chat-quick-wrap {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--gray-200);
}

.chat-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.chat-quick-actions .quick-topic {
    font-size: 0.88rem;
    padding: 0.55rem 1rem;
    text-align: left;
}

.chat-contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.chat-contact-row a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

@media (max-width: 600px) {
    .chat-messages {
        min-height: 38vh;
        max-height: 56vh;
        padding: 1rem;
    }

    .chat-layout.form-card {
        padding: 1.35rem 1rem;
    }

    .order-success-card {
        padding: 1.4rem 1rem 1.2rem;
    }

    .order-success-card h3 {
        font-size: 1.45rem;
    }

    .order-success-card #order-success-text {
        font-size: 1.03rem;
    }
}

/* ========== СКРОЛЛБАР ========== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 6px;
    border: 3px solid var(--gray-100);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
}