 /* =========================================
  *  Скидання стилів для кросбраузерності
  = *======================================== */
 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 /* =========================================
  *  Змінні CSS
  = *======================================== */
 :root {
     --primary-color: rgb(40, 53, 91); /* Темно-синій */
     --secondary-color: #00a8e8;       /* Блакитний */
     --accent-color: #00a672;         /* Бірюзовий */
     --dark-gray: #2f3030;
     --light-gray: #f0f0f0;
     --font-family-heading: 'Montserrat', sans-serif;
     --font-family-body: 'Open Sans', sans-serif;
 }

 /* =========================================
  *  Загальні стилі
  = *======================================== */
 body {
     font-family: var(--font-family-body);
     line-height: 1.6;
     color: var(--dark-gray);
     background: var(--light-gray);
 }

 /* =========================================
  *  Шапка (Header)
  = *======================================== */
 header {
     background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
     color: #fff;
     text-align: center;
     padding: 3rem 1.25rem;
 }

 header h1 {
     font-family: var(--font-family-heading);
     font-size: 2.5rem;
     margin-bottom: 0.625rem;
     font-weight: 700;
 }

 header p {
     font-size: 1rem;
 }

 /* =========================================
  *  Основний контент (Main)
  = *======================================== */
 main {
     padding: 1.25rem;
     max-width: 75rem;
     margin: auto;
 }

 .intro {
     max-width: 850px;
     margin: 0 auto 50px auto;
     padding: 0 20px;
 }

 .intro p {
     font-size: 1.1rem;
     line-height: 1.8;
     color: #4a4a4a;
     text-align: center;
 }

 /* Загальні стилі для секцій */
 .features,
.how-it-works,
.benefits,
.call-to-action,
.conclusion,
.options {
    margin-bottom: 50px;
    text-align: center;
}

.features h2,
.how-it-works h2,
.benefits h2,
.options h2,
.call-to-action h2,
.conclusion h2 {
    font-family: var(--font-family-heading);
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 700;
}

/* =========================================
 *  Картки (Cards)
 = *======================================== */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* 4 картки в ряд на десктопі */
.card {
    position: relative;
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    flex: 1 1 calc(25% - 20px);
    max-width: calc(25% - 20px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    opacity: 0;
    transform: translateY(1rem);
    animation: fadeInUp 0.6s forwards;
}

.card:nth-child(1) {
    animation-delay: 0.2s;
}

.card:nth-child(2) {
    animation-delay: 0.4s;
}

.card:nth-child(3) {
    animation-delay: 0.6s;
}
.card:nth-child(4) {
    animation-delay: 0.8s;
}

.card-content {
    position: relative;
    z-index: 1;
    padding: 20px;
}

.card i {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    transition: color 0.3s ease;
    display: block;
    text-align: center;
}

.card h3 {
    font-family: var(--font-family-heading);
    color: var(--dark-gray);
    margin-bottom: 10px;
    font-weight: 600;
    transition: color 0.3s ease;
    text-align: center;
}

.card p,
.card ul {
    font-family: var(--font-family-body);
    color: #4a4a4a;
    font-weight: 400;
    line-height: 1.6;
    transition: color 0.3s ease;
    text-align: left;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Блоки опцій (option-card) */
.options-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 50px;
}

.option-card {
    flex: 1 1 calc(60% - 20px);
    min-width: 280px;
    max-width: 700px;
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.option-card i {
    font-size: 2.2rem;
    color: #D5383D;
    margin-bottom: 15px;
}

.option-card h3 {
    font-family: var(--font-family-heading);
    color: var(--dark-gray);
    margin-bottom: 10px;
    font-weight: 600;
}

.option-card p {
    font-family: var(--font-family-body);
    color: #4a4a4a;
    font-weight: 400;
    line-height: 1.6;
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(0, 168, 232, 0.2), transparent);
    transform: skewX(-45deg);
    transition: all 0.5s ease;
}

.option-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.option-card:hover::before {
    left: 100%;
}

/* Як це працює */
.how-it-works ol {
    list-style: none;
    counter-reset: step-counter;
    max-width: 800px;
    margin: 0 auto;
}

.how-it-works li {
    position: relative;
    padding-left: 70px;
    margin-bottom: 30px;
    text-align: left;
}

.how-it-works li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    background: var(--accent-color);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.how-it-works h3 {
    font-family: var(--font-family-heading);
    font-size: 1.5rem;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.how-it-works p {
    font-size: 1rem;
    color: #4a4a4a;
}

/* Переваги (benefits) */
.benefits-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.benefits-list li {
    flex: 1 1 calc(25% - 20px);
    min-width: 200px;
    max-width: 250px;
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefits-list li i {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.benefits-list li h3 {
    font-family: var(--font-family-heading);
    color: var(--dark-gray);
    margin-bottom: 10px;
    font-weight: 600;
}

.benefits-list li p {
    font-family: var(--font-family-body);
    color: #4a4a4a;
    font-weight: 400;
    line-height: 1.6;
}

.benefits-list li:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Стилі для кнопки */
.submit-btn {
    display: block;    /* Щоб margin: 0 auto працювало */
    margin: 0 auto;    /* Центруємо кнопку по горизонталі */
    background: var(--accent-color);
    color: #fff;
    font-size: 1.1rem; /* Збільшуємо розмір шрифту */
    font-weight: 600;
    padding: 15px 30px; /* Більші відступи */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #009760; /* Ефект наведення */
}

/* Заклик до дії (call-to-action) */
.call-to-action p {
    font-size: 1.1rem;
    color: #4a4a4a;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(1rem);
    animation: fadeInUp 0.6s forwards;
    animation-delay: 3s;
}

/* Висновок (conclusion) */
.conclusion h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-family: var(--font-family-heading);
    font-weight: 700;
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 30px;
}

/* Адаптивність (Responsive) */
@media (max-width: 992px) {
    .card {
        flex: 1 1 calc(50% - 20px); /* 2 картки в ряд */
        max-width: calc(50% - 20px);
    }
    .benefits-list li {
        flex: 1 1 calc(50% - 20px); /* 2 елементи в ряд */
        max-width: calc(50% - 20px);
    }
    .how-it-works li {
        padding-left: 60px;
    }
    .how-it-works li::before {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        left: 0;
    }
}

@media (max-width: 768px) {
    .card {
        flex: 1 1 100%; /* 1 картка в ряд */
        max-width: 100%;
    }
    .benefits-list li {
        flex: 1 1 100%; /* 1 елемент в ряд */
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .call-to-action li {
        flex-direction: column;
        align-items: flex-start;
    }
    .call-to-action li i {
        margin-bottom: 5px;
    }
}

/* Нижній колонтитул (footer) */
footer {
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 10px 0;
    margin-top: 50px;
}

footer a {
    font-family: var(--font-family-heading);
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
}

footer a:hover {
    text-decoration: underline;
}

/* Плавне прокручування */
html {
    scroll-behavior: smooth;
}

/* Анімації */
.card,
.benefits-list li,
.how-it-works li,
.call-to-action h2,
.conclusion h2 {
    opacity: 0;
    transform: translateY(1rem);
    animation: fadeInUp 0.6s forwards;
}

.card:nth-child(1),
.benefits-list li:nth-child(1),
.how-it-works li:nth-child(1) {
    animation-delay: 0.2s;
}

.card:nth-child(2),
.benefits-list li:nth-child(2),
.how-it-works li:nth-child(2) {
    animation-delay: 0.4s;
}

.card:nth-child(3),
.benefits-list li:nth-child(3),
.how-it-works li:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Атрибути доступності для іконок */
.fa-cogs,
.fa-boxes-stacked,
.fa-shield-halved,
.fa-thumbs-up,
.fa-wifi,
.fa-music,
.fa-bolt,
.fa-network-wired,
.fa-screwdriver-wrench,
.fa-check-circle,
.fa-calculator,
.fa-headset,
.fa-rocket {
    aria-hidden: true;
    focusable: false;
}
