@font-face {
    font-family: "Montserrat";
    src:
        url("/assets/fonts/montserrat/Montserrat-VariableFont_wght.ttf")
        format("truetype");
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
}
:root {
    --bg: #f6f7f9;
    --surface: #ffffff;
    --surface-muted: #eef5f3;
    --text: #1f2933;
    --muted: #667085;
    --line: #dce4ea;
    --dark: #414141;
    --brand: #0a58ca;
    --brand-dark: #094cb1;
    --brand-soft: #ddd;
    --accent: #f0a530;
    --radius-lg: 28px;
    --radius-md: 18px;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
    --container: 1180px;
    --active: #000;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Montserrat", Arial, sans-serif;
    /*font-family: 'Montserrat', Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;*/
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    /*background: var(--bg);*/
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    color: var(--active);
}

.topline__a:hover{
    color: var(--brand-soft);
}

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

.container {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.topline {
    background: var(--dark);
    color: #fff;
    font-size: 14px;
}

.topline__inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    min-height: 38px;
}

.topline__item {
    color: rgba(255, 255, 255, 0.92);
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    gap: 32px;
}


.main-nav__list {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav__item {
    position: relative;
}

.main-nav__link,
.main-nav__dropdown-link {
    display: block;
    border-radius: 999px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.2;
    font-weight: 300;
    white-space: nowrap;
}

.main-nav__link {
    padding: 12px 14px;
}

.main-nav__link:hover,
.main-nav__link.is-active {
    color: var(--brand-dark);
    /*background: var(--brand-soft);*/
}

.main-nav__dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 280px;
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 10px;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
    visibility: hidden;
    opacity: 0;
    transform: translateY(8px);
    transition: 0.18s ease;
}

.main-nav__item:last-child .main-nav__dropdown {
    left: auto;
    right: 0;
}

.main-nav__item:hover .main-nav__dropdown,
.main-nav__item:focus-within .main-nav__dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.main-nav__dropdown-link {
    padding: 11px 12px;
    border-radius: 12px;
}

.main-nav__dropdown-link:hover,
.main-nav__dropdown-link.is-active {
    background: var(--surface-muted);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 10px;
}

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

.site-main {
    min-height: 60vh;
}

.breadcrumbs {
    padding: 22px 0 0;
}

.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    color: var(--muted);
    font-size: 14px;
    list-style: none;
}

.breadcrumbs__item:not(:last-child)::after {
    content: "—";
    margin-left: 8px;
    color: #a8b3bd;
}

.section {
    padding: 0 0 42px;
}

.section--compact {
    padding: 42px 0;
}

.section--light {
    background: var(--surface);
}

.home-hero {
    padding: 0 0 66px;
}


/* =========================================================
   FULL-WIDTH HERO
   ========================================================= */

.hero {
    display: grid;
    grid-template-columns: 50% 50%;
    width: 100%;
    min-height: 420px;
    background: var(--surface);
    padding:0;
    margin-top:24px;
}


/* Левая половина */

.hero__promo {
    display: flex;
    align-items: center;
    background:#ddd;
    min-width: 0;
}


.hero__promo-inner {
    width: min(100%, 590px);
    margin-left: auto;
    padding:
        clamp(50px, 6vw, 96px)
        clamp(32px, 5vw, 72px)
        clamp(50px, 6vw, 96px)
        32px;
}


.hero__promo-title {
    max-width: none;
    margin: 0 0 28px;
    /*font-size: clamp(24px, 5vw, 76px);*/
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 0.045em;
    color: var(--dark);
}


.hero__promo-main {
    margin-bottom: 30px;
}


.hero__promo-main p {
    margin: 0;
    font-size: clamp(21px, 2vw, 29px);
    line-height: 1.35;
    font-weight: 750;
    color: #13201e;
}


.hero__promo-main p + p {
    margin-top: 4px;
}


.hero__promo-note {
    max-width: 540px;
    margin: 0;
    color: var(--muted);
    font-size: 24px;
    line-height: 1.6;
}


/* Правая половина */

.hero__visual {
    min-width: 0;
    background-image: url("/assets/img/hands_and_book.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: left center;
    border: 1px sold green;
}


/* Старый hero-блок ниже нового */

.hero__grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(320px, 0.72fr);

    gap: 34px;
    align-items: stretch;
    margin-top: 66px;
}


.hero__content,
.hero__card,
.contact-panel,
.card,
.content-box {
    border: 1px solid rgba(12, 81, 73, 0.08);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.help_you{
margin-top: -12px;
font-weight: 600;
}
.help-list{
    font-size: 16px;
}

.hero__content {
    padding: clamp(32px, 5vw, 58px);
    background:
        radial-gradient(circle at 80% 10%, rgba(240, 165, 48, 0.18), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #eef8f5 100%);
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--brand);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 20px;
    line-height: 1.15;
    color: #13201e;
}

h1 {
    max-width: 900px;
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -0.045em;
}

h2 {
    font-size: clamp(20px, 3vw, 32px);
    letter-spacing: -0.025em;
}

h3 {
    font-size: 20px;
}

.lead {
    max-width: 760px;
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 20px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    cursor: pointer;
}

.button--primary {
    color: #fff;
    background: var(--brand);
}

.button--primary:hover {
    color: #fff;
    background: var(--brand-dark);
}

.button--secondary {
    color: var(--dark);
    background: var(--brand-soft);
}

.hero__card {
    padding: 30px;
}

.hero-list {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-list li {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 14px;
    align-items: start;
}

.hero-list__icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: var(--dark);
    background: var(--brand-soft);
    font-weight: 900;
}

.grid {
    display: grid;
    gap: 22px;
}

.grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card {
    padding: 28px 20px;
}

.card__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 22px;
    border-radius: 16px;
    color: var(--dark);
    background: var(--brand-soft);
    font-weight: 900;
}

.card p:last-child,
.content-box p:last-child {
    margin-bottom: 0;
}

.card h3, .card .help_you{
    text-align: center;
}

.content-box {
    padding: clamp(28px, 4vw, 46px);
}

.text-list {
    display: grid;
    gap: 10px;
    padding-left: 1.2em;
}

.price-note {
    display: inline-flex;
    margin-top: 18px;
    padding: 12px 18px;
    border-radius: 999px;
    color: var(--dark);
    background: var(--brand-soft);
    font-weight: 800;
}

.contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
    gap: 28px;
    padding: clamp(28px, 4vw, 44px);
    background: linear-gradient(135deg, #ffffff 0%, #eef8f5 100%);
}

.contact-panel__content p:last-child {
    color: var(--muted);
}

.form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form__field {
    display: grid;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
}

.form__field--full,
.form__check {
    grid-column: 1 / -1;
}

.form input,
.form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    padding: 14px 15px;
    color: var(--text);
    font: inherit;
    font-size: 16px;
    outline: none;
}

.form input:focus,
.form textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(11, 107, 95, 0.12);
}

.form textarea {
    resize: vertical;
}

.form__check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.form__check input {
    width: auto;
    margin-top: 6px;
}

.form__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px !important;
    height: 1px !important;
    opacity: 0;
}

.page-title {
    padding: 46px 0 18px;
}

.page-title p {
    color: var(--muted);
    font-size: 20px;
}

.site-footer {
    margin-top: 72px;
    padding: 56px 0 24px;
    color: rgba(255, 255, 255, 0.82);
    background: #10201e;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.9fr;
    gap: 42px;
}

.footer-brand,
.footer-title {
    color: #fff;
    font-weight: 800;
}

.footer-title {
    font-size: 16px;
    margin: 0 0 14px;
}

.footer-links {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a,
.footer-bottom a {
    color: rgba(255, 255, 255, 0.82);
}

.footer-links a:hover,
.footer-bottom a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: space-between;
    margin-top: 38px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 14px;
    align-items: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}


.brand__logo {
    display: block;
    width: auto;
    height: 36px;
    max-width: 100%;
}


/* =========================================================
   HOME UNDER HERO
   ========================================================= */

.home__under_hero {
    padding: 42px 0 42px;
}

.home__under_hero-head {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 0;

    align-items: center;

    padding-bottom: 48px;

    border-bottom: 1px solid var(--line);
}


.home__under_hero-action {
    display: flex;
    align-items: center;
    justify-content: center;
}


.home__under_hero-title h2 {
    max-width: 760px;
    margin: 0;
    text-align: center;
}


.button--large {
    min-height: 58px;
    padding: 16px 30px;

    font-size: 17px;
}


.home__under_hero-accent {
    max-width: 940px;

    padding: 52px 0 42px;
}


.home__under_hero-accent p {
    margin: 0;

    font-size: clamp(16px, 1.7vw, 22px);
    line-height: 1.35;
    font-weight: 800;

    color: #13201e;
}


.home__under_hero-accent p + p {
    margin-top: 10px;
}


.home__under_hero-accent p:nth-child(2) {
    color: var(--brand);
}


.home__under_hero-text {
    max-width: 940px;
}


.home__under_hero-text p {
    margin: 0;

    font-size: 19px;
    line-height: 1.75;

    color: var(--muted);
}


.home__under_hero-text p + p {
    margin-top: 20px;
}


/* =========================================================
   HOME SERVICES
   ========================================================= */

.home-services {
    padding: 42px 0 46px;
}


.home-services__title {
    margin-bottom: 48px;
    text-align: center;
}


.home-services__title h2 {
    max-width: 900px;

    margin:
        0
        auto;

    font-size: clamp(20px, 2.4vw, 28px);
    line-height: 1.3;
    font-weight: 500;
}


.home-services__grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
}


.home-services__item {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding:
        40px
        28px
        36px;

    background: var(--brand-soft);

    text-align: center;
}


/*
 * Одинаковая зона под изображения.
 * Благодаря этому текст во всех трех карточках
 * начинается на одной горизонтальной линии.
 */

.home-services__image {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 180px;

    margin-bottom: 28px;
}


.home-services__image img {
    display: block;

    width: auto;
    max-width: 100%;
    max-height: 100%;
}


.home-services__text {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 500;

    color: var(--dark);
}


.home-services__footer {
    max-width: 1000px;

    margin:
        60px
        auto
        0;

    text-align: center;
}


.home-services__footer p {
    margin: 0;

    font-size: clamp(20px, 2.4vw, 28px);
    line-height: 1.45;
    font-weight: 500;
    color: var(--dark);
}

.home_pricing {
    background-color: var(--brand-soft);
    padding : 24px;
    text-align: center;
}

.home_tasks,
.home_offers {
    padding: 42px 0;
}

.section h2{
    font-size: clamp(19px, 2.2vw, 25px);
}

/* =========================================================
   CALLBACK FORM
   ========================================================= */

.callback-section {
    width: 100%;

    padding: 72px 0;

    background: var(--brand-soft);
}


.callback-form {
    width: 100%;
}


.callback-form__top {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    align-items: center;

    gap: 0;
}


.callback-form__title {
    padding-right: 40px;
}


.callback-form__title h2 {
    max-width: 520px;

    margin: 0;

    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.25;
    font-weight: 500;

    color: var(--dark);
}


.callback-form__controls {
    display: flex;
    align-items: stretch;

    gap: 14px;
}


.callback-form__phone {
    flex: 1 1 auto;

    min-width: 0;
    height: 58px;

    padding: 0 20px;

    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 999px;

    background: #fff;

    color: var(--text);

    font: inherit;
    font-size: 16px;

    outline: none;
}


.callback-form__phone:focus {
    border-color: var(--brand);

    box-shadow:
        0 0 0 4px
        rgba(10, 88, 202, 0.12);
}


.callback-form__phone::placeholder {
    color: var(--muted);
}


.callback-form__submit {
    flex: 0 0 auto;

    min-width: 150px;
    min-height: 58px;
}


.callback-form__bottom {
    margin-top: 28px;
}


.callback-form__agreement {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    max-width: 900px;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.55;

    cursor: pointer;
}


.callback-form__agreement input {
    flex: 0 0 auto;

    width: 18px;
    height: 18px;

    margin-top: 2px;

    cursor: pointer;
}


.callback-form__agreement a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* =========================================================
   HOME BENEFITS
   ========================================================= */

.home-benefits {
    padding: 42px 0 46px;
}


.home-benefits__title {
    margin-bottom: 48px;

    text-align: center;
}


.home-benefits__title h2 {
    max-width: 920px;

    margin: 0 auto;

    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.3;
    font-weight: 500;

    color: var(--dark);
}


.home-benefits__grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
}


.home-benefits__item {
    display: grid;

    grid-template-rows:
        50px
        42px
        1fr;

    row-gap: 20px;

    align-items: start;

    padding:
        36px
        30px
        38px;

    background: var(--brand-soft);

    text-align: center;
}


.home-benefits__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 50px;
}


.home-benefits__icon img {
    display: block;

    width: 50px;
    height: 50px;

    object-fit: contain;
}


.home-benefits__item-title {
    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;

    font-size: 21px;
    line-height: 1.3;
    font-weight: 600;

    color: var(--dark);
}


.home-benefits__text {
    font-size: 16px;
    line-height: 1.65;
    font-weight: 400;

    color: var(--text);
}

/* =========================================================
   MODAL
   ========================================================= */

.modal {
    position: fixed;
    inset: 0;

    z-index: 1000;

    display: grid;
    place-items: center;

    padding: 24px;

    visibility: hidden;
    opacity: 0;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}


.modal.is-open {
    visibility: visible;
    opacity: 1;
}


.modal__overlay {
    position: absolute;
    inset: 0;

    background: rgba(6, 30, 27, 0.7);

    backdrop-filter: blur(6px);
}


.modal__dialog {
    position: relative;

    z-index: 1;

    width: min(100%, 680px);
    max-height: calc(100dvh - 48px);

    overflow-y: auto;

    padding: clamp(28px, 5vw, 52px);

    border-radius: var(--radius-lg);

    background: #fff;

    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.24);

    transform: translateY(18px) scale(0.98);

    transition: transform 0.22s ease;
}


.modal.is-open .modal__dialog {
    transform: translateY(0) scale(1);
}


.modal__close {
    position: absolute;

    top: 16px;
    right: 18px;

    display: grid;
    place-items: center;

    width: 44px;
    height: 44px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    color: var(--text);
    background: var(--surface-muted);

    font-size: 30px;
    line-height: 1;

    cursor: pointer;
}


.modal__close:hover {
    background: var(--brand-soft);
}


.modal__header {
    padding-right: 48px;
    margin-bottom: 30px;
}


.modal__header h2 {
    margin-bottom: 0;
}


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


.modal__attention {
    margin-top: 4px;

    color: var(--brand-dark);

    font-size: 15px;
    font-weight: 800;
}


.modal__submit {
    justify-self: start;

    min-width: 180px;
}


body.modal-open {
    overflow: hidden;
}

/* =========================================================
   YANDEX MAP
   ========================================================= */

.yandex-map {
    width: 100%;
    height: 500px;
}

/* =========================================================
   HOME EXPERT
   ========================================================= */

.home-expert {
    padding: 84px 0 92px;
}


.home-expert__grid {
    display: grid;

    grid-template-columns:
        350px
        minmax(0, 1fr);

    gap: 48px;

    align-items: stretch;
}


.home-expert__image {
    display: flex;

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

    min-width: 0;
}


.home-expert__image img {
    display: block;

    width: auto;
    max-width: 100%;
    height: auto;
}


.home-expert__content {
    display: flex;
    flex-direction: column;

    justify-content: center;

    min-width: 0;
}


.home-expert__content p {
    margin: 0;

    font-size: 18px;
    line-height: 1.7;
    font-weight: 400;

    color: var(--text);
}


.home-expert__content p + p {
    margin-top: 24px;
}


.home-expert__accent {
    font-size: 20px !important;
    line-height: 1.5 !important;
    font-weight: 600 !important;

    color: var(--dark) !important;
}


.home-expert__content strong {
    font-weight: 600;

    color: var(--dark);
}

/* =========================================================
   HOME GALLERY
   ========================================================= */

.home-gallery {
    padding: 84px 0 92px;
}


.home-gallery__header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 32px;

    margin-bottom: 38px;
}


.home-gallery__header h2 {
    margin: 0;

    font-size: clamp(26px, 3vw, 38px);
    font-weight: 500;

    color: var(--dark);
}


/* Кнопки управления */

.home-gallery__controls {
    display: flex;
    align-items: center;

    gap: 12px;
}


.home-gallery__arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    padding: 0;

    border: 3px solid var(--line);
    border-radius: 50%;

    background: #fff;

    color: var(--dark);

    font: inherit;
    font-size: 24px;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        opacity 0.2s ease;
}


.home-gallery__arrow:hover:not(:disabled) {
    color: #fff;

    background: var(--brand);

    border-color: var(--brand);
}


.home-gallery__arrow:disabled {
    opacity: 0.3;

    cursor: default;
}


/* Окно слайдера */

.home-gallery__viewport {
    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    scrollbar-width: none;

    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;

    overscroll-behavior-x: contain;
}


.home-gallery__viewport::-webkit-scrollbar {
    display: none;
}


/* Лента */

.home-gallery__track {
    display: flex;
    gap: 24px;
}


/*
 * Десктоп:
 * 3 фотографии + два gap по 24px
 */

.home-gallery__item {
    flex:
        0
        0
        calc((100% - 48px) / 3);
    min-width: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    scroll-snap-align: start;
}

.feedback-gallery__item {
    flex:
        0
        0
        calc((100% - 48px) / 2);
    min-width: 0;
    aspect-ratio: 616 / 869;
    overflow: hidden;
    scroll-snap-align: start;
}


.home-gallery__item img ,
.feedback-gallery__item img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}


.home-gallery__item:hover img,
.feedback-gallery__item:hover img {
    transform: scale(1.03);
}

.shema-raboty{
    width: 80%;
    max-width: 500px;
    margin: 0 auto;
    border: 0;
}

/* =========================================================
   HOME VIDEO
   ========================================================= */

.home-video {
    padding: 24px 0 46px;
}


.home-video__player {
    width: 100%;
    max-width: 1000px;

    margin: 0 auto;

    overflow: hidden;

    background: #000;
}


.home-video__video {
    display: block;

    width: 100%;
    height: auto;

    background: #000;
}

.home-video__title {
    margin-bottom: 40px;

    text-align: center;
}


.home-video__title h2 {
    max-width: 900px;

    margin: 0 auto;

    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.3;
    font-weight: 500;

    color: var(--dark);
}

.to-service-button{
    border: 2px solid var(--line);
    border-radius: 20px;
    padding: 10px 20px;
}

/* =========================================================
   SERVICES TRAINER
   ========================================================= */

.services-trainer {
    padding: 0 0 24px;
}


.services-trainer__grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    align-items: stretch;
}


.services-trainer__content {
    display: flex;
    align-items: center;

    padding:
        48px
        56px
        48px
        0;
}


.services-trainer__content p {
    margin: 0;

    font-size: clamp(22px, 2.3vw, 30px);
    line-height: 1.5;
    font-weight: 400;

    color: var(--dark);
}


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

    min-width: 0;
}


.services-trainer__image img {
    display: block;

    width: 100%;
    height: auto;

    aspect-ratio: 4 / 3;

    object-fit: cover;
}

/* =========================================================
   PROGRAM LIST
   ========================================================= */

.program-list,
.program-list ol {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: item;
}
.program-list{
    margin-bottom: 36px;
}

.program-list > li {
    position: relative;
    counter-increment: item;
    margin-bottom: 12px;
    padding-left: 32px;
}


.program-list > li::before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    font-size: 20px;
    line-height: 1.0;
    font-weight: 600;
    color: var(--text);
}


.program-list__title {
    display: block;
    font-size: 18px;
    line-height: 1.0;
    font-weight: 500;

    color: var(--text);
}


/* Вложенный уровень */

.program-list > li > ol {
    margin-top: 5px;
}


.program-list > li > ol > li {
    position: relative;
    counter-increment: item;
    margin-top: 4px;
    padding-left: 32px;
    font-size: 16px;
    line-height: 1.2;
    color: var(--text);
}

.program-list > li > ol > li::before {
    content:
        counters(item, ".")
        ".";
    position: absolute;
    left: 0;
    top: 0;
    width: 52px;
    font-weight: 500;
    color: var(--dark);
}

.developer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    min-height: 32px;
    padding: 5px 9px 5px 10px;

    color: inherit;
    text-decoration: none;



    border-radius: 8px;

    background: color-mix(
        in srgb,
        currentColor 3%,
        transparent
    );

    opacity: 0.72;

    transition:
        opacity 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}


.developer-badge__text {
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
}


.developer-badge__divider {
    width: 1px;
    height: 16px;

    background: currentColor;

    opacity: 0.22;

    flex: 0 0 auto;
}


.developer-badge__logo {
    display: block;

    width: 24px;
    height: 24px;

    flex: 0 0 24px;
}


.developer-badge:hover {
    opacity: 1;

    border-color: color-mix(
        in srgb,
        currentColor 38%,
        transparent
    );

    background: color-mix(
        in srgb,
        currentColor 7%,
        transparent
    );

    transform: translateY(-1px);
}


.developer-badge:focus-visible {
    opacity: 1;

    outline: 2px solid currentColor;
    outline-offset: 3px;
}


@media (prefers-reduced-motion: reduce) {
    .developer-badge {
        transition: none;
    }

    .developer-badge:hover {
        transform: none;
    }
}

@media (min-width: 981px) {
    .section {
        margin: 0 50px;
    }
}

@media (max-width: 980px) {
    .section {
        padding: 0 12px 42px;
    }
    .topline__inner {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px 16px;
        padding: 8px 0;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        padding: 12px 16px 20px;
        background: #fff;
        box-shadow: 0 20px 42px rgba(15, 23, 42, 0.08);
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav__list {
        display: grid;
        gap: 6px;
        width: min(100%, var(--container));
        margin-inline: auto;
    }

    .main-nav__dropdown {
        position: static;
        visibility: visible;
        opacity: 1;
        transform: none;
        box-shadow: none;
        border-radius: 14px;
        margin: 4px 0 10px 16px;
        min-width: 0;
        background: var(--surface-muted);
    }

    .hero__grid,
    .contact-panel,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .grid--3,
    .grid--2 {
        grid-template-columns: 1fr 1fr;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }


    .hero__visual {
        display: none;
    }


    .hero__promo-inner {
        width: min(100% - 32px, var(--container));
        margin-inline: auto;
        padding:
            64px
            0
            68px;
    }

    .home-benefits__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .home-gallery__item {
        flex-basis:
            calc((100% - 24px) / 2);
    }

    .home_clients,
    .home-expert
    {
        padding-right:12px;
        padding-left: 12px;;
    }

}

@media (max-width: 680px) {
    body {
        font-size: 16px;
    }

    .brand__text small {
        display: none;
    }

    .header-main {
        min-height: 70px;
    }

    .hero__promo-inner {
        padding:
            48px
            0
            52px;
    }


    .hero__promo-title {
        margin-bottom: 24px;
    }


    .hero__promo-main p {
        font-size: 21px;
    }


    .hero__promo-note {
        font-size: 21px;
    }


    .hero__grid {
        margin-top: 44px;
    }

    .section {
        padding: 52px 12px;
    }

    .grid--3,
    .grid--2,
    .form {
        grid-template-columns: 1fr;
    }

    .hero__content,
    .hero__card,
    .contact-panel,
    .card,
    .content-box {
        border-radius: 22px;
    }

    .brand__logo {
    height: 32px;
    }

    .home__under_hero {
        padding: 58px 0 64px;
    }


    .home__under_hero-head {
        grid-template-columns: 1fr;

        gap: 28px;

        padding-bottom: 36px;
    }


    .home__under_hero-accent {
        padding: 38px 0 32px;
    }


    .home__under_hero-accent p {
        font-size: 22px;
    }


    .home__under_hero-text p {
        font-size: 17px;
    }
    

    .home-services {
        padding: 58px 0 64px;
    }


    .home-services__title {
        margin-bottom: 34px;
    }


    .home-services__title h2 {
        font-size: 26px;
    }


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

        gap: 24px;
    }


    .home-services__item {
        padding:
            34px
            24px
            30px;
    }


    .home-services__image {
        height: 150px;

        margin-bottom: 24px;
    }


    .home-services__text {
        font-size: 19px;
    }


    .home-services__footer {
        margin-top: 44px;
    }


    .home-services__footer p {
        font-size: 23px;
    }


    .modal {
        padding: 12px;
        align-items: end;
    }


    .modal__dialog {
        width: 100%;
        max-height: calc(100dvh - 24px);

        padding:
            34px
            20px
            28px;

        border-radius:
            24px
            24px
            0
            0;
    }


    .modal__close {
        top: 12px;
        right: 12px;
    }


    .modal__submit {
        width: 100%;
    }

    .callback-section {
        padding: 54px 0;
    }


    .callback-form__top {
        grid-template-columns: 1fr;

        gap: 28px;
    }


    .callback-form__title {
        padding-right: 0;
    }


    .callback-form__title h2 {
        font-size: 26px;
    }


    .callback-form__controls {
        flex-direction: column;

        gap: 12px;
    }


    .callback-form__phone {
        width: 100%;
    }


    .callback-form__submit {
        width: 100%;
    }


    .callback-form__bottom {
        margin-top: 22px;
    }


    .callback-form__agreement {
        font-size: 13px;
    }

    .home-benefits {
        padding: 58px 0 64px;
    }


    .home-benefits__title {
        margin-bottom: 34px;
    }


    .home-benefits__title h2 {
        font-size: 26px;
    }


    .home-benefits__grid {
        grid-template-columns: 1fr;

        gap: 24px;
    }


    .home-benefits__item {
        grid-template-rows:
            50px
            auto
            auto;

        row-gap: 18px;

        padding:
            32px
            24px
            34px;
    }


    .home-benefits__item-title {
        font-size: 21px;
    }


    .home-benefits__text {
        font-size: 16px;
    }

    .yandex-map {
        height: 380px;
    }

    .home-expert {
        padding: 58px 0 64px;
    }


    .home-expert__grid {
        grid-template-columns: 1fr;

        gap: 34px;
    }


    .home-expert__image img {
        max-width: min(100%, 350px);
    }


    .home-expert__content p {
        font-size: 16px;
    }


    .home-expert__accent {
        font-size: 18px !important;
    }

    .home-gallery {
        padding: 58px 0 64px;
    }


    .home-gallery__header {
        margin-bottom: 28px;
    }


    .home-gallery__header h2 {
        font-size: 26px;
    }


    .home-gallery__arrow {
        width: 46px;
        height: 46px;

        font-size: 22px;
    }


    .home-gallery__item {
        flex-basis: 100%;
    }

    .home-video {
        padding: 58px 0 64px;
    }

    .services-trainer {
    padding: 58px 0 64px;
    }


    .services-trainer__grid {
        grid-template-columns: 1fr;
    }


    .services-trainer__content {
        padding:
            0
            0
            34px;
    }


    .services-trainer__content p {
        font-size: 19px;
    }


    .services-trainer__image {
        width: 100%;
    }


    .services-trainer__image img {
        width: 100%;
    }

}