:root {
    --primary-color: #737AFD;
    --primary-light: #8C91FF;
    --primary-lighter: #AAAEFF;
    --accent-turquoise: #17CCBF;
    --accent-turquoise-light: #52DAD0;
    --text-dark: #262D37;
    --text-medium: #3B4554;
    --text-light: #8B9AAF;
    --bg-light: #DFE6EF;
    --bg-lighter: #C0C8D3;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: url('sources/background.png') center top / cover no-repeat;
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
    will-change: background-position;
}

body::before {
    content: '';
    position: fixed;
    top: 520px;
    left: 380px;
    width: 285px;
    height: 285px;
    background: url('sources/bg_img.svg') center / contain no-repeat;
    z-index: 0;
    pointer-events: none;
    transform: translateY(var(--parallax-svg, 0px));
    will-change: transform;
    animation: floatDecor 6s ease-in-out infinite;
}

@keyframes floatDecor {
    0%, 100% { margin-top: 0px; }
    50%       { margin-top: -18px; }
}

body::after {
    content: '';
    position: fixed;
    top: 110px;
    right: 220px;
    width: 220px;
    height: 220px;
    background: url('sources/bg_img2.svg') center / contain no-repeat;
    z-index: 0;
    pointer-events: none;
    transform: translateY(var(--parallax-svg2, 0px));
    will-change: transform;
    animation: floatDecor2 8s ease-in-out infinite;
}

@keyframes floatDecor2 {
    0%, 100% { margin-top: 0px; }
    50%       { margin-top: 20px; }
}

.page-wrapper {
    min-height: 100vh;
    position: relative;
    max-width: 1920px;
    margin: 0 auto;
}

.header,
.hero-section,
.cases-section,
.footer-section {
    position: relative;
    z-index: 1;
}

.header {
    padding: 20px 0;
    background: transparent;
}

.navbar-brand {
    display: block;
}

.navbar-brand .logo {
    height: 65px;
    width: 65px;
}

.header-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-icon {
    width: 54px;
    height: 62px;
    object-fit: contain;
}

.header-icon-small {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.header-text {
    display: flex;
    flex-direction: column;
}

.header-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-medium);
    line-height: 1.3;
}

.header-sublabel {
    font-size: 0.75rem;
    color: var(--text-medium);
    line-height: 1.3;
}

.header-email {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-email:hover {
    color: var(--primary-light);
}

.header-contacts {
    gap: 1rem;
}

.header-phone {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-phone:hover {
    color: var(--primary-color);
}

.header-messengers {
    display: flex;
    gap: 0.5rem;
}

.messenger-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    transition: transform 0.3s ease;
}

.messenger-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.messenger-icon:hover {
    transform: scale(1.1);
}

.hero-section {
    padding: 40px 0 0;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 115px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.highlight-ya {
    color: #F8604A;
}

.hero-price {
    display: flex;
    align-items: center;
}

.price-image {
    max-width: 100%;
    height: auto;
}

.hero-subtitle {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.slider-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.casesSwiper {
    width: 100%;
}

.swiper-slide {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.slide-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.case-number {
    display: inline-block;
    background: var(--accent-turquoise);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 1.25rem;
    font-weight: 600;
    width: fit-content;
}

.case-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
}

.slide-content {
    display: flex;
    gap: 1.5rem;
}

.slide-screenshot {
    flex: 0 0 75%;
    background: var(--white);
    border-radius: 40px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.slide-screenshot img {
    width: 100%;
    height: auto;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.slide-screenshot img:hover {
    transform: scale(1.02);
}

.screenshot-zoom {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: none;
    animation: zoomPulse 3s ease-in-out infinite;
}

/* Расширяющееся кольцо */
.screenshot-zoom::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    animation: ringExpand 3s ease-out infinite;
    pointer-events: none;
}

@keyframes zoomPulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.12); }
}

@keyframes ringExpand {
    0%   { transform: scale(1);    opacity: 0.7; }
    100% { transform: scale(1.9);  opacity: 0; }
}

.screenshot-zoom svg {
    width: 21px;
    height: 21px;
    animation: iconBreath 3s ease-in-out infinite;
}

@keyframes iconBreath {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(0.88); }
}

.slide-stats {
    flex: 0 0 calc(25% - 1.5rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    background: var(--primary-color);
    color: var(--white);
    padding: 11px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    display: inline-block;
    width: fit-content;
}

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

.swiper-pagination {
    position: static;
    display: flex;
    gap: 0.5rem;
    width: auto;
}


.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--bg-lighter);
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
    width: 32px;
    border-radius: 6px;
}

.slider-arrows {
    display: flex;
    gap: 0.75rem;
}

.swiper-button-prev,
.swiper-button-next {
    position: static;
    width: 40px;
    height: 40px;
    margin: 0;
    background: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    content: none;
}

.swiper-button-prev svg path,
.swiper-button-next svg path {
    transition: fill 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: var(--primary-color);
}

.swiper-button-prev:hover svg path,
.swiper-button-next:hover svg path {
    fill: var(--white);
}

.swiper-button-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.footer-section {
    padding: 0;
    margin-top: 4rem;
}

.footer-form {
    background: linear-gradient(90deg, #737AFD 0%, #9BF3ED 65.87%, #23CCC0 86.06%);
    padding: 35px 60px;
    border-radius: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    line-height: 1.3;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.form-group {
    position: relative;
    flex: 1;
}

.form-input {
    width: 100%;
    height: 74px;
    padding: 0 28px;
    border: none;
    border-radius: 20px;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-dark);
    background: var(--white);
    outline: none;
    transition: all 0.3s ease;
}

.form-input:focus {
    box-shadow: 0 0 0 2px rgba(115, 122, 253, 0.3);
    padding-top: 24px;
    padding-bottom: 8px;
}

.form-input:not(:placeholder-shown) {
    padding-top: 24px;
    padding-bottom: 8px;
}

.form-label {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-light);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    top: 14px;
    font-size: 1rem;
    transform: translateY(0);
}

/* ── btn-submit: Gradient Flow + Shine + Ripple ─────────────────────────── */
.btn-submit {
    padding: 0 2rem;
    height: 74px;
    background: linear-gradient(
        270deg,
        #262D37,
        #737AFD,
        #AAAEFF,
        #262D37
    );
    background-size: 300% 300%;
    color: var(--white);
    border: none;
    border-radius: 20px;
    font-size: 1.375rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: gradientFlow 11s ease infinite;
    white-space: nowrap;
}

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

/* Shine — псевдоэлемент-блик */
.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255,255,255,0.35) 50%,
        transparent 100%
    );
    transform: skewX(-20deg);
    transition: left 0s;
    pointer-events: none;
}

.btn-submit:hover::before {
    left: 130%;
    transition: left 0.55s ease;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(115, 122, 253, 0.5);
}

.btn-submit:active {
    transform: translateY(0px) scale(0.98);
    box-shadow: 0 2px 8px rgba(115, 122, 253, 0.3);
}

/* Ripple — элемент создаётся через JS */
.btn-submit .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: rippleAnim 0.6s linear;
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}
/* ─────────────────────────────────────────────────────────────────────────── */

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-input {
    appearance: none;
    width: 27px;
    height: 27px;
    border: 2px solid var(--white);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.checkbox-input:checked {
    background: var(--white);
}

.checkbox-input:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 13px;
    height: 13px;
    background-image: url('sources/checkbox.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.checkbox-label {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-medium);
    margin: 0;
    line-height: 1.4;
}

.privacy-link {
    color: var(--text-medium);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: var(--text-dark);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(59, 69, 84, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-image.loaded {
    opacity: 1;
}

.lightbox-loader {
    position: absolute;
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.lightbox-loader.hidden {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

.swiper-button-next svg, .swiper-button-prev svg
{
    width: unset !important;
    height: unset !important;
}

.swiper-button-next svg, .swiper-button-prev svg
{
    width: unset !important;
    height: unset !important;
}

.header-mobile {
    display: none;
}

.logo-mobile {
    width: 54px;
    height: 51px;
}

.header-mobile-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mobile-contact-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mobile-contact-btn:hover {
    transform: scale(1.1);
}

.messenger-icon-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    transition: transform 0.3s ease;
}

.messenger-icon-mobile img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.messenger-icon-mobile:hover {
    transform: scale(1.1);
}

.contact-lightbox .lightbox-content {
    display: none;
}

.contact-lightbox-content {
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem;
    max-width: calc(100vw - 2rem);
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0 1rem;
}

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

.contact-lightbox-header .lightbox-close {
    position: static;
    width: 40px;
    height: 40px;
    background: #D4D6FF;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.contact-lightbox-header .lightbox-close svg {
    width: 24px;
    height: 24px;
}

.contact-lightbox-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--accent-turquoise);
    margin: 0;
}

.contact-lightbox-phone {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-medium);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-lightbox-phone:hover {
    color: var(--primary-color);
}

.contact-lightbox-email {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-medium);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-lightbox-email:hover {
    color: var(--primary-color);
}

.contact-lightbox-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-info-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-info-icon {
    width: 54px;
    height: 62px;
    object-fit: contain;
    flex-shrink: 0;
}

.contact-info-icon-small {
    width: 54px;
    height: 62px;
    object-fit: contain;
    flex-shrink: 0;
    padding: 11px 7px;
}

.contact-info-text {
    display: flex;
    flex-direction: column;
}

.contact-info-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-medium);
    line-height: 1.3;
}

.contact-info-sublabel {
    font-size: 0.75rem;
    color: var(--text-medium);
    line-height: 1.3;
}

@media (max-width: 1024px) {
    .header-desktop {
        display: flex;
    }

    .header-mobile {
        display: none;
    }

    .navbar-brand .logo
    {
        width: 53px;
        height: 52px;
    }

    body::before {
        position: fixed;
        top: 600px;
        left: 105px;
        width: 100px;
        height: 81px;
        background: url('sources/bg_img_mob.png') center / contain no-repeat;
        animation: floatDecor 6s ease-in-out infinite;
    }

    body::after {
        bottom: 120px;
        right: 20px;
        width: 80px;
        height: 80px;
        animation: floatDecor2 8s ease-in-out infinite;
    }

    .contact-lightbox {
        align-items: flex-start;
        padding-top: 90px;
    }

    .hero-content {

        align-items: center;
        text-align: center;
    }

    .slide-header {
    }

    .case-number {
        font-size: 16px;
    }

    .case-title {
        font-size: 16px;
    }

    .slide-stats {
        flex-direction: column;
        justify-content: space-between;
    }

    .screenshot-zoom {
        width: 40px;
        height: 40px;
        bottom: 16px;
        right: 16px;
    }

    .stat-value {
        font-size: 20px;
    }

    .stat-label {
        font-size: 14px;
        padding: 4px 8px;
        text-align: left;
    }

    .footer-form {
        padding: 32px 20px;
        background: linear-gradient(159.26deg, #737AFD 4.66%, #9BF3ED 59.19%, #23CCC0 93.51%);
    }

    .footer-title {
        font-size: 24px;
        text-align: center;
        margin-bottom: 0;
    }

    .form-row {
        flex-direction: row;
    }

    .form-group {
        width: 100%;
    }

    .form-input {
        height: 54px;
        font-size: 14px;
        padding: 0 16px;
        width: 100%;
    }

    .form-input:focus,
    .form-input:not(:placeholder-shown) {
        padding-top: 20px;
        padding-bottom: 8px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .form-label {
        font-size: 14px;
        left: 16px;
    }

    .form-input:focus ~ .form-label,
    .form-input:not(:placeholder-shown) ~ .form-label {
        font-size: 12px;
        top: 10px;
    }

    .btn-submit {
        width: 100%;
        height: 54px;
        font-size: 16px;
        padding: 0 1rem;
        white-space: break-spaces;
        line-height: 1.1;
    }

    .checkbox-label {
        font-size: 14px;
    }
    .btn-submit{
        max-width: 190px;
    }
    .contact-lightbox-phone,
    .contact-lightbox-email {
        width: 100%;
    }
    .footer-title
    {
        font-weight: 700;
        font-size: 20px;
    }
    .checkbox-label,
    .form-label,
    .case-number,
    .header-email,
    .stat-label
    {
        font-size: 14px;
    }
    .hero-title
    {
        font-size: 36px;
    }
    .hero-subtitle,
    .header-phone
    {
        font-size: 18px;
    }
    .case-title
    {
        font-size: 16px;
    }
    .stat-value
    {
        font-size: 20px;
    }
    .header-label,
    .header-sublabel
    {
        font-size: 10px;
    }

}

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


    .header-mobile {
        display: flex;
    }

    .hero-content
    {
        margin-top: 0;
        margin-bottom: 0;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .header-info {
        gap: 1.5rem;
    }

    .footer-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    .slide-header
    {
        flex-direction: column;
    }
    .slide-stats
    {
        flex-direction: row;
    }

    .form-row {
        flex-direction: column;
    }

    .btn-submit {
        width: 100%;
        max-width: unset;
    }
}

@media (max-width: 449px) {
    body {
        background: url('sources/background_mob.png') center top / cover no-repeat fixed;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

    .navbar-brand .logo {
        height: 50px;
        width: 50px;
    }

    .header-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .slide-content {
        flex-direction: column;
    }

    .slide-screenshot,
    .slide-stats {
        flex: 1 1 100%;
    }

    .stat-value {
        font-size: 0.9rem;
    }
}
