/* ============================================
   СтеклоМастер — Стеклянные перегородки
   Modern, fast-loading CSS
   ============================================ */

/* Reset & Variables */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --whatsapp: #0088cc;
    --whatsapp-dark: #006ba6;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-light: #f9fafb;
    --border: #e5e7eb;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

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

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

.btn--whatsapp:hover {
    background: var(--whatsapp-dark);
}

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

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

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

.btn--small {
    padding: 8px 16px;
    font-size: 14px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
}

.logo__icon {
    font-size: 28px;
    color: var(--primary);
}

.logo__text {
    font-size: 20px;
    font-weight: 700;
}

.nav {
    display: flex;
    gap: 24px;
}

.nav__link {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
}

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

.header__contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.header__phone {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.header__time {
    font-size: 12px;
    color: var(--text-light);
}

.header__menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.header__menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero__title .accent {
    color: var(--primary);
}

.hero__subtitle {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 30px;
}

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

.hero__feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.hero__feature-icon {
    color: var(--primary);
    font-weight: 700;
}

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

.hero__image {
    position: relative;
}

.hero__image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Trust Bar */
.trust-bar {
    padding: 40px 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.trust-bar__items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.trust-bar__number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
}

.trust-bar__text {
    font-size: 14px;
    color: var(--text-light);
}

/* Section Titles */
.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 40px;
}

/* Catalog Section */
.catalog {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.catalog__card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.catalog__card-image {
    height: 200px;
    overflow: hidden;
}

.catalog__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog__card-content {
    padding: 20px;
}

.catalog__card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.catalog__card-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.catalog__card-price {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 16px;
}

/* Calculator Section */
.calculator {
    padding: 80px 0;
    background: var(--bg);
}

.calculator__wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.calculator__step {
    margin-bottom: 30px;
}

.calculator__step-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

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

.calculator__option input {
    display: none;
}

.calculator__option-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.calculator__option input:checked + .calculator__option-box {
    border-color: var(--primary);
    background: rgba(37,99,235,0.05);
}

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

.calculator__option-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.calculator__option-name {
    font-weight: 600;
    font-size: 14px;
}

.calculator__option-price {
    font-size: 12px;
    color: var(--text-light);
}

.calculator__inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.calculator__input-group label {
    font-size: 14px;
    font-weight: 500;
}

.calculator__input-group input {
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    transition: var(--transition);
}

.calculator__input-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.calculator__input-unit {
    font-size: 12px;
    color: var(--text-light);
}

.calculator__checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calculator__checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.calculator__checkbox input {
    display: none;
}

.calculator__checkbox-box {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    transition: var(--transition);
}

.calculator__checkbox input:checked + .calculator__checkbox-box {
    background: var(--primary);
    border-color: var(--primary);
}

.calculator__result {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
}

.calculator__result-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.calculator__result-price {
    margin-bottom: 20px;
}

.calculator__result-label {
    display: block;
    font-size: 14px;
    color: var(--text-light);
}

.calculator__result-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
}

.calculator__result-currency {
    font-size: 24px;
    color: var(--text-light);
}

.calculator__result-note {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 16px;
}

.calculator__info {
    padding: 20px;
}

.calculator__info h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.calculator__benefits {
    list-style: none;
}

.calculator__benefits li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.benefit-icon {
    color: var(--primary);
    font-weight: 700;
    font-size: 18px;
}

.calculator__benefits strong {
    display: block;
    margin-bottom: 2px;
}

.calculator__benefits p {
    font-size: 14px;
    color: var(--text-light);
}

/* Portfolio Section */
.portfolio {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.portfolio__item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

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

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

.portfolio__item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.portfolio__item-category {
    font-size: 12px;
    background: var(--primary);
    padding: 4px 8px;
    border-radius: 4px;
}

.portfolio__item-price {
    font-weight: 700;
}

/* Reviews Section */
.reviews {
    padding: 80px 0;
    background: var(--bg);
}

.reviews__slider {
    position: relative;
    overflow: hidden;
}

.reviews__track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s ease;
}

.reviews__card {
    min-width: calc(33.333% - 16px);
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.reviews__card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

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

.reviews__card-info {
    flex: 1;
}

.reviews__card-name {
    display: block;
    font-weight: 600;
}

.reviews__card-location {
    font-size: 12px;
    color: var(--text-light);
}

.reviews__card-rating {
    color: #fbbf24;
}

.reviews__card-text {
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.reviews__card-date {
    font-size: 12px;
    color: var(--text-light);
}

.reviews__nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.reviews__nav-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border);
    border-radius: 50%;
    background: var(--bg);
    cursor: pointer;
    transition: var(--transition);
    font-size: 18px;
}

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

.reviews__cta {
    text-align: center;
    margin-top: 30px;
}

/* Blog Section */
.blog {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.blog__card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.blog__card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.blog__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog__card-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.blog__card-content {
    padding: 20px;
}

.blog__card-date {
    font-size: 12px;
    color: var(--text-light);
    display: block;
    margin-bottom: 8px;
}

.blog__card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.blog__card-excerpt {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.blog__card-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.blog__card-link:hover {
    text-decoration: underline;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.cta-section__content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-section__title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-section__text {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-section__form {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.cta-section__form input {
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    width: 200px;
}

.cta-section__form button {
    background: white;
    color: var(--primary);
}

.cta-section__form button:hover {
    background: var(--bg-light);
}

.cta-section__note {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 16px;
}

/* Contacts Section */
.contacts {
    padding: 80px 0;
    background: var(--bg);
}

.contacts__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contacts__item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contacts__item-icon {
    font-size: 24px;
}

.contacts__item strong {
    display: block;
    margin-bottom: 4px;
}

.contacts__item a {
    color: var(--primary);
    text-decoration: none;
}

.contacts__map-placeholder {
    height: 300px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background: #1f2937;
    color: white;
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__desc {
    color: #9ca3af;
    font-size: 14px;
    margin-top: 12px;
}

.footer h4 {
    font-size: 16px;
    margin-bottom: 16px;
}

.footer__nav a,
.footer__contacts p {
    display: block;
    color: #9ca3af;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 14px;
}

.footer__nav a:hover,
.footer__contacts a:hover {
    color: white;
}

.footer__social-links {
    display: flex;
    gap: 12px;
}

.footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer__social-link:hover {
    background: var(--primary);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 30px;
    border-top: 1px solid #374151;
    font-size: 14px;
    color: #9ca3af;
}

.footer__bottom a {
    color: #9ca3af;
    text-decoration: none;
}

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
}

.whatsapp-widget__btn {
    width: 60px;
    height: 60px;
    background: var(--whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-widget__btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(37,211,102,0.4);
}

.whatsapp-widget__popup {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 300px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: none;
    overflow: hidden;
}

.whatsapp-widget__popup.active {
    display: block;
}

.whatsapp-widget__popup-header {
    background: var(--whatsapp);
    color: white;
    padding: 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.whatsapp-widget__popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.whatsapp-widget__popup-body {
    padding: 16px;
    text-align: center;
}

.whatsapp-widget__popup-body p {
    margin-bottom: 16px;
    color: var(--text);
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 96px;
    right: 24px;
    z-index: 998;
}

.chat-widget__btn {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: var(--transition);
}

.chat-widget__btn:hover {
    transform: scale(1.1);
}

.chat-widget__popup {
    position: absolute;
    bottom: 66px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: none;
    overflow: hidden;
}

.chat-widget__popup.active {
    display: block;
}

.chat-widget__popup-header {
    background: var(--primary);
    color: white;
    padding: 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-widget__popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.chat-widget__popup-body {
    padding: 16px;
    max-height: 300px;
    overflow-y: auto;
}

.chat-widget__message {
    margin-bottom: 12px;
}

.chat-widget__message--bot {
    background: var(--bg-light);
    padding: 10px 14px;
    border-radius: 12px 12px 12px 0;
}

.chat-widget__form {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.chat-widget__form input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
}

.chat-widget__form button {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 18px;
}

/* ============================================
   MOBILE RESPONSIVE - v1 (Light Theme)
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .catalog__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero__title {
        font-size: 40px;
    }
    
    .hero__subtitle {
        font-size: 18px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Header - Mobile Menu */
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        display: none;
        z-index: 999;
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav__link {
        font-size: 16px;
        padding: 8px 0;
    }
    
    .header__menu-btn {
        display: flex;
    }
    
    .header__contacts {
        display: none;
    }
    
    /* Hero - Mobile */
    .hero {
        padding: 100px 0 40px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero__content {
        text-align: center;
        order: 2;
    }
    
    .hero__title {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .hero__subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .hero__features {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 24px;
    }
    
    .hero__feature {
        justify-content: center;
    }
    
    .hero__cta {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero__cta .btn {
        width: 100%;
    }
    
    .hero__image {
        order: 1;
    }
    
    .hero__image img {
        max-height: 250px;
        object-fit: cover;
    }
    
    /* Trust Bar - Mobile */
    .trust-bar {
        padding: 30px 0;
    }
    
    .trust-bar__items {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .trust-bar__number {
        font-size: 28px;
    }
    
    .trust-bar__text {
        font-size: 12px;
    }
    
    /* Sections - Mobile */
    .catalog,
    .calculator,
    .portfolio,
    .reviews,
    .cta-section,
    .contacts {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .section-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    /* Catalog - Mobile */
    .catalog__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .catalog__card {
        display: grid;
        grid-template-columns: 120px 1fr;
    }
    
    .catalog__card-image {
        height: 100%;
        min-height: 120px;
    }
    
    .catalog__card-content {
        padding: 16px;
    }
    
    .catalog__card-title {
        font-size: 16px;
    }
    
    .catalog__card-desc {
        font-size: 13px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .catalog__card-price {
        font-size: 16px;
    }
    
    /* Calculator - Mobile */
    .calculator__wrapper {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 24px;
    }
    
    .calculator__options {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .calculator__option-box {
        padding: 12px 8px;
    }
    
    .calculator__option-icon {
        font-size: 20px;
    }
    
    .calculator__option-name {
        font-size: 12px;
    }
    
    .calculator__option-price {
        font-size: 10px;
    }
    
    .calculator__inputs {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .calculator__result-value {
        font-size: 36px;
    }
    
    /* Portfolio - Mobile */
    .portfolio__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .portfolio__item img {
        height: 200px;
    }
    
    /* Reviews - Mobile */
    .reviews__card {
        padding: 16px;
    }
    
    .reviews__card-text {
        font-size: 13px;
    }
    
    /* CTA Section - Mobile */
    .cta-section__title {
        font-size: 22px;
    }
    
    .cta-section__text {
        font-size: 14px;
    }
    
    .cta-section__form {
        flex-direction: column;
    }
    
    .cta-section__form input {
        width: 100%;
    }
    
    /* Contacts - Mobile */
    .contacts__item {
        margin-bottom: 16px;
    }
    
    .contacts__item-icon {
        font-size: 20px;
    }
    
    /* Footer - Mobile */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer__inner {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding-top: 20px;
    }
    
    /* Telegram Widget - Mobile */
    .telegram-widget {
        bottom: 16px;
        right: 16px;
    }
    
    .telegram-widget__btn {
        width: 56px;
        height: 56px;
    }
    
    .telegram-widget__popup {
        width: calc(100vw - 32px);
        right: 0;
    }
    
    /* Chat Widget - Mobile */
    .chat-widget {
        bottom: 80px;
        right: 16px;
    }
    
    .chat-widget__btn {
        width: 50px;
        height: 50px;
    }
    
    .chat-widget__popup {
        width: calc(100vw - 32px);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero__title {
        font-size: 24px;
    }
    
    .hero__subtitle {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .trust-bar__items {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .trust-bar__number {
        font-size: 24px;
    }
    
    .calculator__options {
        grid-template-columns: 1fr 1fr;
    }
    
    .calculator__option-box {
        padding: 10px 6px;
    }
    
    .calculator__option-icon {
        font-size: 18px;
    }
    
    .calculator__option-name {
        font-size: 11px;
    }
    
    .cta-section__form .btn {
        font-size: 14px;
        padding: 14px;
    }
    
    .footer__links {
        flex-direction: column;
        gap: 16px;
    }
    
    .telegram-widget__btn {
        width: 52px;
        height: 52px;
    }
    
    .chat-widget {
        bottom: 72px;
    }
    
    .chat-widget__btn {
        width: 48px;
        height: 48px;
    }
}

/* Placeholder image containers */
.catalog__card-image,
.portfolio__item,
.blog__card-image {
    min-height: 200px;
}

.portfolio__item > div {
    height: 250px;
}

.blog__card-image > div {
    height: 180px;
}

/* Telegram Widget Override */
.whatsapp-widget__btn {
    background: #0088cc !important;
}

.whatsapp-widget__btn:hover {
    background: #006ba6 !important;
    box-shadow: 0 10px 30px rgba(0,136,204,0.4) !important;
}

.whatsapp-widget__popup-header {
    background: #0088cc !important;
}

.btn--whatsapp {
    background: #0088cc !important;
}

.btn--whatsapp:hover {
    background: #006ba6 !important;
}

/* Telegram Widget */
.telegram-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
}

.telegram-widget__btn {
    width: 60px;
    height: 60px;
    background: #0088cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 20px rgba(0,136,204,0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

.telegram-widget__btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0,136,204,0.5);
}

.telegram-widget__popup {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: none;
    overflow: hidden;
}

.telegram-widget__popup.active {
    display: block;
}

.telegram-widget__popup-header {
    background: #0088cc;
    color: white;
    padding: 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.telegram-widget__popup-header button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.telegram-widget__popup-body {
    padding: 16px;
    text-align: center;
}

.telegram-widget__popup-body p {
    margin-bottom: 16px;
    color: #333;
}

.btn--telegram {
    background: #0088cc;
    color: white;
}

.btn--telegram:hover {
    background: #006ba6;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 96px;
    right: 24px;
    z-index: 998;
}

.chat-widget__btn {
    width: 56px;
    height: 56px;
    background: #10b981;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 20px rgba(16,185,129,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-widget__btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(16,185,129,0.5);
}

.chat-widget__popup {
    position: absolute;
    bottom: 66px;
    right: 0;
    width: 340px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: none;
    overflow: hidden;
}

.chat-widget__popup.active {
    display: block;
}

.chat-widget__popup-header {
    background: #10b981;
    color: white;
    padding: 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-widget__popup-header button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.chat-widget__popup-body {
    padding: 0;
    max-height: 350px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    padding: 16px;
    max-height: 250px;
    overflow-y: auto;
}

.chat-message {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.chat-message--bot {
    flex-direction: row;
}

.chat-message--user {
    flex-direction: row-reverse;
}

.chat-message__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.chat-message--bot .chat-message__avatar {
    background: #10b981;
    color: white;
}

.chat-message--user .chat-message__avatar {
    background: #0088cc;
    color: white;
}

.chat-message__text {
    background: #f3f4f6;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    max-width: 80%;
    color: #333;
}

.chat-message--user .chat-message__text {
    background: #0088cc;
    color: white;
}

.chat-form {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
}

.chat-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.chat-form input:focus {
    border-color: #10b981;
}

.chat-form button {
    width: 40px;
    height: 40px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
}

.chat-form button:hover {
    background: #059669;
}

/* ============================================
   МОБИЛЬНАЯ ВЕРСИЯ (УЛУЧШЕННАЯ)
   ============================================ */

/* Планшеты (768px - 1024px) */
@media (max-width: 1024px) {
    .catalog__grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
    .blog__grid { grid-template-columns: repeat(2, 1fr); }
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero__image { display: none; }
    .hero__features { justify-content: center; }
    .hero__cta { justify-content: center; }
    .calculator__wrapper { grid-template-columns: 1fr; }
    .reviews__card { min-width: 50%; }
}

/* Мобильные (до 768px) */
@media (max-width: 768px) {
    /* Навигация */
    .nav { display: none; }
    .header__menu-btn { display: flex; }
    .header__inner { padding: 0 16px; }
    .header__contacts { display: none; }
    
    /* Hero */
    .hero { padding: 100px 0 40px; min-height: auto; }
    .hero__title { font-size: 28px; line-height: 1.2; }
    .hero__subtitle { font-size: 16px; }
    .hero__features { grid-template-columns: 1fr; gap: 12px; }
    .hero__cta { flex-direction: column; }
    .hero__cta .btn { width: 100%; }
    
    /* Trust Bar */
    .trust-bar { padding: 30px 0; }
    .trust-bar__items { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .trust-bar__number { font-size: 28px; }
    
    /* Секции */
    .section-title { font-size: 24px; }
    .section-subtitle { font-size: 16px; }
    
    /* Каталог */
    .catalog { padding: 40px 0; }
    .catalog__grid { grid-template-columns: 1fr; }
    .catalog__card { display: flex; flex-direction: column; }
    .catalog__card-image { height: 180px; }
    
    /* Калькулятор */
    .calculator { padding: 40px 0; }
    .calculator__wrapper { padding: 20px; }
    .calculator__options { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .calculator__option-box { padding: 12px; }
    .calculator__option-icon { font-size: 20px; }
    .calculator__option-name { font-size: 12px; }
    .calculator__inputs { grid-template-columns: 1fr; }
    .calculator__result-value { font-size: 36px; }
    
    /* Портфолио */
    .portfolio { padding: 40px 0; }
    .portfolio__grid { grid-template-columns: 1fr; }
    .portfolio__item img { height: 200px; }
    
    /* Отзывы */
    .reviews { padding: 40px 0; }
    .reviews__card { min-width: 100%; padding: 20px; }
    
    /* Блог */
    .blog { padding: 40px 0; }
    .blog__grid { grid-template-columns: 1fr; }
    
    /* CTA */
    .cta-section { padding: 40px 0; }
    .cta-section__title { font-size: 24px; }
    .cta-section__form { flex-direction: column; }
    .cta-section__form input { width: 100%; }
    
    /* Контакты */
    .contacts { padding: 40px 0; }
    .contacts__grid { grid-template-columns: 1fr; }
    
    /* Footer */
    .footer { padding: 40px 0 20px; }
    .footer__inner { grid-template-columns: 1fr; gap: 30px; }
    .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
    
    /* Виджеты */
    .whatsapp-widget { bottom: 16px; right: 16px; }
    .whatsapp-widget__btn { width: 56px; height: 56px; }
    .whatsapp-widget__popup { width: 280px; right: 0; bottom: 64px; }
    
    .chat-widget { bottom: 80px; right: 16px; }
    .chat-widget__btn { width: 52px; height: 52px; }
    .chat-widget__popup { width: 300px; right: 0; bottom: 60px; }
    
    .telegram-widget { bottom: 16px; right: 16px; }
    .telegram-widget__btn { width: 56px; height: 56px; }
    .telegram-widget__popup { width: 280px; right: 0; bottom: 64px; }
}

/* Маленькие мобильные (до 480px) */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    
    .hero__title { font-size: 24px; }
    .hero__stat-number { font-size: 28px; }
    .hero__stats { gap: 24px; }
    
    .section-title { font-size: 22px; }
    
    .catalog__card-content { padding: 16px; }
    .catalog__card-title { font-size: 18px; }
    
    .calculator__options { grid-template-columns: 1fr 1fr; }
    .calc-step__title { font-size: 18px; }
    
    .pricing__card { padding: 24px; }
    .pricing__card-price { font-size: 28px; }
    
    .reviews__card-header { flex-wrap: wrap; }
    .reviews__card-avatar { width: 40px; height: 40px; }
    
    .blog__card-content { padding: 16px; }
    .blog__card-title { font-size: 16px; }
    
    .cta-section__buttons { flex-direction: column; }
    
    .whatsapp-widget__popup,
    .chat-widget__popup,
    .telegram-widget__popup { 
        width: calc(100vw - 32px);
        right: 0;
    }
}

/* Touch-оптимизации */
@media (hover: none) and (pointer: coarse) {
    .btn { min-height: 44px; min-width: 44px; }
    .nav__link { padding: 12px 0; }
    .calculator__option-box { min-height: 80px; }
    .catalog__card:hover { transform: none; }
    .portfolio__item:hover img { transform: none; }
    .blog__card:hover { transform: none; }
}

/* Горизонтальная ориентация на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .hero { min-height: auto; padding: 80px 0 40px; }
    .hero__title { font-size: 24px; }
    .trust-bar__items { grid-template-columns: repeat(4, 1fr); }
}

/* Без анимаций для пользователей, которые не хотят */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}

/* Тёмная тема для системных настроек */
@media (prefers-color-scheme: dark) {
    /* Опционально: можно активировать тёмную тему */
}
