@import url('fonts.css');

/* =====================
   VARIABLES
===================== */
:root {
    --blue: #3A80C2;
    --text: #0F172A;
    --gray: #64748B;
}

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

/* =====================
   BASE
===================== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    font-family: 'TT Chocolates', sans-serif;
    color: var(--text);
    background: #fff;
}

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

/* =====================
   BUTTONS
===================== */
.btn {
    font-family: 'Montserrat', sans-serif;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 500;
    text-decoration: none;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--blue);
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.9;
}

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

.btn-outline:hover {
    background: var(--blue);
    color: #fff;
}

/* =====================
   HEADER
===================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

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

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 24px;
}

/* =====================
   HERO
===================== */
.hero {
    position: relative;
    padding: 100px 0 60px;
}

.hero__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

/* ЛЕВАЯ КОЛОНКА */
.hero__content {
    max-width: 650px;
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ЗАГОЛОВОК */
.hero__title {
    font-size: 64px;
    font-weight: 600;
    line-height: 1.1;
    max-width: 650px;
}

.hero__title span {
    color: var(--blue);
}

/* ТЕКСТ */
.hero__text {
    font-size: 32px;
    line-height: 1.4;
    max-width: 480px;
    margin-top: 10px;
}

/* КНОПКИ */
.hero__buttons {
    display: flex;
    gap: 16px;
    margin-top:30px;
}

/* ЛОГО */
.hero__visual {
    position: relative;
    width: 440px;
    height: 440px;
    flex-shrink: 0;
}

.hero__ring,
.hero__logo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero__ring {
    animation: logo-spin 48s linear infinite;
    will-change: transform;
}

.hero__logo {
    z-index: 1;
    pointer-events: none;
    transform: translate(1%, -2%) scale(0.92);
    transform-origin: center center;
}

@keyframes logo-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* =====================
   HERO STATS
===================== */
.hero__stats {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    gap: 8px;
}

.stat {
    text-align: center;
    min-width: 0;
}

.stat strong {
    font-size: 32px;
    font-weight: 300;
    display: block;
    margin-bottom: 4px;
}

.stat span {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.3;
}

/* Анимация плавающих иконок */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes float-rotated {
    0%, 100% {
        transform: translateY(0) rotate(10deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

.hero-icon {
    position: absolute;
    width: 33px;
    opacity: 0.8;
    animation: float 4s ease-in-out infinite;
    pointer-events: none;
}

.icon-globe {
    top: 40px;
    left: 300px;
    animation-delay: 0s;
}

.icon-phone {
    top: 200px;
    /*left: 55%;*/
    /*transform: rotate(-1deg);*/
    left: 950px;
    animation-delay: 1s;
}

.icon-card {
    bottom: 650px;
    right: 300px;
    animation: float-rotated 4s ease-in-out infinite;
    animation-delay: 0.5s;
}

.icon-db {
    top: 600px;
    right: 400px;
    animation-delay: 1.5s;
}

/* SERVICES */
.services {
    margin: 120px 0;
}

.services__title {
    font-size: 64px;
    font-weight: 600;
    margin-bottom: 48px;
}

.services__title span {
    color: var(--blue);
}

/* Сетка карточек */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Карточка */
.service-card {
    background: #F8FAFC;
    border-radius: 20px;
    padding: 43px;
    border: 1px solid rgba(121, 121, 121, 0.36);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);

    display: flex;
    flex-direction: column;
    gap: 16px;
    
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

/* Иконка */
.service-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #E0E7FF;

    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card__icon img {
    width: 28px;
}

/* Заголовок */
.service-card__title {
    font-size: 24px;
    font-weight: 600;
}

/* Текст */
.service-card__text {
    font-size: 16px;
    line-height: 1.5;
    color: var(--gray);
}

/* Теги */
.service-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.service-card__tags span {
    background: #111;
    color: #fff;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 999px;
}

/* =====================
   ABOUT SECTION
===================== */
.about {
    margin: 120px 0;
    padding: 60px 0;
}

.about__container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
}

/* Левая часть */
.about__left {
    flex: 0 0 50%;
    max-width: 650px;
    padding-right: 20px;
}

.about__logo {
    margin-bottom: 60px;
}

.about__logo-img {
    max-width: 100%;
    height: auto;
}

/* Карточки */
.about__cards {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 775px;
}

.about-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 0;
}

.about-card__title {
    font-size: 28px;
    font-weight: 600;
    color: #9B7EDE;
    line-height: 1.2;
    margin: 0;
    margin-left: 72px; /* Выравнивание с текстом (48px иконка + 24px gap) */
}

.about-card__text-wrapper {
    display: flex;
    flex-direction: row;
    gap: 21px;
    align-items: flex-start;
}

.about-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
    margin-top: 4px;
}

.about-card__icon img,
.about-card__icon svg {
    width: 48px;
    height: auto;
}

.about-card__icon svg {
    height: 48px;
    color: var(--text);
}

.about-card__text {
    flex: 1;
    font-size: 21px;
    line-height: 1.6;
    color: var(--text);
    margin: 0;
}

/* Пунктирная линия */
.about__divider {
    height: 1px;
    background: transparent;
    border-top: 2px dashed #3A80C2;
    margin: 0;
    margin-left: 72px; /* Отступ от иконки (48px + 24px gap) */
}

/* Правая часть */
.about__right {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin-left: 85px;
    padding-top: 237px; /* Выравнивание с текстовыми блоками */
}

.about__laptop {
    position: relative;
    width: 100%;
    transition: transform 0.3s ease;
}

.about__laptop:hover {
    transform: translateY(-10px) scale(1.02);
}

.about__laptop-img {
    width: 100%;
    max-width: 900px;
    min-width: 636px;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

/* =====================
   CTA SECTION
===================== */
.cta {
    margin: 120px auto;
    padding: 20px 40px;
    background: linear-gradient(90deg, #3780C8 55%, #0D59A4 100%);
    border-radius: 30px;
    max-width: 1400px;
    width: calc(100% - 580px);
}

.cta__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0px;
}

.cta__left {
    flex: 1;
}

.cta__image {
    width: 100%;
    max-width: 341px;
    height: auto;
    display: block;
}

.cta__right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
    text-align: center;
}

.cta__text {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    margin: 0;
}

.btn-cta {
    background: #fff;
    color: #0D59A4;
    font-weight: 600;
    padding: 20px 28px;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-cta:hover::before {
    left: 100%;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background: #f8f9fa;
}

.btn-cta:active {
    transform: translateY(-1px);
}

/* =====================
   CASES SECTION
===================== */
.cases {
    margin: 120px 0;
    position: relative;
}

.cases__container {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    max-width: 1600px;
    width: 100%;
}

.cases__main {
    width: 100%;
}

.cases__title {
    font-size: 64px;
    font-weight: 600;
    margin-bottom: 48px;
    margin-top: 0;
    padding: 0;
    margin-left: 200px;
    color: var(--text);
}

.cases__categories {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.cases__category {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cases__category-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
}

.cases__category-title {
    font-size: 48px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    flex-shrink: 0;
    padding-right: 20px;
    letter-spacing: 0;
    line-height: 1.2;
    text-align: center;
}

.cases__category-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
    flex: 1;
    position: relative;
    width: 100%;
    max-width: 1400px;
}

.cases__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px;
    flex: 1;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.cases__grid .case-card {
    min-width: 0;
}

.cases__nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding-left: 20px;
}

.cases__progress-indicator {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
}

.cases__progress-line {
    width: 30px;
    height: 3px;
    background: rgba(58, 128, 194, 0.3);
    border-radius: 2px;
    transition: background 0.3s ease;
}

.cases__progress-line.active {
    background: var(--blue);
}

.cases__progress-line.inactive {
    background: rgba(58, 128, 194, 0.2);
}

.cases__nav-btn {
    background: transparent;
    color: var(--blue);
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
    padding: 0;
    border-radius: 8px;
}

.cases__nav-btn:hover {
    opacity: 0.7;
    background: rgba(58, 128, 194, 0.1);
}

.cases__nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.cases__nav-btn svg {
    width: 24px;
    height: 24px;
}

/* Карточка кейса */
.case-card {
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 100%;
}

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

.case-card__image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 20px;
    overflow: hidden;
    background: #f0f0f0;
    margin-bottom: 20px;
    min-height: 500px;
}

.case-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-card__tags {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.case-card__tag {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    align-self: flex-start;
}

.case-card__tag--top-right {
    align-self: flex-end;
    margin-left: auto;
}


/* Контейнер для нижних тегов - оба на одной линии */
.case-card__tags-bottom {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    margin-top: auto;
}

.case-card__title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

/* Поп-ап кейса */
.case-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.case-popup::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.case-popup.active {
    display: flex;
}

.case-popup__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.case-popup__content {
    position: relative;
    max-width: 1400px;
    width: calc(100% - 80px);
    margin: 40px auto;
    background: #fff;
    border-radius: 30px;
    padding: 50px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.case-popup__content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.case-popup__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 40px;
    color: var(--text);
    cursor: pointer;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
    z-index: 10002;
    line-height: 1;
}

.case-popup__close:hover {
    background: #f0f0f0;
}

.case-popup__content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    max-width: 100%;
}

.case-popup__title {
    font-size: 48px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
}

.case-popup__gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 100%;
}

.case-popup__gallery-main {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    overflow: visible;
    background: transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-popup__main-image {
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: block;
    border-radius: 15px;
}

.case-popup__main-image:hover {
    transform: scale(1.02);
}

.case-popup__gallery-thumbs {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    width: 100%;
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: var(--blue) #f0f0f0;
}

.case-popup__gallery-thumbs::-webkit-scrollbar {
    height: 6px;
}

.case-popup__gallery-thumbs::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.case-popup__gallery-thumbs::-webkit-scrollbar-thumb {
    background: var(--blue);
    border-radius: 10px;
}

.case-popup__gallery-thumbs {
    max-width: 1100px;
    margin: 0 auto;
}

.case-popup__gallery-thumbs img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
    border: none;
}

.case-popup__gallery-thumbs img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.case-popup__gallery-thumbs img.active {
    opacity: 1;
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.case-popup__description-wrapper {
    width: 100%;
    max-width: 100%;
}

.case-popup__description-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 20px 0;
}

.case-popup__description {
    font-size: 22px;
    line-height: 1.8;
    color: var(--text);
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.case-popup__description p {
    margin: 0 0 20px 0;
}

.case-popup__description p:last-child {
    margin-bottom: 0;
}

/* Вертикальный слайдер на странице */
.cases__slider {
    position: sticky;
    top: 120px;
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-self: flex-start;
    align-items: center;
}

.cases__slider-btn {
    background: transparent;
    color: var(--blue);
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
    padding: 0;
}

.cases__slider-btn:hover {
    opacity: 0.7;
}

.cases__slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.cases__slider-btn svg {
    width: 24px;
    height: 24px;
}

.cases__slider-track {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px 0;
    max-height: 600px;
    width: 100%;
}

.cases__slider-track::-webkit-scrollbar {
    width: 6px;
}

.cases__slider-track::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.cases__slider-track::-webkit-scrollbar-thumb {
    background: var(--blue);
    border-radius: 10px;
}

.cases__slider-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cases__slider-card:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.cases__slider-card.active {
    border-color: var(--blue);
    background: #e3f2fd;
}

.cases__slider-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

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

/* Модальное окно для изображения */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20000;
    align-items: center;
    justify-content: center;
}

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

.image-modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
}

.image-modal__content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 20001;
}

.image-modal__close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    font-size: 48px;
    color: #fff;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal__image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
}

/* =====================
   PRICING SECTION
===================== */
.pricing {
    padding: 120px 0;
    background: linear-gradient(145deg, #08111f 0%, #0d1e38 55%, #0a1628 100%);
    position: relative;
    overflow: hidden;
}

.pricing::before {
    content: '';
    position: absolute;
    top: -250px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(58, 128, 194, 0.12) 0%, transparent 65%);
    pointer-events: none;
}

.pricing::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -150px;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(155, 126, 222, 0.09) 0%, transparent 65%);
    pointer-events: none;
}

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

.pricing__title {
    font-size: 64px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.1;
}

.pricing__title span {
    color: var(--blue);
}

.pricing__subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.pricing-col {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 24px;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.pricing-col__head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pricing-col__icon {
    width: 56px;
    height: 56px;
    background: rgba(58, 128, 194, 0.18);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(58, 128, 194, 0.25);
}

.pricing-col__icon--bot {
    background: rgba(58, 194, 130, 0.15);
    border-color: rgba(58, 194, 130, 0.2);
}

.pricing-col__icon--custom {
    background: rgba(155, 126, 222, 0.18);
    border-color: rgba(155, 126, 222, 0.25);
}

.pricing-col__icon img {
    width: 28px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.pricing-col__title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.pricing-col__desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
    line-height: 1.4;
}

.pricing-col__items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pricing-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 10px;
    border-radius: 10px;
    gap: 8px;
}

.pricing-row--featured {
    background: rgba(58, 128, 194, 0.13);
    border: 1px solid rgba(58, 128, 194, 0.22);
    border-radius: 12px;
    padding: 14px 14px;
}

.pricing-row__left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.pricing-row__num {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.22);
    min-width: 22px;
    letter-spacing: 0.5px;
}

.pricing-row__name {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pricing-row--featured .pricing-row__name {
    color: #fff;
    font-weight: 600;
}

.pricing-row__right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.pricing-row__price {
    font-size: 14px;
    font-weight: 700;
    color: #5da8f5;
    white-space: nowrap;
    flex-shrink: 0;
}

.pricing-row__badge {
    background: linear-gradient(90deg, #3a80c2, #5da8f5);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.pricing-col__note {
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.13);
    border-radius: 12px;
    padding: 16px 18px;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.45);
}

.pricing-col__custom-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #9b7ede;
    font-size: 15px;
    font-weight: 600;
    padding: 0 4px;
}

.pricing-col__custom-cta svg {
    flex-shrink: 0;
}

.pricing-col__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    background: transparent;
    color: var(--blue);
    border: 1px solid rgba(58, 128, 194, 0.5);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    margin-top: auto;
    letter-spacing: 0.2px;
}

.pricing-col__btn:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(58, 128, 194, 0.35);
}

.pricing-col__btn--accent {
    background: linear-gradient(135deg, #9b7ede, #c4a9ff);
    color: #fff;
    border: none;
}

.pricing-col__btn--accent:hover {
    background: linear-gradient(135deg, #8a6ecf, #b299f0);
    border: none;
    box-shadow: 0 8px 24px rgba(155, 126, 222, 0.4);
}

/* =====================
   BURGER MENU
===================== */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

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

/* =====================
   ADAPTIVE / RESPONSIVE
===================== */

/* --- 1200px --- */
@media (max-width: 1200px) {
    .hero__title { font-size: 52px; }
    .hero__text { font-size: 26px; }
    .hero__visual { width: 360px; height: 360px; }

    .hero__stats { margin-left: 0; }

    .services__title { font-size: 52px; }

    .pricing__title { font-size: 52px; }

    .cases__title { margin-left: 40px; font-size: 52px; }

    .about__cards { width: 100%; }
    .about__laptop-img { min-width: 400px; }

    .cta { width: calc(100% - 80px); }

    .icon-phone { left: 820px; }
}

/* --- 1024px (Tablet) --- */
@media (max-width: 1024px) {
    /* HEADER */
    .header__cta { display: none; }
    .burger { display: flex; }
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 16px 20px 20px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        z-index: 999;
    }
    .nav.open { display: flex; }
    .nav a {
        font-size: 18px;
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    .nav a:last-child { border-bottom: none; }

    /* HERO */
    .hero { padding: 60px 0 40px; }
    .hero__inner { flex-direction: column; gap: 40px; text-align: center; align-items: center; }
    .hero__content { max-width: 650px; width: 100%; align-items: center; }
    .hero__title { font-size: 44px; }
    .hero__text { font-size: 20px; max-width: 560px; }
    .hero__visual { width: 320px; height: 320px; }
    .hero__stats {
        width: 100%;
        margin-top: 40px;
    }

    /* SERVICES */
    .services { margin: 80px 0; }
    .services__title { font-size: 44px; }
    .services__grid { grid-template-columns: repeat(2, 1fr); }

    /* PRICING */
    .pricing { padding: 80px 0; }
    .pricing__title { font-size: 44px; }
    .pricing__grid { grid-template-columns: repeat(2, 1fr); }
    .pricing__grid .pricing-col:last-child { grid-column: 1 / -1; max-width: 420px; justify-self: center; width: 100%; }

    /* ABOUT */
    .about { margin: 80px 0; padding: 40px 0; }
    .about__container { flex-direction: column; gap: 40px; }
    .about__left { flex: none; max-width: 100%; padding-right: 0; }
    .about__right { margin-left: 0; padding-top: 0; justify-content: center; }
    .about__cards { width: 100%; }
    .about__laptop-img { min-width: unset; max-width: 600px; }

    /* CTA */
    .cta { width: calc(100% - 40px); border-radius: 20px; }
    .cta__container { gap: 20px; }
    .cta__text { font-size: 24px; }

    /* CASES */
    .cases { margin: 80px 0; }
    .cases__title { margin-left: 0; font-size: 44px; }
}

/* --- Анимации переключения кейсов --- */
@keyframes caseSlideInDown {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes caseSlideInUp {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.case-card.slide-in-down { animation: caseSlideInDown 0.38s ease both; }
.case-card.slide-in-up   { animation: caseSlideInUp   0.38s ease both; }

/* Показывать правильный вариант заголовка категории */
.cases__cat-mobile  { display: none; }
.cases__cat-desktop { display: block; }

/* --- 768px (Mobile) --- */
@media (max-width: 768px) {
    /* HERO */
    .hero { padding: 48px 0 32px; }
    .hero__content { width: 100%; }
    .hero__title { font-size: 34px; }
    .hero__text { font-size: 17px; }
    .hero__buttons { flex-direction: column; align-items: center; gap: 12px; width: 100%; }
    .hero__buttons .btn { width: 100%; max-width: 300px; }
    .hero__visual { display: none; }

    /* Статистика: 2×2 */
    .hero__stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px 24px;
        justify-items: center;
        width: 100%;
        margin-top: 32px;
    }
    .stat strong { font-size: 26px; }
    .stat span { font-size: 12px; }

    /* Плавающие иконки на мобилке — переставляем */
    .hero-icon { width: 22px; opacity: 0.35; }
    .icon-globe { top: 14px; left: 14px; }
    .icon-phone { top: 14px; left: auto; right: 14px; }
    .icon-card  { top: 45%; bottom: auto; right: 12px; }
    .icon-db    { top: 55%; right: auto; left: 12px; }

    /* SERVICES */
    .services { margin: 60px 0; }
    .services__title { font-size: 32px; margin-bottom: 32px; }
    .services__grid { grid-template-columns: 1fr; gap: 20px; }
    .service-card { padding: 28px 24px; }

    /* PRICING */
    .pricing { padding: 60px 0; }
    .pricing__header { margin-bottom: 40px; }
    .pricing__title { font-size: 32px; }
    .pricing__subtitle { font-size: 15px; }
    .pricing__grid { grid-template-columns: 1fr; gap: 20px; }
    .pricing__grid .pricing-col:last-child { grid-column: auto; max-width: 100%; justify-self: auto; }
    .pricing-col { padding: 28px 22px; gap: 22px; }
    .pricing-col__title { font-size: 18px; }

    /* ABOUT */
    .about { margin: 60px 0; }
    .about-card__title { font-size: 22px; margin-left: 0; }
    .about__divider { margin-left: 0; }
    .about-card__icon { display: none; }
    .about-card__text { font-size: 16px; }
    .about__logo-img { max-width: 200px; }
    .about__laptop-img { max-width: 100%; min-width: unset; }

    /* CTA */
    .cta { padding: 24px 20px; width: calc(100% - 32px); border-radius: 16px; margin: 60px auto; }
    .cta__container { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
    .cta__left { display: none; }
    .cta__text { font-size: 20px; }

    /* CASES — полная переработка под мобилку */
    .cases { margin: 60px 0; }
    .cases__title { font-size: 32px; margin-bottom: 32px; }
    .cases__categories { gap: 48px; }

    /* Заголовок категории горизонтальный на мобилке */
    .cases__cat-mobile  { display: block; font-size: 28px; font-weight: 700; }
    .cases__cat-desktop { display: none; }

    .cases__category-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    .cases__category-title {
        font-size: 28px;
        text-align: left;
        line-height: 1.2;
    }
    .cases__category-content {
        flex-direction: column;
        gap: 16px;
    }

    /* Одна колонка, две карточки вертикально */
    .cases__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .case-card__image-wrapper { min-height: 220px; }
    .case-card__title { font-size: 20px; }

    /* Навигация: горизонтальная панель снизу */
    .cases__nav-buttons {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 20px;
        padding: 12px 0 0;
        border-top: 1px solid rgba(0,0,0,0.07);
    }
    .cases__progress-indicator { flex-direction: row; gap: 8px; }

    /* Повернуть стрелки в горизонтальные */
    .cases__nav-btn--up   svg { transform: rotate(-90deg); }
    .cases__nav-btn--down svg { transform: rotate(-90deg); }

    /* POPUP */
    .case-popup__content { width: calc(100% - 32px); padding: 28px 20px; margin: 20px auto; }
    .case-popup__title { font-size: 28px; }
    .case-popup__description { font-size: 16px; }
    .case-popup__gallery-thumbs img { width: 90px; height: 60px; }
}

/* =====================
   FOOTER
===================== */
.footer {
    background: #080e1a;
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(58, 128, 194, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.4fr;
    gap: 48px;
    padding-bottom: 60px;
    position: relative;
    z-index: 1;
}

/* Бренд */
.footer__logo {
    height: 36px;
    width: auto;
    display: block;
    margin-bottom: 18px;
    opacity: 0.9;
}

.footer__tagline {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255,255,255,0.45);
    margin: 0 0 28px 0;
}

.footer__social {
    display: flex;
    gap: 10px;
}

.footer__social-btn {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: all 0.25s ease;
}

.footer__social-btn:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(58, 128, 194, 0.35);
}

/* Колонки */
.footer__col-title {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 0 0 20px 0;
}

.footer__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    margin: 0;
}

.footer__list a {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer__list a:hover {
    color: #fff;
}

.footer__list a::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--blue);
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.footer__list a:hover::before {
    opacity: 1;
}

/* Контакты */
.footer__list--contacts { gap: 14px; }

.footer__list--contacts li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__list--contacts svg {
    color: var(--blue);
    flex-shrink: 0;
    overflow: visible;
}

.footer__list--contacts a {
    font-size: 14px;
}

.footer__list--contacts a::before { display: none; }

.footer__cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    padding: 13px 22px;
    background: var(--blue);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer__cta-btn:hover {
    background: #2d6aad;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(58, 128, 194, 0.4);
}

/* Нижняя строка */
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 22px 0;
}

.footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer__bottom-inner span {
    font-size: 13px;
    color: rgba(255,255,255,0.25);
}

.footer__bottom-right {
    color: rgba(255,255,255,0.18) !important;
}

.footer__legal {
    color: rgba(255,255,255,0.32) !important;
}

/* FOOTER RESPONSIVE */
@media (max-width: 1024px) {
    .footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 36px 48px;
    }
    .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .footer { padding: 56px 0 0; }
    .footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
    }
    .footer__brand { grid-column: 1 / -1; }
    .footer__tagline { font-size: 14px; }
    .footer__bottom-right { display: none; }
}

@media (max-width: 480px) {
    .footer__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* --- 480px (Small mobile) --- */
@media (max-width: 480px) {
    .container { padding: 0 16px; }

    .hero__title { font-size: 28px; }
    .hero__text { font-size: 15px; }

    .services__title { font-size: 26px; }
    .service-card__title { font-size: 20px; }

    .pricing__title { font-size: 26px; }
    .pricing-col { padding: 22px 18px; }
    .pricing-row__name { font-size: 13px; }
    .pricing-row__price { font-size: 13px; }

    .cases__title { font-size: 26px; }
    .cases__category-title { font-size: 26px; }

    .about-card__text { font-size: 15px; }
    .cta__text { font-size: 18px; }

    .btn { font-size: 14px; padding: 12px 20px; }
}

/* =====================
   LEAD POPUP
===================== */
.lead-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 50000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.lead-popup.active {
    display: flex;
}

.lead-popup__overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 14, 26, 0.75);
    backdrop-filter: blur(6px);
    cursor: pointer;
}

.lead-popup__box {
    position: relative;
    background: #fff;
    border-radius: 24px;
    padding: 40px 44px;
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    overflow-y: auto;
    z-index: 1;
    box-shadow: 0 32px 80px rgba(0,0,0,0.25);
    animation: popupIn 0.32s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes popupIn {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.lead-popup__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: background 0.2s, color 0.2s;
}

.lead-popup__close:hover {
    background: #e2e8f0;
    color: var(--text);
}

.lead-popup__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.lead-popup__icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3a80c2, #5da8f5);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.lead-popup__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 2px 0;
}

.lead-popup__subtitle {
    font-size: 13px;
    color: var(--gray);
    margin: 0;
}

/* ── Форма ── */
.lead-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.lead-form__group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lead-form__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.req { color: #ef4444; }

.lead-form__input,
.lead-form__select,
.lead-form__textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
    -webkit-appearance: none;
}

.lead-form__input:focus,
.lead-form__select:focus,
.lead-form__textarea:focus {
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(58,128,194,0.12);
}

.lead-form__input.error,
.lead-form__select.error,
.lead-form__textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

.lead-form__select-wrap {
    position: relative;
}

.lead-form__select {
    padding-right: 40px;
    cursor: pointer;
}

.lead-form__select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    pointer-events: none;
}

.lead-form__textarea {
    resize: vertical;
    min-height: 88px;
    line-height: 1.5;
}

.lead-form__error {
    font-size: 12px;
    color: #ef4444;
    min-height: 16px;
    line-height: 1.3;
}

/* Чипсы (тип проекта) */
.lead-form__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lead-form__chip input[type="radio"] {
    display: none;
}

.lead-form__chip span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray);
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.lead-form__chip input:checked + span {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    box-shadow: 0 4px 12px rgba(58,128,194,0.3);
}

.lead-form__chip span:hover {
    border-color: var(--blue);
    color: var(--blue);
}

/* Submit */
.lead-form__submit {
    margin-top: 6px;
    padding: 15px 24px;
    background: linear-gradient(135deg, #3a80c2, #2d6aad);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.lead-form__submit:hover {
    background: linear-gradient(135deg, #2d6aad, #245a9a);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(58,128,194,0.4);
}

.lead-form__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.lead-form__submit-loader {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Спиннер */
@keyframes spin {
    to { transform: rotate(360deg); }
}
.spin { animation: spin 0.8s linear infinite; }

/* Успех */
.lead-popup__success {
    text-align: center;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: popupIn 0.4s ease both;
}

.lead-popup__success-icon {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 4px;
}

.lead-popup__success h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.lead-popup__success p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

.lead-popup__success-btn {
    margin-top: 8px;
    padding: 12px 32px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.lead-popup__success-btn:hover {
    background: #2d6aad;
}

/* Адаптив */
@media (max-width: 600px) {
    .lead-popup__box {
        padding: 28px 20px;
        border-radius: 18px;
    }
    .lead-popup__title { font-size: 19px; }
    .lead-form__chips { gap: 6px; }
    .lead-form__chip span { font-size: 13px; padding: 7px 12px; }
}