:root {
    --text-color: #010f39;
    --url-color: #066da9;
    --bg: #fffff9;
    --bg-white: #fff;
    --grey-text: #525252;
    --dark-text: #242424;
    --border-grey: #e6e6e6;
    --grey-light: #f7f7f8;
    --button-copy-bg: #2e6bb5;
    --primary: #1e5731 ;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Arial", sans-serif;
    background-color: var(--bg);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

h1, h2, h3 { margin: 3px 0; }
h2 { font-size: 20px; }
h3 { font-size: 17px; }
a { color: var(--url-color); text-decoration: unset; }
img { overflow-clip-margin: content-box; overflow: clip; }

/* --- HEADER (Top Menu) --- */
#top.header {
    width: 100%;
    display: block;
    background: hsla(0, 0%, 100%, .95);
    border-bottom: 1px solid hsla(0, 0%, 88.6%, .4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: fixed;
    z-index: 1000;
    top: 0;
    height: 70px;
    padding: 20px;
}

.header .headMain {
    width: 1100px;
    margin: 0 calc(50% - 550px);
    padding: 10px 0;
    font-size: 18px;
    height: 50px;
    line-height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .headMain .logo {
    display: flex;
    align-items: center;
    font-size: 22px;
    font-weight: 800;
    position: relative;
    color: #000;
}

.header .headMain .logo img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.header .headMain .logo .updated {
    position: absolute;
    left: 60px;
    bottom: -5px;
    color: #fff;
    background: #01b001;
    font-size: 10px;
    border-radius: 5px;
    padding: 2px 4px;
    line-height: 10px;
}

.header .headMain .buttons a {
    margin-left: 20px;
    color: var(--grey-text);
    font-weight: 900;
    font-size: 16px;
}

.header .headMain .buttons .ai {
    background: #f826ff;
    color: #ff0;
    border-radius: 10px;
    padding: 2px 8px;
}

.header .headMain .right button {
    padding: 7px 20px;
    border-radius: 20px;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
    font-size: 16px;
    background: unset;
    cursor: pointer;
    transition: 0.3s;
}

.header .headMain .right button:hover {
    background: var(--primary);
    color: #fff;
}

.mobile {
    display: none;
}

/* --- TABS --- */
.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.tab-content.active {
    display: block;
    opacity: 1;
    animation: slideUp 0.5s ease forwards;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- HERO SECTION (Виправлено для ПК) --- */
.content {
    width: 100%;
    padding-top: 70px;
}

.content .header#calcs {
    width: 100%;
    min-height: 90vh;
    /* Важливо: background-size: cover, щоб фон не плив */
    background: url(../header.png);
    background-repeat: no-repeat; 
    background-size: contain; 
    background-position: center;
}

@media (max-width: 1100px) {
   .content .header#calcs {
        width: 100%;
        min-height: auto;
    }
}
    @media (max-width: 600px) {
     .content .header#calcs {
        background: unset;
    }
}

/* Стилі для ПК: Текст зліва */
.content .header .info {
    width: 43%;          /* Повертаємо оригінальну ширину */
    margin-left: 7%;     /* Повертаємо відступ зліва */
    padding-top: 150px;
    text-align: left;    /* Текст зліва */
}

.content .header .info h1 {
    font-size: 40px;
    text-transform: uppercase;
    line-height: 1.3;
}

.content .header .info h1 span {
    background: var(--primary);
    color: #fff;
    padding: 3px 10px;
    border-radius: 10px;
}

/* Кнопки на ПК теж зліва */
.content .header .buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Вирівнювання вліво */
    gap: 15px;
    margin-top: 30px;
}

.violetButton {
    border-radius: 10px;
    background: var(--primary) !important;
    color: #fff;
    border: unset;
    font-size: 18px;
    cursor: pointer;
    transition: .2s;
    padding: 12px 25px;
    box-shadow: 0 4px 15px rgba(154, 54, 220, 0.3);
}

.violetButton:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* Активна кнопка */
.calc-tabs-buttons .violetButton.active {
    background-color: #08b13d !important;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
    border: 2px solid transparent;
}


/* --- BLOCKS & FORMS --- */
.blocks {
   width: 1100px;
   margin: 30px auto;
}

.block {
    background: var(--bg-white);
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.block h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.block p {
    text-align: left;
    color: var(--grey-text);
    margin: 0 auto 20px;
    line-height: 1.6;
}

.inputs {
    max-width: 400px;
    margin: 30px auto 0;
}

.input { margin-bottom: 20px; }
.input input {
    width: 100%;
    height: 50px;
    border-radius: 10px;
    font-size: 18px;
    text-align: center;
    border: 1px solid #ddd;
    background: #f9f9f9;
}
.input .naming {
    text-align: center;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--grey-text);
}

.sex { margin-top: 20px; }
.sex .naming { text-align: center; margin-bottom: 10px; font-weight: bold; }
.sex .selecter { display: flex; background: #eee; padding: 5px; border-radius: 12px; }
.sex .selecter button {
    flex: 1;
    height: 45px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}
.sex .selecter button.selectedSex {
    background: var(--primary);
    color: #fff;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.inputs > button {
    width: 100%;
    height: 55px;
    margin-top: 25px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}
.inputs > button:hover { filter: brightness(1.1); }

/* --- PRICING --- */
.plans-pro { padding: 60px 0; background: #fdfdfd; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.plans-pro__title { text-align: center; font-size: 32px; margin-bottom: 40px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.plan {
    background: #fff; border: 1px solid #eee; border-radius: 18px; padding: 25px;
    position: relative; display: flex; flex-direction: column; transition: 0.3s;
}
.plan:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); }
.plan.highlight { border: 2px solid #d8c6ff; box-shadow: 0 10px 30px rgba(154, 54, 220, 0.15); }
.plan.premium { background: linear-gradient(180deg, #fff, #fff9ec); border: 1px solid rgba(255, 215, 0, 0.5); }
.plan .badge {
    position: absolute; top: 15px; left: 15px; padding: 5px 10px; border-radius: 20px;
    font-size: 12px; font-weight: bold; background: #f2eaff; color: var(--primary);
}
.plan .badge.green { background: #e9fbf3; color: #158f57; }
.plan .badge.premium-badge { background: linear-gradient(135deg, #ffebb3, gold); color: #5c4d00; }
.plan h3 { margin-top: 30px; font-size: 20px; text-align: center; }
.plan .price { text-align: center; margin: 15px 0; }
.plan .price .old s { color: #ccc; font-size: 18px; }
.plan .price .uah { font-size: 36px; font-weight: 800; color: #333; }
.plan .price .cur { font-size: 20px; vertical-align: top; }
.plan .features { list-style: none; margin: 20px 0; flex-grow: 1; }
.plan .features li { padding: 8px 0; border-bottom: 1px solid #f5f5f5; font-size: 14px; }
.plan .features li.gift { background: #fcfcfc; border-radius: 8px; padding: 10px; margin-top: 10px; border: 1px dashed #ddd; }
.goldButton {
    background: linear-gradient(135deg, #fc6, #ffb300); color: #4a3600; border: none;
    border-radius: 12px; padding: 15px; width: 100%; font-weight: bold; font-size: 18px;
    cursor: pointer; margin-top: auto;
}
.mini-note { text-align: center; font-size: 12px; color: #999; margin-top: 10px; }

/* --- FAQ --- */
.faq { max-width: 800px; margin: 50px auto; }
.faq__title { text-align: center; margin-bottom: 30px; }
.faq__item { margin-bottom: 10px; border: 1px solid #eee; border-radius: 12px; background: #fff; overflow: hidden; }
.faq__q {
    width: 100%; padding: 20px; display: flex; justify-content: space-between; align-items: center;
    background: none; border: none; font-weight: bold; font-size: 16px; cursor: pointer; text-align: left;
}
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq__a-inner { padding: 0 20px 20px; line-height: 1.6; color: #555; text-align: left; }
.faq__item.active .faq__q-ico { transform: rotate(180deg); }
.faq__q-ico { display: inline-block; transition: transform 0.3s ease; }

/* --- IMAGES & TAGS --- */
.photo { text-align: center; }
.photo img { max-width: 100%; height: auto; border-radius: 15px; }

.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.tag {
    width: 200px; text-align: center; padding: 20px;
    background: #fff; border-radius: 15px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.tag .img { margin-bottom: 15px; }
.tag img { width: 50px; height: 50px; }

/* --- AI BUTTON --- */
.buttonAI {
    position: fixed; right: 20px; bottom: 20px;
    background: linear-gradient(135deg, #e643ff, #9109e0); color: white;
    padding: 10px 20px; border-radius: 30px; text-decoration: none;
    font-weight: bold; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999; transition: 0.3s;
}
.buttonAI:hover { transform: scale(1.05); }

/* --- FOOTER --- */
footer {
    background: #fff; border-top: 1px solid #eee; padding: 40px 0;
    text-align: center; margin-top: 50px;
}
footer .copyright { color: #777; font-size: 14px; }
footer .logos img { height: 25px; margin-top: 15px; }


/* =========================================
   МОБІЛЬНА АДАПТАЦІЯ (ПРАВИЛЬНА)
   ========================================= */

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: hsla(0, 0%, 100%, .95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    overflow-y: auto;
}

.mobile-menu a {
    display: block;
    width: 100%;
    padding: 15px 0;
    font-size: 20px;
    color: var(--dark-text);
    font-weight: bold;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.mobile-menu .login-trigger-mobile {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

.mobile-menu.open {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* --- МЕДІА-ЗАПИТИ (Media Queries) --- */

@media (max-width: 1150px) {
    .header .headMain {
        width: 100%;
        margin: 0;
        padding: 0 20px;
    }
    
    .blocks {
        width: 100%;
        padding: 0 15px;
    }
}

@media (max-width: 900px) {
    /* ХЕДЕР: Лого зліва, Бургер справа */
    .header .headMain {
        width: 100%;
        margin: 0;
        padding: 0 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 70px;
    }

    .header .headMain .buttons,
    .header .headMain .right {
        display: none; 
    }

    /* БУРГЕР */
    .mobile {
        display: block;
        cursor: pointer;
    }
    .mobile img {
        width: 30px;
        height: auto;
        display: block;
    }

    /* ЛОГОТИП */
    .header .headMain .logo {
        font-size: 20px;
    }
    .header .headMain .logo img {
        width: 40px;
        height: 40px;
    }
    .header .headMain .logo .updated {
        left: 55px;
        bottom: 0;
    }

    /* --- ГОЛОВНИЙ ТЕКСТ (Центруємо тільки на мобільному) --- */
    .content .header .info {
        padding-top: 50px;
        width: 100%;
        margin-left: 0;
        padding-left: 15px;
        padding-right: 15px;
        text-align: center; /* Центруємо на мобільному */
    }

    .content .header .info h1 {
        font-size: 26px;
    }
    
    .content .header .buttons {
        justify-content: center; /* Кнопки по центру на мобільному */
    }

    /* БЛОКИ */
    .block {
        padding: 20px;
        margin-bottom: 20px;
    }
    .inputs {
        width: 100%;
        max-width: 100%;
    }
    .inputs .person {
        width: 100%;
    }
    .sex .selecter {
        width: 100%;
    }

    /* ТАРИФИ */
    .plan-grid {
        grid-template-columns: 1fr;
    }
    
    /* ТЕГИ */
    .tag {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* ТАБИ */
    .calc-tabs-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .violetButton {
        width: 100%;
        font-size: 16px;
    }
}