@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Roboto:wght@400;500;700&display=swap");
:root {
    --navy: #123a61;
    --blue: #18a9e6;
    --dark: #122637;
    --text: #536475;
    --light: #f4f8fb;
    --white: #fff;
    --radius: 10px;
    --shadow: 0 18px 45px rgba(18, 58, 97, .12)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font: 16px/1.65 Roboto, Arial, sans-serif;
    color: var(--text);
    background: #fff
}

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

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

h1, h2, h3 {
    font-family: Montserrat, Arial, sans-serif;
    color: var(--dark);
    line-height: 1.16;
    margin: 0 0 18px
}

h1 {
    font-size: clamp(40px, 5vw, 70px)
}

h2 {
    font-size: clamp(30px, 3vw, 46px)
}

h3 {
    font-size: 21px
}

.container {
    width: min(1170px, calc(100% - 40px));
    margin: auto
}

.topbar {
    background: var(--navy);
    color: #dbe8f3;
    font-size: 13px
}

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

.header {
    height: 82px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 3px 16px rgba(0, 0, 0, .07)
}

.header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px
}

.logo {
    flex: 0 0 auto
}

.logo img {
    width: 260px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-left: auto
}

.nav a {
    font-weight: 700;
    font-size: 14px;
    color: #263d51
}

.nav a:hover, .nav a.active {
    color: var(--blue)
}

.header__contact {
    display: flex;
    align-items: center;
    gap: 14px
}

.phone {
    font-weight: 800;
    color: var(--navy);
    white-space: nowrap
}

.btn {
    border: 0;
    border-radius: 5px;
    background: var(--blue);
    color: #fff;
    text-wrap-mode: nowrap;
    font: 700 14px Montserrat;
    cursor: pointer;
    display: inline-block;
    justify-content: center;
    align-items: center;
    transition: .2s
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(24, 169, 230, .28)
}

.btn--small {
    padding: 11px 16px
}

.btn--ghost {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .75)
}

.btn--white {
    background: #fff;
    color: var(--navy)
}

.nav-toggle {
    display: none;
    background: 0;
    border: 0;
    padding: 8px
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--navy);
    margin: 5px
}

.hero {
    min-height: 680px;
    position: relative;
    background: url('../images/hero.jpg') center/cover no-repeat;
    color: #fff;
    display: flex;
    align-items: center
}

.hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 31, 51, .92) 0%, rgba(8, 31, 51, .72) 49%, rgba(8, 31, 51, .12) 100%)
}

.hero__inner {
    position: relative
}

.hero__content {
    max-width: 760px
}

.hero h1 {
    color: #fff
}

.hero h1 span {
    color: var(--blue)
}

.hero p {
    font-size: 19px;
    max-width: 690px;
    color: #e7f0f6
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2.3px;
    font: 700 12px Montserrat;
    color: var(--blue);
    display: block;
    margin-bottom: 14px
}

.eyebrow--light {
    color: #bdeaff
}

.hero__actions {
    display: flex;
    gap: 15px;
    margin: 30px 0 38px
}

.hero__facts {
    display: flex;
    gap: 45px
}

.hero__facts div {
    display: flex;
    flex-direction: column
}

.hero__facts b {
    font: 800 27px Montserrat
}

.hero__facts span {
    font-size: 13px;
    color: #cbd9e4
}

.section {
    padding: 95px 0
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 40px;
    margin-bottom: 44px
}

.section-head > p {
    max-width: 520px;
    margin: 0
}

.cards {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 25px
}

.service-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: .25s
}

.service-card:hover {
    transform: translateY(-7px)
}

.service-card > img {
    width: 100%;
    height: 220px;
    object-fit: cover
}

.service-card__body {
    padding: 27px
}

.service-card__body p {
    min-height: 52px
}

.service-card__body a, .text-link {
    font-weight: 800;
    color: var(--navy)
}

.service-card__body a span {
    color: var(--blue)
}

.about {
    background: var(--light)
}

.about__grid {
    display: grid;
    grid-template-columns:1.05fr .95fr;
    gap: 70px;
    align-items: center
}

.about__image {
    position: relative
}

.about__image img {
    border-radius: var(--radius);
    height: 500px;
    width: 100%;
    object-fit: cover
}

.about__badge {
    position: absolute;
    right: -25px;
    bottom: 35px;
    background: var(--blue);
    color: #fff;
    padding: 24px 28px;
    box-shadow: var(--shadow)
}

.about__badge b {
    font: 800 28px Montserrat;
    display: block
}

.ticks {
    padding: 0;
    list-style: none;
    margin: 28px 0
}

.ticks li {
    margin: 12px 0;
    padding-left: 28px;
    position: relative
}

.ticks li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--blue);
    font-weight: 900
}

.steps__grid {
    display: grid;
    grid-template-columns:repeat(4, 1fr);
    gap: 25px
}

.steps__grid > div {
    border-top: 3px solid var(--blue);
    padding: 25px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(18, 58, 97, .08)
}

.steps__grid i {
    font: 800 36px Montserrat;
    color: #dbeaf4;
    font-style: normal
}

.cta {
    position: relative;
    background: url('../images/cta.jpg') center/cover no-repeat;
    color: #fff;
    padding: 82px 0
}

.cta__shade {
    position: absolute;
    inset: 0;
    background: rgba(16, 58, 95, .88)
}

.cta__inner {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px
}

.cta h2 {
    color: #fff;
    margin-bottom: 8px
}

.cta p {
    margin: 0;
    color: #d8e7f2
}

.works__grid {
    display: grid;
    grid-template-columns:2fr 1fr 1fr;
    gap: 18px
}

.works__grid img {
    height: 340px;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius)
}

.geography {
    background: var(--light)
}

.geography__grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 60px;
    align-items: center
}

.locations {
    display: flex;
    flex-wrap: wrap;
    gap: 12px
}

.locations span {
    background: #fff;
    border: 1px solid #d9e6ef;
    padding: 12px 18px;
    border-radius: 50px;
    font-weight: 700;
    color: var(--navy)
}

.page-hero {
    padding: 95px 0;
    background: linear-gradient(135deg, #eaf5fb, #f8fbfd)
}

.page-hero h1 {
    font-size: clamp(38px, 5vw, 62px)
}

.page-hero--service {
    background: linear-gradient(90deg, #e9f5fb, #fff)
}

.page-hero p {
    max-width: 700px;
    font-size: 18px
}

.content {
    max-width: 900px
}

.content img {
    border-radius: 8px
}

.service-content {
    display: grid;
    grid-template-columns:1fr 330px;
    gap: 50px
}

.service-aside, .form--card {
    background: var(--light);
    padding: 30px;
    border-radius: var(--radius);
    height: max-content;
    position: sticky;
    top: 110px
}

.contact-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 70px
}

.contact-list {
    display: grid;
    gap: 16px;
    margin-top: 28px
}

.contact-list > * {
    display: flex;
    flex-direction: column;
    padding: 17px 0;
    border-bottom: 1px solid #dce5eb
}

.contact-list b {
    color: var(--navy)
}

.form {
    display: grid;
    gap: 16px
}

.form label {
    display: grid;
    gap: 6px;
    font-weight: 700;
    color: var(--dark)
}

.form input, .form textarea {
    width: 100%;
    border: 1px solid #ccd9e2;
    border-radius: 4px;
    padding: 13px;
    font: inherit;
    background: #fff
}

.form .check {
    display: flex;
    grid-template-columns:auto 1fr;
    align-items: flex-start;
    font-weight: 400
}

.form .check input {
    width: auto;
    margin-top: 5px
}

.footer {
    background: #102b43;
    color: #aebfcd;
    padding: 70px 0 20px
}

.footer__grid {
    display: grid;
    grid-template-columns:1.4fr 1fr 1fr;
    gap: 70px
}

.footer h3 {
    color: #fff;
    font-size: 17px
}

.footer__grid > div {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.footer__grid img {
    filter: brightness(0) invert(1);
    margin-bottom: 12px
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: 50px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 13px
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(2, 17, 30, .72);
    display: none;
    place-items: center;
    z-index: 100;
    padding: 20px
}

.modal.is-open {
    display: grid
}

.modal__dialog {
    background: #fff;
    width: min(480px, 100%);
    padding: 36px;
    border-radius: 10px;
    position: relative
}

.modal__close {
    position: absolute;
    right: 15px;
    top: 10px;
    border: 0;
    background: 0;
    font-size: 30px;
    cursor: pointer
}

.breadcrumbs {
    font-size: 14px
}

.breadcrumbs a {
    color: var(--blue)
}

@media (max-width: 1050px) {
    .header__contact .btn {
        display: none
    }

    .nav {
        gap: 15px
    }

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

@media (max-width: 800px) {
    .topbar {
        display: none
    }

    .header {
        height: 70px
    }

    .nav-toggle {
        display: block;
        margin-left: auto
    }

    .nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 20px;
        box-shadow: 0 15px 25px rgba(0, 0, 0, .1);
        flex-direction: column;
        align-items: flex-start
    }

    .nav.is-open {
        display: flex
    }

    .header__contact {
        display: none
    }

    .hero {
        min-height: 610px
    }

    .hero__shade {
        background: rgba(8, 31, 51, .8)
    }

    .section {
        padding: 70px 0
    }

    .section-head, .cta__inner {
        align-items: flex-start;
        flex-direction: column
    }

    .about__grid, .geography__grid, .contact-grid, .service-content {
        grid-template-columns:1fr
    }

    .about__badge {
        right: 15px
    }

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

    .works__grid {
        grid-template-columns:1fr 1fr
    }

    .works__grid img:first-child {
        grid-column: 1/-1
    }

    .footer__grid {
        grid-template-columns:1fr 1fr
    }

    .service-aside {
        position: static
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 28px, 1170px)
    }

    .cards, .steps__grid, .works__grid, .footer__grid {
        grid-template-columns:1fr
    }

    .works__grid img:first-child {
        grid-column: auto
    }

    .hero__actions, .hero__facts {
        flex-wrap: wrap
    }

    .hero__facts {
        gap: 24px
    }

    .about__image img {
        height: 350px
    }

    .section-head {
        margin-bottom: 30px
    }

    .footer__bottom {
        flex-direction: column;
        gap: 8px
    }
}

/* =========================================================
   Страница услуг — динамическая bento-сетка
   ========================================================= */

.pages-page {
    --service-blue: #06356f;
    --service-blue-light: #14a8e2;
    --service-dark: #061d35;
    --service-radius: 24px;
}

/* Сетка услуг */
.pages-page .subpages {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 245px;
    gap: 22px;
    margin-top: 34px;
    margin-bottom: 60px;
}

/* Карточка */
.pages-page .subpage {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border-radius: var(--service-radius);
    background: #e9f2f8;
    box-shadow:
            0 15px 40px rgba(4, 42, 79, 0.12),
            0 2px 8px rgba(4, 42, 79, 0.06);
    isolation: isolate;
    transform: translateY(28px);
    opacity: 0;
    transition:
            opacity 0.65s ease,
            transform 0.65s cubic-bezier(.2, .8, .2, 1),
            box-shadow 0.35s ease;
}

/* Появление при прокрутке */
.pages-page .subpage.is-visible {
    transform: translateY(0);
    opacity: 1;
}

/* Разные размеры карточек */
.pages-page .subpage:nth-child(1) {
    grid-column: span 7;
    grid-row: span 2;
}

.pages-page .subpage:nth-child(2) {
    grid-column: span 5;
    grid-row: span 2;
}

.pages-page .subpage:nth-child(3),
.pages-page .subpage:nth-child(4),
.pages-page .subpage:nth-child(5) {
    grid-column: span 4;
}

.pages-page .subpage:nth-child(6) {
    grid-column: span 12;
}

/* Изображение */
.pages-page .subpage__image-link {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
    z-index: 1;
}

.pages-page .subpage__image-link .picture {
    display: block;
    width: 100%;
    height: 100%;
}

.pages-page .subpage__image-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.01);
    transition:
            transform 0.8s cubic-bezier(.2, .8, .2, 1),
            filter 0.5s ease;
}

/* Затемнение снизу */
.pages-page .subpage::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
            linear-gradient(
                    180deg,
                    rgba(4, 24, 43, 0.02) 20%,
                    rgba(4, 24, 43, 0.25) 58%,
                    rgba(3, 24, 45, 0.94) 100%
            );
    transition: opacity 0.4s ease;
}

/* Голубое свечение */
.pages-page .subpage::before {
    content: "";
    position: absolute;
    z-index: 3;
    top: 20px;
    right: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    pointer-events: none;
    background: var(--service-blue-light);
    box-shadow:
            0 0 0 7px rgba(20, 168, 226, 0.18),
            0 0 28px rgba(20, 168, 226, 0.75);
    transition:
            transform 0.35s ease,
            box-shadow 0.35s ease;
}

/* Заголовок услуги */
.pages-page .subpage__title {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 24px;
    z-index: 4;
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
    font-size: clamp(21px, 1.7vw, 31px);
    font-weight: 700;
    line-height: 1.15;
    pointer-events: none;
}

.pages-page .subpage__title .__link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    color: #fff;
    text-decoration: none;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
}

/* Стрелка */
.pages-page .subpage__title .__link::after {
    content: "→";
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 23px;
    font-weight: 400;
    color: #fff;
    background: rgba(20, 168, 226, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.38);
    box-shadow: 0 8px 24px rgba(0, 84, 145, 0.35);
    backdrop-filter: blur(8px);
    transition:
            transform 0.35s ease,
            background 0.35s ease;
}

/* Номер услуги */
.pages-page .subpage__title::before {
    display: block;
    margin-bottom: 9px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.16em;
}

.pages-page .subpage:nth-child(1) .subpage__title::before {
    content: "01 / УСЛУГА";
}

.pages-page .subpage:nth-child(2) .subpage__title::before {
    content: "02 / УСЛУГА";
}

.pages-page .subpage:nth-child(3) .subpage__title::before {
    content: "03 / УСЛУГА";
}

.pages-page .subpage:nth-child(4) .subpage__title::before {
    content: "04 / УСЛУГА";
}

.pages-page .subpage:nth-child(5) .subpage__title::before {
    content: "05 / УСЛУГА";
}

.pages-page .subpage:nth-child(6) .subpage__title::before {
    content: "06 / УСЛУГА";
}

/* Наведение */
@media (hover: hover) {
    .pages-page .subpage:hover {
        box-shadow:
                0 26px 60px rgba(4, 42, 79, 0.22),
                0 6px 16px rgba(4, 42, 79, 0.1);
    }

    .pages-page .subpage:hover .subpage__image-link img {
        transform: scale(1.085);
        filter: saturate(1.08) contrast(1.03);
    }

    .pages-page .subpage:hover::before {
        transform: scale(1.25);
        box-shadow:
                0 0 0 10px rgba(20, 168, 226, 0.17),
                0 0 40px rgba(20, 168, 226, 0.9);
    }

    .pages-page .subpage:hover .subpage__title .__link::after {
        transform: translateX(5px) rotate(-12deg);
        background: var(--service-blue-light);
    }
}

/* Планшет */
@media (max-width: 991px) {
    .pages-page .subpages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 300px;
        gap: 18px;
    }

    .pages-page .subpage:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .pages-page .subpage:nth-child(1),
    .pages-page .subpage:nth-child(6) {
        grid-column: span 2;
    }

    .pages-page .subpage__title {
        left: 22px;
        right: 22px;
        bottom: 21px;
        font-size: 23px;
    }
}

/* Телефон */
@media (max-width: 640px) {
    .pages-page .subpages {
        grid-template-columns: 1fr;
        grid-auto-rows: 260px;
        gap: 15px;
        margin-top: 25px;
    }

    .pages-page .subpage:nth-child(n) {
        grid-column: 1;
        grid-row: auto;
    }

    .pages-page .subpage {
        border-radius: 18px;
    }

    .pages-page .subpage__title {
        left: 19px;
        right: 19px;
        bottom: 18px;
        font-size: 21px;
    }

    .pages-page .subpage__title .__link::after {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .pages-page .subpage::before {
        top: 16px;
        right: 16px;
    }
}

/* Пользователи с отключёнными анимациями */
@media (prefers-reduced-motion: reduce) {
    .pages-page .subpage {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .pages-page .subpage__image-link img,
    .pages-page .subpage__title .__link::after {
        transition: none;
    }
}
.topbar{
    background:linear-gradient(90deg,#062d61,#0f4b93);
    color:#fff;
    font-size:13px;
}

.topbar__inner{
    display:flex;
    justify-content:space-between;
    align-items:center;
    min-height:44px;
    gap:20px;
}

.topbar__info{
    display:flex;
    align-items:center;
    gap:28px;
}

.topbar__info span{
    display:flex;
    align-items:center;
    gap:8px;
    opacity:.95;
}

.topbar__social{
    display:flex;
    align-items:center;
    gap:8px;
}

.top-social{
    width:34px;
    height:34px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    text-decoration:none;
    transition:.35s;
    position:relative;
    overflow:hidden;
}

.top-social::before{
    content:"";
    position:absolute;
    inset:0;
    border-radius:50%;
    background:rgba(255,255,255,.08);
    transition:.35s;
}

.top-social i{
    position:relative;
    z-index:2;
    font-size:16px;
}

.top-social:hover{
    transform:translateY(-3px) scale(1.08);
    color:#fff;
}

.top-social:hover::before{
    transform:scale(1.25);
}

.phone{
    background:#006fd6;
}

.whatsapp{
    background:#25D366;
}

.telegram{
    background:#28A8EA;
}

.vk{
    background:#0077FF;
}

.ok{
    background:#F7931E;
}

.mail{
    background:#4F6EF7;
}

.max{
    background:#3E59FF;
}

.top-social:hover{
    box-shadow:
            0 8px 20px rgba(0,0,0,.18),
            0 0 18px rgba(255,255,255,.18);
}

@media(max-width:992px){

    .topbar__inner{
        flex-direction:column;
        padding:8px 0;
    }

    .topbar__info{
        flex-wrap:wrap;
        justify-content:center;
        gap:10px 18px;
    }

    .topbar__social{
        margin-top:6px;
        flex-wrap:wrap;
        justify-content:center;
    }

}

/* =========================================================
   Мобильная нижняя навигация
   ========================================================= */

@media (max-width: 991.98px) {

    body {
        padding-bottom: 82px;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 10px;
        z-index: 1040;

        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: center;

        min-height: 68px;
        padding: 7px 7px calc(7px + env(safe-area-inset-bottom));

        background: rgba(255, 255, 255, 0.94);
        border: 1px solid rgba(7, 63, 117, 0.1);
        border-radius: 22px;

        box-shadow:
                0 18px 45px rgba(3, 35, 67, 0.2),
                0 4px 15px rgba(3, 35, 67, 0.08);

        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .mob-nav-item {
        position: relative;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;

        min-width: 0;
        min-height: 54px;
        padding: 4px 2px;

        border: 0;
        border-radius: 16px;
        background: transparent;

        color: #12385e;
        text-decoration: none;
        font-family: "Inter", sans-serif;
        font-size: 10px;
        font-weight: 600;
        line-height: 1.1;

        cursor: pointer;

        transition:
                transform 0.25s ease,
                background 0.25s ease,
                color 0.25s ease;
    }

    .mob-nav-item:active {
        transform: scale(0.94);
    }

    .mob-nav-icon {
        position: relative;

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

        width: 34px;
        height: 34px;

        border-radius: 13px;
        background: #edf6fc;
        color: #0878bd;

        font-size: 18px;

        transition:
                transform 0.25s ease,
                color 0.25s ease,
                background 0.25s ease,
                box-shadow 0.25s ease;
    }

    .mob-nav-item:hover,
    .mob-nav-item:focus {
        color: #063c72;
        background: rgba(12, 145, 214, 0.07);
    }

    .mob-nav-item:hover .mob-nav-icon,
    .mob-nav-item:focus .mob-nav-icon {
        transform: translateY(-3px);
        box-shadow: 0 8px 18px rgba(6, 102, 166, 0.18);
    }

    .mob-nav-wa .mob-nav-icon {
        color: #fff;
        background: #25d366;
    }

    .mob-nav-tg .mob-nav-icon {
        color: #fff;
        background: #229ed9;
    }

    .mob-nav-max .mob-nav-icon {
        color: #fff;
        background: linear-gradient(135deg, #4361ee, #6c46e8);
    }

    .mob-nav-services .mob-nav-icon {
        color: #fff;
        background: linear-gradient(135deg, #087bc1, #16afe6);
        box-shadow: 0 8px 20px rgba(13, 143, 207, 0.3);
    }

    .mob-nav-services::before {
        content: "";

        position: absolute;
        top: 2px;
        left: 50%;

        width: 38px;
        height: 38px;

        border-radius: 50%;
        background: rgba(21, 169, 226, 0.14);

        transform: translateX(-50%) scale(0);
        animation: mobileServicesPulse 2.4s ease-out infinite;
    }

    @keyframes mobileServicesPulse {
        0% {
            opacity: 0.8;
            transform: translateX(-50%) scale(0.7);
        }

        75%,
        100% {
            opacity: 0;
            transform: translateX(-50%) scale(1.7);
        }
    }
}


/* =========================================================
   Нижнее выезжающее меню услуг
   ========================================================= */

.mobile-services-menu {
    height: auto !important;
    max-height: calc(100dvh - 38px);

    border: 0;
    border-radius: 28px 28px 0 0;

    background:
            radial-gradient(
                    circle at 100% 0,
                    rgba(21, 169, 226, 0.14),
                    transparent 38%
            ),
            #f7fbfe;
}

.mobile-services-menu .offcanvas-header {
    border: 0;
}

.mobile-services-menu__header {
    padding: 22px 22px 14px;
}

.mobile-services-menu__label {
    display: block;
    margin-bottom: 3px;

    color: #159ed6;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.mobile-services-menu__header h5 {
    margin: 0;

    color: #072c54;
    font-family: "Inter", sans-serif;
    font-size: 27px;
    font-weight: 700;
}

.mobile-services-menu__close {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border: 0;
    border-radius: 50%;

    background: #fff;
    color: #063c72;

    font-size: 20px;

    box-shadow: 0 8px 22px rgba(3, 42, 78, 0.12);
    transition:
            transform 0.25s ease,
            background 0.25s ease;
}

.mobile-services-menu__close:active {
    transform: rotate(90deg) scale(0.92);
}

.mobile-services-menu__body {
    padding: 0 16px calc(22px + env(safe-area-inset-bottom));
}

.mobile-services-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.mobile-service-card {
    position: relative;

    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 13px;

    min-height: 78px;
    padding: 12px 12px 12px 14px;

    overflow: hidden;

    border: 1px solid rgba(7, 70, 124, 0.08);
    border-radius: 19px;

    background: rgba(255, 255, 255, 0.95);
    color: #092f55;
    text-decoration: none;

    box-shadow:
            0 9px 25px rgba(4, 49, 90, 0.07),
            0 2px 5px rgba(4, 49, 90, 0.04);

    transition:
            transform 0.25s ease,
            border-color 0.25s ease,
            box-shadow 0.25s ease;
}

.mobile-service-card::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background: linear-gradient(
            110deg,
            transparent 20%,
            rgba(21, 169, 226, 0.08) 50%,
            transparent 80%
    );

    transform: translateX(-120%);
    transition: transform 0.65s ease;
}

.mobile-service-card:hover::before {
    transform: translateX(120%);
}

.mobile-service-card:active {
    transform: scale(0.975);
}

.mobile-service-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 50px;
    height: 50px;

    border-radius: 16px;

    background: linear-gradient(135deg, #e8f6fd, #d8eef9);
    color: #087cbf;

    font-size: 23px;

    box-shadow: inset 0 0 0 1px rgba(8, 124, 191, 0.08);
}

.mobile-service-card__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.mobile-service-card__content strong {
    color: #082f58;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.mobile-service-card__content small {
    overflow: hidden;

    color: #61758a;
    font-size: 11px;
    line-height: 1.35;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mobile-service-card__arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border-radius: 50%;

    background: #eff7fc;
    color: #0786c8;

    font-size: 16px;

    transition:
            transform 0.25s ease,
            background 0.25s ease;
}

.mobile-service-card:hover .mobile-service-card__arrow {
    transform: translateX(4px);
    background: #dff2fb;
}

.mobile-services-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    margin-top: 14px;
    padding: 16px 17px;

    border-radius: 20px;

    background: linear-gradient(135deg, #073869, #0c83c3);
    color: #fff;

    box-shadow: 0 14px 30px rgba(4, 72, 125, 0.22);
}

.mobile-services-contact div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mobile-services-contact span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
}

.mobile-services-contact strong {
    font-size: 14px;
    line-height: 1.3;
}

.mobile-services-contact > a {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    border-radius: 50%;

    background: #fff;
    color: #0879bb;

    font-size: 19px;
    text-decoration: none;

    box-shadow: 0 7px 18px rgba(1, 34, 62, 0.22);
}


/* Отступ панели на очень узких экранах */
@media (max-width: 370px) {

    .mobile-bottom-nav {
        left: 6px;
        right: 6px;
        bottom: 6px;
        border-radius: 18px;
    }

    .mob-nav-item {
        font-size: 9px;
    }

    .mob-nav-icon {
        width: 31px;
        height: 31px;
        font-size: 16px;
    }

    .mobile-service-card {
        grid-template-columns: 44px minmax(0, 1fr) 32px;
        gap: 10px;
    }

    .mobile-service-card__icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }
}
/*==================================================
    ОБЩИЙ СТИЛЬ ВНУТРЕННИХ СТРАНИЦ
==================================================*/

[class$="-page"] > h1{
    position:relative;
    margin-bottom:28px!important;
    padding-bottom:18px;

    color:#0b3d71;

    font-size:clamp(34px,4vw,54px);
    font-weight:800;
    line-height:1.08;
    letter-spacing:-.03em;
}

[class$="-page"] > h1::before{
    content:"";
    position:absolute;
    left:0;
    bottom:0;

    width:90px;
    height:5px;

    border-radius:20px;

    background:linear-gradient(
            90deg,
            #0f63b6,
            #2fb7f3
    );
}

[class$="-page"] > .text-block {
    position: relative;
    overflow: hidden;
    margin-bottom: 36px;
    padding: 24px 28px 24px 32px;
    border: 1px solid var(--news-border);
    border-radius: 22px;
    background:
            radial-gradient(
                    circle at 95% 10%,
                    rgba(32, 168, 224, 0.14),
                    transparent 32%
            ),
            linear-gradient(135deg, #ffffff 0%, #f1f9ff 100%);
    box-shadow: 0 14px 38px rgba(15, 95, 168, 0.08);
}
[class$="-page"] > .text-block::before {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 0;
    width: 5px;
    border-radius: 0 10px 10px 0;
    background: linear-gradient(180deg, #20a8e0, #0f5fa8);
}
/* =========================================================
   Форма обратного звонка
   Сине-голубой дизайн сайта «Ясмина»
========================================================= */

.modal-callback-dialog {
    width: min(100%, 560px);
    max-width: 560px;
}

.modal-callback {
    --callback-blue: #0f5fa8;
    --callback-blue-dark: #073d70;
    --callback-cyan: #24aee4;
    --callback-light: #eef8ff;
    --callback-border: #d8eaf7;
    --callback-text: #18364e;
    --callback-muted: #6d8191;
    --callback-danger: #d94747;

    position: relative;
    overflow: hidden;
    padding: 34px;
    border: 1px solid rgba(216, 234, 247, 0.95);
    border-radius: 28px;
    background:
            radial-gradient(
                    circle at 100% 0,
                    rgba(36, 174, 228, 0.17),
                    transparent 34%
            ),
            radial-gradient(
                    circle at 0 100%,
                    rgba(15, 95, 168, 0.08),
                    transparent 38%
            ),
            #ffffff;
    box-shadow:
            0 28px 80px rgba(7, 61, 112, 0.18),
            0 8px 24px rgba(7, 61, 112, 0.08);
}

/* Декоративная полоса сверху */

.modal-callback::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(
            90deg,
            var(--callback-blue-dark),
            var(--callback-blue),
            var(--callback-cyan)
    );
}

/* Шапка */

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

.modal-callback__icon {
    flex: 0 0 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(
            135deg,
            var(--callback-blue-dark),
            var(--callback-blue),
            var(--callback-cyan)
    );
    box-shadow:
            0 12px 28px rgba(15, 95, 168, 0.24);
}

.modal-callback__icon svg {
    width: 26px;
    height: 26px;
    fill: #ffffff;
}

.modal-callback__heading {
    min-width: 0;
}

.modal-callback__title {
    margin: 0 0 7px;
    color: var(--callback-blue-dark);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.modal-callback__subtitle {
    max-width: 410px;
    color: var(--callback-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Поля */

.modal-callback__fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.modal-callback__field {
    margin: 0;
}

.modal-callback .form__label {
    display: block;
    margin-bottom: 8px;
    color: var(--callback-text);
    font-size: 13px;
    font-weight: 700;
}

.modal-callback__input-wrap {
    position: relative;
}

.modal-callback__input-wrap > svg {
    position: absolute;
    top: 50%;
    left: 17px;
    z-index: 2;
    width: 19px;
    height: 19px;
    fill: #7fa5bf;
    pointer-events: none;
    transform: translateY(-50%);
    transition:
            fill 0.25s ease,
            transform 0.25s ease;
}

.modal-callback .form__input {
    width: 100%;
    height: 54px;
    padding: 0 18px 0 50px;
    border: 1px solid var(--callback-border);
    border-radius: 15px;
    outline: none;
    background: #ffffff;
    color: var(--callback-text);
    font-size: 15px;
    box-shadow:
            0 5px 18px rgba(15, 95, 168, 0.04);
    transition:
            border-color 0.25s ease,
            box-shadow 0.25s ease,
            background 0.25s ease;
}

.modal-callback .form__input::placeholder {
    color: #9aadb9;
}

.modal-callback .form__input:hover {
    border-color: #b7d9ee;
}

.modal-callback .form__input:focus {
    border-color: var(--callback-cyan);
    background: #fbfdff;
    box-shadow:
            0 0 0 4px rgba(36, 174, 228, 0.13),
            0 8px 22px rgba(15, 95, 168, 0.08);
}

.modal-callback__input-wrap:focus-within > svg {
    fill: var(--callback-blue);
    transform: translateY(-50%) scale(1.06);
}

/* Ошибки */

.modal-callback .form__input.error,
.modal-callback .form__input.is-invalid {
    border-color: var(--callback-danger);
    box-shadow: 0 0 0 4px rgba(217, 71, 71, 0.1);
}

/* Согласие */

.modal-callback__agree {
    margin-top: 20px;
}

.modal-callback .checkbox-container {
    position: relative;
    display: block;
    min-height: 24px;
    margin: 0;
    padding-left: 34px;
    cursor: pointer;
}

.modal-callback .checkbox-container__title {
    display: block;
    color: var(--callback-muted);
    font-size: 12px;
    line-height: 1.55;
}

.modal-callback .checkbox-container__title a {
    color: var(--callback-blue);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(15, 95, 168, 0.25);
    transition:
            color 0.25s ease,
            border-color 0.25s ease;
}

.modal-callback .checkbox-container__title a:hover {
    color: var(--callback-cyan);
    border-bottom-color: var(--callback-cyan);
}

.modal-callback .checkbox-container__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.modal-callback .checkbox-container__checkmark {
    position: absolute;
    top: 1px;
    left: 0;
    width: 22px;
    height: 22px;
    border: 1px solid #bfd9ea;
    border-radius: 7px;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(15, 95, 168, 0.06);
    transition:
            background 0.25s ease,
            border-color 0.25s ease,
            box-shadow 0.25s ease;
}

.modal-callback .checkbox-container__checkmark::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 7px;
    width: 6px;
    height: 10px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    opacity: 0;
    transform: rotate(45deg) scale(0.7);
    transition:
            opacity 0.2s ease,
            transform 0.2s ease;
}

.modal-callback .checkbox-container__input:checked
+ .checkbox-container__checkmark {
    border-color: var(--callback-blue);
    background: linear-gradient(
            135deg,
            var(--callback-blue),
            var(--callback-cyan)
    );
    box-shadow: 0 5px 14px rgba(15, 95, 168, 0.18);
}

.modal-callback .checkbox-container__input:checked
+ .checkbox-container__checkmark::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

.modal-callback .checkbox-container__input:focus-visible
+ .checkbox-container__checkmark {
    box-shadow:
            0 0 0 4px rgba(36, 174, 228, 0.15);
}

/* Кнопки */

.modal-callback__actions {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 12px;
    margin-top: 26px;
}

.modal-callback__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 52px;
    padding: 0 20px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition:
            transform 0.25s ease,
            box-shadow 0.25s ease,
            border-color 0.25s ease,
            background 0.25s ease,
            color 0.25s ease;
}

.modal-callback__button--secondary {
    border: 1px solid var(--callback-border);
    background: #ffffff;
    color: var(--callback-blue-dark);
}

.modal-callback__button--secondary:hover {
    border-color: #afd8ee;
    background: var(--callback-light);
    color: var(--callback-blue);
    transform: translateY(-2px);
}

.modal-callback__button--primary {
    border: 0;
    background: linear-gradient(
            135deg,
            var(--callback-blue-dark),
            var(--callback-blue),
            var(--callback-cyan)
    );
    color: #ffffff;
    box-shadow:
            0 12px 25px rgba(15, 95, 168, 0.22);
}

.modal-callback__button--primary svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.25s ease;
}

.modal-callback__button--primary:hover {
    color: #ffffff;
    box-shadow:
            0 17px 34px rgba(15, 95, 168, 0.3);
    transform: translateY(-2px);
}

.modal-callback__button--primary:hover svg {
    transform: translateX(3px);
}

.modal-callback__button:active {
    transform: translateY(0);
}

.modal-callback__button:focus-visible {
    outline: 3px solid rgba(36, 174, 228, 0.25);
    outline-offset: 3px;
}

/* Заблокированная кнопка */

.modal-callback__button:disabled,
.modal-callback__button.disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
    box-shadow: none;
}

/* Fancybox */

.fancybox__content:has(.modal-callback) {
    padding: 0;
    border-radius: 28px;
    background: transparent;
}

.fancybox__content:has(.modal-callback) > .f-button.is-close-btn {
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(7, 61, 112, 0.08);
    color: var(--callback-blue-dark);
    transition:
            background 0.25s ease,
            transform 0.25s ease;
}

.fancybox__content:has(.modal-callback) > .f-button.is-close-btn:hover {
    background: rgba(36, 174, 228, 0.16);
    transform: rotate(8deg);
}

/* Мобильная версия */

@media (max-width: 575.98px) {
    .modal-callback-dialog {
        width: calc(100vw - 24px);
        max-width: none;
    }

    .modal-callback {
        padding: 27px 20px 22px;
        border-radius: 22px;
    }

    .modal-callback__header {
        gap: 13px;
        margin-bottom: 23px;
        padding-right: 28px;
    }

    .modal-callback__icon {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
        border-radius: 15px;
    }

    .modal-callback__icon svg {
        width: 22px;
        height: 22px;
    }

    .modal-callback__title {
        font-size: 22px;
    }

    .modal-callback__subtitle {
        font-size: 13px;
        line-height: 1.5;
    }

    .modal-callback .form__input {
        height: 52px;
        font-size: 16px;
    }

    .modal-callback__actions {
        grid-template-columns: 1fr;
    }

    .modal-callback__button--primary {
        order: -1;
    }
}

/* Уменьшение анимаций */

@media (prefers-reduced-motion: reduce) {
    .modal-callback *,
    .modal-callback *::before,
    .modal-callback *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
.callback-fancybox .fancybox-slide--html {
    padding: 40px !important;
    overflow: auto !important;
    text-align: center !important;
}

.callback-fancybox .fancybox-slide--html::before {
    content: '' !important;
    display: inline-block !important;
    height: 100% !important;
    vertical-align: middle !important;
}

.callback-fancybox .fancybox-content {
    position: relative !important;
    display: inline-block !important;

    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: calc(100% - 20px) !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: visible !important;
    vertical-align: middle !important;
    text-align: left !important;

    background: transparent !important;
    transform: none;
}

.callback-fancybox #modal_window {
    position: relative;
    display: block;

    width: min(560px, calc(100vw - 40px));
    height: auto;

    margin: 0;
}
/* Слайд остаётся фоном */
.fancybox-slide {
    pointer-events: auto !important;
}

/* Контейнер модального окна должен получать клики */
.fancybox-slide--html .fancybox-content {
    position: relative !important;
    z-index: 10 !important;
    pointer-events: auto !important;
    background: none;
    padding: unset;
}

/* Всё содержимое формы кликабельно */
.fancybox-slide--html .fancybox-content *,
.fancybox-slide--html input,
.fancybox-slide--html textarea,
.fancybox-slide--html select,
.fancybox-slide--html button,
.fancybox-slide--html label,
.fancybox-slide--html a {
    pointer-events: auto !important;
}

/* Само модальное окно */
#modal_window,
.modal-form-js,
.modal-callback {
    position: relative !important;
    z-index: 11 !important;
    pointer-events: auto !important;
}
.form__input_error {
    border-color: #ef4444 !important;
    background: #fff5f5 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .18) !important;

    animation: formError .55s ease-in-out 3;
}

@keyframes formError {
    0% {
        transform: translateX(0);
        box-shadow: 0 0 0 0 rgba(239,68,68,.15);
    }

    15% {
        transform: translateX(-5px);
    }

    30% {
        transform: translateX(5px);
    }

    45% {
        transform: translateX(-4px);
    }

    60% {
        transform: translateX(4px);
    }

    75% {
        transform: translateX(-2px);
    }

    100% {
        transform: translateX(0);
        box-shadow: 0 0 0 8px rgba(239,68,68,0);
    }
}

/*==================================================
                CONTACTS PAGE
==================================================*/

.contacts-page{
    --primary:#2583d8;
    --primary-dark:#1667b8;
    --primary-light:#eef7ff;

    --accent:#54b8f4;

    --text:#1f2d3d;
    --text-light:#6b7f93;

    --border:#d9e8f6;
    --bg:#f6fbff;

    padding:20px 0 70px;
}


/*--------------------------
        HEADER
--------------------------*/

.contacts-page__header{
    margin-bottom:45px;
}

.contacts-page__eyebrow,
.contacts-form-card__eyebrow,
.contacts-map__eyebrow{
    font-size:13px;
    font-weight:700;
    color:var(--primary);
    letter-spacing:.15em;
    text-transform:uppercase;
    margin-bottom:10px;
}

.contacts-page__title{
    font-size:52px;
    font-weight:700;
    color:var(--text);
    margin-bottom:15px;
    line-height:1.1;
}

.contacts-page__description{
    max-width:720px;
    color:var(--text-light);
    line-height:1.8;
    font-size:18px;
}


/*--------------------------
        GRID
--------------------------*/

.contacts-page__grid{

    display:grid;

    grid-template-columns:1fr 470px;

    gap:35px;

    align-items:start;

}


/*--------------------------
    CONTACT CARDS
--------------------------*/

.contacts-page__information{

    display:grid;

    gap:18px;

}

.contacts-card{

    display:flex;

    gap:18px;

    padding:24px;

    background:#fff;

    border:1px solid var(--border);

    border-radius:22px;

    transition:.3s;

    box-shadow:
            0 10px 30px rgba(37,131,216,.08);

}

.contacts-card:hover{

    transform:translateY(-4px);

    border-color:#9dccf3;

    box-shadow:
            0 20px 40px rgba(37,131,216,.13);

}

.contacts-card__icon{

    width:58px;
    height:58px;

    flex:0 0 58px;

    display:flex;

    justify-content:center;

    align-items:center;

    border-radius:16px;

    color:#fff;

    font-size:22px;

    background:
            linear-gradient(135deg,#54b8f4,#2583d8);

}

.contacts-card__body{

    flex:1;

}

.contacts-card__label{

    color:var(--text-light);

    text-transform:uppercase;

    font-size:12px;

    letter-spacing:.08em;

    margin-bottom:7px;

}

.contacts-card__value{

    font-size:20px;

    font-weight:700;

    color:var(--text);

}

.contacts-card__value a{

    color:inherit;

    text-decoration:none;

}

.contacts-card__value a:hover{

    color:var(--primary);

}

.contacts-card__hint{

    margin-top:6px;

    color:var(--text-light);

}

.contacts-card__schedule{

    display:grid;

    gap:8px;

}

.contacts-card__schedule div{

    display:flex;

    justify-content:space-between;

    border-bottom:1px dashed #dbe9f7;

    padding-bottom:7px;

}

.contacts-card__schedule div:last-child{

    border:none;

}


/*--------------------------
    SOCIAL
--------------------------*/

.contacts-social{

    border-radius:24px;

    padding:28px;

    color:#fff;

    background:
            linear-gradient(135deg,#1667b8,#2583d8,#54b8f4);

    box-shadow:
            0 18px 45px rgba(37,131,216,.22);

}

.contacts-social__title{

    font-size:20px;

    font-weight:700;

    margin-bottom:18px;

}

.contacts-social__items{

    display:flex;

    flex-wrap:wrap;

    gap:12px;

}

.contacts-social__item{

    display:flex;

    align-items:center;

    gap:10px;

    padding:12px 18px;

    border-radius:14px;

    color:#fff;

    text-decoration:none;

    background:rgba(255,255,255,.15);

    transition:.25s;

}

.contacts-social__item:hover{

    background:#fff;

    color:var(--primary);

    transform:translateY(-2px);

}


/*--------------------------
        FORM
--------------------------*/

.contacts-form-card{

    background:#fff;

    border-radius:26px;

    overflow:hidden;

    border:1px solid var(--border);

    box-shadow:
            0 25px 55px rgba(37,131,216,.13);

    position:sticky;

    top:30px;

}

.contacts-form-card__header{

    padding:35px;

    background:

            radial-gradient(circle at top right,
            rgba(84,184,244,.28),
            transparent 45%),

            linear-gradient(180deg,
            #f8fcff,
            #eef7ff);

}

.contacts-form-card__title{

    font-size:34px;

    color:var(--text);

    margin:10px 0;

}

.contacts-form-card__description{

    color:var(--text-light);

    line-height:1.7;

}

.contacts-form-card__content{

    padding:30px;

}


/*--------------------------
    INPUTS
--------------------------*/

.contacts-form-card input,
.contacts-form-card textarea,
.contacts-form-card select{

    width:100%;

    border:1px solid var(--border);

    border-radius:14px;

    min-height:56px;

    padding:14px 18px;

    transition:.25s;

    background:#fff;

}

.contacts-form-card textarea{

    min-height:150px;

}

.contacts-form-card input:focus,
.contacts-form-card textarea:focus,
.contacts-form-card select:focus{

    border-color:var(--primary);

    box-shadow:
            0 0 0 5px rgba(37,131,216,.12);

    outline:none;

}


/*--------------------------
    ERROR
--------------------------*/

.contacts-form-card .form__input_error{

    border-color:#ef4444!important;

    background:#fff5f5!important;

    box-shadow:
            0 0 0 5px rgba(239,68,68,.12)!important;

    animation:inputError .45s ease-in-out 3;

}

@keyframes inputError{

    0%,100%{transform:translateX(0);}
    20%{transform:translateX(-5px);}
    40%{transform:translateX(5px);}
    60%{transform:translateX(-3px);}
    80%{transform:translateX(3px);}

}


/*--------------------------
    BUTTON
--------------------------*/

.contacts-form-card button,
.contacts-form-card .submitFormJs{

    width:100%;

    height:56px;

    border:none;

    border-radius:14px;

    background:
            linear-gradient(135deg,#2583d8,#1667b8);

    color:#fff;

    font-size:16px;

    font-weight:700;

    cursor:pointer;

    transition:.25s;

    box-shadow:
            0 15px 35px rgba(37,131,216,.28);

}

.contacts-form-card button:hover,
.contacts-form-card .submitFormJs:hover{

    transform:translateY(-2px);

    background:
            linear-gradient(135deg,#3a9ae8,#1973ca);

}


/*--------------------------
        MAP
--------------------------*/

.contacts-map{

    margin-top:60px;

}

.contacts-map__header{

    display:flex;

    justify-content:space-between;

    align-items:end;

    margin-bottom:25px;

}

.contacts-map__title{

    font-size:40px;

    color:var(--text);

}

.contacts-map__frame{

    overflow:hidden;

    border-radius:28px;

    border:1px solid var(--border);

    box-shadow:
            0 20px 45px rgba(37,131,216,.12);

}

.contacts-map__frame iframe{

    width:100%;

    height:520px;

    border:0;

}


/*--------------------------
        MOBILE
--------------------------*/

@media(max-width:992px){

    .contacts-page__grid{

        grid-template-columns:1fr;

    }

    .contacts-form-card{

        position:relative;
        top:auto;

    }

}

@media(max-width:768px){

    .contacts-page__title{

        font-size:38px;

    }

    .contacts-map__title{

        font-size:30px;

    }

    .contacts-card{

        padding:18px;

    }

    .contacts-form-card__header,
    .contacts-form-card__content{

        padding:22px;

    }

}

/* =========================================================
   Нижняя часть подвала
   ========================================================= */

.footer-bottom {
    position: relative;

    margin-top: 38px;
    padding-top: 22px;
}

.footer-bottom::before {
    content: "";

    position: absolute;
    top: 0;
    right: 0;
    left: 0;

    height: 1px;

    background:
            linear-gradient(
                    90deg,
                    rgba(37, 131, 216, 0),
                    rgba(37, 131, 216, .45) 25%,
                    rgba(84, 184, 244, .75) 50%,
                    rgba(37, 131, 216, .45) 75%,
                    rgba(37, 131, 216, 0)
            );
}

.footer-bottom__inner {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
    gap: 24px;
    align-items: center;

    padding: 18px 22px;

    background:
            linear-gradient(
                    135deg,
                    rgba(238, 247, 255, .92),
                    rgba(255, 255, 255, .98)
            );

    border: 1px solid rgba(37, 131, 216, .15);
    border-radius: 18px;

    box-shadow:
            0 12px 32px rgba(22, 103, 184, .08);
}

/* Копирайт */

.footer-bottom__copyright {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-bottom__copyright-icon {
    display: inline-flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    color: #2583d8;
    font-size: 17px;

    background:
            linear-gradient(
                    135deg,
                    #eef7ff,
                    #dff2ff
            );

    border: 1px solid rgba(37, 131, 216, .15);
    border-radius: 12px;
}

.footer-bottom__copyright-title {
    margin-bottom: 2px;

    color: #1f2d3d;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.footer-bottom__copyright-text {
    color: #6b7f93;
    font-size: 13px;
    line-height: 1.45;
}

.footer-bottom__copyright-text a {
    color: #2583d8;
    font-weight: 600;
    text-decoration: none;

    transition: color .2s ease;
}

.footer-bottom__copyright-text a:hover {
    color: #1667b8;
    text-decoration: underline;
}

/* Счетчик */

.footer-bottom__counter {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 88px;
    min-height: 31px;
}

.footer-bottom__counter img,
.footer-bottom__counter a,
.footer-bottom__counter iframe {
    display: block;
    max-width: 100%;
}

/* Разработчик */

.footer-bottom__developer {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 8px;
    align-items: center;
    justify-content: flex-end;

    color: #6b7f93;
    font-size: 13px;
    line-height: 1.45;
    text-align: right;
}

.footer-bottom__developer-label {
    white-space: nowrap;
}

.footer-bottom__developer-link {
    position: relative;

    display: inline-flex;
    align-items: center;

    color: #1667b8;
    font-weight: 700;
    text-decoration: none;

    transition:
            color .2s ease,
            transform .2s ease;
}

.footer-bottom__developer-link::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: -3px;
    left: 0;

    height: 1px;

    background:
            linear-gradient(
                    90deg,
                    #2583d8,
                    #54b8f4
            );

    transform: scaleX(0);
    transform-origin: right center;

    transition: transform .25s ease;
}

.footer-bottom__developer-link:hover {
    color: #2583d8;
    transform: translateY(-1px);
}

.footer-bottom__developer-link:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
}

/* Планшеты */

@media (max-width: 991px) {
    .footer-bottom__inner {
        grid-template-columns: 1fr auto;
    }

    .footer-bottom__counter {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .footer-bottom__developer {
        justify-content: flex-start;
        text-align: left;
    }
}

/* Телефоны */

@media (max-width: 640px) {
    .footer-bottom {
        margin-top: 30px;
        padding-top: 18px;
    }

    .footer-bottom__inner {
        display: flex;
        flex-direction: column;
        gap: 18px;
        align-items: stretch;

        padding: 18px;

        border-radius: 16px;
    }

    .footer-bottom__copyright {
        justify-content: center;
        text-align: left;
    }

    .footer-bottom__counter {
        min-height: 0;
    }

    .footer-bottom__developer {
        justify-content: center;
        text-align: center;
    }
}





/* =========================================================
   Коллаж выполненных работ
   ========================================================= */

.works-collage {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(2, 230px);
    gap: 14px;
}

/* Общая плитка */

.works-collage__item {
    position: relative;

    display: block;
    overflow: hidden;

    min-width: 0;

    color: #fff;
    text-decoration: none;

    background: #dcecf8;
    border-radius: 18px;

    box-shadow: 0 12px 32px rgba(27, 89, 145, .1);

    isolation: isolate;
}

/* Раскладка 7 элементов */

.works-collage__item--1 {
    grid-column: span 5;
    grid-row: span 2;
}

.works-collage__item--2 {
    grid-column: span 4;
}

.works-collage__item--3 {
    grid-column: span 3;
}

.works-collage__item--4 {
    grid-column: span 3;
}

.works-collage__item--5 {
    grid-column: span 4;
}

.works-collage__item--6 {
    grid-column: span 3;
}

.works-collage__item--7 {
    grid-column: span 5;
}

/* Изображение */

.works-collage__item img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
            transform .65s cubic-bezier(.2, .7, .2, 1),
            filter .4s ease;
}

/* Затемнение */

.works-collage__item::after {
    content: "";

    position: absolute;
    z-index: 1;
    inset: 0;

    background:
            linear-gradient(
                    180deg,
                    rgba(7, 35, 60, 0) 30%,
                    rgba(7, 35, 60, .18) 58%,
                    rgba(7, 35, 60, .88) 100%
            );

    opacity: 0;

    transition: opacity .35s ease;
}

/* Текст */

.works-collage__overlay {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;

    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;

    padding: 24px;

    color: #fff;

    opacity: 0;
    transform: translateY(18px);

    transition:
            opacity .35s ease,
            transform .35s ease;
}

.works-collage__number {
    padding-bottom: 3px;

    color: rgba(255, 255, 255, .7);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
}

.works-collage__title {
    font-size: clamp(17px, 1.7vw, 24px);
    font-weight: 700;
    line-height: 1.2;
    text-wrap: balance;
}

.works-collage__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    color: #176bb1;
    font-size: 21px;

    background: #fff;
    border-radius: 50%;

    transform: translateX(-8px);

    transition:
            color .25s ease,
            background-color .25s ease,
            transform .35s ease;
}

/* Наведение */

.works-collage__item:hover {
    color: #fff;
}

.works-collage__item:hover img {
    transform: scale(1.075);
    filter: saturate(1.08);
}

.works-collage__item:hover::after {
    opacity: 1;
}

.works-collage__item:hover .works-collage__overlay {
    opacity: 1;
    transform: translateY(0);
}

.works-collage__item:hover .works-collage__arrow {
    transform: translateX(0);
}

/* Доступность с клавиатуры */

.works-collage__item:focus-visible {
    outline: 3px solid #2583d8;
    outline-offset: 4px;
}

.works-collage__item:focus-visible::after,
.works-collage__item:focus-visible .works-collage__overlay {
    opacity: 1;
}

.works-collage__item:focus-visible .works-collage__overlay {
    transform: translateY(0);
}

/* Планшет */

@media (max-width: 991px) {
    .works-collage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        grid-auto-rows: 260px;
    }

    .works-collage__item,
    .works-collage__item--1,
    .works-collage__item--2,
    .works-collage__item--3,
    .works-collage__item--4,
    .works-collage__item--5,
    .works-collage__item--6,
    .works-collage__item--7 {
        grid-column: auto;
        grid-row: auto;
    }

    .works-collage__item--1,
    .works-collage__item--6 {
        grid-row: span 2;
    }

    /*
     * На устройствах без наведения текст показывается постоянно,
     * иначе пользователь не увидит название проекта.
     */
    .works-collage__item::after {
        opacity: 1;
    }

    .works-collage__overlay {
        padding: 20px;

        opacity: 1;
        transform: none;
    }
}

/* Телефон */

@media (max-width: 640px) {
    .works-collage {
        display: grid;
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
        gap: 12px;
    }

    .works-collage__item,
    .works-collage__item--1,
    .works-collage__item--6 {
        grid-row: auto;
    }

    .works-collage__item {
        border-radius: 15px;
    }

    .works-collage__overlay {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;

        padding: 18px;
    }

    .works-collage__number {
        display: none;
    }

    .works-collage__title {
        font-size: 19px;
    }

    .works-collage__arrow {
        width: 36px;
        height: 36px;

        font-size: 18px;
    }
}
.works-collage {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(2, 230px);
    gap: 14px;
}

.works-collage__item--1 {
    grid-column: 1 / 6;
    grid-row: 1 / 3;
}

.works-collage__item--2 {
    grid-column: 6 / 10;
    grid-row: 1;
}

.works-collage__item--3 {
    grid-column: 10 / 13;
    grid-row: 1;
}

.works-collage__item--4 {
    grid-column: 6 / 9;
    grid-row: 2;
}

.works-collage__item--5 {
    grid-column: 9 / 13;
    grid-row: 2;
}

.works-collage__item--6 {
    grid-column: 1 / 5;
    grid-row: 3;
}

.works-collage__item--7 {
    grid-column: 5 / 13;
    grid-row: 3;
}
.works-collage {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 230px;
    gap: 14px;
}
.submitFormJs{
    border: 0;
background: linear-gradient(135deg, var(--callback-blue-dark), var(--callback-blue), var(--callback-cyan));
color: #ffffff;
box-shadow: 0 12px 25px rgba(15, 95, 168, 0.22);
}
.submitFormJs svg {
     width: 18px;
     height: 18px;
     fill: currentColor;
     transition: transform 0.25s ease;
}
.submitFormJs:hover svg {
    transform: translateX(3px);
}

.callback-success {
    --success-primary: #1689d8;
    --success-primary-dark: #0870bd;
    --success-secondary: #24b9e6;
    --success-text: #17364e;
    --success-muted: #687f92;

    position: relative;
    width: min(100%, 520px);
    padding: 52px 46px 42px;
    overflow: hidden;
    color: var(--success-text);
    text-align: center;
    border: 1px solid #d6ebf8;
    border-radius: 28px;
    background:
            radial-gradient(
                    circle at 90% 5%,
                    rgba(36, 185, 230, .18),
                    transparent 31%
            ),
            linear-gradient(
                    145deg,
                    #ffffff 0%,
                    #eef9ff 100%
            );
    background: #fff!important;
    box-shadow: 0 30px 75px rgba(10, 87, 143, .22);
}

.callback-success::before {
    content: "";
    position: absolute;
    top: -105px;
    right: -95px;
    width: 245px;
    height: 245px;
    border: 48px solid rgba(22, 137, 216, .045);
    border-radius: 50%;
    pointer-events: none;
}

.callback-success::after {
    content: "";
    position: absolute;
    left: -75px;
    bottom: -90px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(36, 185, 230, .055);
    pointer-events: none;
}

.callback-success__icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    margin: 0 auto 23px;
    border: 8px solid rgba(22, 137, 216, .1);
    border-radius: 50%;
    background: linear-gradient(
            135deg,
            var(--success-primary-dark),
            var(--success-secondary)
    );
    box-shadow: 0 15px 32px rgba(22, 137, 216, .27);
}

.callback-success__icon svg {
    width: 42px;
    height: 42px;
    fill: #fff;
}

.callback-success__eyebrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 11px;
    color: var(--success-primary);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.callback-success__eyebrow::before,
.callback-success__eyebrow::after {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 5px;
    background: linear-gradient(
            90deg,
            var(--success-primary),
            var(--success-secondary)
    );
}

.callback-success__title {
    position: relative;
    z-index: 1;
    margin: 0 0 14px;
    color: var(--success-text);
    font-size: clamp(27px, 4vw, 36px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.callback-success__text {
    position: relative;
    z-index: 1;
    max-width: 410px;
    margin: 0 auto 28px;
    color: var(--success-muted);
    font-size: 16px;
    line-height: 1.7;
}

.callback-success__button {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-width: 160px;
    min-height: 50px;
    padding: 0 23px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(
            135deg,
            var(--success-primary-dark),
            var(--success-secondary)
    );
    box-shadow: 0 13px 28px rgba(22, 137, 216, .24);
    cursor: pointer;
    transition:
            transform .25s ease,
            box-shadow .25s ease;
}

.callback-success__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(22, 137, 216, .31);
}

.callback-success__button span {
    font-size: 18px;
    transition: transform .25s ease;
}

.callback-success__button:hover span {
    transform: translateX(4px);
}

.callback-success__close {
    top: 14px !important;
    right: 14px !important;
    width: 39px !important;
    height: 39px !important;
    padding: 9px !important;
    color: var(--success-primary) !important;
    border: 1px solid #cae5f5 !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, .85) !important;
    opacity: 1 !important;
    transition:
            color .25s ease,
            background .25s ease,
            transform .25s ease !important;
}

.callback-success__close:hover {
    color: #fff !important;
    background: var(--success-primary) !important;
    transform: rotate(90deg);
}

.callback-success__close svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

@media (max-width: 575px) {

    .callback-success {
        width: calc(100vw - 30px);
        padding: 45px 24px 32px;
        border-radius: 22px;
    }

    .callback-success__icon {
        width: 72px;
        height: 72px;
        margin-bottom: 20px;
    }

    .callback-success__icon svg {
        width: 36px;
        height: 36px;
    }

    .callback-success__title {
        font-size: 28px;
    }

    .callback-success__text {
        font-size: 15px;
    }

    .callback-success__button {
        width: 100%;
    }

}