:root {
    --text: #27324f;
    --muted: #5f6884;
    --line: rgba(112, 122, 167, 0.12);
    --white: rgba(255, 255, 255, 0.84);
    --blue: #3577ff;
    --violet: #8149ff;
    --shadow: 0 18px 40px rgba(98, 109, 162, 0.16);
    --container: 1110px;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: "Inter", sans-serif;
    color: var(--text);
    background: #f5f5fb;
}
body.popup-open {
    overflow: hidden;
}
a {
    color: inherit;
    text-decoration: none;
}
button,
input,
textarea {
    font: inherit;
}
img {
    display: block;
    max-width: 100%;
}
.page {
    min-height: 100vh;
    background-image: linear-gradient(rgba(248, 248, 252, 0.24), rgba(248, 248, 252, 0.24)), url("images/hero-bg.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
}
@media (max-width: 550px) {
    .page {
        background-image: none;
        background: linear-gradient(135deg, #eaf6ff 0%, #dfe8ff 50%, #efe6ff 100%);
    }
}
.container {
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
}
.header {
    border-bottom: 1px solid rgba(175, 184, 220, 0.18);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 86px;
    padding: 20px 0;
}
.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.brand__logo {
    width: 310px;
    max-width: 100%;
}
.nav {
    display: flex;
    align-items: center;
    gap: 34px;
    margin-left: auto;
    padding: 20px 0;
}
.nav__link {
    position: relative;
    padding: 10px 2px 14px;
    font-size: 18px;
    font-weight: 500;
    color: #303b5c;
    transition: color 0.2s ease;
}
.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue), var(--violet));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.22s ease;
}
.nav__link:hover,
.nav__link.is-active {
    color: #264ca8;
}
.nav__link:hover::after,
.nav__link.is-active::after {
    transform: scaleX(1);
}
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(221, 226, 245, 0.9);
}
.lang-switch__icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--blue);
    background: rgba(255, 255, 255, 0.8);
}
.lang-switch__icon svg {
    width: 18px;
    height: 18px;
}
.lang-switch__button {
    border: 0;
    background: transparent;
    min-width: 52px;
    height: 36px;
    border-radius: 14px;
    color: #69728d;
    cursor: pointer;
    font-weight: 600;
}
.lang-switch__button.is-active {
    color: #fff;
    background: linear-gradient(90deg, #31bcff, #7a44ff);
    box-shadow: 0 8px 20px rgba(104, 93, 244, 0.24);
}
.hero {
    padding: 34px 0 30px;
}
.hero__content-wrap {
    min-height: 660px;
    display: flex;
    align-items: flex-start;
}
.hero__content {
    width: min(62%, 770px);
    padding-top: 12px;
}
.hero__title {
    margin: 0 0 26px;
    font-size: clamp(34px, 3.65vw, 35px);
    line-height: 1.2;
    letter-spacing: -0.045em;
    font-weight: 500;
    color: #25304f;
}
.hero__title span {
    background: linear-gradient(90deg, #3488ff 0%, #8648ff 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}
.hero__title strong {
    font-weight: 800;
    color: #1f2a46;
}
.hero__text {
    margin: 0 0 20px;
    font-size: clamp(14px, 1.68vw, 18px);
    line-height: 1.52;
    color: #48526d;
}
.hero__text b {
    font-weight: 800;
    color: #2a334f;
}
.hero__text_button {
    display: flex;
}
.hero__text_button .submit-button {
    padding: 0 20px;
    width: auto;
}
.gradient-text {
    background: linear-gradient(90deg, #3b7fff, #7c4fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}
.contact-box {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 26px;
    align-items: center;
    margin-top: -40px;
    padding: 22px 24px 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(246, 248, 255, 0.8));
    border: 1px solid rgba(166, 176, 214, 0.18);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}
.contact-box__intro {
    position: relative;
    padding-left: 4px;
}
.contact-box__intro h2 {
    margin: 0 0 8px;
    font-size: clamp(28px, 2.4vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}
.contact-box__intro p {
    margin: 0;
    font-size: clamp(18px, 1.6vw, 22px);
    color: #58627d;
}
.contact-box__arrow {
    position: relative;
    width: 300px;
    height: 54px;
    margin-top: 18px;
}
.contact-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 188px;
    gap: 14px;
}
.field {
    position: relative;
}
.field input,
.field textarea {
    width: 100%;
    border: 1px solid rgba(157, 168, 204, 0.22);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    color: var(--text);
    outline: none;
    padding-left: 52px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.field input::placeholder,
.field textarea::placeholder {
    color: #8a93ad;
}
.field input {
    height: 52px;
}
.field textarea {
    min-height: 48px;
    height: 48px;
    padding-top: 13px;
    resize: vertical;
}
.field input:focus,
.field textarea:focus {
    border-color: rgba(103, 122, 248, 0.42);
    box-shadow: 0 0 0 4px rgba(103, 122, 248, 0.08);
    background: rgba(255, 255, 255, 1);
}
.field__icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #6b7bc3;
    pointer-events: none;
}
.field__icon svg {
    width: 100%;
    height: 100%;
}
.field--full {
    grid-column: 1 / -1;
}
.field--message .field__icon {
    top: 15px;
    transform: none;
}
.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    background: linear-gradient(90deg, #8348ff, #3f80ff);
    box-shadow: 0 14px 24px rgba(94, 90, 245, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 28px rgba(94, 90, 245, 0.28);
}
.submit-button svg {
    width: 18px;
    height: 18px;
}
.footer {
    padding: 18px 0 34px;
}
.footer__inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}
.footer__logo {
    width: 270px;
}
.footer__right {
    text-align: right;
    color: #5d6782;
}
.footer__policy {
    display: inline-block;
    margin-bottom: 22px;
    font-size: 16px;
    color: #414b67;
    border-bottom: 1px solid rgba(65, 75, 103, 0.36);
    padding-bottom: 2px;
}
.footer__right p {
    margin: 0;
    font-size: 14px;
}
.burger {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 10px 20px rgba(98, 109, 162, 0.12);
    cursor: pointer;
}
.burger span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: #33415f;
    border-radius: 99px;
    transition: 0.2s ease;
}
.burger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.burger.is-open span:nth-child(2) {
    opacity: 0;
}
.burger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
.popup-bg {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 45, 0.5);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    z-index: 39;
}
.popup-bg.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.popup {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    z-index: 40;
}
.popup.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.popup__dialog {
    position: relative;
    width: min(100%, 680px);
    padding: 34px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 255, 0.96));
    border: 1px solid rgba(167, 177, 218, 0.22);
    box-shadow: 0 30px 60px rgba(33, 43, 85, 0.24);
    transform: translateY(18px) scale(0.98);
    transition: transform 0.28s ease;
    overflow: hidden;
}
.popup.active .popup__dialog {
    transform: translateY(0) scale(1);
}
.popup__dialog::before {
    content: "";
    position: absolute;
    inset: -120px auto auto -100px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(64, 128, 255, 0.18), rgba(64, 128, 255, 0));
    pointer-events: none;
}
.popup__dialog::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -100px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(129, 73, 255, 0.16), rgba(129, 73, 255, 0));
    pointer-events: none;
}
.popup__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(235, 239, 252, 0.95);
    color: #3c4b75;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}
.popup__close:hover {
    transform: rotate(90deg);
    background: rgba(223, 229, 249, 1);
}
.popup__badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #3f63d1;
    background: rgba(68, 127, 255, 0.1);
}
.popup__title {
    position: relative;
    z-index: 1;
    margin: 18px 0 12px;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}
.popup__text {
    position: relative;
    z-index: 1;
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.6;
    color: #58627d;
    max-width: 560px;
}
.popup-form {
    position: relative;
    z-index: 1;
}
.popup-form__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
}
.popup-form__message textarea {
    min-height: 128px;
    height: 128px;
    padding-top: 15px;
}
.popup-form__check {
    margin-top: 18px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #5d6782;
    font-size: 14px;
    line-height: 1.45;
}
.popup-form__check input {
    margin-top: 3px;
    accent-color: #5a5bf6;
}
.popup-form__actions {
    margin-top: 22px;
    display: flex;
    justify-content: flex-start;
}
.popup-form__submit {
    min-width: 240px;
    padding: 0 24px;
}
.popup__policy {
    margin-top: 14px;
    color: #7a849d;
    font-size: 13px;
    line-height: 1.5;
}
.toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(29, 37, 63, 0.94);
    color: #fff;
    box-shadow: 0 18px 30px rgba(29, 37, 63, 0.22);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 60;
}
.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}
@media (max-width: 1160px) {
    .page {
        background-position: 68% top;
    }
    .hero__content {
        width: min(66%, 700px);
    }
    .contact-box {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 920px) {
    .page {
        background-position: 74% top;
    }
    .header__inner {
        flex-wrap: wrap;
        min-height: 80px;
        padding: 14px 0;
    }
    .burger {
        display: block;
        margin-left: auto;
    }
    .nav {
        display: none;
        width: 100%;
        order: 4;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 8px 0 0;
    }
    .nav.is-open {
        display: flex;
    }
    .lang-switch {
        order: 3;
        margin-left: 0;
    }
    .hero {
        padding-top: 22px;
    }
    .hero__content-wrap {
        min-height: auto;
    }
    .hero__content {
        width: 100%;
        padding-top: 0;
    }
    .contact-box {
        margin-top: 26px;
    }
    .contact-form,
    .popup-form__grid {
        grid-template-columns: 1fr;
    }
    .submit-button {
        width: 100%;
    }
    .footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer__right {
        text-align: left;
    }
}
@media (max-width: 640px) {
    .container {
        width: min(var(--container), calc(100% - 28px));
    }
    .brand__logo,
    .footer__logo {
        width: 220px;
    }
    .page {
        background-position: 76% 96px;
        background-size: auto 760px;
    }
    .hero__title {
        font-size: 30px;
    }
    .hero__text {
        font-size: 17px;
    }
    .contact-box {
        padding: 18px 16px;
    }
    .contact-box__arrow {
        width: 210px;
    }
    .contact-box__arrow::before {
        width: 170px;
    }
    .popup {
        padding: 14px;
    }
    .popup__dialog {
        padding: 24px 18px 20px;
        border-radius: 22px;
    }
    .popup__close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }
    .popup__title {
        margin-top: 16px;
        padding-right: 36px;
    }
    .popup-form__submit {
        min-width: 100%;
    }
}
.page-head {
    padding: 34px 0 12px;
}
.page-head__title {
    margin: 0 0 12px;
    font-size: clamp(34px, 3.5vw, 56px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}
.page-head__text {
    max-width: 760px;
    color: #59637f;
    font-size: 18px;
    line-height: 1.6;
}
.content-card,
.privacy-card,
.contact-card,
.support-card {
    margin: 16px 0 38px;
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 248, 255, 0.86));
    border: 1px solid rgba(166, 176, 214, 0.18);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}
.content-card .hero__content {
    width: 100%;
    padding-top: 0;
}
.info-list {
    display: grid;
    gap: 18px;
}
.info-item {
    padding: 20px 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(166, 176, 214, 0.16);
}
.info-item__label {
    margin: 0 0 8px;
    color: #6b7490;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.info-item__value {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #23304d;
    word-break: break-word;
}
.info-item__value a {
    color: #2d63df;
}
.support-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    align-items: start;
}
.support-note {
    padding: 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(166, 176, 214, 0.16);
}
.support-note h2 {
    margin: 0 0 12px;
    font-size: 30px;
}
.support-note p {
    margin: 0;
    color: #5b6681;
    line-height: 1.6;
}
.form-panel {
    display: grid;
    gap: 16px;
}
.form-status {
    min-height: 24px;
    font-size: 14px;
    font-weight: 600;
}
.form-status.is-success {
    color: #1f8f52;
}
.form-status.is-error {
    color: #c23a3a;
}
.field input.is-error,
.field textarea.is-error,
.popup-form__check input.is-error,
.field input:invalid:focus,
.field textarea:invalid:focus {
    border-color: rgba(194, 58, 58, 0.55);
    box-shadow: 0 0 0 4px rgba(194, 58, 58, 0.08);
}
.popup-form__check input.is-error {
    outline: 2px solid rgba(194, 58, 58, 0.4);
}
.contact-form--single {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.privacy-card {
    color: #4a5571;
    line-height: 1.65;
}
.privacy-card .hero,
.privacy-card .container,
.privacy-card .hero__inner,
.privacy-card .hero__content,
.privacy-card .hero__visual {
    all: unset;
}
.privacy-card h1,
.privacy-card h2,
.privacy-card h3 {
    color: #26314d;
    line-height: 1.25;
}
.privacy-card p,
.privacy-card li,
.privacy-card div {
    color: inherit;
}
.privacy-card img {
    display: none;
}
.privacy-card a {
    color: #2d63df;
}
.lang-switch__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.popup__policy a,
.footer__policy {
    color: inherit;
}
@media (max-width: 920px) {
    .support-layout,
    .contact-form--single {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 760px) {
    .content-card,
    .privacy-card,
    .contact-card,
    .support-card {
        padding: 20px;
        border-radius: 20px;
    }
    .page-head__text {
        font-size: 16px;
    }
    .info-item__value {
        font-size: 20px;
    }
}
.footer-contact {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}
.footer-contact a:hover {
    text-decoration: underline;
}
