/* ===== Layout ===== */

.section {
    padding: 40px 0;
    background: transparent;
}

.section-light {
    background: transparent;
}

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

.section-header p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 16px auto 0;
}

.grid {
    display: grid;
    gap: 32px;
}

.grid > * {
    min-width: 0;
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ===== Hero ===== */

.hero {
    position: relative;
    background-repeat: no-repeat;
}

.hero-wrapper {
    position: relative;
    background-color: #d86a33;
}

.hero-images {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.hero-images-img {
    height: 700px;
    aspect-ratio: auto;
    object-position: top;
    object-fit: cover;
    width: 100%;
    max-width: 100%;
}

.hero-images-bottom {
    background:
            linear-gradient(180deg, rgba(216, 106, 51, 0) var(--scrim-from, 56%), #D86A33 var(--scrim-to, 82%)),
            linear-gradient(135deg, rgba(216, 106, 51, 0) 72%, #D86A33 100%),
            linear-gradient(225deg, rgba(216, 106, 51, 0) 76%, #D86A33 100%);
    inset: 0;
    position: absolute;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    margin-top: -25.64%;
}

.hero-text {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 80px;
}

.hero-content {
    text-align: left;
    max-width: 560px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.badge {
    display: inline-block;
    background: rgba(0, 0, 0, 0.06);
    color: var(--color-dark);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    margin-bottom: 24px;
}

.text-white {
    color: var(--color-white);
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 520px;
    color: rgba(0, 0, 0, 0.65);
    text-align: left;
}

.hero-cta {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.hero .btn-gradient {
    background: var(--color-dark);
    color: var(--color-white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero .btn-gradient:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.hero .btn-outline {
    background: transparent;
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--color-dark);
}

.hero .btn-outline:hover {
    border-color: var(--color-dark);
    background: rgba(0, 0, 0, 0.04);
}

.interface {
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0) 21%, #FFFFFF 100%),
            radial-gradient(80% 94% at 50% 94%, #FFFFFF 0%, #D86A33 91%);
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.metric-value {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.metric-label {
    font-size: 0.875rem;
    color: rgba(0, 0, 0, 0.55);
    margin-top: 4px;
}

.hero-preview {
    margin-top: 0;
    max-width: 100%;
}

.hero-preview-frame {
    padding: 12px;
    border-radius: 24px;
    border: 1px solid #fee687;
}

.hero-preview-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    background: var(--color-white);
}

/* ===== Slider ===== */

.interface-preview {
    position: relative;
    border-radius: 16px;
    box-shadow:
            0 20px 40px rgba(0, 0, 0, .12),
            0 4px 10px rgba(0, 0, 0, .08);
}

.browser-mockup {
    position: relative;
    background: #292929;
    aspect-ratio: 1941 / 1104;
    overflow: hidden;
    border-radius: 16px;
}

.slides-wrapper {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform .5s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

.slide {
    flex: 0 0 100%;
    min-width: 100%;
    height: 100%;
}

.slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.5);
}

.slider-arrow--prev { left: 12px; }
.slider-arrow--next { right: 12px; }

@media (min-width: 640px) {
    .slider-arrow--prev { left: 20px; }
    .slider-arrow--next { right: 20px; }
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.slider-dots button {
    height: 8px;
    width: 8px;
    border-radius: 9999px;
    border: none;
    background: #e5e5e5;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease-out;
}

.slider-dots button.active {
    width: 24px;
    background: #292929;
}

.slider-dots button:hover:not(.active) {
    background: #d4d4d4;
}

/* ===== System section ===== */

.section-system {
    background-color: #faf9fb;
    padding: 80px 0;
}

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

.system-header {
    margin-bottom: 60px;
    max-width: 700px;
}

.system-header h2 {
    font-family: "Manrope", sans-serif;
    font-size: 36px;
    font-weight: 520;
    line-height: 1.2;
    color: #140f23;
    margin: 0 0 20px 0;
}

.system-header p {
    font-family: "Inter", sans-serif;
    font-size: 20px;
    line-height: 1.4;
    color: #211f26;
    margin: 0;
}

.system-content {
    display: flex;
    flex-flow: row;
    align-items: flex-start;
    gap: 36px;
    width: 100%;
    position: relative;
}

.system-cards {
    flex: 0 0 560px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-self: flex-start;
}

.system-card {
    background-color: #fff;
    border: 1px solid #f2eff3;
    border-radius: 28px;
    padding: 24px;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.system-card.active {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    border-color: #e0dce6;
}

.system-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.system-card-number {
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #8079fd;
    background-color: #f3f5fe;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.system-card-title {
    flex: 1;
    min-width: 0;
}

.system-card-title h3 {
    font-family: "Manrope", sans-serif;
    font-size: 26px;
    font-weight: 520;
    line-height: 1.1;
    color: #140f23;
    margin: 0 0 4px 0;
}

.system-card-subtitle {
    font-family: "Inter", sans-serif;
    font-size: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #8e8c99;
    display: block;
}

.system-card-icon {
    width: 24px;
    height: 24px;
    color: #140f23;
    flex-shrink: 0;
    margin-top: 4px;
    transition: transform 0.4s ease;
}

.system-card.active .system-card-icon {
    transform: rotate(45deg);
}

.system-card-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height 0.5s ease, opacity 0.3s ease, margin-top 0.5s ease;
}

.system-card.active .system-card-body {
    max-height: 400px;
    opacity: 1;
    margin-top: 20px;
}

.system-card-body p {
    font-family: "Inter", sans-serif;
    font-size: 18px;
    line-height: 1.4;
    color: #211f26;
    margin: 0;
}

.system-visual {
    flex: 1;
    min-width: 0;
    align-self: flex-start;
    height: auto;
}

.system-visual-inner {
    position: relative;
    width: 100%;
    max-width: 675px;
    margin: 0 auto;
    aspect-ratio: 675 / 939;
}

.system-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.system-image.active {
    opacity: 1;
    pointer-events: auto;
}

/* ===== Cards ===== */

.card {
    background: var(--color-white);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    min-width: 0;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.card h3 {
    margin: 20px 0 12px;
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-card {
    background: var(--color-white);
    padding: 36px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: var(--transition);
    min-width: 0;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-white);
    stroke-width: 2;
}

.feature-card h3 {
    margin-bottom: 12px;
}

.case-card {
    background: var(--color-white);
    padding: 36px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    min-width: 0;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.case-value {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.case-card h3 {
    margin-bottom: 12px;
}

.case-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    font-size: 0.875rem;
    color: #9ca3af;
}

/* ===== Pricing ===== */

#pricing {
    margin-top: 60px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
    max-width: 860px;
    margin: 0 auto;
}

.pricing-grid-single {
    display: flex;
    justify-content: center;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--color-white);
    padding: 40px 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.pricing-card:hover {
    box-shadow: var(--shadow-md);
}

.pricing-card-single {
    width: 100%;
    max-width: 640px;
}

.pricing-card-featured {
    background: linear-gradient(180deg, #ffffff 0%, #f5f3ff 100%);
    box-shadow: 0 20px 40px rgba(106, 17, 203, 0.15);
}

.pricing-card-featured::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1.5px;
    background: var(--gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    box-shadow: 0 8px 20px rgba(37, 117, 252, 0.3);
    white-space: nowrap;
}

.pricing-head {
    margin-bottom: 24px;
}

.pricing-head h3 {
    font-size: 1.375rem;
    margin-bottom: 8px;
}

.pricing-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--color-border);
    min-height: 84px;
}

.pricing-value {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.pricing-value:not(.gradient-text) {
    color: var(--color-text);
}

.pricing-note {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.pricing-period-note {
    margin-left: 6px;
    color: var(--text-muted, #6b7280);
}

.pricing-sub {
    margin-top: 6px;
    font-size: 14px;
    color: var(--text-muted, #6b7280);
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
    flex: 1;
}

.pricing-features li {
    position: relative;
    padding-left: 28px;
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.5;
}

.pricing-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gradient);
    opacity: 0.15;
}

.pricing-features li::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 12px;
    width: 6px;
    height: 3px;
    border-left: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    transform: rotate(-45deg);
}

.pricing-btn {
    width: 100%;
    margin-top: auto;
}

/* Калькулятор (слайдер) внутри карточки */

.pricing-calc {
    margin: 0 0 24px;
    padding: 0 0 24px;
    border-bottom: 1px solid var(--border, rgba(0, 0, 0, .08));
}

.pricing-calc-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.pricing-calc-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--text-muted, #6b7280);
}

.pricing-calc-visitors {
    font-size: 32px;
    line-height: 1.1;
}

.pricing-period {
    display: inline-flex;
    padding: 4px;
    border-radius: 12px;
    background: var(--bg-soft, #f3f4f6);
}

.pricing-period-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s, box-shadow .2s;
}

.pricing-period-btn.is-active {
    background: var(--card-bg, #fff);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.pricing-period-save {
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--accent, #7c5cff);
    color: #fff;
    font-size: 11px;
}

.pricing-slider-wrap {
    padding: 0 10px;
}

.pricing-slider {
    --progress: 0%;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
    background: linear-gradient(
            90deg,
            var(--accent, #7c5cff) var(--progress),
            var(--bg-soft, #e5e7eb) var(--progress)
    );
}

.pricing-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--accent, #7c5cff);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
    transition: transform .15s;
}

.pricing-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.pricing-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--accent, #7c5cff);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

.pricing-slider:focus-visible::-webkit-slider-thumb {
    outline: 3px solid rgba(124, 92, 255, .35);
}

.pricing-slider-marks {
    display: flex;
    justify-content: space-between;
    margin: 12px -10px 0;
}

.pricing-mark {
    min-width: 44px;
    padding: 4px 8px;
    border: 0;
    background: none;
    color: var(--text-muted, #9ca3af);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.pricing-mark.is-passed {
    color: inherit;
}

.pricing-mark.is-active {
    color: var(--accent, #7c5cff);
    font-weight: 700;
}

/* ===== CTA ===== */

:root {
    --blue: #6A49FF;
}

.cta-section {
    padding: 100px 0;
}

.cta-box {
    background: var(--gradient);
    color: var(--color-white);
    padding: 72px 48px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.cta-box h2 {
    color: var(--color-white);
    margin-bottom: 16px;
}

.cta-box > p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

.cta-form {
    display: flex;
    gap: 12px;
    max-width: 520px;
    margin: 0 auto;
}

.cta-form input {
    flex: 1;
    min-width: 0;
    padding: 16px 24px;
    border-radius: var(--radius-full);
    border: none;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    background: var(--color-white);
    color: var(--color-text);
}

.cta-form input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.cta-legal {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.8rem;
    margin-top: 16px;
}

/* =====================================================
   SEGMENT SECTION (объединены два дублирующихся блока)
   ===================================================== */

.segment-section {
    scroll-margin-top: 4rem;
    padding-block: 5rem;
    background: transparent;
}

.segment-container {
    margin-inline: auto;
    width: 100%;
    max-width: 1264px;
    padding-inline: 1rem;
}

@media (min-width: 640px) {
    .segment-section { padding-block: 7rem; }
    .segment-container { padding-inline: 2rem; }
}

/* Заголовок */

.segment-header {
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
}

.segment-title {
    margin: 0;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.segment-title-accent {
    display: block;
    color: var(--blue, #2563eb);
}

@media (min-width: 640px) {
    .segment-title { font-size: 44px; line-height: 1.06; }
}

.segment-subtitle {
    margin: 1rem 0 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--muted, #6b7280);
    text-wrap: pretty;
}

@media (min-width: 640px) {
    .segment-subtitle { margin-top: 1.25rem; font-size: 1.125rem; }
}

/* Схема (в текущей разметке не используется — можно удалить) */

.segment-flow {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .segment-flow {
        margin-top: 3.5rem;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 0;
    }
}

.segment-flow-card {
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

@media (min-width: 640px) {
    .segment-flow-card { padding: 2rem; }
}

.segment-flow-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted, #6b7280);
}

.segment-flow-label-icon {
    color: var(--blue, #2563eb);
    flex-shrink: 0;
}

.segment-flow-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.segment-flow-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.segment-flow-dot {
    height: 0.5rem;
    width: 0.5rem;
    border-radius: 9999px;
    background: var(--blue, #2563eb);
    flex-shrink: 0;
}

.segment-flow-item-text { color: var(--muted, #6b7280); }

.segment-flow-check {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.segment-flow-check-text { color: var(--muted, #6b7280); }

.segment-flow-check-mark {
    color: #16a34a;
    font-weight: 500;
}

.segment-flow-arrow {
    display: none;
    align-items: center;
    justify-content: center;
    padding-inline: 0.75rem;
    color: var(--muted, #6b7280);
}

.segment-flow-arrow-icon { display: block; }

@media (min-width: 768px) {
    .segment-flow-arrow { display: flex; }
}

.segment-flow-recipient {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.75rem;
    background: color-mix(in srgb, var(--blue, #2563eb) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--blue, #2563eb) 20%, transparent);
    padding: 0.75rem;
}

.segment-flow-avatar {
    height: 2.25rem;
    width: 2.25rem;
    border-radius: 9999px;
    background: color-mix(in srgb, var(--blue, #2563eb) 15%, transparent);
    color: var(--blue, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
}

.segment-flow-recipient-info { min-width: 0; }

.segment-flow-recipient-name {
    font-size: 0.875rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.segment-flow-recipient-caption {
    font-size: 0.75rem;
    color: var(--muted, #6b7280);
}

.segment-flow-note {
    margin: 0.75rem 0 0;
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--muted, #6b7280);
}

/* Карточки-роли */

.segment-cards {
    margin-top: 2.5rem;
}

@media (min-width: 640px) {
    .segment-cards { margin-top: 3.5rem; }
}

.segment-cards-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1px;
    background: var(--border, #e5e7eb);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 1rem;
    overflow: hidden;
}

@media (min-width: 640px) {
    .segment-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .segment-cards-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.segment-card {
    background: var(--surface, #fff);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.segment-card-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.segment-card-icon {
    color: var(--blue, #2563eb);
    flex-shrink: 0;
}

.segment-card-text {
    margin: 0.5rem 0 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--muted, #6b7280);
}

/* CTA */

.segment-cta {
    margin-top: 3.5rem;
    display: flex;
    justify-content: center;
}

.segment-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 42px;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    background: var(--blue, #2563eb);
    border: 1px solid var(--blue, #2563eb);
    border-radius: 0.75rem;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.segment-cta-button:hover {
    background: var(--accent-hover, #1d4ed8);
    border-color: var(--accent-hover, #1d4ed8);
}

.segment-cta-button:active { transform: scale(0.95); }

.segment-cta-icon { display: block; }

/* ===== FAQ ===== */

.section.faq {
    padding: 100px 0;
    background: transparent;
}

.faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr);
    align-items: start;
    gap: 48px;
}

.faq-title {
    position: sticky;
    top: 112px;
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--color-text);
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.faq-list-accordion {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    border-bottom: 1px solid var(--color-border);
}

.faq-list-accordion .faq-item {
    border: 0;
    border-top: 1px solid var(--color-border);
    border-radius: 0;
    background: transparent;
    overflow: hidden;
}

.faq-list-accordion .faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 0;
    cursor: pointer;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text);
    transition: color 0.2s ease;
}

.faq-list-accordion .faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-list-accordion .faq-item summary:hover .faq-q {
    color: var(--color-primary);
}

.faq-q {
    min-width: 0;
    transition: color 0.2s ease;
}

.faq-ic {
    position: relative;
    flex: none;
    width: 14px;
    height: 14px;
    color: var(--color-text-muted);
}

.faq-ic::before,
.faq-ic::after {
    content: "";
    position: absolute;
    inset: 6px 0;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.35s var(--ease), rotate 0.35s var(--ease), scale 0.35s var(--ease);
}

.faq-ic::after {
    rotate: 90deg;
}

.faq-item[open] .faq-ic::after {
    rotate: 180deg;
    scale: 0 1;
}

.faq-list-accordion .faq-a {
    max-width: 62ch;
    padding: 0 0 24px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text-muted);
}

.faq-list-accordion .faq-a p {
    margin: 0;
    color: inherit;
    font-size: inherit;
}

/* ===== Demo form ===== */

.demo-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #211f26;
    font-weight: 500;
    padding-left: 4px;
}

.demo-form input {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    color: #12115d;
    background: #f1f1f3;
    border: 1px solid transparent;
    border-radius: 50px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.demo-form input::placeholder {
    color: #757575;
}

.demo-form input:focus {
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.1);
}

.btn-submit {
    margin-top: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: 50px;
    background: var(--color-dark);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, opacity 0.15s ease;
    font-family: inherit;
}

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

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin: 0;
    font-size: 13px;
    text-align: center;
    min-height: 18px;
}

.form-message.is-error { color: #dc2626; }
.form-message.is-success { color: #16a34a; }

.form-legal {
    margin: 0;
    font-size: 11px;
    color: #000;
    text-align: center;
}

.form-legal a {
    color: #111;
}

.demo-request .demo-form {
    max-width: 460px;
    margin: 0 auto;
    padding: 32px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* =====================================================
   CHAT SECTION
   ===================================================== */

.chat-section {
    --c-blue: #1E6AFF;
    --c-purple: #8D37B9;
    --c-green: #11BA91;
    --c-text: #1A1B18;
    --c-muted: #6B7280;
    --c-border: #DDEBFF;
    --c-bg: #F5F9FF;
    padding: 96px 0;
}

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

.chat-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 56px;
}

.chat-title {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
    font-weight: 700;
    color: var(--c-text);
    margin: 0 0 16px;
}

.chat-title-accent {
    display: block;
    background: linear-gradient(90deg, var(--c-blue), var(--c-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.chat-subtitle {
    font-size: 18px;
    line-height: 1.5;
    color: var(--c-muted);
    margin: 0;
}

/* minmax(0, 1fr) — колонки могут сжиматься меньше содержимого */
.chat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.chat-card {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 24px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(30, 106, 255, .06);
}

.chat-badge {
    align-self: flex-start;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--c-bg);
    color: var(--c-blue);
    margin-bottom: 14px;
}

.chat-badge--out {
    color: var(--c-purple);
    background: #F6EDFB;
}

.chat-card h3 {
    font-size: 22px;
    line-height: 1.25;
    margin: 0 0 8px;
    color: var(--c-text);
}

.chat-card > p {
    margin: 0 0 24px;
    color: var(--c-muted);
    line-height: 1.5;
}

.chat-stage {
    min-width: 0;
    margin-top: auto;
    display: flex;
    justify-content: center;
    padding: 24px 12px;
    border-radius: 20px;
    background: var(--c-bg);
}

.chat-points {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.chat-points li {
    display: flex;
    gap: 10px;
    font-size: 15px;
    line-height: 1.4;
    color: var(--c-text);
}

.chat-points li::before {
    content: "✓";
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #E6F8F3;
    color: var(--c-green);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

/* ============ Виджет: переменные темы мессенджера ============ */

.cw {
    --chat-width: 370px;
    --chat-height: 520px;
    --accent-color: #db8144;
    --accent-rgb-color: 30, 106, 255;
    --contrast-color: #ffffff;
    --primary-bg-color: #ffffff;
    --secondary-bg-color: #f2f2f2;
    --primary-text-color: #333333;
    --secondary-text-color: #666666;
    --primary-border-color: #e5e5e5;
    --placeholder-color: #999999;
    --icon-button-text-color: #999999;
    --icon-button-active-bg-color: #f2f2f2;
    --icon-button-active-text-color: #333333;
    --notification-bg-color: #fc1e52;
    box-sizing: border-box;
    min-width: 0;
    font-family: Inter, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.35;
    color: var(--primary-text-color);
    -webkit-font-smoothing: antialiased;
}

.cw *,
.cw *::before,
.cw *::after {
    box-sizing: border-box;
}

.cw svg {
    display: block;
}

/* ============ Мессенджер ============ */

.cw-messenger {
    /* было: width: var(--chat-width) — жёсткие 370px распирали грид */
    width: 100%;
    max-width: var(--chat-width);
    height: var(--chat-height);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 15px;
    background: #fff;
    background-color: var(--accent-color);
    box-shadow: 0 8px 30px rgba(26, 27, 24, .18);
    color: var(--contrast-color);
}

.cw-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px;
}

.cw-header-btn {
    width: 30px;
    height: 30px;
    padding: 5px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .25);
    color: var(--contrast-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cw-header-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cw-header-center {
    width: calc(100% - 60px);
    min-width: 0;
    align-self: center;
    text-align: center;
    overflow: hidden;
}

.cw-header-name {
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cw-header-status {
    font-size: 12px;
    opacity: .8;
}

.cw-content {
    flex-grow: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--primary-bg-color);
    border-radius: 15px 15px 0 0;
    color: var(--primary-text-color);
}

.cw-conversation {
    flex-grow: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 5px 10px 10px;
    overflow: hidden;
}

.cw-date {
    text-align: center;
    margin-top: 10px;
}

.cw-date span {
    display: inline-block;
    font-size: 12px;
    color: var(--placeholder-color);
    line-height: 23px;
    padding: 0 10px;
    border-radius: 23px;
    background: var(--primary-bg-color);
}

.cw-group {
    display: flex;
    align-items: flex-end;
    margin-top: 15px;
    gap: 10px;
    min-width: 0;
}

.cw-group.user {
    justify-content: flex-end;
}

.cw-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    color: var(--contrast-color);
    font-weight: 700;
    font-size: 15px;
}

.cw-avatar.md {
    width: 35px;
    height: 35px;
    min-width: 35px;
    font-size: 13px;
}

.cw-parts {
    max-width: 100%;
    min-width: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cw-group.user .cw-parts {
    align-items: flex-end;
    flex-grow: 0;
}

.cw-part {
    margin-top: 5px;
    display: flex;
    min-width: 0;
    max-width: 100%;
}

.cw-part:first-child {
    margin-top: 0;
}

.cw-group.user .cw-part {
    justify-content: flex-end;
}

.cw-bubble {
    overflow: hidden;
    padding: 10px 15px;
    max-width: min(243px, 100%);
    background: var(--secondary-bg-color);
    color: var(--primary-text-color);
    font-size: 14px;
    line-height: 1.43;
    word-break: break-word;
    overflow-wrap: anywhere;
    border-radius: 15px;
}

.cw-part.admin:not(:only-child):first-child .cw-bubble {
    border-radius: 15px 15px 15px 5px;
}

.cw-part.admin:not(:only-child):last-child .cw-bubble {
    border-radius: 5px 15px 15px 15px;
}

.cw-part.admin:not(:only-child):not(:first-child):not(:last-child) .cw-bubble {
    border-radius: 5px 15px 15px 5px;
}

.cw-part.user .cw-bubble {
    background: var(--accent-color);
    color: var(--contrast-color);
}

/* Кнопки быстрых ответов бота */

.cw-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin: 8px -5px 0;
}

.cw-bot-btn {
    margin: 5px;
    padding: 9px 14px;
    max-width: calc(100% - 10px);
    font: inherit;
    font-size: 14px;
    line-height: 20px;
    text-align: left;
    cursor: default;
    border-radius: 15px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    background: #fff;
    overflow-wrap: anywhere;
    box-shadow: 0 5px 5px rgba(var(--accent-rgb-color), .1), 0 0 3px rgba(var(--accent-rgb-color), .05);
}

/* Поле ввода */

.cw-text-field {
    padding: 0 10px 10px;
    background: var(--primary-bg-color);
}

.cw-inner {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--primary-border-color);
    background: var(--primary-bg-color);
}

.cw-textarea {
    display: block;
    width: 100%;
    min-height: 40px;
    padding: 11px 90px 9px 15px;
    font-size: 14px;
    line-height: 20px;
    color: var(--placeholder-color);
}

.cw-input-buttons {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    padding: 5px;
}

.cw-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--icon-button-text-color);
}

.cw-icon-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cw-send {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--contrast-color);
}

.cw-send svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ============ Страница сайта + уведомление + лаунчер ============ */

.cw-site {
    position: relative;
    width: 100%;
    max-width: 420px;
    min-height: 480px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--c-border);
    overflow: hidden;
    padding: 16px;
}

.cw-site-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.cw-site-bar i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #D5E3FA;
}

.cw-site-line {
    height: 10px;
    border-radius: 6px;
    background: #E3EDFC;
    margin-bottom: 10px;
}

.cw-site-line.w1 { width: 55%; }
.cw-site-line.w2 { width: 85%; }
.cw-site-line.w3 { width: 40%; }

.cw-site-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.cw-site-products div {
    aspect-ratio: 1;
    border-radius: 10px;
    background: #E3EDFC;
}

.cw-notification-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 92px;
    padding: 0 20px;
}

.cw-notification {
    position: relative;
    background: var(--primary-bg-color);
    border-radius: 15px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .2), 0 0 2px rgba(0, 0, 0, .05);
}

.cw-notification-close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    padding: 6px;
    border-radius: 50%;
    color: #999;
}

.cw-notification-close svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.cw-notification-head {
    display: flex;
    gap: 8px;
    margin: 0 35px 10px 0;
    padding: 15px 15px 0;
}

.cw-notification-info {
    min-width: 0;
    font-size: 12px;
    line-height: 12px;
    margin: auto 0;
}

.cw-notification-name {
    font-weight: 700;
    margin-bottom: 3px;
    color: #333;
}

.cw-notification-date {
    color: #999;
}

.cw-notification-body {
    padding: 0 15px 15px;
    font-size: 14px;
    line-height: 1.43;
    color: var(--primary-text-color);
    overflow-wrap: anywhere;
}

.cw-notification-buttons {
    padding: 0 10px 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cw-launcher-wrap {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cw-launcher {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15), 0 4px 6px rgba(var(--accent-rgb-color), .2);
}

.cw-launcher svg {
    width: 28px;
    height: 28px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cw-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 9999px;
    background: var(--notification-bg-color);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.launcher-icon {
    object-fit: cover;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    display: block;
}

/* Триггеры */

.chat-triggers {
    margin-top: 24px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 24px;
    padding: 28px;
}

.chat-triggers-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 18px;
    color: var(--c-text);
}

.chat-triggers-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.chat-trigger {
    min-width: 0;
    padding: 16px;
    border-radius: 16px;
    background: var(--c-bg);
}

.chat-trigger-when {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--c-blue);
    margin-bottom: 6px;
}

.chat-trigger-what {
    font-size: 14px;
    line-height: 1.4;
    color: var(--c-text);
}

/* =====================================================
   SECTION POSSIBILITIES
   ===================================================== */

.section-possibilities {
    padding: 100px 0;
    background: var(--color-bg);
}

.possibilities__block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 56px;
    align-items: center;
    padding: 48px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.possibilities__info {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.possibilities__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.possibilities__stats-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.possibilities__stats-item_green,
.possibilities__stats-item_blue {
    font-weight: 700;
    font-size: 0.8125rem;
}

.possibilities__stats-item_green { color: #11ba91; }
.possibilities__stats-item_blue { color: #1e6aff; }

.possibilities__title {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.possibilities__text {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--color-text-muted);
    max-width: 520px;
}

.possibilities__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    gap: 10px;
    padding: 14px 26px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-white);
    background: var(--color-dark);
    border-radius: var(--radius-full);
    box-shadow: 0 8px 20px rgba(14, 14, 18, 0.18);
    transition: var(--transition);
    text-decoration: none;
}

.possibilities__button:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(14, 14, 18, 0.24);
}

.possibilities__button svg {
    width: 20px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.25s var(--ease);
}

.possibilities__button:hover svg {
    transform: translateX(4px);
}

.possibilities__image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.possibilities__image-scale {
    width: 100%;
    min-width: 0;
    max-width: 602px;
}

.possibilities__image svg {
    width: 100%;
    height: auto;
    max-width: 602px;
}

.possibilities__image .shadow {
    filter: drop-shadow(0 20px 40px rgba(30, 106, 255, 0.12));
}

/* =====================================================
   MEDIA QUERIES
   ===================================================== */

@media (max-width: 1199px) {
    .system-cards { flex: 0 0 460px; }
}

@media (min-width: 1024px) {
    .hero-inner {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        margin-top: 0;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .cta-container {
        justify-content: center;
        order: -9999;
    }

    .hero-text {
        flex-direction: column;
        gap: 40px;
    }

    .hero-subtitle { font-size: 1rem; }

    .hero-images-img {
        height: auto;
        aspect-ratio: 390 / 288;
    }

    .possibilities__block {
        gap: 40px;
        padding: 36px;
    }
}

@media (max-width: 992px) {
    .hero-title,
    .hero-subtitle { text-align: center; }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta { justify-content: center; }

    .system-content {
        flex-direction: column;
        gap: 40px;
    }

    .system-cards {
        flex: 1;
        width: 100%;
        order: 1;
    }

    .system-visual {
        position: relative;
        top: 0;
        width: 100%;
        order: 2;
    }

    .system-visual-inner { max-width: 100%; }
}

@media (max-width: 968px) {
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

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

    .pricing-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 480px;
    }

    .pricing-card-featured { transform: none; }
    .pricing-card-featured:hover { transform: translateY(-8px); }
}

@media (max-width: 960px) {
    .chat-section { padding: 64px 0; }
    .chat-grid { grid-template-columns: minmax(0, 1fr); }
    .chat-triggers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .faq-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .faq-title { position: static; }

    .possibilities__block {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        padding: 28px;
    }

    .possibilities__image { order: -1; }
    .possibilities__image svg { max-width: 520px; }

    .possibilities__title { font-size: clamp(1.375rem, 4vw, 1.75rem); }
    .possibilities__text { max-width: none; }
}

@media (max-width: 768px) {
    .section-system { padding: 60px 0; }
    .system-header { margin-bottom: 40px; }
    .system-header h2 { font-size: 28px; }
    .system-header p { font-size: 18px; }

    .system-card {
        border-radius: 22px;
        padding: 20px;
    }

    .system-card-title h3 { font-size: 22px; }
    .system-card-body p { font-size: 16px; }
}

@media (max-width: 640px) {
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta .btn { width: 100%; }

    .grid-3 { grid-template-columns: minmax(0, 1fr); }

    .metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .cta-box { padding: 48px 24px; }
    .cta-form { flex-direction: column; }
    .cta-form .btn { width: 100%; }

    .section { padding: 60px 0; }

    .hero-preview-frame {
        padding: 4px;
        border-radius: 12px;
    }

    .hero-preview-frame img { border-radius: 8px; }

    .section-possibilities { padding: 64px 0; }

    .possibilities__block {
        padding: 20px;
        border-radius: var(--radius-md);
        gap: 24px;
    }

    .possibilities__stats { gap: 8px; }

    .possibilities__stats-item {
        padding: 6px 10px;
        font-size: 0.75rem;
        white-space: normal;
    }

    .possibilities__stats-item_green,
    .possibilities__stats-item_blue { font-size: 0.75rem; }

    .possibilities__title {
        font-size: 1.25rem;
        line-height: 1.3;
    }

    .possibilities__text { font-size: 0.875rem; }

    .possibilities__button {
        width: 100%;
        padding: 13px 20px;
        font-size: 0.875rem;
    }
}

@media (max-width: 600px) {
    .pricing-calc { padding-bottom: 20px; }
    .pricing-calc-visitors { font-size: 26px; }
    .pricing-period { width: 100%; }

    .pricing-period-btn {
        flex: 1;
        justify-content: center;
        padding: 8px 10px;
    }

    .pricing-mark {
        min-width: 0;
        padding: 4px;
        font-size: 13px;
    }

    .pricing-card { padding: 28px 20px; }
}

@media (max-width: 560px) {
    .faq-list-accordion .faq-item summary {
        padding: 18px 0;
        font-size: 16px;
    }

    .faq-list-accordion .faq-a { font-size: 15px; }
}

@media (max-width: 520px) {
    .chat-container { padding: 0 12px; }

    .chat-card,
    .chat-triggers {
        padding: 16px;
        border-radius: 20px;
    }

    .chat-stage {
        padding: 12px 0;
        border-radius: 16px;
    }

    .chat-triggers-grid { grid-template-columns: minmax(0, 1fr); }

    .cw-messenger { height: 480px; }
    .cw-notification-wrap { padding: 0 12px; }
}