/* Reset & Base Styles */
/* Добавить в начало файла styles.css */

/* iOS/Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }
    
    /* Исправление 100vh на iOS */
    .modal {
        height: 100vh;
        height: -webkit-fill-available;
    }
}

/* Предотвращение увеличения шрифта на iOS */
input, textarea, select {
    font-size: 16px !important;
    -webkit-text-size-adjust: 100%;
}

/* Улучшения для тач-интерфейса */
button, .btn, .floating-btn, a {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    touch-action: manipulation;
}

/* Улучшения для маленьких экранов */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }
    
    .hero-text h1 {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .hero-text .subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .hero-text .description {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
        padding: 16px 24px;
        font-size: 15px;
    }
    
    .feature-item {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 25px;
    }
    
    .feature-icon {
        margin-bottom: 10px;
    }
    
    .features-list .feature-text h4 {
        font-size: 16px;
    }
    
    .features-list .feature-text p {
        font-size: 14px;
    }
    
    /* Блок сбалансированного комплекса */
    .complex-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .complex-item {
        padding: 20px !important;
        margin-bottom: 15px;
    }
    
    .complex-icon {
        width: 60px !important;
        height: 60px !important;
        margin: 0 auto 15px !important;
    }
    
    .complex-icon i {
        font-size: 24px !important;
    }
    
    .complex-info {
        padding: 20px !important;
        margin-top: 40px !important;
    }
    
    .complex-info > div {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .complex-info h3 {
        font-size: 20px;
        text-align: center;
    }
    
    /* График синергии */
    .complex-info > div > div:nth-child(2) {
        order: -1;
    }
    
    .complex-info .text-center {
        margin-top: 30px !important;
    }
    
    /* Модальные окна */
    .modal-content {
        padding: 25px 20px;
        margin: 10px;
        border-radius: 12px;
    }
    
    .modal-title {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .form-control {
        font-size: 16px !important; /* Важно для iOS */
        padding: 14px 12px;
    }
    
    /* Секция заказа */
    #order .text-center > div {
        padding: 25px 20px !important;
    }
    
    #order .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Футер */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-contact {
        text-align: center;
    }
    
    /* Плавающие кнопки */
    .floating-buttons {
        bottom: 15px;
        right: 15px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    /* Заголовки секций */
    .section-title h2 {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .section-title p {
        font-size: 16px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    /* Инновационная секция */
    .innovation-content {
        gap: 30px;
    }
    
    .innovation-text h2 {
        font-size: 24px;
    }
    
    .innovation-text p {
        font-size: 16px;
    }
    
    /* Слоган */
    .slogan h2 {
        font-size: 22px;
        line-height: 1.4;
    }
    
    .slogan {
        padding: 40px 0;
    }
    
    /* Карточки фич */
    .feature-card {
        padding: 30px 20px;
    }
    
    .feature-card h3 {
        font-size: 20px;
    }
    
    .feature-card p {
        font-size: 15px;
    }
}

/* Для очень маленьких экранов (iPhone 5/SE) */
@media (max-width: 320px) {
    .hero-text h1 {
        font-size: 24px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .phone {
        font-size: 16px;
    }
    
    .complex-item h3 {
        font-size: 18px;
    }
}

/* Горизонтальная ориентация на мобильных */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 50px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .modal-content {
        max-height: 80vh;
        overflow-y: auto;
    }
}

/* Предотвращение "прыжков" при фокусе на iOS */
@media (max-width: 768px) {
    body {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Фикс для фиксированных элементов на iOS */
    .header {
        position: fixed;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    /* Улучшение читаемости текста на мобильных */
    body, p, .description {
        line-height: 1.6;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Специальные правки для Android Chrome */
@media (-webkit-device-pixel-ratio: 1.5) {
    .btn, .feature-card, .complex-item {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* Исправление для модальных окон на мобильных */
.modal-content {
    -webkit-overflow-scrolling: touch;
}

/* Улучшение формы на мобильных */
.form-control {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 8px;
}

/* Убираем синий фон при клике на ссылки в iOS */
a {
    -webkit-tap-highlight-color: transparent;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: #002c58;
    color: white;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-align: center;
}

.btn:hover {
    background-color: #004080;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 44, 88, 0.2);
}

.btn-secondary {
    background-color: #00b3bb;
}

.btn-secondary:hover {
    background-color: #0099a0;
}

.btn-small {
    padding: 10px 24px;
    font-size: 12px;
}

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

.highlight {
    color: #00b3bb;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
}

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

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #002c58;
}

.logo span {
    color: #00b3bb;
}

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

.phone {
    font-size: 18px;
    font-weight: 600;
    color: #002c58;
    margin-bottom: 5px;
}

.phone i {
    color: #00b3bb;
    margin-right: 8px;
}

.address {
    font-size: 12px;
    color: #666;
}

/* Hero Section */
.hero {
    padding-top: 150px;
    padding-bottom: 100px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
}

.hero-bg-elements div {
    position: absolute;
    background-color: #00b3bb;
    border-radius: 50%;
    opacity: 0.1;
}

.hero-bg-elements .circle-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -100px;
}

.hero-bg-elements .circle-2 {
    width: 200px;
    height: 200px;
    bottom: 50px;
    left: -50px;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #002c58;
}

.hero-text .subtitle {
    font-size: 20px;
    color: #00b3bb;
    margin-bottom: 30px;
    font-weight: 500;
}

.hero-text .description {
    font-size: 18px;
    margin-bottom: 40px;
    color: #555;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image img {
    border-radius: 0;
    box-shadow: none;
    border: none;
    background: transparent;
}

.product-image {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.features-list {
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.feature-icon {
    background-color: #00b3bb;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #002c58;
}

/* Slogan Section */
.slogan {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.slogan h2 {
    font-size: 36px;
    color: #002c58;
    margin-bottom: 20px;
}

/* Features Grid */
.features {
    background-color: white;
}

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

.section-title h2 {
    font-size: 36px;
    color: #002c58;
    margin-bottom: 15px;
}

.section-title p {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background-color: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-card-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(0, 179, 187, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: #00b3bb;
    font-size: 32px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #002c58;
}

.feature-card p {
    color: #666;
    font-size: 16px;
}

/* Innovation Section */
.innovation {
    background-color: #f8f9fa;
}

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

.innovation-text h2 {
    font-size: 36px;
    color: #002c58;
    margin-bottom: 20px;
}

.innovation-text p {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.7;
}

.innovation-image img {
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Instruction Section */
.instruction {
    background-color: white;
}

.instruction-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.instruction-content h2 {
    font-size: 36px;
    color: #002c58;
    margin-bottom: 40px;
}

.instruction-embed {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

/* Footer */
.footer {
    background-color: #002c58;
    color: white;
    padding: 60px 0 30px;
}

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

.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
}

.footer-logo span {
    color: #00b3bb;
}

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

.footer-contact .phone {
    color: white;
    margin-bottom: 10px;
}

.footer-contact .address {
    color: rgba(255, 255, 255, 0.7);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #00b3bb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 179, 187, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.floating-btn:hover {
    background-color: #0099a0;
    transform: scale(1.1);
}

.floating-btn.chat {
    background-color: #002c58;
}

.floating-btn.chat:hover {
    background-color: #004080;
}

.back-to-top {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content, .innovation-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-text h1 {
        font-size: 40px;
    }
    
    .section-title h2, .innovation-text h2, .instruction-content h2 {
        font-size: 32px;
    }
    
    .hero {
        padding-top: 130px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .contact-info {
        align-items: center;
    }
    
    .hero-text h1 {
        font-size: 32px;
    }
    
    .hero-text .subtitle {
        font-size: 18px;
    }
    
    .hero-text .description {
        font-size: 16px;
    }
    
    .section-title h2, .innovation-text h2, .instruction-content h2 {
        font-size: 28px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-contact {
        text-align: center;
    }
    
    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-text h1 {
        font-size: 28px;
    }
    
    .slogan h2 {
        font-size: 28px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background-color: white;
    border-radius: 15px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal-title {
    font-size: 24px;
    color: #002c58;
    margin-bottom: 20px;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #00b3bb;
}

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

.form-submit {
    width: 100%;
    margin-top: 10px;
}

.modal-info {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #666;
}
/* Стили для блока Сбалансированный комплекс */
.complex-item {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.complex-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #00b3bb;
}

.complex-item:hover .complex-icon {
    transform: scale(1.1);
}

.complex-icon {
    transition: all 0.3s ease;
}

/* Добавить к существующим стилям кнопок */
.btn-tertiary {
    background-color: #9b59b6;
}

.btn-tertiary:hover {
    background-color: #8e44ad;
}

/* Новая секция для Дипджект 5в1 */
.section.deepject-5in1 {
    background: linear-gradient(135deg, #f9f3ff 0%, #f0e6ff 100%);
    position: relative;
    overflow: hidden;
}

/* Добавить в конец styles.css */

/* Секция Дипджект 5в1 */
.section.deepject-5in1 {
    background: linear-gradient(135deg, #f9f3ff 0%, #f0e6ff 100%);
    position: relative;
    overflow: hidden;
}

.section-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.1;
}

.section-bg-elements .circle-3 {
    position: absolute;
    width: 200px;
    height: 200px;
    background: #9b59b6;
    border-radius: 50%;
    top: -100px;
    right: -50px;
}

.section-bg-elements .circle-4 {
    position: absolute;
    width: 150px;
    height: 150px;
    background: #3498db;
    border-radius: 50%;
    bottom: -75px;
    left: -50px;
}

.product-5in1-content {
    position: relative;
    z-index: 1;
}

.product-5in1-intro {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 50px;
}

.benefits-list {
    margin-top: 30px;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.component-card {
    background: white;
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.component-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: #9b59b6;
}

.component-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 28px;
}

.component-card h4 {
    color: #002c58;
    margin-bottom: 10px;
    font-size: 18px;
}

.component-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Сравнительная таблица */
.comparison-table {
    margin-top: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.comparison-table table {
    background: white;
}

.comparison-table th {
    font-weight: 600;
    font-size: 18px;
}

.comparison-table td {
    color: #555;
}

/* Мобильная адаптация для новой секции */
@media (max-width: 992px) {
    .product-5in1-intro {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-5in1-logo {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .components-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .comparison-table {
        margin: 0 -20px;
        width: calc(100% + 40px);
    }
    
    .cta-section .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .components-grid {
        grid-template-columns: 1fr;
    }
    
    .product-info > div {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
    }
    
    .benefit-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .complex-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .complex-info {
        padding: 20px;
    }
    
    .complex-info > div {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ===== Responsive improvements (added) ===== */
:root{
  --container-pad: clamp(14px, 4vw, 20px);
  --radius-card: 15px;
}

/* safer container paddings across devices + notch */
.container{
  padding-left: max(var(--container-pad), env(safe-area-inset-left));
  padding-right: max(var(--container-pad), env(safe-area-inset-right));
}

/* prevent any accidental horizontal scroll */
html, body{ max-width: 100%; overflow-x: hidden; }

/* fluid typography */
.hero-text h1{ font-size: clamp(28px, 4.5vw, 48px); }
.section-title h2,
.innovation-text h2,
.instruction-content h2{ font-size: clamp(24px, 3.5vw, 36px); }
.slogan h2{ font-size: clamp(22px, 3.2vw, 36px); }

/* header: better wrapping on narrow widths */
.header-content{ gap: 14px; }
.address{ max-width: 520px; text-wrap: balance; }

/* hero: ensure image never overflows and centers on mobile */
.hero-image{ display:flex; justify-content:center; }
.hero-image .product-image{ max-width: min(520px, 100%); }

/* new CTA under hero buttons */
.hero-extra-cta{ margin-top: 16px; }
.hero-extra-cta .btn{ width: auto; }

/* tables: make scrolling feel native on touch devices */
.comparison-table{ -webkit-overflow-scrolling: touch; }
.comparison-table table{ width: 100%; }

/* touch targets */
.btn, .floating-btn, .modal-close{ touch-action: manipulation; }

/* improve grids on mid screens */
@media (max-width: 1100px){
  .features-grid{ gap: 26px; }
  .hero-content{ gap: 40px; }
}

/* improve layout around 900px */
@media (max-width: 900px){
  .hero{ padding-top: 120px; padding-bottom: 70px; }
  .hero-content{ gap: 34px; }
  .hero-buttons{ gap: 12px; }
}

/* mobile-first improvements */
@media (max-width: 600px){
  .header{ padding: 12px 0; }
  .phone{ font-size: 16px; }
  .address{ font-size: 11px; line-height: 1.35; }
  .feature-item{ gap: 10px; }
  .feature-text h4{ font-size: 16px; }
  .feature-card{ border-radius: var(--radius-card); }
  .modal{ padding: 14px; }
  .modal-content{ padding: 22px 18px; }
}

/* very small devices */
@media (max-width: 360px){
  .logo{ font-size: 20px; }
  .btn{ padding: 14px 18px; font-size: 13px; }
  .floating-buttons{ bottom: 12px; right: 12px; }
}

/* landscape phones: prevent hero from feeling cramped */
@media (max-height: 420px) and (orientation: landscape){
  .hero{ padding-top: 95px; padding-bottom: 45px; }
}



/* Keep natural width on desktop, but align nicely */
.hero-extra-cta .btn{
  width: auto;
}
/* On mobile, match hero-buttons behavior: full-width and centered */
@media (max-width: 600px){
  .hero-extra-cta{ width: 100%; }
  .hero-extra-cta .btn{
    width: 100%;
    max-width: 520px; /* same visual feel as centered buttons */
    text-align:center;
  }
}


/* ===== Fix v2: 'Новинка! Дипджект 5в1' button alignment ===== */
.hero-extra-cta{
  margin-top:16px;
  width:100%;
  text-align:left; /* align with hero buttons on desktop */
}
.hero-extra-cta .btn{
  display:inline-block;
  width:auto;
}

/* On mobile: center + full width like other buttons */
@media (max-width: 600px){
  .hero-extra-cta{
    text-align:center;
  }
  .hero-extra-cta .btn{
    width:100%;
    max-width:520px;
    text-align:center;
  }
}




/* ===== Mobile tweak v2: lower & shift product image left ===== */
@media (max-width: 600px){
  .hero-image .product-image{
    margin-top: 45px;     /* lower a bit more */
    margin-left: -45px;  /* shift slightly left */
  }
}


/* === Privacy & consent additions (2026-01-31) === */
.footer-links{
  margin-top:12px;
  text-align:center;
  font-size:14px;
}
.footer-link{
  color:#00b3bb;
  text-decoration:none;
  font-weight:500;
}
.footer-link:hover{
  text-decoration:underline;
}
.footer-sep{
  margin:0 8px;
  color:rgba(255,255,255,0.6);
}

.form-consent{
  margin-top:10px;
}
.consent-label{
  display:flex;
  gap:10px;
  align-items:flex-start;
  font-size:12px;
  line-height:1.4;
  color:#666;
  cursor:pointer;
}
.consent-label input{
  margin-top:2px;
}
.consent-label a{
  color:#00b3bb;
  text-decoration:none;
}
.consent-label a:hover{
  text-decoration:underline;
}
