/* Базові стилі залишаються твоїми */

body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    background: #0b0d12;
    color: #e6e8ee;
    -webkit-user-select: none;
    user-select: none;
}

h1 {
    text-align: center;
}

h2 {
    text-align: center;
}

a {
    color: #7fb3ff;
    text-decoration: none;
    margin: 0 8px;
    font-weight: 500;
}

a:hover {
    color: #7fb3ff;
    text-decoration: none;
}

.allow-select {
    user-select: text;
}


/* Гнучкий контейнер */

.container {
    width: 92%;
    margin: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.container.narrow {
    max-width: 850px;
    padding-left: 20px;
    padding-right: 20px;
}


/* Hero секція */

.hero {
    padding: 100px 20px 60px 20px;
    text-align: center;
    background: radial-gradient(circle at top, #1a1d26, #0b0d12);
}

.badge {
    display: inline-block;
    background: #1f2430;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 18px;
    color: #9aa3b2;
    max-width: 700px;
    margin: auto;
}

.hero-buttons {
    margin-top: 30px;
}


/* Кнопки */

.primary-btn,
.secondary-btn {
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    margin-bottom: 10px;
}

.primary-btn {
    background: #5b8cff;
    color: #fff;
}

.primary-btn:hover {
    background: #7fa8ff;
    color: #fff;
    transform: translateY(-2px);
}

.secondary-btn {
    border: 1px solid #3a3f4b;
    color: #1f2430;
    background: #fff;
}

.secondary-btn:hover {
    background: #1f2430;
    transform: translateY(-2px);
    color: #fff;
}


/* Секції */

.section {
    padding: 80px 20px;
}

.section.dark {
    background: #11131a;
}

h2 {
    font-size: 32px;
    margin-bottom: 20px;
    padding-left: 10px;
    padding-right: 10px;
}

.lead {
    color: #9aa3b2;
    margin-bottom: 30px;
}


/* Key Advantages - адаптивна сітка */

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

.adv-card {
    background: #161a22;
    padding: 20px;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.adv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(91, 140, 255, 0.3);
}


/* Двоколонкові блоки Main Features */

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin: 60px 0;
}

.two-col.reverse {
    direction: rtl;
}

.two-col.reverse div {
    direction: ltr;
}


/* Зображення продукту з масштабуванням по origin */

.product-image {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-image.left {
    transform-origin: right center;
}

.product-image.right {
    transform-origin: left center;
}

.product-image.center {
    transform-origin: center center;
}

.product-image:hover {
    transform: scale(1.4);
    box-shadow: 0 12px 30px rgba(91, 140, 255, 0.35);
}


/* Розміри зображень */

.small {
    width: 300px;
}

.large {
    width: 500px;
    height: auto;
}


/* Відео */

.video-demo {
    width: 80%;
    max-width: 1100px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: block;
    margin: 20px auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-origin: center center;
}

.video-demo:hover {
    box-shadow: 0 12px 30px rgba(91, 140, 255, 0.35);
}


/* Таблиці */

.comparison {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.comparison th,
.comparison td {
    border: 1px solid #2a2f3b;
    padding: 10px;
    text-align: center;
    font-size: 14px;
}

.comparison th {
    background: #1b1f29;
}

.highlight-col {
    background: #1f2a44;
    color: white;
    font-weight: 500;
}

.highlight-col strong {
    color: #7fb3ff;
}


/* Footer */

footer {
    background: #06070a;
    padding: 40px 20px;
    text-align: center;
    color: #7c8596;
}

.feature-highlight {
    word-break: break-word;
    overflow-wrap: break-word;
    color: #7fb3ff;
    /* світлий синьо-фіолетовий */
    font-weight: 500;
    /* трохи жирніше для акценту */
}

.pages-links {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
}


/* Медіа-запити */


/* Планшети */

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 40px;
    }
    .hero-sub {
        font-size: 16px;
    }
    .two-col {
        gap: 30px;
        grid-template-columns: 1fr 1fr;
    }
    .adv-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Мобільні телефони */

@media (max-width: 768px) {
    .hero {
        padding: 80px 20px 40px 20px;
    }
    .hero h1 {
        font-size: 28px;
    }
    .hero-sub {
        font-size: 14px;
        max-width: 90%;
    }
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }
    .product-image {
        width: 90%;
    }
    .product-image:hover {
        transform: scale(1.1);
    }
    .video-demo {
        width: 100%;
    }
    /* Main Features: текст над картинкою */
    .two-col,
    .two-col.reverse {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
        margin-bottom: 40px;
        direction: ltr;
    }
    .two-col.reverse div:first-child {
        order: 1;
    }
    .two-col.reverse div:last-child {
        order: 2;
    }
    /* Key Advantages: 1 колонка на мобільних */
    .adv-grid {
        grid-template-columns: 1fr;
    }
    .comparison th,
    .comparison td {
        font-size: 12px;
        padding: 8px;
    }
    h2 {
        font-size: 24px;
    }
    .adv-card {
        padding: 15px;
    }
    .demo-request-section ul {
        padding-left: 15px;
    }
    .demo-request-section p,
    .demo-request-section ul {
        font-size: 14px;
        line-height: 1.4;
    }
    .primary-btn,
    .secondary-btn {
        width: 100%;
        text-align: center;
        padding: 12px 0;
    }
}