/* =========================
   Переменные (доповнено для глибини)
========================= */
:root {
    --primary: #007BFF;
    --primary-dark: #007940;
    --accent: #FF6B35;
    --text: #212529;
    --muted: #cacaca;
    --background: #0a0a0e;
    --background-alt: #eef1f4;
    --white: #ffffff;
    --success: #2ECC71;
    --warning: #F1C40F;
    --danger: #dc3545;
    --glass: rgba(255, 255, 255, 0.65);
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    --btn-border-light: #c8d0d8;
    --btn-gloss: linear-gradient(to top, rgba(255,255,255,0.4), transparent 70%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at 30% 20%, rgba(2, 94, 192, 0.137), transparent 70%),
        radial-gradient(circle at 80% 70%, rgba(7, 23, 247, 0.192), transparent 70%),
        #f9f9f9;
    color: #222;
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
}

h1,
h2,
h3 {
    color: var(--text);
}

/* =========================
   Бейджи
========================= */
.beta-badge {
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    background: #ff5733;
    padding: 2px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    line-height: 1;
}

/* =========================
   Кнопки — металеві з блиском
========================= */
.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: .8rem 1.2rem;
    border-radius: 12px;
    border: 1px solid var(--btn-border-light);
    background: linear-gradient(to bottom, #f8f9fa, #d3d7db);
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.25s ease;
    z-index: 0;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--btn-gloss);
    pointer-events: none;
    z-index: 1;
}

.btn-primary:hover {
    background: linear-gradient(to bottom, #ffffff, #d3d7db);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* Кнопка з заливкою (success) */
.btn-primary.solid {
    background: var(--success);
    color: #fff;
    border: none;
    box-shadow: 0 6px 16px rgba(46, 204, 113, 0.35);
}

.btn-primary.solid::before {
    opacity: 0.3;
}

.btn-primary.solid:hover {
    background: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(46, 204, 113, 0.5);
}

/* Акцентна кнопка */
.btn-accent {
    position: relative;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: .8rem 1.2rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.3);
    transition: all 0.25s ease;
}

.btn-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--btn-gloss);
    opacity: 0.4;
    pointer-events: none;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255, 107, 53, 0.45);
}

/* =========================
   Поля форм
========================= */
.form-control {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 14px 12px;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.25);
    outline: none;
}

/* =========================
   Floating labels
========================= */
.floating-label {
    position: relative;
    margin-bottom: 20px;
}

.floating-label label {
    position: absolute;
    top: 14px;
    left: 12px;
    color: var(--muted);
    font-size: 1rem;
    pointer-events: none;
    background: transparent;
    transition: 0.2s ease all;
    padding: 0 4px;
}

.floating-label input:focus+label,
.floating-label input:not(:placeholder-shown)+label,
.floating-label textarea:focus+label,
.floating-label textarea:not(:placeholder-shown)+label {
    top: -8px;
    left: 10px;
    font-size: 0.85rem;
    color: var(--primary);
    background: var(--white);
}

/* =========================
   Карточки — глибина та тінь
========================= */
.card,
.service-item,
.review-item,
#reviewFormWrapper,
.form-container {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.service-item:hover,
.review-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Універсальний ефект стекла */
.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
}

/* =========================
   Контакти
========================= */
.contact-section {
    padding: 40px 0;
}

.contact-container {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    max-width: 80%;
    gap: 20px;
    margin: 0 auto 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin: 10px 0;
    font-size: 1rem;
    line-height: 1.5;
}

.contact-item i{
    margin-right: 12px;
    color: var(--text);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.contact-item a {
    text-decoration: none;
    color: inherit;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* =========================
   Форма зворотного зв’язку
========================= */
.form-container {
    max-width: 500px;
    margin: 0 auto 40px;
    padding: 30px;
    border-radius: 12px;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.form-container form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-container button.btn-primary {
    width: 100%;
    padding: 14px 0;
    font-size: 1.05rem;
    border-radius: 12px;
}


/* =========================
   FAQ
========================= */
.faq-section {
    padding: 40px 0;
}

.faq-item {
    background: var(--white);
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    padding: 15px 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.faq-item h3 {
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
    font-size: 1.1rem;
}

.faq-item p {
    margin-top: 10px;
    display: none;
    color: var(--muted);
    font-size: 1rem;
}

.faq-item.active p {
    display: block;
}

.faq-item .arrow {
    transition: transform .3s;
}

.faq-item.active .arrow {
    transform: rotate(90deg);
}

/* =========================
   Відгуки
========================= */
.reviews-section,
.reviews {
    padding: 40px 0;
}

#reviewFormWrapper {
    max-width: 500px;
    margin: 20px auto;
    display: none;
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

#reviewFormWrapper.active {
    display: block;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.review-item {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

/* =========================
   Сервіси
========================= */
.services {
    padding: 40px 0;
}

.service-item {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    text-align: center;
    width: 250px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0 auto;
}

.service-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.service-item h3 {
    margin-bottom: 8px;
    color: var(--text);
    font-size: 1.25rem;
}

.service-item p {
    color: var(--muted);
    font-size: .9rem;
    flex-grow: 1;
}

/* =========================
   Адаптив
========================= */
@media(max-width:768px) {
    .service-item {
        width: 100%;
        min-height: auto;
        margin-bottom: 20px;
    }

    .faq-item h3,
    .faq-item p {
        font-size: 1.1rem;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 25px;
    }
}

@media(max-width:576px) {
    .section-title {
        font-size: 1.5rem;
    }

    .service-item i {
        font-size: 1.5rem;
    }

    .contact-container {
        flex-direction: column;
        padding: 15px;
    }

    .form-container {
        max-width: 100%;
        padding: 20px;
        margin: 0 10px 30px;
    }
}