/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Индикаторы загрузки страницы */
.page-loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--primary-color) 100%);
    background-size: 200% 100%;
    animation: pageLoading 2s linear infinite;
    z-index: 9999;
    transform-origin: left center;
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0%);
    }
}

/* Индикатор готовности страницы */
.page-ready {
    opacity: 0;
    transition: opacity 0.5s ease-out;
    pointer-events: none;
}

/* Оптимизация загрузки изображений */
img {
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Предзагрузка критических изображений управляется атрибутом loading в HTML */


/* Оптимизация рендеринга */
body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Оптимизация прокрутки */
html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

/* Индикатор производительности */
.performance-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-family: monospace;
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.performance-indicator--visible {
    opacity: 1;
}

/* CSS переменные для дизайна */
:root {
    /* Основные цвета */
    --primary-color: #e74c3c;
    --primary-hover: #c0392b;
    --secondary-color: #27ae60;
    --secondary-hover: #229954;
    
    /* Текстовые цвета */
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --text-white: #ffffff;
    
    /* Фоновые цвета */
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a2332;
    --bg-overlay: rgba(0, 0, 0, 0.5);
    
    /* Границы и тени */
    --border-radius: 12px;
    --border-radius-sm: 6px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.15);
    
    /* Переходы */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Шрифты */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    
    /* Контейнер */
    --container-padding: 15px;
    --container-max-width: 1200px;
    
    /* Отступы */
    --section-padding: 80px 0;
    --section-padding-sm: 60px 0;
}

/* Базовые стили */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Контейнер */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Секции */
.section {
    padding: var(--section-padding);
}

.section--dark {
    background-color: var(--bg-dark);
    color: var(--text-white);
}

.section--dark .section__subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.section__header {
    text-align: center;
    margin-bottom: 60px;
}

.section__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section--dark .section__title {
    color: var(--text-white);
}

.section__subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

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

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

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

.btn--secondary:hover {
    background-color: var(--secondary-hover);
}

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

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

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

.cta .btn--outline:hover {
    opacity: 0.9;
}

.btn--large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

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

/* Стили хэдера перенесены в отдельный файл css/header.css */

/* Главный экран */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 140px 0 80px;
}

.hero > .container {
    width: 100%;
}

.hero__content {
    width: 100%;
    max-width: 900px;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
    color: #ffffff;

}

.hero__title-accent {
    color: var(--primary-color);
    font-weight: 800;
    white-space: nowrap;
    display: inline-block;
}

.hero__overline {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.75rem;
    font-weight: 600;
    margin-left: 3px; /* Оптическое выравнивание с крупным шрифтом заголовка */
}

.hero__subtitle-list {
    list-style: none;
    margin-bottom: 48px;
    max-width: 700px;
}

.hero__subtitle-list li {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.hero__subtitle-list i {
    color: var(--primary-color);
    margin-top: 5px;
    font-size: 1rem;
}

.hero__subtitle {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 48px;
    line-height: 1.6;
    max-width: 700px;
    font-weight: 400;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 60px;
}

.hero__actions .btn {
    padding: 18px 36px;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.25s ease;
}

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

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

.hero__actions .btn--outline {
    background-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.hero__actions .btn--outline:hover {
    background-color: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.7);
}

.hero__microcopy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    margin-top: 0;
    margin-bottom: 34px;
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.82);
}

.hero__microcopy span {
    display: block;
}

.hero__microcopy a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hero__features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.hero__feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    font-weight: 500;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.hero__feature:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateX(8px);
}

.hero__feature i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero-bg.png') center/cover;
    z-index: -1;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero__bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(26, 35, 50, 0.75) 0%, 
        rgba(44, 62, 80, 0.65) 50%,
        rgba(26, 35, 50, 0.8) 100%
    );
    z-index: 1;
}

/* Преимущества */
.advantages {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.advantages__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage__card {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.advantage__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background-color: rgba(231, 76, 60, 0.1);
    border-radius: 50%;
    font-size: 1.75rem;
    color: var(--primary-color);
}

.advantage__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.advantage__desc {
    color: var(--text-dark);
}

/* Услуги */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.service__card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    border: 1px solid #e8e8e8;
    transition: border-color 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.service__card:hover {
    border-color: var(--primary-color);
}

.service__photo {
    position: relative;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.service__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service__card:hover .service__photo img {
    transform: scale(1.04);
}

.service__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 auto 20px;
    background-color: rgba(231, 76, 60, 0.1);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.service__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    text-align: left;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.service__desc {
    text-align: left;
    color: var(--text-dark);
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.65;
}

.service__features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 25px;
}

.service__features li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
}

.service__features i {
    color: var(--secondary-color);
}

.service__card .btn {
    margin-top: auto;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.service__actions .btn {
    width: 100%;
}

.service__details-link {
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

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

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.info-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 28px 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.section--dark .info-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.info-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.info-card p,
.info-card li {
    color: var(--text-dark);
}

.section--dark .info-card p,
.section--dark .info-card li {
    color: rgba(255, 255, 255, 0.82);
}

.info-card ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.info-card li {
    position: relative;
    padding-left: 18px;
}

.info-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--secondary-color);
}

.faq-list {
    display: grid;
    gap: 16px;
    max-width: 920px;
    margin: 0 auto;
}

.faq-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--bg-white);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.section--dark .faq-item {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.faq-question {
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
}

.faq-question i {
    transition: transform 0.25s ease;
    color: var(--primary-color);
}

.faq-answer {
    display: none;
    padding: 0 24px 22px;
    color: var(--text-dark);
}

.faq-answer--active {
    display: block;
}

.faq-item--active .faq-question i {
    transform: rotate(180deg);
}

.section--dark .faq-answer {
    color: rgba(255, 255, 255, 0.82);
}

.related-links {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.08), rgba(39, 174, 96, 0.08));
}

.related-links__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.related-links__card {
    background-color: var(--bg-white);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.related-links__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.related-links__card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.related-links__card p {
    color: var(--text-light);
    margin-bottom: 16px;
}

.related-links__card a {
    color: var(--primary-color);
    font-weight: 600;
}

.legal-page {
    padding: 140px 0 80px;
    background-color: var(--bg-light);
    min-height: 100vh;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--bg-white);
    padding: 40px 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.legal-content h1,
.legal-content h2 {
    font-family: var(--font-heading);
    color: var(--text-dark);
}

.legal-content h1 {
    margin-bottom: 12px;
    font-size: clamp(2rem, 5vw, 2.8rem);
}

.legal-content h2 {
    margin: 28px 0 14px;
    font-size: 1.4rem;
}

.legal-content p,
.legal-content li {
    color: var(--text-dark);
    margin-bottom: 12px;
}

.legal-content ul {
    list-style: disc;
    padding-left: 24px;
}

.legal-updated {
    color: var(--text-light);
    margin-bottom: 24px;
}

.footer__meta {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 18px;
    font-size: 0.95rem;
}

.footer__meta a {
    color: inherit;
    opacity: 0.8;
    transition: var(--transition);
}

.footer__meta a:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* Цены */
.price__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.price__card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: left;
    position: relative;
    transition: border-color var(--transition);
    border: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
}

.price__card--popular {
    border: 2px solid var(--primary-color);
}


.price__badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 8px 20px;
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.price__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.price__amount {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
}

.price__features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
    flex: 1 1 auto;
}

.price__features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.45;
}

.price__features i {
    color: var(--secondary-color);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.18em;
}

    .price__card .btn {
        width: 100%;
        justify-content: center;
        margin-top: auto;
        min-height: 54px;
        max-width: none;
    }

/* Info Cards (SEO Blocks) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-card {
    background-color: var(--bg-white);
    padding: 35px 30px;
    border-radius: var(--border-radius);
    border: 1px solid #e8e8e8;
    text-align: left;
    transition: border-color 0.3s ease;
}

.info-card:hover {
    border-color: var(--primary-color);
}

.info-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
    line-height: 1.3;
}

/* Заголовки карточек на тёмном фоне — белые */
.section--dark .info-card h3 {
    color: rgba(255, 255, 255, 0.95);
}

.info-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Нумерованный бейдж (01, 02...) в info-карточках */
.info-card__num {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.info-card a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

/* Related Links */
.related-links__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.related-links__card {
    background-color: var(--bg-white);
    padding: 35px 30px;
    border-radius: var(--border-radius);
    border: 1px solid #e8e8e8;
    text-align: left;
    transition: border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.related-links__card:hover {
    border-color: var(--primary-color);
}

.related-links__card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.related-links__card p {
    color: var(--text-light);
    flex-grow: 1;
    margin-bottom: 25px;
}

.related-links__card a {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.related-links__card a::after {
    content: "→";
    font-family: "Font Awesome 5 Free"; /* fallback or just unicode */
}


/* Процесс работы */
.process__timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.process__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.process__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--text-white);
    border-radius: 50%;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.process__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.process__desc {
    color: rgba(255, 255, 255, 0.8);
}

/* Фильтры каталога */
.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.filter__btn {
    padding: 10px 20px;
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter__btn:hover,
.filter__btn--active {
    background-color: var(--primary-color);
    color: var(--text-white);
}

/* Каталог товаров */
.products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Кнопка "Загрузить еще" */
.load-more-container {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    padding: 20px 0;
    text-align: center;
    width: 100%;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    width: auto;
    min-width: 200px;
    max-width: 280px;
}

.load-more-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.load-more-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.load-more-btn:hover i {
    transform: rotate(90deg);
}

/* Анимация загрузки */
.load-more-btn.loading {
    color: transparent;
    pointer-events: none;
}

.load-more-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.product__card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.product__image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

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

.product__card:hover .product__image img {
    transform: scale(1.05);
}

.product__badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
}

.product__content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.product__description {
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.product__price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.product__actions {
    margin-top: auto;
}

/* Статистика каталога */
.catalog__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat__card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
}

.stat__number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat__label {
    color: var(--text-light);
}

/* Галерея */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
    height: 300px;
}

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

.gallery__item:hover img {
    transform: scale(1.1);
}

.gallery__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: var(--text-white);
    opacity: 0;
    transition: var(--transition);
}

.gallery__item:hover .gallery__overlay {
    opacity: 1;
}

.gallery__overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
    transform: translateY(20px);
    transition: var(--transition);
    transition-delay: 0.1s;
}

.gallery__overlay p {
    transform: translateY(20px);
    transition: var(--transition);
    transition-delay: 0.2s;
}

.gallery__item:hover .gallery__overlay h3,
.gallery__item:hover .gallery__overlay p {
    transform: translateY(0);
}

/* На мобиле hover не работает — показываем overlay всегда */
@media (max-width: 768px) {
    .gallery__overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0) 55%);
        padding: 20px;
    }
    .gallery__overlay h3,
    .gallery__overlay p {
        transform: translateY(0);
    }
    .gallery__overlay h3 {
        font-size: 1.1rem;
    }
    .gallery__overlay p {
        font-size: 0.85rem;
        opacity: 0.85;
    }
    .gallery__item {
        height: 220px;
    }
}

/* Отзывы */
.reviews__slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review__card {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.review__stars {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    color: #f1c40f;
}

.review__text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 25px;
    flex-grow: 1;
}

.review__author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.review__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-white);
    border-radius: 50%;
    font-weight: 700;
}

.review__name {
    font-weight: 600;
    margin-bottom: 5px;
}

.review__position {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Контакты */
.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact__info h3,
.contact__form h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.contact__info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.contact__details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.contact__item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact__item i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(231, 76, 60, 0.2);
    border-radius: 50%;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact__item h4 {
    font-weight: 600;
    margin-bottom: 5px;
}

.contact__item p,
.contact__item a {
    color: rgba(255, 255, 255, 0.8);
}

.social__links {
    display: flex;
    gap: 15px;
}

.social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition);
    position: relative;
}

.social__link .fa-whatsapp {
    background-color: rgba(231, 76, 60, 0.2);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0;
}

.social__link span {
    position: absolute;
    left: 50px;
    font-size: 16px;
    color: var(--text-white);
    white-space: nowrap;
    margin-left: 8px;
    font-weight: 600;
}


.social__link:hover .fa-whatsapp {
    background-color: rgba(231, 76, 60, 0.4);
    transform: scale(1.05);
}

/* Форма */
.contact__form {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: var(--border-radius);
}

.form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

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

.form__label {
    margin-bottom: 8px;
    font-weight: 500;
}

.form__input,
.form__select,
.form__textarea {
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-sm);
    color: var(--text-white);
    font-family: var(--font-primary);
    transition: var(--transition);
}

.form__input::placeholder,
.form__textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__policy {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin-top: 15px;
}

/* Финальный CTA */
.cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    padding: 80px 0;
    text-align: center;
    color: var(--text-white);
}

.cta__title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cta__subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Подвал */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-white);
    padding: 60px 0 30px;
}

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

.footer__col h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
}

.footer__col h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer__logo {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer__desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer__contacts {
    color: rgba(255, 255, 255, 0.7);
}

.footer__links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.footer__links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer__links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer__social {
    display: flex;
    gap: 15px;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-white);
    transition: var(--transition);
}

.footer__social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer__bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* Модальное окно */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

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

.modal__content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal__close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal__close:hover {
    background-color: var(--primary-color);
    transform: rotate(90deg);
}

.modal__img {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--border-radius);
}

.modal__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0) 100%);
    color: var(--text-white);
    text-align: center;
}

.modal__caption h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

/* ================================================
   TRUST BAR — полоска с цифрами под Hero
   ================================================ */
.trust-bar {
    background: #fafafa;
    border-top: 3px solid var(--primary-color);
    border-bottom: 1px solid #e8e8e8;
    padding: 28px 0;
}

.trust-bar__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.trust-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 16px;
    border-right: 1px solid #e8e8e8;
}

.trust-bar__item:last-child {
    border-right: none;
}

.trust-bar__num {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.1;
    letter-spacing: -1px;
}

.trust-bar__label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 4px;
    font-weight: 500;
}

/* ================================================
   GALLERY CTA — красная полоса после галереи
   ================================================ */
.gallery-cta {
    background-color: var(--primary-color);
    padding: 28px 0;
}

.gallery-cta .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.gallery-cta__text {
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 500;
    flex: 1;
}

.gallery-cta__btn {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    flex-shrink: 0;
}

.gallery-cta__btn:hover {
    background-color: rgba(255, 255, 255, 0.28);
    border-color: #fff;
}

/* ================================================
   TRUST BLOCK — вместо отзывов (до появления реальных)
   ================================================ */
.trust-block {
    background: #fafafa;
}

.trust-block__numbers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid #e8e8e8;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 40px;
}

.trust-block__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 16px;
    border-right: 1px solid #e8e8e8;
    background: #fff;
}

.trust-block__stat:last-child {
    border-right: none;
}

.trust-block__num {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.trust-block__label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 6px;
    font-weight: 500;
}

.trust-block__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    text-align: center;
}

.trust-block__cta-text {
    color: var(--text-dark);
    font-size: 1rem;
}

.trust-block__wa-btn {
    background-color: #25d366;
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
}

.trust-block__wa-btn:hover {
    background-color: #1ebe5b;
}

/* ================================================
   QUICK CALCULATOR
   ================================================ */
.quick-calc {
    background: #fff;
}

.quick-calc__card {
    max-width: 560px;
    margin: 0 auto;
    padding: 30px 24px;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    background: #fafafa;
}

.quick-calc__field {
    margin-bottom: 16px;
}

.quick-calc__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.quick-calc__label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.quick-calc__value {
    flex-shrink: 0;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #e8e8e8;
    background: #fff;
    color: var(--primary-color);
    font-size: 0.92rem;
    font-weight: 700;
}

.quick-calc__control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    background: #fff;
    color: var(--text-dark);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.quick-calc__control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.quick-calc__range {
    --calc-progress: 13%;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(to right, var(--primary-color) 0, var(--primary-color) var(--calc-progress), #d7d7d7 var(--calc-progress), #d7d7d7 100%);
    cursor: pointer;
}

.quick-calc__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: var(--primary-color);
}

.quick-calc__range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: var(--primary-color);
}

.quick-calc__range:focus {
    outline: none;
}

.quick-calc__range-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--text-light);
}

.quick-calc__result {
    padding: 22px 20px;
    border-radius: 14px;
    background: var(--bg-dark);
    color: #fff;
    text-align: center;
}

.quick-calc__eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.quick-calc__sum {
    margin-top: 8px;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.05;
}

.quick-calc__note {
    margin-top: 8px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.78);
}

.quick-calc__footer {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

/* ================================================
   CONTACT STEPS — 3 шага над формой
   ================================================ */
.contact__steps {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.contact__step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.contact__step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.contact__step-arrow {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* ================================================
   Адаптивность для планшетов
   ================================================ */
@media (max-width: 1024px) {
    :root {
        --section-padding: 70px 0;
        --section-padding-sm: 50px 0;
    }
    
    .contact__content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .price__grid,
    .products__grid,
    .reviews__slider,
    .gallery__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .process__timeline {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    :root {
        --container-padding: 15px;
        --section-padding: 60px 0;
        --section-padding-sm: 40px 0;
    }
    
    /* Стили хэдера для мобильных устройств перенесены в css/header.css */
    
    .hero__actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero__actions .btn {
        width: 100%;
        max-width: 100%;
        padding: 16px 28px;
        justify-content: center;
    }

    .hero__microcopy {
        display: grid;
        gap: 8px;
        margin-top: 0;
        margin-bottom: 26px;
        font-size: 0.92rem;
        text-align: center;
        justify-items: center;
    }

    .quick-calc__card {
        padding: 24px 18px;
    }

    .quick-calc__label-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
    
    /* Центрирование кнопок в мобильной версии */
    .btn {
        display: inline-flex;
        width: auto;
        min-width: auto;
        justify-content: center;
        text-align: center;
    }
    
    /* Центрирование контейнеров с кнопками */
    .cta__actions,
    .hero__actions,
    .service__actions,
    .product__actions,
    .advantage__actions {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .price__grid,
    .advantages__grid,
    .services__grid,
    .products__grid,
    .reviews__slider,
    .gallery__grid,
    .info-grid,
    .related-links__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .price__card {
        padding: 30px 20px;
    }

    .price__grid {
        padding-top: 6px;
    }
    
    .price__card--popular {
        padding-top: 24px !important;
        transform: none;
    }

    .price__badge {
        position: static;
        display: inline-flex;
        align-items: center;
        align-self: flex-start;
        transform: none !important;
        padding: 6px 14px;
        font-size: 0.72rem;
        letter-spacing: 0.04em;
        margin-bottom: 12px;
    }
    
    .price__card--popular:hover {
        transform: none;
    }

    .price__card:hover .price__badge {
        transform: none;
    }

    .price__card:hover .price__amount {
        transform: none;
    }

    .price__card .btn {
        max-width: none;
    }
    
    .process__timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .contact__form {
        padding: 30px 20px;
    }
    
    .cta__actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta__actions .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    /* Специальные стили для кнопок в карточках */
    .service__card .btn,
    .product__card .btn,
    .advantage__card .btn {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
        text-align: center;
    }
}

/* Адаптивность для маленьких мобильных устройств */
@media (max-width: 480px) {
    :root {
        --section-padding: 50px 0;
        --section-padding-sm: 30px 0;
    }
    
    .section__header {
        margin-bottom: 40px;
    }
    
    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }
    
    .hero__title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        margin-bottom: 20px;
        line-height: 1.2;
    }
    
    /* На мобильных разрешаем перенос если совсем нет места */
    .hero__title-accent {
        white-space: normal;
    }
    
    .hero__subtitle {
        font-size: 1.125rem;
        margin-bottom: 36px;
    }
    
    .hero__features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 8px;
        padding-bottom: 8px;
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .filters::-webkit-scrollbar {
        display: none;
    }

    .filter__btn {
        flex-shrink: 0;
        width: auto;
        max-width: none;
        padding: 8px 16px;
        font-size: 0.875rem;
    }
    
    /* Центрирование всех кнопок на очень маленьких экранах */
    .btn {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto !important;
    }
    
    .cta__actions .btn,
    .hero__actions .btn,
    .service__card .btn,
    .product__card .btn,
    .advantage__card .btn {
        width: 100% !important;
        max-width: 280px !important;
        justify-content: center !important;
    }

    .price__card .btn {
        width: 100% !important;
        max-width: none !important;
    }
    
    .cta__actions,
    .hero__actions,
    .service__actions,
    .product__actions,
    .advantage__actions {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-direction: column !important;
        gap: 15px !important;
        text-align: center !important;
        width: 100% !important;
    }
    

    
    .cta {
        padding: 60px 0;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .legal-content {
        padding: 32px 20px;
    }
}

/* Адаптивность для очень маленьких экранов */
@media (max-width: 360px) {
    .advantage__card,
    .service__card,
    .product__card,
    .review__card {
        padding: 20px;
    }
    
    .contact__form {
        padding: 25px 15px;
    }
    
    .process__timeline {
        grid-template-columns: 1fr;
    }
    
    .cta__actions,
    .hero__actions,
    .service__actions,
    .product__actions,
    .advantage__actions {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-direction: column !important;
        gap: 12px !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .btn {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 250px !important;
        margin: 0 auto !important;
        padding: 10px 16px !important;
        font-size: 0.9rem !important;
    }
}

/* Адаптивность для горизонтальной ориентации мобильных устройств */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 50px;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .hero__subtitle {
        font-size: 1rem;
    }
    
    .modal__img {
        max-height: 70vh;
    }
}

/* Вспомогательные классы */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Анимация появления элементов */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Дополнительные стили для улучшения UX */
.service__card:hover .service__icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.product__card:hover .product__badge {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Sticky WhatsApp кнопка */
.whatsapp-sticky {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #25D366;
    color: #fff;
    text-decoration: none;
    padding: 14px 22px;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    box-shadow: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
}

.sticky-cta-bar {
    display: none;
}

@media (max-width: 767px) {
    body.page-has-sticky-cta {
        padding-bottom: calc(86px + env(safe-area-inset-bottom));
    }

    .sticky-cta-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 8px 12px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid #e8e8e8;
        transition: transform 0.24s ease, opacity 0.24s ease;
    }

    .sticky-cta-bar--hidden {
        opacity: 0;
        transform: translateY(calc(100% + env(safe-area-inset-bottom)));
        pointer-events: none;
    }

    .sticky-cta-bar__btn {
        min-height: 50px;
        border-radius: 12px;
        border: 1px solid #e8e8e8;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 0.95rem;
        font-weight: 700;
        color: #fff;
    }

    .sticky-cta-bar__btn--call {
        background: var(--primary-color);
        border-color: var(--primary-color);
    }

    .sticky-cta-bar__btn--wa {
        background: #25d366;
        border-color: #25d366;
    }

    body.page-has-sticky-cta .whatsapp-sticky {
        display: none !important;
    }
}

.whatsapp-sticky i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.whatsapp-sticky:hover {
    transform: translateY(-3px);
    background-color: #22c55e;
    color: #fff;
}

@media (max-width: 480px) {
    .whatsapp-sticky {
        bottom: 85px;
        right: 16px;
        padding: 0;
        font-size: 0.875rem;
    }

    .whatsapp-sticky span {
        display: none;
    }

    .whatsapp-sticky {
        width: 58px;
        height: 58px;
        justify-content: center;
        border-radius: 50%;
    }

    .whatsapp-sticky i {
        font-size: 1.7rem;
    }
}

.filter__btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.advantage__card:hover .advantage__icon {
    color: var(--text-white);
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Card hover effects consistency */
@media (hover: hover) and (pointer: fine) {
    .price__card:hover {
        border-color: var(--primary-color);
    }

    .price__card:hover .price__amount {
        transform: scale(1.03);
        transition: transform 0.3s ease;
    }

    .price__card:hover .price__badge {
        transform: translateX(-50%) scale(1.03);
        transition: transform 0.3s ease;
    }
}

/* Ensure all card titles have consistent typography */
.advantage__title,
.service__title,
.price__title {
    line-height: 1.3;
    word-wrap: break-word;
}

/* Improve card content alignment */
.advantage__card,
.service__card,
.price__card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.advantage__desc,
.service__desc {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.price__card .btn {
    margin-top: auto;
}

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

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

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

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 1rem; }
.pt-4 { padding-top: 1.5rem; }
.pt-5 { padding-top: 3rem; }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 1rem; }
.pb-4 { padding-bottom: 1.5rem; }
.pb-5 { padding-bottom: 3rem; }
