:root {
    /* Сучасна кольорова палітра */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #06b6d4;
    --secondary-dark: #0891b2;
    --accent: #ec4899;
    --accent-dark: #db2777;

    /* Градієнти */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-hero: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(139, 92, 246, 0.8) 50%, rgba(236, 72, 153, 0.7) 100%);

    /* Текст */
    --text: #0f172a;
    --text-light: #64748b;
    --text-muted: #94a3b8;

    /* Фон */
    --bg: #f8fafc;
    --bg-light: #ffffff;
    --bg-dark: #0f172a;
    --white: #ffffff;

    /* Ефекти */
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: linear-gradient(to bottom, var(--bg) 0%, var(--white) 100%);
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Typography Helpers */
.text-primary {
    color: var(--primary);
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(-1px);
}

.btn--primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.btn--primary:hover {
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn--secondary {
    background: var(--gradient-secondary);
    color: var(--white);
}

.btn--secondary:hover {
    box-shadow: var(--shadow-lg);
}

.btn--full {
    width: 100%;
}

.btn--sm {
    padding: 10px 20px;
    font-size: 0.9rem;
    min-width: 120px;
}

@media (max-width: 767px) {
    .btn--sm {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
        min-width: auto;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    padding: 15px 0;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: visible;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    overflow: visible;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    text-decoration: none;
    overflow: visible;
}

.logo__text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    display: inline-block;
}

.logo__img {
    height: 50px;
    width: auto;
    display: block;
    transition: var(--transition);
    object-fit: contain;
    flex-shrink: 0;
}

.logo:hover {
    transform: scale(1.05);
}

.logo:hover .logo__img {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.footer__logo {
    margin-bottom: 15px;
    display: inline-block;
    overflow: visible;
}

.footer__logo .logo__img {
    height: 45px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.nav__list {
    display: none;
    /* Mobile First: hidden */
    gap: 30px;
}

.nav__link {
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link:hover {
    color: var(--primary);
}

/* Burger */
.burger {
    cursor: pointer;
    display: block;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text);
    position: absolute;
    transition: var(--transition);
}

.burger span:nth-child(1) {
    top: 0;
}

.burger span:nth-child(2) {
    top: 9px;
}

.burger span:nth-child(3) {
    bottom: 0;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 9px;
}

/* Mobile Nav Overlay */
.nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 20px;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 20px;
}

.nav.active {
    right: 0;
}

.nav__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.nav__link {
    font-size: 1.1rem;
    font-weight: 500;
    display: block;
    color: var(--text);
}

.nav__btn {
    margin-top: 20px;
}

@media (min-width: 768px) {
    .nav__btn {
        margin-top: 0;
    }
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 60px;
}

.hero__bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero__bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: -1;
}

.hero__content {
    z-index: 1;
    max-width: 800px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.badge {
    display: inline-block;
    background: var(--gradient-secondary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.hero__title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero__subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero__cta-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.hero__note {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 10px;
}

/* Sections */
.section {
    padding: 80px 0;
    position: relative;
    display: block;
    visibility: visible;
    opacity: 1;
}

.section--light {
    background: linear-gradient(to bottom, var(--white) 0%, var(--bg) 100%);
}

.section__header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section__title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text);
}

.section__desc {
    color: var(--text-light);
}

/* Cards & Grids */
.grid {
    display: grid;
    gap: 30px;
}

.grid--3 {
    grid-template-columns: 1fr;
}

.grid--2 {
    grid-template-columns: 1fr;
}

.card {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 102, 241, 0.3);
}

.card__icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.card__title {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.card__text {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Reviews Carousel */
.reviews-carousel {
    margin-top: 50px;
    position: relative;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.reviews-track {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    width: 100%;
    min-height: 400px;
}

.review-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s ease;
    border-left: 4px solid;
    border-image: var(--gradient-primary) 1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(50px) scale(0.95);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    visibility: hidden;
    z-index: 1;
}

.review-card.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: all;
    visibility: visible;
    z-index: 2;
    position: relative;
}

/* Fallback: якщо JavaScript не завантажився, показуємо перший відгук */
.reviews-track:not(.js-enabled) .review-card:first-child {
    position: relative;
    opacity: 1;
    transform: translateX(0) scale(1);
    visibility: visible;
    z-index: 2;
}

.review-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    padding: 4px;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    border: 2px solid var(--white);
}

.review-stars {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.review-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 25px;
    font-style: italic;
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.review-author {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    width: 100%;
}

.review-author strong {
    color: var(--primary);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

.review-author span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.reviews-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.review-btn {
    background: var(--white);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary);
}

.review-btn:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--white);
    transform: scale(1.1);
}

.review-btn:active {
    transform: scale(0.95);
}

.review-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.review-btn:disabled:hover {
    background: var(--white);
    border-color: rgba(99, 102, 241, 0.2);
    color: var(--primary);
    transform: none;
}

.reviews-dots {
    display: flex;
    gap: 10px;
    align-items: center;
}

.review-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.3);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    padding: 0;
}

.review-dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

.review-dot:hover {
    background: var(--primary-light);
    transform: scale(1.2);
}

/* Features Images */
.features-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
}

.feature-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 300px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.feature-item:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.feature-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.feature-item:hover img {
    transform: scale(1.05);
}

.feature-item__content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.7) 50%, transparent 100%);
    color: var(--white);
    padding: 25px;
}

.feature-item__content h3 {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

/* Contact Form */
.contact-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: var(--transition);
}

.contact-wrapper:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.contact-info {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 40px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-info h2,
.contact-info p,
.contact-info ul {
    position: relative;
    z-index: 2;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: 1;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.contact-list {
    margin-top: 20px;
}

.contact-list li {
    margin-bottom: 20px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: var(--white);
    flex-shrink: 0;
    opacity: 0.9;
    transition: var(--transition);
}

.contact-list li:hover .contact-icon {
    opacity: 1;
    transform: scale(1.1);
}

.contact-list a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.9;
    font-size: 1.05rem;
}

.contact-list a:hover {
    opacity: 1;
    text-decoration: underline;
    transform: translateX(3px);
}

.contact-form {
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.form-note {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 15px;
}

/* Капча */
.form-group--captcha {
    background: rgba(99, 102, 241, 0.05);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.captcha-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--text);
    font-size: 0.95rem;
}

.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.captcha-question {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius);
    border: 2px solid var(--primary);
    min-width: 100px;
    text-align: center;
    flex-shrink: 0;
}

.captcha-input {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
}

@media (max-width: 480px) {
    .captcha-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .captcha-question {
        width: 100%;
    }
    
    .captcha-input {
        max-width: 100%;
    }
}

/* Footer */
.footer {
    background: #1e293b;
    color: #fff;
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
    display: block;
    visibility: visible;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__col {
    display: flex;
    flex-direction: column;
}

.footer__col--logo {
    margin-bottom: 20px;
}

.footer__logo {
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer__logo .logo__img {
    height: 40px;
    width: auto;
}

.footer__logo .logo__text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: inline-block;
}

.footer__description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 10px;
    max-width: 300px;
}

.footer__col h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
}

.footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__links li {
    margin-bottom: 12px;
}

.footer__links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
    display: inline-block;
}

.footer__links a:hover {
    color: #fff;
    transform: translateX(3px);
}

.footer__contacts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__contacts li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.footer-icon {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
    margin-top: 2px;
    transition: var(--transition);
}

.footer__contacts li:hover .footer-icon {
    color: #fff;
    transform: scale(1.1);
}

.footer__contacts a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer__contacts a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer__contacts span {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.footer__bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid;
    border-image: var(--gradient-primary) 1;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-content p {
    flex: 1;
    min-width: 200px;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-content .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.open {
    opacity: 1;
    visibility: visible;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.modal__content {
    background: var(--white);
    padding: 40px;
    width: 90%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: var(--transition);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.modal.open .modal__content {
    transform: translateY(0) scale(1);
}

.modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(99, 102, 241, 0.1);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text);
}

.modal__close:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: rotate(90deg);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.modal__content--scroll {
    max-height: 80vh;
    overflow-y: auto;
}

.policy-content {
    margin-top: 20px;
    line-height: 1.8;
    color: var(--text);
}

.policy-content h4 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 600;
}

.policy-content p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.policy-content ul,
.policy-content ol {
    margin: 15px 0;
    padding-left: 25px;
    color: var(--text-light);
}

.policy-content li {
    margin-bottom: 10px;
    list-style-type: disc;
}

.policy-content ol li {
    list-style-type: decimal;
}

.policy-content a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.policy-content a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.policy-content strong {
    color: var(--text);
    font-weight: 600;
}

/* Responsive Breakpoints */
@media (min-width: 768px) {
    .grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer__col--logo {
        margin-bottom: 0;
    }
    
    /* Cookie Popup для планшетів */
    .cookie-popup {
        padding: 18px 20px;
    }
    
    .cookie-content {
        flex-wrap: nowrap;
        gap: 20px;
    }
    
    .cookie-content p {
        font-size: 0.95rem;
        flex: 1;
    }
    
    .cookie-content .btn {
        width: auto;
        min-width: 140px;
        flex-shrink: 0;
    }

    .nav {
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        background: transparent;
        flex-direction: row;
        box-shadow: none;
        align-items: center;
    }

    .nav__list {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: auto;
    }

    .nav__btn {
        margin-left: 20px;
    }

    .burger {
        display: none;
    }

    .hero__title {
        font-size: 3rem;
    }
    
    .hero__subtitle {
        font-size: 1.15rem;
    }
    
    .section__title {
        font-size: 2.25rem;
    }
    
    .section__subtitle {
        font-size: 1.1rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr 1.5fr;
    }
}

@media (min-width: 1024px) {
    .grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid--2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
    
    .footer__col--logo {
        margin-bottom: 0;
    }

    .contact-wrapper {
        grid-template-columns: 1fr 2fr;
    }
    
    .reviews-carousel {
        max-width: 1000px;
    }
    
    .review-card {
        padding: 50px;
    }
    
    /* Cookie Popup для десктопу */
    .cookie-content {
        gap: 30px;
    }
    
    .cookie-content p {
        font-size: 1rem;
    }
    
    .cookie-content .btn {
        min-width: 160px;
    }
    
    .hero__title {
        font-size: 3.5rem;
    }
    
    .section__title {
        font-size: 2.5rem;
    }
}

/* Дуже маленькі екрани */
@media (max-width: 480px) {
    .hero__title {
        font-size: 1.75rem;
    }
    
    .hero__subtitle {
        font-size: 0.95rem;
    }
    
    .section__title {
        font-size: 1.5rem;
    }
    
    .card__title {
        font-size: 1.2rem;
    }
    
    .cookie-content p {
        font-size: 0.8rem;
    }
    
    .cookie-content .btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    .modal__content {
        padding: 25px 15px;
        width: 98%;
    }
    
    .review-card {
        padding: 25px 15px;
    }
    
    .review-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 767px) {
    /* Header */
    .header {
        padding: 15px 0;
    }
    
    .header__container {
        padding: 0 15px;
    }
    
    .logo__img {
        height: 40px;
    }
    
    .logo__text {
        font-size: 1.2rem;
    }
    
    /* Hero секція */
    .hero {
        padding: 80px 0 60px;
        min-height: auto;
    }
    
    .hero__content {
        padding: 0 15px;
    }
    
    .hero__title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero__subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .hero__cta-group {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    
    .hero__cta-group .btn {
        width: 100%;
        justify-content: center;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 5px 12px;
    }
    
    /* Sections */
    .section {
        padding: 50px 0;
    }
    
    .section__container {
        padding: 0 15px;
    }
    
    .section__title {
        font-size: 1.75rem;
        margin-bottom: 15px;
    }
    
    .section__subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
    
    /* Cards */
    .card {
        padding: 25px 20px;
    }
    
    .card__title {
        font-size: 1.3rem;
    }
    
    .card__text {
        font-size: 0.9rem;
    }
    
    /* Features */
    .features-grid {
        gap: 25px;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
    
    .feature-card__img {
        height: 200px;
        margin-bottom: 20px;
    }
    
    /* Reviews */
    .review-card {
        padding: 30px 20px;
    }
    
    .review-avatar {
        width: 60px;
        height: 60px;
        padding: 3px;
        margin-bottom: 15px;
    }
    
    .review-avatar img {
        border-width: 1.5px;
    }
    
    .review-text {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .review-author {
        font-size: 0.9rem;
    }
    
    .review-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .reviews-controls {
        gap: 15px;
    }
    
    .review-dot {
        width: 8px;
        height: 8px;
    }
    
    /* Contact form */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info {
        padding: 30px 20px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .captcha-group {
        padding: 15px;
    }
    
    .captcha-question {
        font-size: 0.9rem;
    }
    
    .captcha-input {
        padding: 10px 15px;
        font-size: 0.95rem;
    }
    
    /* Footer */
    .footer {
        padding: 50px 0 30px;
    }
    
    .footer__container {
        padding: 0 15px;
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer__col--logo {
        text-align: center;
    }
    
    .footer__description {
        max-width: 100%;
        text-align: center;
        font-size: 0.9rem;
    }
    
    .footer__title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .footer__list {
        gap: 10px;
    }
    
    .footer__link {
        font-size: 0.9rem;
    }
    
    .footer__bottom {
        margin-top: 30px;
        padding-top: 20px;
        text-align: center;
        font-size: 0.85rem;
    }
    
    /* Cookie Popup для мобільних */
    .cookie-popup {
        padding: 15px;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .cookie-content p {
        width: 100%;
        min-width: auto;
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .cookie-content .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    /* Modals */
    .modal__content {
        padding: 30px 20px;
        width: 95%;
        max-width: 95%;
    }
    
    .modal__title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .policy-content {
        font-size: 0.9rem;
    }
    
    .policy-content h4 {
        font-size: 1.1rem;
        margin-top: 20px;
    }
    
    /* Grid */
    .grid--3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .grid--2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}