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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    scroll-behavior: smooth;
}

/* Заголовки та шрифти */
h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Вітальна сторінка */
.hero {
    position: relative;
    height: 100vh;
    background-image: url('123.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 1200px;
    padding: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInText 1.5s ease-in-out;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    animation: fadeInText 2s ease-in-out;
}

.cta-button {
    background-color: #1495D6;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
    animation: fadeInText 2.5s ease-in-out;
}

.cta-button:hover {
    background-color: #127EB5;
    transform: scale(1.05);
}

/* Анімація тексту */
@keyframes fadeInText {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Адаптивність для мобільних пристроїв */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .cta-button {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

.advantages {
    padding: 50px;
    background-color: #f2f2f2;
    text-align: center;
}

.advantages-cards {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    width: 30%;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    animation: fadeInUp 1.5s ease-in-out;
}

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

.packages {
    padding: 50px;
    text-align: center;
}

.package-cards {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.package {
    width: 30%;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.featured {
    background-color: #ffecb3;
}

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

.price {
    font-size: 2rem;
    font-weight: bold;
    color: #1495D6;
}

.discount {
    text-decoration: line-through;
    color: grey;
    font-size: 1rem;
}

.coverage {
    font-size: 1.5rem;
    color: black;
}

.package-button {
    background-color: #1495D6;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.package-button:hover {
    background-color: #127EB5;
}

.details ul {
    list-style-type: none;
    padding: 0;
}

.details li {
    font-size: 1rem;
    color: #555;
}

/* Стиль для додаткових опцій */
.additional-options {
    list-style-type: none;
    padding: 0;
    margin: 10px 0;
}

.hidden-option {
    display: none;
}

.package.expanded .hidden-option {
    display: block;
}

/* Кнопка "Show more" по центру */
.show-more {
    background: none;
    margin: 20px auto 0 auto;
    border: none;
    color: #1495D6;
    cursor: pointer;
    font-size: 1rem;
    display: block;
    text-align: center;
}

.show-more:after {
    content: "▼";
    display: inline-block;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.package.expanded .show-more:after {
    transform: rotate(180deg);
}

.show-more:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .package-cards {
        flex-direction: column;
    }

    .package {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* FAQ */
.faq {
    padding: 50px 20px;
    background-color: #ffffff;
    text-align: center;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.faq-question {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    transition: color 0.3s ease;
}

.faq-question h3 {
    margin-right: 10px;
}

.faq-question i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-answer {
    display: none;
    text-align: center;
    margin-top: 10px;
    font-size: 1.1rem;
    color: #555;
}

.faq-answer p {
    margin: 0;
}

/* Коли відповідь активна */
.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1rem;
    }

    .advantages-cards, .package-cards {
        flex-direction: column;
        align-items: center;
    }

    .card, .package {
        width: 100%;
        margin-bottom: 20px;
    }

    .cta-button {
        font-size: 1rem;
        padding: 10px 20px;
    }

    .faq {
        padding: 30px;
    }

    .faq-question h3 {
        font-size: 1rem;
    }

    .faq-answer {
        font-size: 1rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Стиль для картинок у розділі переваг та страхових пакетів */
.advantages-cards img, .package-cards img {
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Стиль для ширших зображень на головній сторінці (вітальна сторінка) */
.hero img {
    width: 100%;
    height: auto;
    max-height: 500px;
}

@media (max-width: 768px) {
    .advantages-cards img, .package-cards img {
        width: 100%;
        border-radius: 8px;
    }

    .hero img {
        max-height: 300px;
    }
}

/* Контейнер для двох пакетів */
.package-options {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    margin-bottom: 30px;
    gap: 20px;
}

.package-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    border: 2px solid #ddd;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Стиль для блоку з деталями страхування */
#insurance-summary {
    padding: 20px;
    margin-top: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

#insurance-summary h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.summary-item {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.summary-item p {
    margin: 0;
}

#insurance-cost {
    font-weight: bold;
    font-size: 2rem;
    color: #1495D6;
}

/* Футер */
.site-footer {
    background-color: #f9f9f9;
    color: #333;
    padding: 50px 0;
    text-align: left;
}

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

.footer-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-col {
    flex: 1;
    padding: 20px;
}

.footer-col h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1495D6;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
    color: #333;
}

.footer-col ul li i {
    margin-right: 10px;
}

.footer-col ul li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #1495D6;
}

.social-links a {
    display: inline-block;
    margin-right: 10px;
    color: #333;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #1495D6;
}

.footer-bottom {
    background-color: #f9f9f9;
    text-align: center;
    padding: 15px 0;
    color: #333;
}

.footer-bottom p {
    margin: 0;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .footer-row {
        flex-direction: column;
        text-align: center;
    }

    .footer-col {
        padding: 10px 0;
    }
}

.payment-icons {
    margin-top: 10px;
    text-align: center;
}

.payment-icon {
    height: 30px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

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

.payment-icon:last-child {
    margin-right: 0;
}

@media (max-width: 768px) {
    .payment-icon {
        height: 25px;
    }
}

iframe {
    width: 100%;
    height: 127vh;
    border-radius: 25px;
    border: none;
}

@media (max-width: 991px) {
    iframe {
        height: 200vh;
    }
}

@media (max-width: 768px) {
    iframe {
        height: 250vh;
    }
}

/* Страхова форма */
#insurance-form {
    margin: 50px auto;
    background-color: #f9f9f9;
    text-align: center;
    border-radius: 10px;
    width: 100%;
    max-width: 1200px;
    animation: fadeIn 1.5s ease-in-out;
}

#insurance-form .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

#insurance-form .col {
    flex: 1;
}

#insurance-form h2 {
    text-align: center;
}
