@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
    --primary: #1a56db;
    --primary-dark: #1240a8;
    --accent: #06b6d4;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --light: #f1f5f9;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #1a56db 0%, #06b6d4 100%);
    --danger: #ef4444;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s ease;
    background: transparent;
}

.header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 20px;
    color: white;
    letter-spacing: -0.5px;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav a:hover {
    color: var(--white);
}

.nav a:hover::after {
    width: 100%;
}

.header-phone {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-phone svg {
    width: 18px;
    height: 18px;
    fill: var(--accent);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.burger span {
    width: 28px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s;
}

.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(5px, -5px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    color: var(--white);
    text-decoration: none;
    font-size: 22px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.mobile-menu.active a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active a:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active a:nth-child(6) { transition-delay: 0.35s; }

.mobile-menu a:hover {
    color: var(--accent);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    background: var(--dark);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(26,86,219,0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6,182,212,0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-40px) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

@media(max-width: 871px){
    .hero-content {
        margin-top: 109px;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(6,182,212,0.15);
    border: 1px solid rgba(6,182,212,0.3);
    padding: 8px 20px;
    border-radius: 100px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.8s 0.3s forwards;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    opacity: 0;
    animation: fadeUp 0.8s 0.5s forwards;
}

.hero h1 .highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 560px;
    opacity: 0;
    animation: fadeUp 0.8s 0.7s forwards;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s 0.9s forwards;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(26,86,219,0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(26,86,219,0.5);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.2);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(6,182,212,0.05);
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0;
    animation: fadeUp 0.8s 1.1s forwards;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-number .accent {
    color: var(--accent);
}

.stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
}

.hero-visual {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    opacity: 0.15;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(4, 80px);
    gap: 16px;
    transform: rotate(-10deg);
}

.hero-grid-item {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: var(--gradient);
    opacity: 0.5;
    animation: gridPulse 4s ease-in-out infinite;
}

.hero-grid-item:nth-child(odd) { animation-delay: 0.5s; }
.hero-grid-item:nth-child(3n) { animation-delay: 1s; background: rgba(6,182,212,0.5); }

@keyframes gridPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.6; }
}

/* ===== SECTION COMMON ===== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -1px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 16px;
    color: var(--gray);
    margin-top: 16px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== SERVICES ===== */
.services {
    background: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 36px 32px;
    transition: all 0.4s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.service-card:hover {
    border-color: rgba(26,86,219,0.1);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

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

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(26,86,219,0.1) 0%, rgba(6,182,212,0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 26px;
}

.service-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
}

/* ===== PRICES ===== */
.prices {
    background: var(--white);
}

.prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.price-card {
    background: var(--light);
    border-radius: 20px;
    padding: 36px 28px;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.price-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.price-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.price-card.featured {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(26,86,219,0.15);
    transform: translateY(0) scale(1.02);
}

.price-card.featured.visible {
    transform: translateY(0) scale(1.02);
}

.price-card.featured:hover {
    transform: translateY(-6px) scale(1.02);
}

.price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.price-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.price-desc {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.price-value {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 24px;
    font-weight: 500;
}

.price-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -1px;
}

.price-features {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
}

.price-features li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--dark-light);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.price-card .btn-submit {
    width: 100%;
    padding: 14px;
    margin-top: auto;
}

/* ===== ABOUT ===== */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-image-block {
    width: 100%;
    aspect-ratio: 1;
    background: var(--gradient);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-40px);
}

.about-image-block.visible {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.8s ease;
}

.about-image-block .pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 40px 40px, 60px 60px;
}

.about-image-block .big-text {
    position: absolute;
    top: 40%;
    left: 30px;
    right: 30px;
    font-size: 64px;
    font-weight: 900;
    color: rgba(255,255,255,0.15);
    line-height: 1;
}

.about-float-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--white);
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 14px;
    animation: floatCard 3s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.about-float-card .icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.about-float-card .text strong {
    display: block;
    font-size: 18px;
    color: var(--dark);
}

.about-float-card .text span {
    font-size: 12px;
    color: var(--gray);
}

.about-content {
    opacity: 0;
    transform: translateX(40px);
}

.about-content.visible {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.8s ease;
}

.about-content .section-tag {
    text-align: left;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.about-text {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 32px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 14px;
}

.about-feature .check {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(26,86,219,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-feature .check svg {
    width: 14px;
    height: 14px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 3;
}

.about-feature span {
    font-size: 15px;
    color: var(--dark);
    font-weight: 500;
}

/* ===== ADVANTAGES ===== */
.advantages {
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.advantages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(26,86,219,0.15) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(6,182,212,0.1) 0%, transparent 50%);
}

.advantages .section-title {
    color: var(--white);
}

.advantages .section-subtitle {
    color: rgba(255,255,255,0.5);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    position: relative;
    z-index: 1;
}

.advantage-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 32px 28px;
    text-align: center;
    transition: all 0.4s;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

.advantage-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.advantage-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(6,182,212,0.3);
    transform: translateY(-4px);
}

.advantage-number {
    font-size: 48px;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}

.advantage-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.advantage-card p {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
}

/* ===== MARQUEE ===== */
.marquee-section {
    padding: 32px 0;
    background: var(--white);
    border-top: 1px solid var(--light);
    border-bottom: 1px solid var(--light);
    overflow: hidden;
}

.marquee {
    display: flex;
    animation: marqueeScroll 30s linear infinite;
}

.marquee-item {
    flex-shrink: 0;
    padding: 0 40px;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.marquee-item .sep {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===== CONTACT FORM ===== */
.contact {
    background: var(--light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info {
    opacity: 0;
    transform: translateX(-30px);
}

.contact-info.visible {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.8s ease;
}

.contact-info .section-tag {
    text-align: left;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 16px;
}

.contact-desc {
    font-size: 15px;
    color: var(--gray);
    margin-bottom: 36px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-detail .icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-detail .icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: white;
    stroke-width: 2;
}

.contact-detail .info strong {
    display: block;
    font-size: 14px;
    color: var(--dark);
    margin-bottom: 2px;
}

.contact-detail .info span,
.contact-detail .info a {
    font-size: 14px;
    color: var(--gray);
    text-decoration: none;
}

.contact-detail .info a:hover {
    color: var(--primary);
}

.contact-form-wrap {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.06);
    opacity: 0;
    transform: translateX(30px);
}

.contact-form-wrap.visible {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.8s ease 0.2s;
}

.contact-form-wrap h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.contact-form-wrap .form-desc {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 28px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    color: var(--dark);
    transition: all 0.3s;
    background: var(--light);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(26,86,219,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 15px;
}

/* ===== CHECKBOX ===== */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    margin-bottom: 18px;
    cursor: pointer;
    user-select: none;
}

.agreement-checkbox {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    transition: all 0.3s;
    position: relative;
    margin-top: 2px;
}

.agreement-checkbox:checked + .checkbox-custom {
    background: var(--primary);
    border-color: var(--primary);
}

.agreement-checkbox:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label.error .checkbox-custom {
    border-color: var(--danger);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.checkbox-text {
    font-size: 12px;
    color: var(--gray);
    line-height: 1.5;
}

.checkbox-text a {
    color: var(--primary);
    text-decoration: none;
}

.checkbox-text a:hover {
    text-decoration: underline;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 100px 0;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.cta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.cta-text .section-tag {
    color: rgba(255,255,255,0.7);
    text-align: left;
}

.cta-text h2 {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 16px;
    text-align: left;
}

.cta-text p {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    text-align: left;
}

.cta-form-wrap {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.cta-form-wrap h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.cta-form-wrap .form-desc {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 24px;
}

/* ===== SUCCESS MESSAGE ===== */
.success-message {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.success-message.show {
    display: block;
    animation: fadeUp 0.5s ease;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(34,197,94,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: #16a34a;
}

.success-message h4 {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 8px;
}

.success-message p {
    font-size: 14px;
    color: var(--gray);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s;
    border: none;
    box-shadow: 0 4px 20px rgba(26,86,219,0.4);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: white;
    stroke-width: 2.5;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    margin-top: 16px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom span {
    font-size: 13px;
    color: rgba(255,255,255,0.3);
}

/* ===== PARTICLES CANVAS ===== */
#particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Counter animation */
.counter {
    display: inline-block;
}

/* Glow effect */
.glow {
    position: relative;
}

.glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    filter: blur(12px);
    transition: opacity 0.4s;
}

.glow:hover::after {
    opacity: 0.4;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .about-grid,
    .contact-grid,
    .cta-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .burger {
        display: flex;
    }

    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 28px;
    }

    .hero-visual {
        display: none;
    }

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

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .about-float-card {
        right: 10px;
        bottom: -10px;
    }

    .cta-form-wrap {
        padding: 28px;
    }

    .contact-form-wrap {
        padding: 28px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 64px 0;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

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

/* ===== BUTTON HOVER COLOR TRANSITION ===== */
.btn {
    transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(26,86,219,0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1240a8 0%, #0891b2 100%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(26,86,219,0.5);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(6,182,212,0.08);
}

/* ===== MODALS ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 440px;
    position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.show .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--light);
    border-radius: 10px;
    font-size: 22px;
    line-height: 1;
    color: var(--gray);
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.modal-close:hover {
    background: rgba(26,86,219,0.12);
    color: var(--primary);
}

.modal-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 6px;
}

.modal-subtitle {
    font-size: 15px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 24px;
}

.modal-text {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.8;
}

.modal-text p {
    margin-bottom: 14px;
}

.modal-text strong {
    color: var(--dark);
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    background: var(--dark);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    z-index: 1500;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
    max-width: calc(100% - 40px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.cookie-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.cookie-text {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
}

.cookie-ok {
    padding: 10px 26px;
    font-size: 14px;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

/* ===== OUR WORKS ===== */
.works {
    background: var(--white);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.work-card {
    background: var(--light);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid transparent;
    opacity: 0;
    transform: translateY(40px);
}

.work-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.work-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    border-color: rgba(26,86,219,0.1);
}

.work-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--gradient);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.work-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.18) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.12) 1px, transparent 1px);
    background-size: 40px 40px, 60px 60px;
}

.work-image-placeholder {
    position: relative;
    z-index: 1;
    color: rgba(255,255,255,0.9);
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    padding: 0 16px;
    letter-spacing: -0.3px;
}

.work-info {
    padding: 24px 28px 28px;
}

.work-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.work-info p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

/* ===== FOOTER LINKS ===== */
.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}


/* Базовые стили для сетки */
/* Базовые стили для сетки */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Стили для ссылок-обёрток */
.work-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.work-card-link:hover .work-card {
    transform: translateY(-5px);
}

/* Стили для карточки */
.work-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

/* Блок с изображением */
.work-image {
    width: 100%;
    height: 250px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Стили для плейсхолдера (текст) */
.work-image-placeholder {
    font-size: 18px;
    color: #666;
    font-weight: 500;
    text-align: center;
    padding: 10px;
}

/* ============================================ */
/* ПЕРВАЯ КАРТОЧКА (с классом first-card) */
/* ============================================ */
.work-card.first-card .work-image {
    background-image: url(img/портфолио.webp);
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
}

/* ============================================ */
/* ВТОРАЯ КАРТОЧКА - ИСПРАВЛЕНО */
/* ============================================ */
.works-grid .work-card-link:nth-child(2) .work-image {
    background-image: url(img/портфолио\ 2.webp);
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
}
.works-grid .work-card-link:nth-child(2) .work-image-placeholder {
    display: none;
}

/* ============================================ */
/* ТРЕТЬЯ КАРТОЧКА - ИСПРАВЛЕНО */
/* ============================================ */
.works-grid .work-card-link:nth-child(3) .work-image {
    background-image: url('img/portfolio3.webp');
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
}
.works-grid .work-card-link:nth-child(3) .work-image-placeholder {
    display: none;
}

/* Информация о работе */
.work-info {
    padding: 20px;
}

.work-info h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #333;
}

.work-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}


