:root {
    --color-primary: #6c3a82;
    --color-secondary: #98408b;
    --color-accent: #e44d85;
    --color-gradient: linear-gradient(135deg, #6c3a82 0%, #98408b 100%);
    --color-gradient-warm: linear-gradient(135deg, #98408b 0%, #e44d85 100%);
    --color-gradient-soft: linear-gradient(135deg, rgba(108, 58, 130, 0.08) 0%, rgba(152, 64, 139, 0.08) 100%);
    --hero-gradient: linear-gradient(135deg, #6c3a82 0%, #98408b 100%);
    --color-black: #111111;
    --color-white: #ffffff;
    --color-gray: #f8f6fa;
    --color-text: #333333;
    --color-text-muted: #666666;
    --shadow: 0 10px 30px rgba(108, 58, 130, 0.12);
    --shadow-accent: 0 12px 32px rgba(108, 58, 130, 0.22);
    --radius: 16px;
    --container: 1200px;
    --transition: 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    background: var(--color-white);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgb(255, 255, 255);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

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

.logo__img {
    height: 44px;
    width: auto;
}

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

.nav__link {
    position: relative;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-black);
    transition: color var(--transition);
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--color-gradient);
    transition: width var(--transition);
}

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

.nav__link:hover::after {
    width: 100%;
}

.nav__group {
    display: none;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-black);
    transition: transform var(--transition), opacity var(--transition);
}

/* Hero */
.hero-services-wrap {
    background: var(--hero-gradient);
}

.hero {
    position: relative;
    padding: 120px 0 40px;
    color: var(--color-white);
    overflow: hidden;
    min-height: 0;
    height: calc(100vh - 72px);
    max-height: 800px;
    display: flex;
    align-items: center;
    background: transparent;
}

.hero::before {
    display: none;
}

.hero__video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.15) 100%);
    z-index: 1;
}

.hero__inner {
    display: flex;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero__content {
    max-width: 540px;
    text-align: left;
}

.hero__video {
    display: none;
}

.hero__video-player {
    display: none;
}

.hero__brand {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    margin-bottom: 20px;
}

.hero__title {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero__title-accent {
    display: block;
    background: linear-gradient(90deg, #ffffff 0%, #ffd6e8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__subtitle {
    font-size: 18px;
    line-height: 1.5;
    opacity: 0.95;
    margin-bottom: 28px;
    max-width: 480px;
}

.hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

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

.btn--light {
    background: var(--color-white);
    color: var(--color-primary);
}

.btn--light:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn--outline-light {
    border-color: var(--color-white);
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
}

.btn--outline-light:hover {
    background: var(--color-white);
    color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn--primary {
    background: var(--color-gradient);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.btn--primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--color-gradient-warm);
    opacity: 0;
    transition: opacity var(--transition);
}

.btn--primary:hover {
    box-shadow: 0 10px 28px rgba(108, 58, 130, 0.35);
}

.btn--primary:hover::before {
    opacity: 1;
}

.btn--primary span {
    position: relative;
    z-index: 1;
}

/* Section titles */
.section-title {
    position: relative;
    display: inline-block;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--color-white);
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 50px;
    height: 3px;
    background: var(--color-gradient-warm);
    border-radius: 4px;
}

.section-title--dark {
    color: var(--color-black);
}

.section-title--dark::after {
    background: var(--color-gradient);
}

.services .section-title {
    color: var(--color-white);
}

.services .section-title::after {
    background: var(--color-gradient-warm);
}

/* Services */
.services {
    position: relative;
    padding: 32px 0 40px;
    color: var(--color-white);
    overflow: hidden;
    /* Продолжаем градиент hero — убираем стык */
    background: transparent;
}

.services__bg {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 0;
    overflow: hidden;
}

.services__bg::after {
    content: "";
    position: absolute;
    bottom: -120px;
    left: -80px;
    width: 320px;
    height: 320px;
    background: rgba(228, 77, 133, 0.22);
    border-radius: 50%;
    filter: blur(70px);
}

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

.services__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.service-card {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 24px 22px;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid transparent;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-gradient);
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-accent);
    border-color: rgba(108, 58, 130, 0.12);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card[href]:hover .service-card__link,
.service-card:hover .service-card__link {
    color: var(--color-accent);
}

.service-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    color: var(--color-white);
    background: var(--color-gradient);
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 6px 16px rgba(108, 58, 130, 0.25);
}

.service-card__icon svg {
    width: 26px;
    height: 26px;
}

.service-card__title {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-black);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.service-card__text {
    font-size: 14px;
    color: var(--color-text-muted);
    flex-grow: 1;
    margin-bottom: 14px;
    line-height: 1.5;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
    transition: color var(--transition), transform var(--transition);
    margin-top: auto;
}

.service-card:hover .service-card__link {
    transform: translateX(4px);
}

/* About */
.about {
    padding: 100px 0;
    background: var(--color-white);
}

.about__inner {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 64px;
    align-items: center;
}

.about__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: var(--color-gradient-soft);
    border-radius: var(--radius);
    border: 1px solid rgba(108, 58, 130, 0.08);
}

.about__logo img {
    max-height: 180px;
    width: auto;
}

.about__text {
    font-size: 17px;
    color: var(--color-text);
    margin-bottom: 20px;
    line-height: 1.6;
}

.about__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
    list-style: none;
    margin-top: 28px;
}

.about__list li {
    position: relative;
    padding-left: 26px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-black);
}

.about__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 16px;
    height: 16px;
    background: var(--color-gradient);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(108, 58, 130, 0.25);
}

.about__stats {
    display: flex;
    gap: 16px;
    margin-top: 36px;
}

.about__stat {
    flex: 1;
    background: var(--color-gradient);
    color: var(--color-white);
    padding: 24px 16px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-accent);
}

.about__stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
}

.about__stat-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    opacity: 0.92;
}

/* Partners */
.partners {
    padding: 80px 0;
    background: var(--color-white);
}

.partners__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: center;
}

.partner-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background: var(--color-white);
    border: 2px solid rgba(108, 58, 130, 0.08);
    border-radius: var(--radius);
    min-height: 140px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-accent);
    border-color: rgba(108, 58, 130, 0.2);
}

.partner-card__logo {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Contacts */
.contacts {
    padding: 100px 0;
    background: var(--color-gray);
}

.contacts__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: stretch;
}

.contacts__info,
.contacts__form-wrapper {
    display: flex;
    flex-direction: column;
}

.contacts__map {
    flex-grow: 1;
    min-height: 260px;
    margin-top: auto;
}

.contacts__map iframe {
    height: 100%;
    min-height: 260px;
}

.contacts__item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 28px;
}

.contacts__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--color-gradient);
    color: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(108, 58, 130, 0.25);
}

.contacts__icon svg {
    width: 24px;
    height: 24px;
}

.contacts__data {
    flex: 1;
}

.contacts__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

.contacts__value {
    display: block;
    font-size: 17px;
    font-weight: 600;
    color: var(--color-black);
    transition: color var(--transition);
}

.contacts__value:hover {
    color: var(--color-secondary);
}

.contacts__value--address {
    font-style: normal;
}

.contacts__phones {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.contacts__comma {
    color: var(--color-text-muted);
    margin-right: 4px;
}

.contacts__map {
    margin-top: 8px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(108, 58, 130, 0.1);
}

.contacts__map iframe {
    display: block;
    width: 100%;
    border: 0;
    filter: grayscale(25%);
}

.contacts__form-wrapper {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-top: 4px solid;
    border-image: var(--color-gradient) 1;
    justify-content: center;
}

.contacts__form-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--color-black);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e8e0ec;
    border-radius: 10px;
    font-size: 15px;
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #fdfcfe;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(152, 64, 139, 0.12);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.form-note {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 14px;
    line-height: 1.4;
}

.form-link {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition);
}

.form-link:hover {
    color: var(--color-accent);
}

/* Footer */
.footer {
    background: var(--color-gradient);
    color: var(--color-white);
    padding: 32px 0;
}

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

.footer__copy {
    font-size: 14px;
    opacity: 0.92;
    font-weight: 500;
}

.footer__up {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0.92;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50px;
    transition: opacity var(--transition), background var(--transition), border-color var(--transition);
}

.footer__up:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.55);
}

/* Responsive */
@media (max-width: 1024px) {

    .about__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contacts__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
.header {
        z-index: 1000;
    }

    .hero {
        min-height: 620px;
        padding: 120px 0 60px;
        align-items: flex-start;
    }

    .hero__video-bg {
        width: 100%;
        height: 100%;
        min-width: unset;
        min-height: unset;
        top: 0;
        left: 0;
        transform: none;
        object-fit: cover;
        object-position: 65% center;
    }

    .hero__overlay {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.45) 50%, rgba(0, 0, 0, 0.3) 100%);
    }

    .nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgb(255, 255, 255);
        opacity: 1;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 60px;
        gap: 22px;
        transform: translateX(100%);
        transition: transform var(--transition);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
        z-index: 10000;
    }

    .nav.is-open {
        transform: translateX(0);
    }

    .nav.is-open {
        transform: translateX(0);
    }

    .nav__link {
        font-size: 20px;
        color: #111111;
    }

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

    .nav__group {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        width: 100%;
        max-width: 260px;
    }

    .nav__group-title {
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--color-text-muted);
        margin-bottom: 4px;
    }

    .nav__link--sub {
        font-size: 17px;
        font-weight: 500;
        color: var(--color-text);
    }

    .nav__link--sub:hover {
        color: var(--color-primary);
    }

    .burger {
        display: flex;
    }

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

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

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

    .hero__inner {
        justify-content: center;
        text-align: center;
    }

    .hero__content {
        text-align: center;
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 0;
    }

    .hero__video {
        display: none;
    }

    .hero__title {
        font-size: 38px;
    }

    .hero__brand {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .section-title {
        text-align: center;
        display: block;
    }

    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

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

    .service-card__title {
        white-space: normal;
        font-size: 16px;
    }

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

    .about__list {
        grid-template-columns: 1fr 1fr;
    }

    .about__stats {
        flex-direction: row;
    }

    .contacts__item {
        gap: 14px;
    }

    .contacts__icon {
        width: 44px;
        height: 44px;
    }

    .contacts__icon svg {
        width: 20px;
        height: 20px;
    }

    .contacts__form-wrapper {
        padding: 28px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

    .hero__title {
        font-size: 32px;
    }

    .hero__subtitle {
        font-size: 17px;
    }

    .section-title {
        font-size: 28px;
    }

    .btn {
        width: 100%;
    }

    .hero__actions {
        flex-direction: column;
    }

    .footer__inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .about__stat-number {
        font-size: 28px;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }
}

/* Consent checkbox (152-FZ) */
.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 16px;
}
.form-consent__input {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    accent-color: var(--color-primary, #6c3a82);
    cursor: pointer;
}
.form-consent__label {
    font-size: 13px;
    line-height: 1.5;
    color: var(--color-text, #4a4a4a);
    cursor: pointer;
}

/* Yandex Maps JS API map (replaces iframe widget) */
.contacts__map .ymap {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
    border: 0;
    filter: grayscale(25%);
    overflow: hidden;
}
