:root {
    --primary-color: #00B7E4;
    --primary-dark: #0094B7;
    --primary-light: #8acbef;
    --secondary-color: #1F2A44;
    --accent-color: #4ACF50;
    --background-color: #FFFFFF;
    --text-color: #2d3748;
    --gray-light: #f7fafc;
    --gray: #e2e8f0;
    
    /* Dark theme variables */
    --dark-bg-gradient-from: #1a202c;
    --dark-bg-gradient-to: #2d3748;
    --dark-text-color: #f7fafc;
    --dark-accent-glow: rgba(0, 183, 228, 0.5);
    
    /* Typography */
    --heading-font: 'Space Grotesk', sans-serif;
    --body-font: 'Inter', sans-serif;
    --mono-font: 'JetBrains Mono', monospace;
}

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

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
    position: relative;
    overflow-x: hidden;
    padding-top: 60px; /* пространство под фиксированный header */
}

/* Floating particles animation - optimized */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    will-change: auto; /* Remove expensive will-change */
}

.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(0, 183, 228, 0.4), transparent); /* Reduced opacity */
    border-radius: 50%;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
    will-change: transform; /* Only animate transform */
}

.particle:nth-child(1) {
    width: 4px;
    height: 4px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.particle:nth-child(2) {
    width: 6px;
    height: 6px;
    top: 60%;
    left: 80%;
    animation-delay: 2s;
    animation-duration: 12s;
}

.particle:nth-child(3) {
    width: 3px;
    height: 3px;
    top: 80%;
    left: 30%;
    animation-delay: 4s;
    animation-duration: 10s;
}

.particle:nth-child(4) {
    width: 5px;
    height: 5px;
    top: 30%;
    left: 70%;
    animation-delay: 1s;
    animation-duration: 9s;
}

.particle:nth-child(5) {
    width: 2px;
    height: 2px;
    top: 70%;
    left: 15%;
    animation-delay: 3s;
    animation-duration: 11s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.2; /* Reduced opacity */
    }
    25% {
        transform: translateY(-15px) translateX(8px) scale(1.1); /* Reduced movement */
        opacity: 0.4;
    }
    50% {
        transform: translateY(-30px) translateX(-3px) scale(0.9); /* Reduced movement */
        opacity: 0.3;
    }
    75% {
        transform: translateY(-15px) translateX(10px) scale(1.05); /* Reduced movement */
        opacity: 0.5;
    }
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h2 {
    color: var(--secondary-color);
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Specific gradient text only for hero sections */
.hero h1 {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dark sections headings */
.features h2,
.demo-video h2 {
    background: linear-gradient(135deg, var(--dark-text-color), var(--primary-light)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: var(--dark-text-color) !important;
}

h3 {
    font-weight: 600;
    color: var(--secondary-color);
}

p {
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-color);
}

/* Dark section text overrides */
.features p,
.demo-video p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.features .feature-item p {
    color: rgba(255, 255, 255, 0.95);
}

section {
    padding: 120px 0;
    border-bottom: none;
    position: relative;
}

/* Remove problematic section backgrounds that cause contrast issues */
section.problem {
    background: linear-gradient(145deg, rgba(245, 245, 245, 0.8), rgba(255, 255, 255, 0.9));
}

section.solution {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.8));
}

section.pricing {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(245, 247, 250, 0.8));
}

section.contact {
    background: linear-gradient(145deg, rgba(245, 245, 245, 0.9), rgba(255, 255, 255, 0.8));
}

h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    position: relative;
}

h2::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.highlight {
    font-family: var(--mono-font);
    color: var(--primary-color);
    font-weight: 500;
    margin-left: 4px;
    background-color: rgba(0, 183, 228, 0.08);
    padding: 2px 5px;
    border-radius: 3px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s ease, background 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Добавляем класс скрытия хедера */
header.hidden {
    transform: translateY(-100%);
}

/* Кнопка-подсказка для возврата шапки */
.header-peek{
  position: fixed;
  top: 10px;
  right: 12px;
  z-index: 1100;
  display: none;               /* по умолчанию скрыта */
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.header-peek i{ font-size: 18px; color: var(--secondary-color); }

/* Показывать кнопку только когда шапка скрыта */
header.hidden + .header-peek { display: flex; }

nav {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: fit-content;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 16px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 60px;
    margin-right: 15px;
    margin-top: -25px;
}

.logo h1 {
    font-family: var(--mono-font);
    font-size: 30px;
    margin-bottom: 0;
    margin-top: -30px;
    color: var(--secondary-color);
    letter-spacing: -0.03em;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.logo h1::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #8A67E5, var(--primary-color));
    background-size: 200% 100%;
    transform: scaleX(0.7);
    transform-origin: left;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    animation: none;
}

.logo:hover h1 {
    color: var(--primary-color);
    text-shadow: 0 0 3px rgba(0, 183, 228, 0.2);
}

.logo:hover h1::after {
    transform: scaleX(1);
    background-color: var(--primary-dark);
    box-shadow: 0 0 8px rgba(0, 183, 228, 0.5);
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 15px;
}

nav ul li:first-child {
    margin-left: 0;
}

nav ul li:last-child {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    letter-spacing: 0.01em;
    position: relative;
    padding: 8px 10px;
    border-radius: 8px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

nav ul li a:not(.btn-primary) {
    padding: 8px 10px;
}

nav ul li a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    transform-origin: left;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a:not(.btn-primary):hover::after {
    width: calc(100% - 24px);
}

.btn-primary {
    font-family: var(--heading-font);
    background: linear-gradient(135deg, var(--primary-color), #8A67E5, var(--primary-color));
    background-size: 200% 200%;
    color: white;
    padding: 16px 32px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 24px rgba(0, 183, 228, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: none;
}

/* Компактная версия кнопки в хедере */
.btn-primary.btn-small {
    padding: 10px 24px;
    font-size: 0.9rem;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.btn-primary i {
    margin-left: 8px;
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 183, 228, 0.4), 0 0 20px rgba(138, 103, 229, 0.3);
    background-size: 300% 300%;
    animation-duration: 1.5s;
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0, 183, 228, 0.3);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 183, 228, 0.3), 0 8px 20px rgba(0, 183, 228, 0.4);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 999px; /* Match the button radius */
    opacity: 0;
    background: radial-gradient(circle at center, rgba(0, 183, 228, 0.8), transparent 70%);
    transition: opacity 0.3s ease;
    z-index: -2;
}

.btn-primary:hover::after {
    opacity: 0.5;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--background-color) 0%, rgba(0, 183, 228, 0.08) 50%, var(--primary-light) 100%);
    padding: 60px 0 120px 0;
    position: relative;
    overflow: hidden;
    border-bottom: none;
    min-height: 90vh;
    display: flex;
    align-items: flex-start;
    padding-top: 100px;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle at center, rgba(0, 183, 228, 0.15), rgba(138, 203, 239, 0.05) 50%, transparent 70%);
    border-radius: 50%;
    transform: rotate(-20deg);
    z-index: 0;
    animation: heroFloat 20s ease-in-out infinite;
}

.hero::after {
    content: "";
    position: absolute;
    top: 20%;
    left: -10%;
    width: 40%;
    height: 80%;
    background: radial-gradient(circle at center, rgba(138, 103, 229, 0.1), transparent 60%);
    border-radius: 50%;
    animation: heroFloat 25s ease-in-out infinite reverse;
    z-index: 0;
}

@keyframes heroFloat {
    0%, 100% { transform: rotate(-20deg) translateY(0px); }
    50% { transform: rotate(-25deg) translateY(-30px); }
}

.hero .container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    margin-top: -20px;
}

.hero-content {
    flex: 1;
    max-width: 500px;
    margin-top: clamp(60px, 14vh, 180px);
}

.hero-content h1 {
    font-size: 64px;
    margin-bottom: 50px;
    margin-top: -10px;
    margin-left: -20px;
    color: var(--secondary-color);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 3s ease-in-out infinite;
}

@keyframes textShimmer {
    0%, 100% { 
        background-position: 0% 50%; 
        background-size: 200% 200%;
    }
    50% { 
        background-position: 100% 50%; 
        background-size: 200% 200%;
    }
}

.hero-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 600;
    text-align: left;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-content h2::after {
    display: none;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.6;
    color: var(--text-color);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
    margin-top: 10px;
    margin-left: 30px;
    gap: 50px;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 450px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
    transition: transform 0.5s ease;
}

/* Benefits Section */
.benefits {
    padding: 80px 0 !important;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9f1ff 100%) !important;
}

.benefits h2 {
    text-align: center !important;
    margin-bottom: 60px !important;
    font-size: 2.5rem !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.benefits-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 30px !important;
    margin-top: 40px !important;
}

.benefit-item {
    background: white !important;
    padding: 35px !important;
    border-radius: 20px !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    display: block !important;
}

.benefit-item::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #667eea, #764ba2) !important;
    transform: scaleX(0) !important;
    transition: transform 0.3s ease !important;
}

.benefit-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 35px rgba(102, 126, 234, 0.15) !important;
}

.benefit-item:hover::before {
    transform: scaleX(1) !important;
}

.benefit-item .icon {
    width: 60px !important;
    height: 60px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-radius: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 20px !important;
    font-size: 1.5rem !important;
    color: white !important;
}

.benefit-item h3 {
    font-size: 1.3rem !important;
    margin-bottom: 15px !important;
    color: #2c3e50 !important;
    font-weight: 600 !important;
}

.benefit-item p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: #64748b !important;
}

.benefit-item .highlight {
    color: #667eea !important;
    font-weight: 500 !important;
}


.stat {
    flex: 1;
    min-width: 200px;
    background-color: white;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.stat h4 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat p {
    margin-bottom: 10px;
}

.stat-number {
    font-size: 18px;
    font-weight: 700;
}

/* Features Section */
.features {
    background: linear-gradient(135deg, var(--dark-bg-gradient-from), var(--dark-bg-gradient-to));
    color: var(--dark-text-color);
    position: relative;
    overflow: hidden;
}

.features::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
    opacity: 0.3;
}

.features::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, var(--dark-accent-glow) 0%, transparent 40%);
    opacity: 0.4;
    pointer-events: none;
}

.features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    position: relative;
}

.features h2::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #8A67E5, var(--primary-color));
    background-size: 200% 100%;
    box-shadow: 0 0 15px var(--primary-color);
    animation: gradientShift 2s ease-in-out infinite;
}

.features-content {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    margin-top: 50px;
}

.features-text {
    flex: 1.2;
    max-width: 65%;
}

.features-image {
    flex: 0.8;
    max-width: 25%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.features-main {
    margin-bottom: 50px;
}

.features-heading {
    font-family: var(--heading-font);
    font-size: 28px;
    color: var(--primary-light);
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
}

.features-heading::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #8A67E5);
    border-radius: 2px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 183, 228, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #8A67E5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 183, 228, 0.3);
}

.feature-text h4 {
    font-size: 1.2rem;
    color: var(--dark-text-color);
    margin-bottom: 8px;
    font-weight: 600;
    font-family: var(--heading-font);
}

.feature-text p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    font-size: 0.95rem;
    margin: 0;
}

.features-columns {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    position: relative;
    z-index: 1;
    margin-top: 50px;
}

.features-column {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.features-future {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.features-heading-small {
    font-family: var(--heading-font);
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
}

.features-heading-small::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 30px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 1px;
}

.future-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.future-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    position: relative;
}

.future-item i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 183, 228, 0.7);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.future-item span {
    line-height: 1.4;
}

.features-column:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 183, 228, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.features-heading {
    font-family: var(--heading-font);
    font-size: 24px;
    text-align: center;
    color: var(--primary-light);
    margin-bottom: 30px;
    text-shadow: 0 0 15px var(--dark-accent-glow), 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.01em;
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
}

.features-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
}

.feature-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 20px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-8px) scale(1.03);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(0, 183, 228, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25), 0 0 20px rgba(0, 183, 228, 0.3);
}

.feature-item:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.feature-item i {
    font-size: 20px;
    color: var(--primary-color);
    text-shadow: 0 0 12px var(--primary-color);
    transition: all 0.3s ease;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 183, 228, 0.15);
    border-radius: 12px;
    border: 1px solid rgba(0, 183, 228, 0.3);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.feature-item:hover i {
    transform: scale(1.1) rotate(5deg);
    color: var(--primary-light);
    text-shadow: 0 0 15px var(--primary-color);
    background: rgba(0, 183, 228, 0.25);
    border-color: rgba(0, 183, 228, 0.6);
    box-shadow: 0 0 20px rgba(0, 183, 228, 0.4);
}

.feature-item p {
    font-size: 16px;
    letter-spacing: 0.01em;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.phone-demo {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 300px;
    align-self: flex-start;
    margin: 0 20px;
    margin-top: 0px;
}

.phone-demo img {
    max-width: 300px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px var(--dark-accent-glow);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    margin-top: 0;
}

.phone-demo img:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 25px var(--dark-accent-glow);
}


.step-details ul {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-details ul li {
    font-size: 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    text-align: left;
}

.step-details ul li:before {
    content: "•";
    color: var(--primary-color);
    margin-right: 10px;
    font-weight: bold;
    font-size: 20px;
}

/* Pricing Section - Enhanced Design */
.pricing {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    padding: 100px 0;
    overflow: visible; /* Убираем скрытие переполнения */
}

.pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(0,183,228,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/>');
    pointer-events: none;
}

.pricing h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--text-color);
    position: relative;
    font-weight: 700;
}

.pricing .section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #64748b;
    margin-bottom: 50px;
    font-weight: 400;
}

.pricing h2::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.pricing-plans {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 20px; /* Дополнительный отступ сверху для бейджей */
    padding-bottom: 20px; /* Дополнительный отступ снизу */
    align-items: start; /* Выравниваем карточки по верху */
}

.pricing-plan {
    background: white;
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: visible; /* Изменяем на visible для отображения ленты */
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 580px; /* Увеличиваем минимальную высоту */
    height: auto;
}

.pricing-plan.popular {
    min-height: 580px; /* Такая же высота как у остальных */
}

.pricing-plan::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pricing-plan:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
}

.pricing-plan:hover::before {
    opacity: 1;
}

/* Ribbon for discounts */
.ribbon-wrapper {
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 8;
    overflow: hidden;
    width: 150px;
    height: 150px;
    pointer-events: none;
}

.ribbon {
    position: absolute;
    top: 35px;
    right: -35px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 8px 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transform: rotate(45deg);
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.4);
    font-family: var(--heading-font);
    white-space: nowrap;
    border-radius: 2px;
    min-width: fit-content;
}

.ribbon.popular-ribbon {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.4);
    animation: ribbon-glow 2s ease-in-out infinite;
    padding: 8px 50px; /* Увеличиваем padding для лучшего покрытия */
}

@keyframes ribbon-glow {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    }
    50% {
        box-shadow: 0 4px 12px rgba(76, 175, 80, 0.5);
    }
}

/* Popular badge */
.popular-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    z-index: 10;
    white-space: nowrap;
    min-width: fit-content;
}

.popular-badge i {
    font-size: 9px;
}

/* Plan sections */
.plan-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.popular .plan-header {
    padding-top: 50px; /* Увеличиваем отступ для популярного бейджа */
}

.plan-header h3 {
    font-family: var(--heading-font);
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1.2;
}

.plan-header .plan-subtitle {
    font-size: 16px;
    color: rgba(51, 51, 51, 0.7);
    margin: 0;
    font-weight: 500;
}

.price-section {
    padding: 25px 30px;
    background: linear-gradient(135deg, rgba(0, 183, 228, 0.02), rgba(0, 183, 228, 0.05));
}

.price {
    font-family: var(--heading-font);
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: var(--secondary-color);
    line-height: 1;
}

.price.free {
    font-size: 24px;
    color: #666;
}

.price .currency {
    font-size: 16px;
    font-weight: 500;
    color: rgba(51, 51, 51, 0.7);
}

.total-price {
    font-size: 14px;
    color: rgba(51, 51, 51, 0.8);
    margin: 0 0 5px 0;
    font-weight: 500;
}

.savings {
    font-size: 13px;
    color: #4CAF50;
    margin: 0;
    font-weight: 700;
}

.features-list {
    padding: 25px 30px;
    flex-grow: 1;
}

.features-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.features-list ul li {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #555;
    line-height: 1.4;
}

.features-list ul li i {
    color: #4CAF50;
    margin-right: 12px;
    font-size: 14px;
    width: 16px;
    flex-shrink: 0;
}

.plan-note {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 15px;
    padding: 10px;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 8px;
    text-align: center;
    font-style: italic;
}

.plan-button {
    margin: 0 30px 30px;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--heading-font);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.plan-button:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 183, 228, 0.3);
}

.plan-button.popular-button {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    font-size: 18px;
    padding: 18px 24px;
}

.plan-button.popular-button:hover {
    background: linear-gradient(135deg, #45a049, #4CAF50);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

/* Plan-specific styles */
.freemium {
    border-color: rgba(0, 0, 0, 0.1);
}

.freemium .plan-button {
    background: linear-gradient(135deg, #6c757d, #5a6268);
}

.freemium .plan-button:hover {
    background: linear-gradient(135deg, #5a6268, #6c757d);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.3);
}

.pro-monthly {
    border-color: rgba(0, 183, 228, 0.2);
}

.pro-quarterly {
    border-color: rgba(255, 107, 53, 0.2);
    position: relative;
}

.pro-yearly {
    border-color: rgba(76, 175, 80, 0.2);
    z-index: 2;
    position: relative;
    overflow: visible; /* Убираем скрытие переполнения */
    /* Убираем transform и дополнительные отступы для выравнивания */
    box-shadow: 0 25px 80px rgba(76, 175, 80, 0.2); /* Добавляем зеленую тень для выделения */
    border: 2px solid rgba(76, 175, 80, 0.3); /* Добавляем зеленую границу */
}

.pro-yearly:hover {
    transform: translateY(-20px) scale(1.02);
}



.benefit {
    flex: 1 1 30%;
    min-width: 250px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    font-size: 24px;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--dark-accent-glow);
}

.benefit-content {
    flex: 1;
}

.benefit h4 {
    font-family: var(--heading-font);
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 12px;
    text-shadow: 0 0 8px var(--dark-accent-glow);
    letter-spacing: -0.01em;
}

.benefit p {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 1100px) {
    .individual-benefits {
        flex-direction: column;
    }
    
    .benefit {
        flex-basis: 100%;
    }
}

/* Contact Section */
.contact {
    background-color: var(--gray-light);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: "";
    position: absolute;
    top: -10%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle at center, rgba(0, 183, 228, 0.1), transparent 70%);
    border-radius: 50%;
}

.contact h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    position: relative;
}

.contact h2::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.contact-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
    position: relative;
    z-index: 1;
    margin-top: 30px;
}

.contact-text {
    flex: 1;
    min-width: 300px;
}

.contact-text p {
    font-family: var(--body-font);
    font-size: 22px;
    margin-bottom: 30px;
    line-height: 1.6;
    letter-spacing: 0.01em;
    color: var(--text-color);
    font-weight: 500;
}

.contact-image {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 300px;
}

.contact-image img {
    max-width: 220px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.contact-image img:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    background: linear-gradient(180deg, var(--dark-bg-gradient-from), #0a0f1a);
    color: white;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(0, 183, 228, 0.1), transparent 40%),
                radial-gradient(circle at 80% 80%, rgba(138, 103, 229, 0.1), transparent 40%);
    pointer-events: none;
}

.footer-divider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light), var(--primary-color));
    opacity: 0.7;
}

footer::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at center, var(--dark-accent-glow), transparent 70%);
    opacity: 0.2;
    pointer-events: none;
}

footer .container {
    position: relative;
    z-index: 1;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
    filter: brightness(1.2) drop-shadow(0 0 8px var(--dark-accent-glow));
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.copyright {
    font-family: var(--mono-font);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.02em;
}

.tagline {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.01em;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links h4, .footer-contact h4 {
    font-family: var(--heading-font);
    font-size: 18px;
    color: var(--primary-light);
    margin-bottom: 20px;
    letter-spacing: 0.01em;
    position: relative;
    display: inline-block;
}

.footer-links h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-links h4:hover::after, .footer-contact h4:hover::after {
    width: 100%;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

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

.footer-links ul li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    padding-bottom: 3px;
    letter-spacing: 0.01em;
}

.footer-links ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: width 0.3s ease, height 0.3s ease, box-shadow 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
    text-shadow: 0 0 8px rgba(0, 183, 228, 0.3);
}

.footer-links ul li a:hover::after {
    width: 100%;
    height: 2px;
    box-shadow: 0 0 5px var(--primary-color);
}

.footer-contact {
    flex: 1;
    min-width: 250px;
}

.footer-contact a {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    font-size: 15px;
}

.footer-contact a i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 16px;
}

.footer-contact a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    text-shadow: 0 0 8px var(--dark-accent-glow);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary-color) !important;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon i {
    font-size: 18px;
    margin: 0 !important;
}

.social-icon:hover {
    background: rgba(0, 183, 228, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 183, 228, 0.3);
}

/* Footer Legal Information */
.footer-legal {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.legal-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.legal-info p {
    font-family: var(--mono-font);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.02em;
    margin: 0;
    line-height: 1.4;
}

.legal-info p:first-child {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.offer-link {
    font-family: var(--mono-font);
    font-size: 13px;
    color: var(--primary-light);
    text-decoration: none;
    letter-spacing: 0.02em;
    margin-top: 10px;
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid rgba(0, 183, 228, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
    background: rgba(0, 183, 228, 0.1);
}

.legal-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.legal-links .offer-link {
    margin-top: 10px;
}

.offer-link:hover {
    color: white;
    background: rgba(0, 183, 228, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 183, 228, 0.2);
}

/* Legal Document Styles */
.legal-document {
    min-height: 100vh;
    background: var(--background-color);
    color: var(--text-color);
    padding: 40px 0;
}

.document-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
 border-bottom: 2px solid var(--gray);
}

.back-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-link:hover {
    transform: translateX(-5px);
    color: var(--primary-dark);
}

.document-header h1 {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin: 0;
}

.document-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.document-content h2 {
    font-family: var(--heading-font);
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin: 30px 0 20px 0;
    text-align: center;
}

.document-content h3 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    font-size: 1.3rem;
    margin: 25px 0 15px 0;
}

.document-content h4 {
    font-family: var(--heading-font);
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.terms-definitions {
    background: var(--gray-light);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--primary-color);
}

.terms-definitions h4 {
    margin-top: 0;
    color: var(--primary-color);
}

.document-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.document-content ul {
    margin: 15px 0;
    padding-left: 30px;
}

.document-content ul li {
    margin-bottom: 8px;
}

.contact-info {
    background: var(--gray-light);
    padding: 25px;
    border-radius: 12px;
    margin-top: 40px;
    border-left: 4px solid var(--primary-color);
}

.contact-info h3 {
    margin-top: 0;
}

.contact-info p {
    margin-bottom: 8px;
    text-align: left;
}

@media screen and (max-width: 768px) {
    .document-content {
        padding: 0 20px;
    }
    
    .document-header h1 {
        font-size: 2rem;
    }
    
    .document-content h2 {
        font-size: 1.5rem;
    }
    
    .document-content h3 {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 768px) {
    section {
        padding: 70px 0;
    }
    
    h2 {
        margin-bottom: 40px;
    }
    
    .hero {
        background: var(--background-color);
        padding: 40px 0 70px 0;
        min-height: auto;
        align-items: center;
        padding-top: 60px;
    }

    .hero .container,
    .solution-content,
    .contact-content,
    .workflow-steps {
        flex-direction: column;
        gap: 40px;
        margin-top: 0;
    }
    
    /* FIX: content was pushed off-screen on mobile */
    .hero-content,
    .hero-image {
        margin-top: 0;
        margin-left: 0; /* was 1000px */
        max-width: 100%;
        text-align: center;
    }

    /* Mobile layout for images in hero */
    .hero-image { 
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        gap: 16px;
    }

    /* Do not stretch screenshots: keep natural width, only cap the size */
    .hero-image img { 
        width: auto;               /* don't force width */
        max-width: min(45%, 240px);/* cap by percent and absolute */
        height: auto;              /* preserve ratio */
        max-height: 320px;
        object-fit: contain;       /* safety */
        flex: 0 0 auto;            /* prevent flex stretching */
    }

    /* Reset heading offset for small screens */
    .hero-content h1 { 
        margin-left: 0; 
        margin-bottom: 20px;
    }

    .hero-image,
    .solution-image,
    .contact-image {
        justify-content: center;
        margin-top: 0; /* Since we have gap in parent flex */
    }

    .individual-plan {
        flex-direction: column;
    }
    
    .problem-card, 
    .market-point, 
    .pricing-plan, 
    .stat,
    .workflow-step {
        min-width: 100%;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        z-index: 1000;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s, opacity 0.3s;
    }

    header.nav-open nav {
        display: block;
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 0 0 15px 0;
    }

    header .container {
        position: relative;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

@media screen and (max-width: 480px) {
    section {
        padding: 50px 0;
    }
    
    h2 {
        font-size: 28px !important;
        margin-bottom: 30px;
    }
    
    h2::after {
        bottom: -15px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content h2 {
        font-size: 24px;
    }

    /* Tighter layout on very small screens */
    .hero-image { gap: 10px; }
    .hero-image img { 
        max-height: 260px; 
        width: auto;                 /* keep natural width */
        max-width: min(48%, 200px);  /* cap size to avoid oversizing */
        object-fit: contain;
        flex: 0 0 auto;
    }
    
    .problem-card, 
    .market-point, 
    .pricing-plan, 
    .stat {
        padding: 25px;
    }
}

/* Enhanced Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 1s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    visibility: hidden;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px) scale(0.95) rotate(-2deg);
    transition: opacity 1s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    visibility: hidden;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0) scale(1) rotate(0deg);
    visibility: visible;
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px) scale(0.95) rotate(2deg);
    transition: opacity 1s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    visibility: hidden;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0) scale(1) rotate(0deg);
    visibility: visible;
}

.reveal-delay-1 {
    transition-delay: 0.2s;
}

.reveal-delay-2 {
    transition-delay: 0.4s;
}

.reveal-delay-3 {
    animation-delay: 0.6s;
}

.reveal-delay-4 {
    animation-delay: 0.8s;
}

/* Global spacing for consistency */
.container > p,
.container > div:not(.hero-content):not(.hero-image) {
    margin-top: 30px;
}

.container > h2:first-child,
.container > h3:first-child {
    margin-top: 0;
}

/* Enhanced hover effects for interactive elements */
.hero-image img,
.solution-image img,
.phone-demo img {
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-image img:hover {
    transform: translateY(-15px) rotate(2deg) scale(1.05);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2)) brightness(1.1);
}

.solution-image img:hover {
    transform: translateY(-15px) rotate(-2deg) scale(1.03);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2)) brightness(1.1);
}

.phone-demo img:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 40px var(--dark-accent-glow);
}

/* Magnetic hover effect for cards */
.problem-card,
.pricing-plan {
    cursor: pointer;
}

.problem-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 183, 228, 0.5);
}

.pricing-plan:hover {
    border-color: rgba(0, 183, 228, 0.5);
}

/* Demo Video Section */
.demo-video {
    background: linear-gradient(145deg, var(--dark-bg-gradient-from), var(--dark-bg-gradient-to));
    color: var(--dark-text-color);
    position: relative;
    overflow: hidden;
}

.demo-video p {
    color: var(--dark-text-color) !important;
}

.demo-video::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, var(--dark-accent-glow), transparent 70%);
    opacity: 0.3;
    pointer-events: none;
}

.demo-video h2::after {
    box-shadow: 0 0 10px var(--primary-color);
}

.section-intro {
    font-family: var(--body-font);
    text-align: center;
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.01em;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio - fallback for browsers without aspect-ratio support */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--dark-accent-glow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #000;
}

/* Modern browsers with aspect-ratio support */
@supports (aspect-ratio: 16 / 9) {
    .video-wrapper {
        aspect-ratio: 16 / 9;
        height: auto;
        padding-bottom: 0;
    }
}

.video-wrapper:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px var(--dark-accent-glow);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    background: #000;
    display: block;
    max-width: 100%;
    max-height: 100%;
}

/* For modern browsers with aspect-ratio support */
@supports (aspect-ratio: 16 / 9) {
    .video-wrapper video {
        position: static;
        object-fit: contain;
    }
}

.video-controls {
    display: none; /* Hidden by default, shown when autoplay fails */
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-wrapper:hover .video-controls {
    opacity: 1;
}

.play-pause-btn {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-pause-btn:hover {
    background: rgba(0, 183, 228, 0.8);
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 183, 228, 0.5);
}

.video-wrapper.video-playing {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 50px var(--dark-accent-glow);
    animation: videoGlow 2s ease-in-out infinite;
}

@keyframes videoGlow {
    0%, 100% {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(0, 183, 228, 0.5);
    }
    50% {
        box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6), 0 0 70px rgba(0, 183, 228, 0.7);
    }
}

.cta-container {
    text-align: center;
    margin-top: 50px;
}

/* Responsive adjustment for video section */
@media screen and (max-width: 768px) {
    .video-wrapper {
        max-width: 100%;
    }
}

/* Responsive Typography */
@media screen and (max-width: 768px) {
    .hero-content h1 {
        font-size: 48px;
    }
    
    .hero-content h2 {
        font-size: 24px;
    }
    
    .solution-text h3,
    .individual-content h3 {
        font-size: 28px;
    }
    
    .solution-text ul li,
    .contact-text p {
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content h2 {
        font-size: 22px;
    }
    
    h2 {
        font-size: 28px !important;
    }
    
    .solution-text h3,
    .individual-content h3 {
        font-size: 24px;
    }
    
    .solution-text ul li {
        font-size: 16px;
    }
    
    .feature-item p,
    .benefit p,
    .contact-text p {
        font-size: 16px;
    }
}

/* Ensure smooth performance for buttons and interactive elements - optimized */
.btn-primary,
logo h1,
nav ul li a,
.feature-item,
.pricing-plan,
.problem-card,
.solution-text ul li,
.footer-links ul li a,
.footer-contact a,
.workflow-step {
    will-change: auto; /* Remove expensive will-change when not needed */
}

/* Add will-change only on hover for performance */
.btn-primary:hover,
.problem-card:hover,
.pricing-plan:hover,
.feature-item:hover {
    will-change: transform;
}

.btn-primary:not(:hover),
.problem-card:not(:hover),
.pricing-plan:not(:hover),
.feature-item:not(:hover) {
    will-change: auto;
}

@media screen and (max-width: 768px) {
    /* Benefits section mobile styles */
    .benefits {
        padding: 60px 0;
    }
    
    .benefits h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .benefit-item {
        padding: 25px;
    }
    
    .benefit-item .icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .benefit-item h3 {
        font-size: 1.1rem;
    }
    
    /* Features section mobile styles */
    .features-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .features-text,
    .features-image {
        max-width: 100%;
        flex: 1;
    }
    
    .features-text {
        order: 2;
    }
    
    .features-image {
        order: 1;
    }
    
    .features-heading {
        font-size: 24px;
        text-align: center;
    }
    
    .feature-item {
        padding: 20px;
        gap: 15px;
    }
    
    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .feature-text h4 {
        font-size: 1.1rem;
    }
    
    .feature-text p {
        font-size: 0.9rem;
    }
    
    .features-future {
        margin-top: 30px;
        padding-top: 25px;
    }
    
    .features-heading-small {
        font-size: 18px;
        text-align: center;
    }
    
    .future-item {
        padding: 10px 0;
        font-size: 0.85rem;
    }
} 

html{scroll-behavior:smooth;}
.hero{will-change:auto;} /* Remove expensive will-change */
nav.open{display:block;}

/* Performance optimizations */
* {
    transform-style: preserve-3d; /* Enable hardware acceleration */
}

/* Optimize problematic sections */
.features,
.pricing {
    contain: layout style; /* Optimize layout calculations */
}

/* Адаптивные стили для планшетов */
@media screen and (max-width: 1024px) {
    .pricing-plans {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        max-width: 800px;
    }
}

/* Reduce backdrop-filter usage for better performance */
@media screen and (max-width: 768px) {
    .problem-card,
    .pricing-plan {
        backdrop-filter: none; /* Remove backdrop filter on mobile */
        background: rgba(255, 255, 255, 0.95);
    }
    
    .features-column {
        backdrop-filter: none;
        background: rgba(255, 255, 255, 0.1);
    }
    
    /* Mobile pricing adjustments */
    .pricing {
        padding: 60px 0;
    }
    
    .pricing h2 {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .pricing-plans {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 30px;
        padding-top: 25px; /* Больше места для бейджей на мобильных */
        padding-bottom: 25px;
    }
    
    .pricing-plan {
        min-height: auto;
        margin: 0 20px;
    }
    
    .pricing-plan.popular {
        min-height: auto;
    }
    
    .popular .plan-header {
        padding-top: 45px; /* Увеличенный отступ для мобильных */
    }
    
    .pro-yearly {
        transform: none;
    }
    
    .pro-yearly:hover {
        transform: translateY(-10px);
    }
    
    .ribbon-wrapper {
        width: 120px;
        height: 120px;
        top: -8px;
        right: -8px;
    }
    
    .ribbon {
        font-size: 9px;
        padding: 6px 40px;
        top: 28px;
        right: -30px;
    }
    
    .popular-badge {
        font-size: 11px;
        padding: 6px 14px;
        gap: 4px;
        top: -6px; /* Меньше отступ на мобильных */
    }
    
    .popular-badge i {
        font-size: 9px;
    }
    
    .plan-header h3 {
        font-size: 24px;
    }
    
    .price {
        font-size: 30px;
    }
    
    .price.free {
        font-size: 20px;
    }
    
    .features-list ul li {
        font-size: 14px;
        margin-bottom: 14px;
    }
    
    .plan-button {
        font-size: 14px;
        padding: 14px 20px;
    }
    
    .plan-button.popular-button {
        font-size: 16px;
        padding: 16px 20px;
    }
}

/* Scroll-driven HW screenshots section */
.hw-screens { padding: 120px 0; background: transparent; position: relative; overflow: visible; }
/* subtle background glows */
.hw-screens::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(700px 420px at 78% 22%, rgba(0,183,228,0.22), transparent 65%),
  radial-gradient(520px 320px at 18% 68%, rgba(138,103,229,0.20), transparent 65%),
  radial-gradient(360px 260px at 65% 75%, rgba(0,183,228,0.16), transparent 70%),
  radial-gradient(420px 280px at 32% 28%, rgba(138,103,229,0.14), transparent 70%),
  radial-gradient(260px 200px at 85% 60%, rgba(0,183,228,0.14), transparent 75%);
 pointer-events: none; z-index: 0; }
.hw-screens::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(160px 120px at 20% 20%, rgba(0,183,228,0.10), transparent 70%),
  radial-gradient(140px 110px at 75% 40%, rgba(138,103,229,0.10), transparent 70%),
  radial-gradient(180px 130px at 50% 82%, rgba(0,183,228,0.09), transparent 75%);
 pointer-events: none; z-index: 0; }

/* remove/neutralize the vertical accent near text */
.hw-text::before { display: none; content: none; }

.hw-wrapper { position: relative; display: grid; grid-template-columns: 120px minmax(260px, 380px) 1fr; gap: 24px; min-height: 500vh; }

/* Progress bar with badges */
.hw-progress-bar { 
    position: sticky; 
    top: 150px; 
    align-self: start; 
    height: 50vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    align-items: center;
    padding: 20px 0;
}

.hw-connecting-line {
    position: absolute;
    left: 50%;
    top: 20px;
    bottom: 20px;
    width: 3px;
    background: rgba(0,0,0,0.1);
    transform: translateX(-50%);
    border-radius: 999px;
    z-index: 1;
}

.hw-badge {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: 2px solid rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-color);
    transition: all 0.3s ease;
    z-index: 2;
    cursor: pointer;
}

.hw-badge.active {
    background: linear-gradient(135deg, var(--primary-color), #8A67E5);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 20px rgba(0,183,228,0.4);
    transform: scale(1.1);
}

.hw-badge.completed {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

/* text column - now floating next to active badge */
.hw-text { 
    position: sticky; 
    top: 100px; 
    align-self: start; 
    padding: 18px 20px; 
    max-width: 420px; 
    z-index: 10; 
    background: rgba(255,255,255,0.95); 
    border: 1px solid rgba(0,0,0,0.06); 
    border-radius: 16px; 
    box-shadow: 0 8px 28px rgba(0,0,0,0.12); 
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.hw-text.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
/* gradient heading and larger copy */
.hw-text h3 { margin: 0 0 10px; font-size: 26px; font-weight: 800; line-height: 1.2; background: linear-gradient(135deg, var(--secondary-color), var(--primary-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hw-text p { margin: 0 0 15px; font-size: 17px; line-height: 1.7; color: var(--text-color); opacity: 0.95; }

/* Telegram button in hw section */
.hw-telegram-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #0088cc, #229ed9);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.hw-telegram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 136, 204, 0.4);
    text-decoration: none;
    color: white;
}

.hw-telegram-btn i {
    font-size: 16px;
}

.hw-viewport { position: sticky; top: 50px; align-self: start; width: 100%; display: flex; justify-content: center; padding: 8px 0; background: transparent !important; box-shadow: none !important; border-radius: 0 !important; }
#hw-image { width: clamp(260px, 52vw, 560px); max-height: 75vh; object-fit: contain; border-radius: 0; box-shadow: none; filter: drop-shadow(0 12px 32px rgba(0,0,0,0.18)); background: transparent; }
@media (max-width: 1024px){ 
    .hw-wrapper{ 
        grid-template-columns: 1fr; 
        grid-template-rows: auto auto auto;
        gap: 20px;
        /* min-height: auto; */
    } 
    .hw-progress-bar {
        /* position: relative; */
        top: auto;
        height: auto;
        flex-direction: row;
        justify-content: center;
        padding: 20px 0;
        order: 1;
    }
    .hw-connecting-line {
        left: 20px;
        right: 20px;
        top: 50%;
        bottom: auto;
        width: auto;
        height: 3px;
        transform: translateY(-50%);
    }
    .hw-text{ 
        /* position: relative; */
        top: auto;
        order: 2;
        margin: 0 auto;
        max-width: 100%;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    } 
    .hw-viewport {
        /* position: relative; */
        top: auto;
        order: 3;
    }
    #hw-image{ width: clamp(240px, 62vw, 520px); max-height: 70vh; } 
    .hw-badge { width: 35px; height: 35px; font-size: 14px; margin: 0 10px; }
}
@media (max-width: 768px){ 
    .hw-wrapper{ 
        grid-template-columns: 1fr; 
        gap: 16px;
        /* min-height: auto; */
    } 
    .hw-progress-bar{ 
        padding: 16px 0; 
        height: auto;
    } 
    .hw-text {
        padding: 16px 18px;
        border-radius: 12px;
    }
    .hw-text h3 {
        font-size: 22px;
        margin-bottom: 8px;
    }
    .hw-text p {
        font-size: 15px;
        margin-bottom: 12px;
    }
    .hw-viewport{ 
        top: auto; 
    } 
    #hw-image{ 
        width: min(92vw, 420px); 
        max-height: 65vh; 
        border-radius: 0; 
    }
    .hw-badge { 
        width: 30px; 
        height: 30px; 
        font-size: 12px; 
        margin: 0 8px;
    }
    .hw-connecting-line { 
        height: 2px; 
    }
}

.hw-canvas { 
  display: contents;
}

/* Сцена всегда высокая: даём простор для скролла и смены кадров */
.hw-wrapper{
  /* на десктопе уже есть min-height: 500vh; оставим как есть */
}

/* Общий липкий холст для мобильной/планшетной ширины */
@media (max-width: 1024px){
  .hw-wrapper{
    min-height: 550vh; /* была auto — из-за этого всё «пролетало» */
    display: block;    /* без переломов потока */
  }

  /* Новый общий Pinned-контейнер */
  .hw-canvas{
    position: sticky;
    top: 80px;              /* под фиксированный header */
    z-index: 2;
    /* Верстаем компактную сетку внутри холста */
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 16px;
    align-items: start;
    background: transparent;
  }

  /* Внутренние элементы больше НЕ sticky по отдельности на мобиле */
  .hw-progress-bar,
  .hw-text,
  .hw-viewport{
    position: static !important;
    top: auto !important;
  }

  /* Делай прогресс вертикальным и компактным (чтобы смотрелся как на десктопе) */
  .hw-progress-bar{
    height: 48vh;
    display: flex;
    flex-direction: row;         /* было row */
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
  }

    .hw-connecting-line {
        left: 20px;
        right: 20px;
        top: 50%;
        bottom: auto;
        width: auto;
        height: 3px;
        transform: translateY(-50%);
    }
  /* Картинка крупная и влезает по высоте */
  #hw-image{
    width: min(92vw, 420px);
    max-height: 70vh;
    object-fit: contain;
  }
}

/* === HW mobile compact === */
@media (max-width:1024px){
  /* компактные отступы секции */
  .hw-screens{ padding: 32px 0 48px; }

  /* сцена короче, но «залипание» сохраняем */
  .hw-wrapper{ min-height: 420vh; }

  /* холст ближе к шапке и плотнее внутри */
  .hw-canvas{
    top: 64px;
    gap: 12px;
  }

  /* горизонтальный прогресс без лишней высоты */
  .hw-progress-bar{
    height: auto;          /* было 48vh — именно из-за этого большая пустота */
    padding: 8px 0;
    justify-content: space-between;
  }
  .hw-connecting-line{
    left: 24px;
    right: 24px;
    top: 50%;
    width: auto;
    height: 2px;
    transform: translateY(-50%);
  }
  .hw-badge{
    width: 28px; height: 28px; font-size: 12px; margin: 0 6px;
  }

  /* более плотная карточка текста */
  .hw-text{
    padding: 12px 14px;
    border-radius: 12px;
  }
  .hw-text h3{ font-size: 20px; margin-bottom: 6px; }
  .hw-text p { font-size: 14px; margin-bottom: 10px; }

  /* чуть меньше изображение, чтобы всё «собралось» выше */
  #hw-image{
    width: min(88vw, 380px);
    max-height: 60vh;
  }
}

@media (max-width:768px){
  .hw-screens{ padding: 28px 0 40px; }
  .hw-wrapper{ min-height: 400vh; } /* ещё компактнее на маленьких экранах */
}

