:root {
    --primary-color: #8b5cf6;
    /* Violet */
    --secondary-color: #06b6d4;
    /* Cyan */
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --gradient-main: linear-gradient(135deg, var(--primary-color), var(--secondary-color));

    --font-main: 'Outfit', sans-serif;

    --container-width: 1200px;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* Utility */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

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

.mt-2 {
    margin-top: 2rem;
}

.hidden {
    display: none !important;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn--primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.btn--outline {
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
    background: var(--gradient-main);
    color: white;
    margin-top: 1rem;
}

.btn--full:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.5);
}

.btn--full:active {
    transform: translateY(0);
}

.btn--small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: var(--transition);
}

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

.logo svg {
    transition: var(--transition);
    filter: drop-shadow(0 2px 8px rgba(139, 92, 246, 0.3));
}

.logo:hover svg {
    transform: rotate(5deg) scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(139, 92, 246, 0.5));
}

.logo-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
    letter-spacing: -0.5px;
}

.logo:hover .logo-text {
    filter: brightness(1.1);
}

.nav__list {
    display: flex;
    gap: 30px;
}

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

.cta-link {
    background: var(--gradient-main);
    padding: 8px 20px;
    border-radius: 50px;
    color: white !important;
    transition: var(--transition);
}

.cta-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.5);
}

/* Burger */
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: var(--transition);
}

.burger:hover span {
    background: var(--secondary-color);
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: url('images/hero-background.jpg') center/cover no-repeat;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.7) 0%, var(--bg-dark) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid var(--secondary-color);
    transition: var(--transition);
    cursor: default;
}

.badge:hover {
    background: rgba(6, 182, 212, 0.2);
    transform: scale(1.05);
}

.hero__title {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero__subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section--dark {
    background: var(--bg-card);
}

.section__title {
    font-size: 2.5rem;
    margin-bottom: 50px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

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

.card h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* Masonry/Grid Services */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.service-item {
    background: var(--bg-dark);
    padding: 25px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    cursor: pointer;
}

.service-item:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    background: rgba(6, 182, 212, 0.05);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.2);
}

.service-item.highlight {
    border: 1px solid var(--primary-color);
    background: rgba(139, 92, 246, 0.1);
}

.service-item.highlight:hover {
    border-color: var(--primary-color);
    background: rgba(139, 92, 246, 0.15);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.service-item h4 {
    margin-bottom: 10px;
    color: white;
}

.service-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.info-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
}

.info-text:hover {
    color: var(--secondary-color);
    background: rgba(6, 182, 212, 0.1);
    transform: scale(1.05);
}

/* Reviews */
.reviews-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--bg-card);
    padding: 0;
    border-radius: var(--border-radius);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    cursor: pointer;
    overflow: visible;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.review-card::before {
    display: none;
}

/* Унікальний стиль для першої картки - великий круг справа зверху з фіолетовою рамкою */
.review-card--style-1 {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(139, 92, 246, 0.08) 100%);
}

.review-image-wrapper--style-1 {
    width: 150px;
    height: 150px;
    position: absolute;
    top: -25px;
    right: -25px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--primary-color);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.8),
        0 0 20px rgba(139, 92, 246, 0.4),
        inset 0 0 25px rgba(139, 92, 246, 0.2);
    transform: rotate(-8deg);
    transition: var(--transition);
    z-index: 10;
    background: var(--bg-card);
}

.review-card--style-1:hover .review-image-wrapper--style-1 {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.8),
        inset 0 0 30px rgba(139, 92, 246, 0.4);
    border-color: var(--primary-color);
}

.review-image-wrapper--style-1 .review-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05) rotate(8deg);
    transition: var(--transition);
    filter: brightness(1) contrast(1.1);
    display: block;
}

.review-card--style-1:hover .review-image-wrapper--style-1 .review-image {
    transform: scale(1.15) rotate(0deg);
    filter: brightness(1) contrast(1.15);
}

.review-image-wrapper--style-1 .review-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    mix-blend-mode: overlay;
    transition: var(--transition);
}

.review-card--style-1:hover .review-image-wrapper--style-1 .review-image-overlay {
    background: radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.5) 0%, transparent 70%);
}

/* Унікальний стиль для другої картки - середній круг справа зверху з блакитною рамкою */
.review-card--style-2 {
    background: linear-gradient(45deg, var(--bg-card) 0%, rgba(6, 182, 212, 0.08) 100%);
}

.review-image-wrapper--style-2 {
    width: 150px;
    height: 150px;
    position: absolute;
    top: -25px;
    right: -25px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--secondary-color);
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.8),
        0 0 20px rgba(6, 182, 212, 0.4),
        inset 0 0 25px rgba(6, 182, 212, 0.2);
    transform: rotate(8deg);
    transition: var(--transition);
    z-index: 10;
    background: var(--bg-card);
}

.review-card--style-2:hover .review-image-wrapper--style-2 {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 0 50px rgba(6, 182, 212, 0.8),
        inset 0 0 30px rgba(6, 182, 212, 0.4);
    border-color: var(--secondary-color);
}

.review-image-wrapper--style-2 .review-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05) rotate(-8deg);
    transition: var(--transition);
    filter: brightness(1) saturate(1.15);
    display: block;
}

.review-card--style-2:hover .review-image-wrapper--style-2 .review-image {
    transform: scale(1.15) rotate(0deg);
    filter: brightness(1) saturate(1.25);
}

.review-image-wrapper--style-2 .review-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(6, 182, 212, 0.35) 0%, transparent 70%);
    mix-blend-mode: multiply;
    transition: var(--transition);
}

.review-card--style-2:hover .review-image-wrapper--style-2 .review-image-overlay {
    background: radial-gradient(circle at 70% 30%, rgba(6, 182, 212, 0.55) 0%, transparent 70%);
}

/* Загальні стилі для обгортки фото */
.review-image-wrapper {
    position: relative;
    overflow: hidden;
}

.review-image {
    display: block;
    transition: var(--transition);
}

.review-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    transition: var(--transition);
}

.review-card:hover .review-image-overlay {
    opacity: 0.8;
}

/* Контент відгуку */
.review-content {
    padding: 30px;
    padding-top: 40px;
    position: relative;
    z-index: 2;
}

.review-text {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.review-author {
    font-weight: bold;
    color: var(--secondary-color);
    display: block;
    margin-top: 15px;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info ul {
    margin-top: 30px;
}

.contact-info li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    transition: var(--transition);
    padding: 8px 0;
}

.contact-info li:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.contact-form:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.captcha-group {
    margin-bottom: 25px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.captcha-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-main);
    opacity: 0;
    transition: var(--transition);
}

.captcha-group:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1);
}

.captcha-group:hover::before {
    opacity: 1;
}

.captcha-label {
    display: block;
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.captcha-question {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    padding: 15px 25px;
    background: var(--bg-dark);
    border-radius: 8px;
    min-width: 140px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    user-select: none;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.captcha-question::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-main);
    opacity: 0.1;
    transition: left 0.5s ease;
}

.captcha-question:hover {
    border-color: var(--primary-color);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 20px rgba(139, 92, 246, 0.2);
}

.captcha-question:hover::before {
    left: 100%;
}

.captcha-group input {
    flex: 1;
    min-width: 120px;
    max-width: 150px;
    padding: 15px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    transition: var(--transition);
}

.captcha-group input::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
    font-weight: 400;
}

.captcha-group input:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.captcha-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.captcha-refresh {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

.captcha-refresh::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--gradient-main);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    opacity: 0.2;
}

.captcha-refresh:hover {
    border-color: var(--secondary-color);
    background: rgba(6, 182, 212, 0.1);
    transform: rotate(180deg);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.captcha-refresh:hover::before {
    width: 100%;
    height: 100%;
}

.captcha-refresh:active {
    transform: rotate(180deg) scale(0.95);
}

/* Loader */
.loader {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.form-message {
    text-align: center;
    margin-top: 15px;
    font-weight: bold;
    color: var(--secondary-color);
}

/* Footer */
.footer {
    background: #0b1120;
    padding: 60px 0 20px;
    margin-top: 60px;
    font-size: 0.9rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer__col h4 {
    color: white;
    margin-bottom: 20px;
}

.footer__col ul li {
    margin-bottom: 10px;
}

.footer__col ul li a {
    color: var(--text-muted);
}

.footer__col ul li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: var(--text-muted);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    color: var(--bg-dark);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    width: 300px;
    animation: slideUp 0.5s ease;
}

.cookie-popup a {
    color: var(--primary-color);
    font-weight: bold;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

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

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    display: none;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal.active {
    display: block;
    animation: zoomIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg) scale(1.1);
    color: var(--secondary-color);
}

.modal-content {
    overflow-y: auto;
    max-height: 70vh;
    padding-right: 10px;
}

.modal-content h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.modal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin: 10px 0;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile */
@media (max-width: 1024px) {
    .burger {
        display: block;
        z-index: 1001;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        padding-top: 80px;
        transition: 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .nav.active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        font-size: 1.2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero {
        background-position: center;
    }
}