/* ============================================
   SITEUPSIDE - Современный сайт веб-студии
   ============================================ */

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

:root {
    --bg: #05050f;
    --bg-2: #0a0a1a;
    --cyan: #00f0ff;
    --purple: #b026ff;
    --pink: #ff006e;
    --text: #e8e8f0;
    --muted: #8a8aa0;
    --border: rgba(255,255,255,0.08);
}

html {
    scroll-behavior: smooth;
}

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

/* ===== Анимированный фон ===== */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0,240,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,240,255,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--cyan);
    top: -200px;
    left: -100px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--purple);
    bottom: -100px;
    right: -100px;
    animation-delay: -10s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--pink);
    top: 50%;
    left: 50%;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, -50px) scale(1.1); }
    66% { transform: translate(-50px, 80px) scale(0.9); }
}

/* ===== Кастомный курсор ===== */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease, width 0.3s, height 0.3s, border-color 0.3s;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor.hover {
    width: 50px;
    height: 50px;
    border-color: var(--pink);
}

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

/* ===== Навигация ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(20px);
    background: rgba(5, 5, 15, 0.6);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo span {
    color: var(--pink);
    -webkit-text-fill-color: var(--pink);
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    transition: width 0.3s;
}

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

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

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

.burger span {
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: 0.3s;
}

/* ===== Контейнеры ===== */
.section {
    position: relative;
    z-index: 1;
    padding: 120px 5%;
}

.section-dark {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
}

.hero-content {
    max-width: 900px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--cyan);
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease;
}

.hero-tag::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--cyan);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero h1 {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero h1 .gradient {
    background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 4s linear infinite;
}

@keyframes gradientShift {
    to { background-position: 200% center; }
}

.hero h1 .glitch {
    position: relative;
    display: inline-block;
}

.hero h1 .glitch::before,
.hero h1 .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
}

.hero h1 .glitch::before {
    color: var(--cyan);
    animation: glitch 3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.hero h1 .glitch::after {
    color: var(--pink);
    animation: glitch 2s infinite reverse;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-3px, 2px); }
    94% { transform: translate(3px, -2px); }
    96% { transform: translate(-2px, -1px); }
}

.hero p {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 600px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid var(--cyan);
    border-radius: 25px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.scroll-indicator span {
    width: 4px;
    height: 10px;
    background: var(--cyan);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(20px); opacity: 0; }
}

/* ===== Заголовки секций ===== */
.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.section-subtitle {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    color: var(--cyan);
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: 600;
}

/* ===== УСЛУГИ: 4 в ряд ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.service-card {
    padding: 35px 25px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(0, 240, 255, 0.05));
    opacity: 0;
    transition: opacity 0.4s;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--cyan);
    box-shadow: 0 20px 60px rgba(0, 240, 255, 0.15);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.service-icon img {
    filter: brightness(0) invert(1);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--muted);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-link {
    color: var(--cyan);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
    position: relative;
    z-index: 1;
}

.service-link:hover {
    color: var(--purple);
}

/* Планшет: 2 колонки */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Мобильный: 1 колонка */
@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ПОРТФОЛИО: Вариант 3 ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.portfolio-item {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s;
    border: 1px solid var(--border);
}

.portfolio-item:hover {
    border-color: var(--cyan);
    box-shadow: 0 20px 60px rgba(0, 240, 255, 0.2);
}

.portfolio-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

/* Всегда видимый нижний градиент */
.portfolio-img::before {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 55%;
    background: linear-gradient(to top, rgba(5, 5, 15, 0.95), transparent);
    z-index: 1;
    transition: height 0.4s;
}

/* При наведении градиент расширяется на всё изображение */
.portfolio-item:hover .portfolio-img::before {
    height: 100%;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    z-index: 2;
}

/* Заголовок виден всегда */
.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #ffffff;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.9);
}

/* Описание и кнопка скрыты, появляются при наведении */
.portfolio-overlay p {
    color: #d0d0e0;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.portfolio-overlay .btn-small {
    align-self: flex-start;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
}

.portfolio-item:hover .portfolio-overlay p,
.portfolio-item:hover .portfolio-overlay .btn-small {
    opacity: 1;
    transform: translateY(0);
}

/* На устройствах без наведения (телефоны) показываем всё */
@media (hover: none) {
    .portfolio-overlay p,
    .portfolio-overlay .btn-small {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== О НАС: Статистика ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 25px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--muted);
    font-size: 0.95rem;
}

/* ===== ПРОЦЕСС ===== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.process-step {
    position: relative;
    padding: 30px;
    border-left: 2px solid var(--border);
    transition: border-color 0.3s;
}

.process-step:hover {
    border-left-color: var(--cyan);
}

.process-step .num {
    font-size: 3rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px var(--cyan);
    line-height: 1;
    margin-bottom: 15px;
}

.process-step h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.process-step p {
    color: var(--muted);
    font-size: 0.9rem;
}

/* ===== ОТЗЫВЫ ===== */
.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    display: none;
}

.testimonial-card.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.author-info p {
    color: var(--muted);
    font-size: 0.9rem;
}

.testimonial-rating {
    margin-left: auto;
    color: #ffd700;
    font-size: 1.2rem;
}

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

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    color: #000;
    border-color: transparent;
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--cyan);
    transform: scale(1.2);
}

/* ===== КОНТАКТЫ ===== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 15px;
    transition: all 0.3s;
}

.contact-item:hover {
    border-color: var(--cyan);
    transform: translateX(10px);
}

.contact-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    border-radius: 15px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-item a,
.contact-item p {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--cyan);
}

/* ===== ФОРМА ===== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 15px;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.form-group select {
    appearance: none;
    cursor: pointer;
}

.form-group select option {
    background: var(--bg);
    color: var(--text);
}

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

.form-highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    transition: width 0.3s;
}

.form-group input:focus ~ .form-highlight,
.form-group select:focus ~ .form-highlight,
.form-group textarea:focus ~ .form-highlight {
    width: 100%;
}

.form-message {
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(0, 255, 100, 0.1);
    border: 1px solid rgba(0, 255, 100, 0.3);
    color: #00ff64;
}

.form-message.error {
    display: block;
    background: rgba(255, 0, 110, 0.1);
    border: 1px solid rgba(255, 0, 110, 0.3);
    color: var(--pink);
}

/* ===== КНОПКИ ===== */
.btn {
    padding: 16px 36px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    cursor: none;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    color: #000;
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0, 240, 255, 0.5);
}

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

.btn-secondary:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    background: rgba(0, 240, 255, 0.05);
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
}

/* ===== FOOTER ===== */
footer {
    padding: 60px 5% 30px;
    border-top: 1px solid var(--border);
    background: var(--bg-2);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--muted);
    margin-top: 15px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--cyan);
}

.footer-column a {
    display: block;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--text);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
}

/* ===== Анимация появления ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Адаптив ===== */
@media (max-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(5, 5, 15, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        transform: translateY(-150%);
        transition: transform 0.3s;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-links.open {
        transform: translateY(0);
    }
    
    .burger {
        display: flex;
    }
    
    .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, -7px);
    }
    
    .section {
        padding: 80px 5%;
    }
    
    .hero {
        padding-top: 120px;
    }
    
    .stats {
        padding: 40px 20px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ГАЛОЧКА СОГЛАСИЯ ===== */
.form-consent { margin-top: 5px; }

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    user-select: none;
}
.checkbox input { position: absolute; opacity: 0; }

.checkmark {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid var(--border);
    border-radius: 6px;
    position: relative;
    transition: 0.3s;
    margin-top: 2px;
}
.checkbox input:checked + .checkmark {
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    border-color: transparent;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}
.checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s;
}
.checkbox input:checked + .checkmark::after { transform: rotate(45deg) scale(1); }
.checkbox input:focus + .checkmark { border-color: var(--cyan); }

.consent-text { color: var(--muted); font-size: 0.85rem; line-height: 1.5; }
.consent-text a {
    color: var(--cyan);
    text-decoration: none;
    border-bottom: 1px dashed rgba(0,240,255,0.4);
}
.consent-text a:hover { color: var(--purple); }

/* ===== КАРТА ===== */
.map-block {
    margin-top: 60px;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 25px;
    padding: 30px;
}

.map-frame {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    min-height: 320px;
}
.map-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* сканирующая линия поверх карты */
.map-scanline {
    position: absolute;
    left: 0; right: 0; top: -20%;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(0,240,255,0.15), transparent);
    animation: mapScan 4s linear infinite;
    pointer-events: none;
}
@keyframes mapScan { to { top: 110%; } }

.map-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}
.map-actions h3 { font-size: 1.6rem; }
.map-address { color: var(--muted); }
.map-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
}

.policy-link {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s;
}
.policy-link:hover { color: var(--cyan); }

@media (max-width: 900px) {
    .map-block { grid-template-columns: 1fr; }
}

/* ===== АКЦЕНТ НА ЧЕКБОКСЕ СОГЛАСИЯ ===== */

/* Блок согласия — неоновая рамка с дыханием */
.form-consent {
    margin-top: 5px;
    padding: 18px 20px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 14px;
    background: rgba(0, 240, 255, 0.04);
    position: relative;
    animation: consentGlow 3s ease-in-out infinite;
}

/* Верхний штрих-акцент */
.form-consent::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20px;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), transparent);
    box-shadow: 0 0 10px var(--cyan);
}

@keyframes consentGlow {
    0%, 100% {
        border-color: rgba(0, 240, 255, 0.25);
        box-shadow: 0 0 15px rgba(0, 240, 255, 0.08), inset 0 0 20px rgba(0, 240, 255, 0.02);
    }
    50% {
        border-color: rgba(0, 240, 255, 0.6);
        box-shadow: 0 0 30px rgba(0, 240, 255, 0.2), inset 0 0 25px rgba(0, 240, 255, 0.04);
    }
}

/* Чекбокс — расходящиеся кольца пульса */
.checkbox .checkmark {
    animation: checkboxPulse 2s ease-out infinite;
}

@keyframes checkboxPulse {
    0%   { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.5); }
    70%  { box-shadow: 0 0 0 10px rgba(0, 240, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}

/* Отмечен — пульс останавливается, спокойное свечение + "поп" */
.checkbox input:checked + .checkmark {
    animation: checkPop 0.35s ease;
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.7), 0 0 40px rgba(0, 240, 255, 0.3);
}

@keyframes checkPop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.3) rotate(5deg); }
    100% { transform: scale(1); }
}

/* Текст ссылки в блоке — чуть ярче */
.form-consent .consent-text a {
    color: var(--cyan);
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

/* Ошибка: попытка отправить без галочки — розовая вспышка */
.form-consent.error-flash {
    animation: errorFlash 0.4s ease 2;
    border-color: var(--pink) !important;
}

@keyframes errorFlash {
    0%, 100% { box-shadow: 0 0 0 rgba(255, 0, 110, 0); }
    50% { box-shadow: 0 0 35px rgba(255, 0, 110, 0.55); }
}

/* На мобильных — мягче, чтобы не отвлекало */
@media (max-width: 768px) {
    .form-consent { animation-duration: 4s; }
}

/* ===== РЕАЛЬНЫЕ СКРИНШОТЫ В ПОРТФОЛИО ===== */

/* Карточка — рамка и тень */
.portfolio-item {
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s;
}

.portfolio-item:hover {
    border-color: var(--cyan);
    box-shadow: 0 20px 60px rgba(0, 240, 255, 0.2);
    transform: translateY(-5px);
}

/* Изображение — всегда 16:9 с обрезкой */
.portfolio-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #0a0a1a;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s ease;
    filter: brightness(0.95);
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.06);
    filter: brightness(0.7);
}

/* Overlay — всегда видимая нижняя зона */
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(5, 5, 15, 0.98) 0%,
        rgba(5, 5, 15, 0.75) 40%,
        rgba(5, 5, 15, 0.1) 70%,
        transparent 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    z-index: 2;
}

/* Тег категории — неоновая метка */
.portfolio-tag {
    display: inline-block;
    width: fit-content;
    padding: 4px 12px;
    border: 1px solid rgba(0, 240, 255, 0.5);
    border-radius: 100px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--cyan);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 12px;
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #ffffff;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.9);
}

.portfolio-overlay p {
    color: #c8c8d8;
    margin-bottom: 18px;
    font-size: 0.9rem;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.1s;
}

.portfolio-overlay .btn-small {
    align-self: flex-start;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.2s;
}

/* При hover — описание и кнопка появляются */
.portfolio-item:hover .portfolio-overlay p,
.portfolio-item:hover .portfolio-overlay .btn-small {
    opacity: 1;
    transform: translateY(0);
}

/* Адаптив */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-overlay p,
    .portfolio-overlay .btn-small {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ПОРТФОЛИО v3: CSS-браузер, без картинок ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.portfolio-item {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    transition: transform .4s, border-color .4s, box-shadow .4s;
}
.portfolio-item:hover {
    transform: translateY(-8px);
    border-color: var(--cyan);
    box-shadow: 0 25px 60px rgba(0, 240, 255, 0.15);
}

/* Верхняя панель браузера */
.browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: #10102a;
    border-bottom: 1px solid var(--border);
}
.b-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.b-dot.r { background: #ff5f57; }
.b-dot.y { background: #febc2e; }
.b-dot.g { background: #28c840; }
.b-url {
    flex: 1;
    margin-left: 10px;
    padding: 5px 14px;
    background: #0a0a1c;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: .78rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* «Скриншот» сайта */
.browser-body {
    position: relative;
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
}

/* Точечная текстура */
.browser-body::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
    background-size: 22px 22px;
}

/* Блик при наведении */
.browser-body::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: -60%;
    width: 40%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: skewX(-20deg);
    transition: left .8s ease;
}
.portfolio-item:hover .browser-body::after { left: 130%; }

/* Фирменные цвета клиентов */
.pv-chemodan     { background: linear-gradient(135deg, #0369a1, #22d3ee); }
.pv-krasnovskaya { background: linear-gradient(135deg, #7a5c43, #c9a876); }
.pv-sbk          { background: linear-gradient(135deg, #2f5d34, #86b06a); }
.pv-zerna        { background: linear-gradient(135deg, #b45309, #fbbf24); }

/* Элементы превью */
.pv-mono {
    position: absolute;
    top: -25px; right: 8px;
    font-size: 9rem;
    font-weight: 900;
    letter-spacing: -8px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.15);
    user-select: none;
}
.pv-name {
    position: relative; z-index: 1;
    font-size: clamp(1.2rem, 2.4vw, 1.8rem);
    font-weight: 800;
    color: #fff;
    text-align: center;
    padding: 0 15px;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.35);
}
.pv-sub {
    position: relative; z-index: 1;
    color: rgba(255, 255, 255, 0.9);
    font-size: .78rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.pv-emoji {
    position: absolute;
    right: 22px; bottom: 14px;
    font-size: 2.6rem;
    z-index: 1;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

/* Информация под «скриншотом» */
.portfolio-info {
    padding: 24px 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.portfolio-info h3 { font-size: 1.25rem; color: #fff; }
.portfolio-info p { color: var(--muted); font-size: .92rem; flex: 1; }
.portfolio-link {
    color: var(--cyan);
    text-decoration: none;
    font-weight: 600;
    font-size: .92rem;
    width: fit-content;
    border-bottom: 1px dashed rgba(0, 240, 255, 0.4);
    transition: .3s;
}
.portfolio-link:hover { color: var(--purple); letter-spacing: .5px; }

@media (max-width: 900px) {
    .portfolio-grid { grid-template-columns: 1fr; }
}
/* ===== ОБЩИЕ СТИЛИ СТРАНИЦ УСЛУГ ===== */
.page-hero { padding: 160px 5% 80px; position: relative; z-index: 1; }
.page-hero .section-title { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 20px; }
.hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 30px; }

.service-icon { font-size: 1.8rem; }

/* Тарифы */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; }
.price-card {
    background: rgba(255,255,255,.03);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 35px 30px;
    display: flex; flex-direction: column; gap: 14px;
    position: relative;
    transition: .3s;
}
.price-card:hover { border-color: var(--cyan); transform: translateY(-5px); }
.price-card h3 { letter-spacing: 2px; color: var(--muted); font-size: 1rem; }
.price-card .sum { font-size: 2rem; font-weight: 900; }
.price-card ul { list-style: none; color: var(--muted); flex: 1; }
.price-card li { padding: 6px 0 6px 24px; position: relative; font-size: .92rem; }
.price-card li::before { content: '✔'; position: absolute; left: 0; color: var(--cyan); }
.price-card.top { border-color: var(--cyan); box-shadow: 0 0 40px rgba(0,240,255,.12); background: rgba(0,240,255,.04); }
.plan-badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    color: #000; font-weight: 700; font-size: .8rem;
    padding: 5px 20px; border-radius: 100px;
}
.price-card .btn { justify-content: center; }

/* Форма на странице */
.page-form { max-width: 640px; margin: 0 auto; }

/* Чипы интеграций */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
    padding: 12px 24px; border: 1px solid var(--border); border-radius: 100px;
    color: var(--muted); font-size: .9rem; transition: .3s;
    background: rgba(255,255,255,.02);
}
.chip:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }

/* FAQ */
.faq-item { border: 1px solid var(--border); border-radius: 14px; margin-bottom: 12px; background: rgba(255,255,255,.02); }
.faq-item summary { cursor: pointer; padding: 20px 55px 20px 25px; font-weight: 600; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
    color: var(--cyan); font-size: 1.5rem; transition: .3s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item .faq-body { padding: 0 25px 20px; color: var(--muted); font-size: .93rem; }