/* === БАЗОВЫЕ НАСТРОЙКИ И ПЕРЕМЕННЫЕ === */
:root {
    --font-main: 'Montserrat', sans-serif;
    --color-dark: #0f1115;      
    --color-light: #f7f8f9;     
    --color-white: #ffffff;
    --color-accent: #9E1B47;    
    --color-text-gray: #888888;
    --color-border: #e0e0e0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: var(--font-main); background-color: var(--color-white); color: var(--color-dark); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.container { max-width: 1440px; margin: 0 auto; padding: 0 40px; }

/* ОБЩИЕ КЛАССЫ */
.section-title { text-align: center; font-size: 40px; font-weight: 500; line-height: 1.2; margin-bottom: 60px; letter-spacing: -0.5px; }
.text-gray { color: #a0a0a0; }
.faq-tag { font-size: 13px; color: var(--color-text-gray); font-weight: 500; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; display: block; }

.btn-dark { display: inline-block; background-color: var(--color-dark); color: var(--color-white); padding: 18px 36px; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 600; transition: all 0.3s ease; border: none; cursor: pointer; }
.btn-dark:hover { background-color: var(--color-accent); }

.btn-white { display: inline-block; background-color: var(--color-white); color: var(--color-dark); padding: 18px 36px; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 600; transition: all 0.3s ease; }
.btn-white:hover { background-color: var(--color-dark); color: var(--color-white); }

.btn-accent { display: inline-block; background-color: var(--color-accent); color: var(--color-white); padding: 18px 36px; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 600; transition: opacity 0.3s ease; border: none; cursor: pointer; }
.btn-accent:hover { opacity: 0.9; }

/* === ХЕДЕР === */
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: rgba(15, 17, 21, 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, 0.05); transition: all 0.3s ease; }
.header-container { display: flex; justify-content: space-between; align-items: center; height: 90px; transition: height 0.3s ease; }
.site-header.scrolled .header-container { height: 70px; }
.header-logo { font-size: 24px; font-weight: 700; letter-spacing: 1px; color: var(--color-white); text-decoration: none; }
.header-nav { display: flex; gap: 35px; }
.header-nav a { color: rgba(255, 255, 255, 0.75); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.3s ease; }
.header-nav a:hover { color: var(--color-white); }
.header-contact { display: flex; align-items: center; gap: 24px; }

/* Идеальное выравнивание цифр номеров телефона */
.header-phones { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.header-phone { color: var(--color-white); font-weight: 600; text-decoration: none; font-size: 15px; transition: color 0.3s ease; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: 0.3px; }
.header-phone:hover { color: var(--color-accent); }

.header-btn { background-color: var(--color-accent); color: var(--color-white); padding: 12px 24px; border-radius: 8px; text-decoration: none; font-size: 13px; font-weight: 600; transition: background-color 0.3s ease; }
.header-btn:hover { background-color: #831539; }

/* Современный крестик-бургер */
.mobile-menu-btn { display: none; width: 32px; height: 22px; position: relative; background: transparent; border: none; cursor: pointer; z-index: 1001; padding: 0; }
.mobile-menu-btn span { position: absolute; left: 0; width: 100%; height: 2px; background-color: var(--color-white); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 2px; }
.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { top: 10px; }
.mobile-menu-btn span:nth-child(3) { top: 20px; }
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg); top: 10px; }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg); top: 10px; }

.mobile-phones-wrapper { display: none; }

/* === ОСНОВНОЙ ЭКРАН (ФОТО) === */
.customization-section { background-image: linear-gradient(to right, rgba(15, 17, 21, 0.95) 0%, rgba(15, 17, 21, 0.6) 100%), url('0001.jpg'); background-size: cover; background-position: center; color: var(--color-white); padding: 140px 0 80px 0; }
.custom-container { display: flex; justify-content: space-between; align-items: stretch; min-height: 500px; }
.custom-left { flex: 0 0 50%; display: flex; flex-direction: column; justify-content: space-between; }
.tag { display: inline-flex; align-items: center; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); padding: 10px 20px; border-radius: 30px; font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; align-self: flex-start; }
.tag-dot { width: 6px; height: 6px; background-color: var(--color-accent); border-radius: 50%; margin-right: 10px; }
.custom-title { font-size: 48px; font-weight: 500; line-height: 1.1; letter-spacing: -1px; margin-top: 60px; margin-bottom: auto; }
.custom-right { flex: 0 0 45%; display: flex; flex-direction: column; justify-content: space-between; }
.chat-bubbles { display: flex; flex-direction: column; gap: 15px; }
.bubble { background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(15px); padding: 20px 30px; border-radius: 12px; font-size: 15px; line-height: 1.4; max-width: 80%; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.bubble-right { align-self: flex-end; background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 100%); }
.custom-footer-info { margin-top: 60px; }
.info-text { font-size: 16px; color: #e0e0e0; line-height: 1.5; margin-bottom: 20px; }
.info-highlighted { font-size: 16px; line-height: 1.6; color: var(--color-white); }
.highlight { background-color: var(--color-accent); padding: 2px 6px; font-weight: 500; }

/* === БЕГУЩАЯ СТРОКА (TICKER) === */
.ticker-section { background-color: var(--color-accent); color: var(--color-white); overflow: hidden; padding: 15px 0; border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); }
.ticker-wrap { width: 100%; overflow: hidden; }
.ticker-track { display: flex; white-space: nowrap; animation: ticker 25s linear infinite; }
.ticker-item { font-size: 14px; font-weight: 600; letter-spacing: 1px; padding: 0 30px; display: flex; align-items: center; }
.ticker-item span { color: rgba(255,255,255,0.5); margin-left: 60px; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* === ПРЕИМУЩЕСТВА === */
.advantages-section { padding: 100px 0; background-color: var(--color-white); border-top: 1px solid var(--color-border); }
.adv-header { margin-bottom: 60px; }
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.adv-num { font-size: 48px; font-weight: 300; color: var(--color-accent); margin-bottom: 20px; line-height: 1; }
.adv-item h3 { font-size: 20px; font-weight: 600; margin-bottom: 15px; color: var(--color-dark); line-height: 1.3; }
.adv-item p { font-size: 15px; line-height: 1.6; color: var(--color-text-gray); }

/* === КАТАЛОГ С ТАБАМИ === */
.catalog-section { padding: 100px 0; background-color: var(--color-white); border-top: 1px solid var(--color-border); }
.catalog-tabs { display: flex; justify-content: space-between; border-bottom: 1px solid var(--color-border); margin-bottom: 40px; }
.tab { flex: 1; background: none; border: none; padding: 20px 0; font-family: var(--font-main); font-size: 16px; font-weight: 500; color: #a0a0a0; cursor: pointer; position: relative; transition: color 0.3s ease; }
.tab:hover { color: var(--color-dark); }
.tab.active { color: var(--color-dark); font-weight: 600; }
.tab.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background-color: var(--color-dark); }
.tab-pane { display: none; }
.tab-pane.active { display: grid; }

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

/* Улучшенные карточки каталога: идеальные пропорции и заполнение cover */
.catalog-card { display: flex; flex-direction: column; height: 100%; cursor: pointer; text-decoration: none; color: inherit; }
.catalog-card:hover .card-arrow svg { transform: translate(3px, -3px); transition: transform 0.3s ease; }

.card-image { 
    width: 100%; 
    height: auto; 
    aspect-ratio: 4 / 3;
    background-color: var(--color-light); 
    border-radius: 8px; 
    margin-bottom: 20px; 
    background-size: cover; 
    background-repeat: no-repeat;
    background-position: center; 
    flex-shrink: 0; 
}
.card-content { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid var(--color-border); padding-bottom: 15px; flex-grow: 1; }
.card-text { display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.card-text h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; line-height: 1.3; flex-grow: 1; display: flex; align-items: flex-start; }
.card-text p { font-size: 14px; color: var(--color-text-gray); }

/* === ПАЛИТРА RAL === */
.colors-section { padding: 100px 0; background-color: var(--color-white); border-top: 1px solid var(--color-border); }
.colors-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; text-align: center; }
.color-item { display: flex; flex-direction: column; align-items: center; }
.color-swatch { width: 80px; height: 80px; border-radius: 50%; margin-bottom: 15px; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.color-item span { font-size: 13px; color: var(--color-dark); font-weight: 500; line-height: 1.4; }

/* === ЦЕНЫ === */
.pricing-section { padding: 100px 0; background-color: var(--color-white); border-top: 1px solid var(--color-border); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 60px; }
.price-card { background-color: var(--color-light); border-radius: 16px; padding: 40px; display: flex; flex-direction: column; position: relative; transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid var(--color-border); }
.price-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
.price-card.popular { border: 2px solid var(--color-accent); background-color: var(--color-white); }
.popular-tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background-color: var(--color-accent); color: var(--color-white); font-size: 12px; font-weight: 700; padding: 6px 16px; border-radius: 20px; letter-spacing: 1px; }
.price-card h4 { font-size: 24px; font-weight: 600; margin-bottom: 15px; text-align: center; color: var(--color-dark); }
.price-val { font-size: 16px; font-weight: 500; color: var(--color-text-gray); text-align: center; margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--color-border); }
.price-val span { font-size: 44px; font-weight: 700; color: var(--color-dark); margin: 0 5px; letter-spacing: -1px; }
.price-list { list-style: none; flex-grow: 1; margin-bottom: 40px; }
.price-list li { position: relative; padding-left: 30px; margin-bottom: 15px; font-size: 15px; line-height: 1.5; color: var(--color-dark); }
.price-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--color-accent); font-weight: bold; }
.price-btn { text-align: center; width: 100%; }

/* === СРАВНЕНИЕ (GOOD VS BAD) === */
.compare-section { padding: 100px 0; background-color: var(--color-white); border-top: 1px solid var(--color-border); }
.compare-wrapper { display: flex; gap: 30px; }
.compare-card { flex: 1; padding: 50px; border-radius: 20px; }
.compare-card.bad { background-color: var(--color-light); color: var(--color-text-gray); border: 1px solid var(--color-border); }
.compare-card.good { background-color: var(--color-white); box-shadow: 0 15px 40px rgba(0,0,0,0.05); border: 2px solid var(--color-accent); }
.compare-card h3 { font-size: 24px; margin-bottom: 30px; color: var(--color-dark); }
.compare-card ul { list-style: none; }
.compare-card li { font-size: 16px; margin-bottom: 20px; display: flex; align-items: center; gap: 15px; }
.compare-card span { font-weight: bold; }
.compare-card span.check { color: var(--color-accent); }

/* === ТЕХНОЛОГИИ (TECH LIST) === */
.tech-section { padding: 100px 0; background-color: var(--color-white); border-top: 1px solid var(--color-border); }
.tech-container { display: flex; gap: 80px; align-items: center; }
.tech-info { flex: 0 0 40%; }
.tech-list { flex: 1; display: flex; flex-direction: column; }
.tech-row { display: flex; justify-content: space-between; padding: 25px 0; border-bottom: 1px solid var(--color-border); }
.tech-row:first-child { border-top: 1px solid var(--color-border); }
.tech-name { font-size: 20px; font-weight: 500; color: var(--color-dark); }
.tech-stat { font-family: monospace; color: var(--color-accent); font-size: 16px; }

/* === HERO СЛАЙДЕР ВНИЗУ === */
.hero-section { position: relative; height: 700px; background-color: var(--color-dark); overflow: hidden; display: flex; align-items: center; }
.hero-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.8s ease-in-out; display: flex; align-items: center; z-index: 1; }
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(15, 17, 21, 0.9) 0%, rgba(15, 17, 21, 0.2) 100%); z-index: 1; }
.hero-container { position: relative; z-index: 3; }
.hero-content { max-width: 650px; }
.hero-title { font-size: 52px; font-weight: 600; line-height: 1.1; margin-bottom: 24px; letter-spacing: -1px; color: var(--color-white); }
.hero-desc { font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, 0.85); margin-bottom: 40px; }
.slider-controls { position: absolute; bottom: 40px; right: 40px; z-index: 10; display: flex; gap: 12px; }
.slider-btn { width: 50px; height: 50px; border-radius: 50%; background-color: var(--color-white); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.slider-btn:hover { transform: scale(1.05); }

/* === ПОРТФОЛИО === */
.portfolio-section { padding: 100px 0; background-color: var(--color-white); border-top: 1px solid var(--color-border); }
.portfolio-header-wrapper { position: relative; margin-bottom: 50px; display: flex; flex-direction: column; align-items: center; gap: 20px;}
.portfolio-title { text-align: center; font-size: 34px; font-weight: 700; text-transform: uppercase; line-height: 1.3; color: #2c2d30; letter-spacing: -0.5px; margin: 0; }
.portfolio-title .text-gray { color: #9ea0a5; }
.portfolio-arrows { display: flex; justify-content: center; gap: 15px; margin-top: 40px; }
.port-arrow { width: 44px; height: 44px; border-radius: 50%; background-color: var(--color-white); border: 1px solid var(--color-border); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; outline: none; }
.port-arrow:hover { border-color: var(--color-dark); transform: scale(1.05); }
.portfolio-grid { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 30px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.portfolio-grid::-webkit-scrollbar { display: none; }
.portfolio-card { flex: 0 0 calc(33.333% - 13.33px); scroll-snap-align: start; border-radius: 16px; overflow: hidden; background-color: var(--color-white); display: flex; flex-direction: column; height: 480px; box-shadow: 0 15px 35px rgba(0,0,0,0.03); transition: transform 0.3s ease; border: 1px solid var(--color-border); }
.portfolio-card:hover { transform: translateY(-5px); }
.port-img-wrap { height: 65%; background-size: cover; background-position: center; padding: 20px; position: relative; }
.port-badges { display: flex; gap: 8px; }
.port-badge { background: rgba(255, 255, 255, 0.25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #ffffff; font-size: 11px; font-weight: 600; padding: 8px 14px; border-radius: 20px; letter-spacing: 0.5px; }
.port-content { padding: 30px 24px; height: 35%; display: flex; flex-direction: column; justify-content: flex-end; }
.port-content h3 { font-size: 18px; font-weight: 600; margin-bottom: 16px; color: #222; line-height: 1.3; }
.port-content p { font-size: 13px; color: #666; line-height: 1.6; margin: 0; }
.portfolio-card.card-overlay { position: relative; }
.portfolio-card.card-overlay .port-img-wrap { height: 100%; }
.portfolio-card.card-overlay::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 50%; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%); pointer-events: none; }
.portfolio-card.card-overlay .port-content { position: absolute; bottom: 0; left: 0; width: 100%; z-index: 2; height: auto; }
.portfolio-card.card-overlay .port-content h3 { color: #ffffff; }
.portfolio-card.card-overlay .port-content p { color: rgba(255, 255, 255, 0.8); }

/* === ЛИД ФОРМА === */
.lead-section { padding: 100px 0 120px; background-color: var(--color-white); border-top: 1px solid var(--color-border); }
.lead-wrapper { background-color: var(--color-light); border-radius: 30px; display: flex; align-items: center; padding: 60px; gap: 60px; border: 1px solid var(--color-border); }
.lead-content { flex: 0 0 50%; }
.lead-content h2 { font-size: 40px; font-weight: 500; line-height: 1.2; margin-bottom: 40px; letter-spacing: -0.5px; }
.lead-form { display: flex; flex-direction: column; gap: 20px; }
.form-input { width: 100%; padding: 24px; background-color: var(--color-white); border: 1px solid var(--color-border); border-radius: 12px; font-family: var(--font-main); font-size: 16px; outline: none; transition: border-color 0.3s; }
.form-input:focus { border-color: var(--color-accent); }
.checkbox-container { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; margin: 10px 0; }
.checkbox-container input { display: none; }
.checkmark { width: 20px; height: 20px; border: 1px solid var(--color-dark); border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.checkbox-container input:checked ~ .checkmark::after { content: '✓'; color: var(--color-dark); font-size: 14px; }
.checkbox-text { font-size: 12px; color: var(--color-text-gray); line-height: 1.4; }
.lead-visual { flex: 1; display: flex; justify-content: center; }

/* Дизайн мобильного мокапа внутри лид-секции */
.phone-mockup { width: 300px; height: 600px; background-color: #1a1a1a; border-radius: 40px; border: 12px solid #222; position: relative; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.15); }
.phone-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 120px; height: 25px; background-color: #222; border-bottom-left-radius: 15px; border-bottom-right-radius: 15px; z-index: 10; }
.phone-screen { width: 100%; height: 100%; background-color: var(--color-white); padding: 0; color: var(--color-dark); display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; }
.screen-header { padding: 40px 20px 15px; border-bottom: 1px solid var(--color-border); display: flex; justify-content: space-between; align-items: center; background: #fff; flex-shrink: 0; margin: 0; }
.screen-header-burger { display: flex; flex-direction: column; gap: 4px; width: 18px; }
.screen-header-burger span { width: 100%; height: 2px; background: var(--color-dark); border-radius: 2px; }
.screen-body { padding: 20px; flex: 1; overflow-y: auto; background: var(--color-light); }
.screen-title { font-size: 18px; line-height: 1.2; margin-bottom: 20px; text-align: center; font-weight: 700; color: var(--color-dark); }
.screen-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
.screen-grid div { background: rgba(255,255,255,0.2); height: 120px; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); background-size: cover; background-position: center; }

/* === FAQ (АККОРДЕОН) === */
.faq-section { padding: 100px 0; background-color: var(--color-white); border-top: 1px solid var(--color-border); }
.faq-container { display: flex; gap: 60px; }
.faq-left { flex: 0 0 25%; }
.faq-right { flex: 1; }
.faq-title { font-size: 40px; font-weight: 500; line-height: 1.2; letter-spacing: -0.5px; margin-bottom: 60px; color: var(--color-dark); }
.faq-list { display: flex; flex-direction: column; }
.faq-item { padding: 30px 0; border-top: 1px solid var(--color-border); }
.faq-item:last-child { border-bottom: 1px solid var(--color-border); }
.faq-question-wrap { display: flex; align-items: center; cursor: pointer; transition: opacity 0.3s ease; }
.faq-question-wrap:hover .faq-icon { transform: translate(3px, -3px); }
.faq-num { font-size: 16px; color: var(--color-text-gray); width: 60px; font-weight: 500; }
.faq-question { flex: 1; font-size: 20px; font-weight: 500; color: var(--color-dark); margin: 0; }
.faq-icon { display: flex; align-items: center; justify-content: center; transition: transform 0.3s ease; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
.faq-answer p { padding-top: 15px; padding-left: 60px; font-size: 15px; line-height: 1.6; color: var(--color-text-gray); margin: 0; }
.faq-item.active .faq-icon { transform: rotate(180deg); }

/* === О НАС === */
.about-section { background-color: var(--color-white); padding: 100px 0; border-top: 1px solid var(--color-border); }
.about-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 80px; }
.about-tag { color: #df7a36; font-style: italic; font-size: 18px; font-weight: 400; letter-spacing: 1px; }
.about-title { text-align: right; font-size: 40px; font-weight: 500; line-height: 1.2; color: #222; max-width: 850px; letter-spacing: -0.5px; }
.about-body { display: flex; justify-content: space-between; align-items: flex-start; gap: 60px; }
.about-text-column { flex: 1; display: flex; flex-direction: column; padding-top: 40px; }
.about-text-top { font-size: 15px; line-height: 1.6; color: #333; max-width: 480px; margin-bottom: 80px; }
.about-text-bottom { font-size: 15px; line-height: 1.6; color: #333; max-width: 480px; align-self: flex-end; margin-right: 40px; }
.about-text-bottom strong { font-weight: 600; display: block; margin-top: 20px; color: #111; }
.about-image-column { flex: 0 0 400px; }
.about-image { width: 100%; height: 450px; background-color: #2c2c2c; background-size: cover; background-position: center; border-radius: 12px; }

/* === ПОДВАЛ === */
.site-footer { padding: 80px 0 30px; background-color: var(--color-dark); color: var(--color-white); }
.footer-container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-logo { display: inline-block; font-size: 24px; font-weight: 700; letter-spacing: 1px; margin-bottom: 20px; }
.footer-brand p { color: var(--color-text-gray); line-height: 1.6; max-width: 320px; font-size: 15px; }
.footer-links h4, .footer-contacts h4 { font-size: 18px; font-weight: 600; margin-bottom: 24px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 16px; }
.footer-links a { color: var(--color-text-gray); text-decoration: none; font-size: 15px; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--color-white); }
.footer-contacts p { color: var(--color-text-gray); font-size: 15px; margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 30px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p, .footer-bottom a { color: #666; font-size: 14px; text-decoration: none; transition: color 0.3s ease; }
.footer-bottom a:hover { color: var(--color-white); }

/* === LIGHTBOX === */
.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(15, 17, 21, 0.95); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox-img { max-width: 90%; max-height: 90vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); user-select: none; transition: transform 0.3s ease; }
.lightbox-close { position: absolute; top: 30px; right: 40px; color: var(--color-white); font-size: 50px; font-weight: 300; cursor: pointer; line-height: 1; transition: color 0.3s ease; z-index: 10000; }
.lightbox-close:hover { color: var(--color-accent); }
.lightbox-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 60px; height: 60px; border-radius: 50%; background-color: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; z-index: 10000; }
.lightbox-btn:hover { background-color: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); }
.lightbox-btn.prev { left: 40px; }
.lightbox-btn.next { right: 40px; }

/* === АДАПТИВ (ПЛАНШЕТЫ И ТЕЛЕФОНЫ) === */
@media (max-width: 1024px) {
    html { scroll-padding-top: 70px; }
    .header-nav { display: none; }
    .mobile-menu-btn { display: flex; }
    
    .header-nav.active { 
        display: flex; position: fixed; top: 0; left: 0; width: 100%; 
        height: 100vh; height: 100dvh; 
        background: rgba(15, 17, 21, 0.98); backdrop-filter: blur(15px); 
        flex-direction: column; justify-content: center; align-items: center; 
        z-index: 999; padding: 60px 20px; box-sizing: border-box; overflow: hidden;
    }
    .header-nav.active > a { font-size: 18px; margin-bottom: 20px; }
    
    .header-nav.active .mobile-phones-wrapper { display: flex; flex-direction: column; gap: 10px; margin-top: 15px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; align-items: center; width: 100%; max-width: 300px; }
    .header-nav.active .mobile-phones-wrapper a { color: var(--color-accent); font-size: 20px; font-weight: 700; text-decoration: none; margin-bottom: 0; font-variant-numeric: tabular-nums; }
    
    .mobile-nav-socials { display: flex; gap: 15px; margin: 15px 0 5px; justify-content: center; }
    
    .compare-wrapper { flex-direction: column; }
    .tech-container { flex-direction: column; gap: 40px; text-align: center; }
    .catalog-grid, .pricing-grid, .adv-grid, .colors-grid { grid-template-columns: 1fr 1fr; }
    .portfolio-card { flex: 0 0 calc(50% - 10px); }
    .about-header { flex-direction: column; gap: 20px; }
    .about-title { text-align: left; }
    .about-text-top { margin-bottom: 40px; }
    .about-text-bottom { align-self: flex-start; margin-right: 0; }
    .pricing-grid { max-width: 500px; margin: 60px auto 0; grid-template-columns: 1fr; }
    .faq-container { flex-direction: column; gap: 30px; }
    .lead-wrapper { flex-direction: column; padding: 40px; }
    .phone-mockup { height: 500px; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .customization-section, .catalog-section, .advantages-section, .portfolio-section, 
    .about-section, .pricing-section, .faq-section, .lead-section, 
    .tech-section, .colors-section, .compare-section, .anatomy-section { padding: 60px 0; }
    
    .customization-section { padding-top: 120px; }
    .header-container, .site-header.scrolled .header-container { height: 70px; }
    .header-btn, .header-contact { display: none; }
    
    .custom-title, .hero-title, .section-title, .portfolio-title, 
    .tech-title, .faq-title, .about-title, .lead-content h2 { font-size: 26px !important; margin-bottom: 30px !important; line-height: 1.3; }
    
    .colors-grid { grid-template-columns: repeat(3, 1fr); gap: 20px 10px; }
    .color-swatch { width: 50px; height: 50px; margin-bottom: 10px; }
    .color-item span { font-size: 11px; }

    .catalog-tabs { flex-direction: row; overflow-x: auto; white-space: nowrap; justify-content: flex-start; gap: 20px; padding-bottom: 10px; scrollbar-width: none; }
    .catalog-tabs::-webkit-scrollbar { display: none; }
    .tab { flex: 0 0 auto; padding: 10px 0; }
    
    .catalog-grid, .adv-grid, .pricing-grid { grid-template-columns: 1fr; }
    
    .custom-container, .hero-container { flex-direction: column; gap: 40px; }
    .custom-left, .custom-right, .hero-content, .hero-visual { flex: 0 0 100%; }
    .hero-section { height: 500px; }
    
    .portfolio-header-wrapper { display: flex; flex-direction: column; align-items: center; gap: 20px; }
    .portfolio-arrows { position: static; }
    .portfolio-card { flex: 0 0 100%; }
    
    .faq-container { flex-direction: column; gap: 20px; }
    .about-body { flex-direction: column; }
    .about-image-column { flex: auto; width: 100%; }
    
    .faq-question { font-size: 18px; }
    .faq-answer p { padding-left: 0; }
    .faq-item { padding: 20px 0; }
    
    /* ИСПРАВЛЕНИЯ МОБИЛЬНОГО ЛИД-БЛОКА (ПОЛНЫЙ ТЕЛЕФОН) */
    .lead-wrapper { padding: 40px 20px !important; border-radius: 20px; text-align: center; gap: 40px; display: flex; flex-direction: column; }
    .compare-card { padding: 30px 20px; }
    .phone-mockup {
        width: 280px;
        height: 560px;
        margin: 0 auto;
        border-radius: 35px;
        border: 10px solid #222;
    }
    
    .footer-container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
    
    .lightbox-btn { display: none; }
    .lightbox-img { max-width: 95%; }
    .lightbox-close { top: 15px; right: 20px; }
}