/* Shared fluid layout; breakpoints: desktop 1100, tablet 800, phone 600. */
.section { padding-block: clamp(40px, 5vw, 72px); }
.grid, .process, .facts { gap: clamp(16px, 2vw, 24px); }
.grid > *, .process > *, .facts > *, .info-item > *, .site-footer__grid > * { min-width: 0; }
.site-header__inner { display: flex; justify-content: space-between; gap: 20px; }
.site-header__logo { flex-shrink: 0; font-weight: 600; }
.site-nav__list { gap: clamp(16px, 2vw, 24px); }
.site-nav__link { white-space: nowrap; }
.lang-switch__field { min-height: 44px; max-width: 80px; padding: 8px; border: 1px solid var(--c-line); border-radius: 10px; background: var(--c-surface); }
.lang-switch:has(select:empty) { display: none; }
.messenger-link, .filter-btn, .btn { min-height: 44px; }
.messenger-link { width: 44px; }
.card--service { padding: clamp(24px, 3vw, 36px) clamp(20px, 2vw, 28px); }
.card--service__icon { height: clamp(112px, 13vw, 168px); }
.card--service h3 { font-size: clamp(20px, 2vw, 24px); }
.card--service p { max-width: 38ch; }
.step { border-radius: var(--radius-lg); background: var(--grad-steel); }
.process__step, .fact, .card--stat, .info-item, .map-note { box-shadow: var(--shadow-card); }
.info-item--glass { background: rgba(57, 65, 77, .8); }
.hero--brand { background: var(--c-bg); }
.hero__brand { font-size: clamp(34px, 6vw, 76px); }
.hero__panel--page:has(.hero__service-icon) h1,
.hero__panel--page:has(.hero__service-icon) .hero__subtitle { max-width: 70%; }
.cta-button { padding-bottom: clamp(24px, 4vw, 48px); }
.doc-item__icon, .info-item__icon, .map-note__icon, .modal__close { flex-shrink: 0; }
.modal__dialog { max-height: calc(100dvh - 48px); overscroll-behavior: contain; }
.map-block iframe { width: 100%; max-width: 100%; border: 0; border-radius: var(--radius-xl); }
.site-nav__burger { position: relative; flex-direction: column; gap: 5px; border: 1px solid var(--c-line); border-radius: 12px; background: var(--grad-steel); }
.site-nav__burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.site-nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav__burger.is-open span:nth-child(2) { opacity: 0; }
.site-nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { position: absolute; inset: 100% 0 auto; max-height: calc(100dvh - var(--header-height)); overflow-y: auto; overscroll-behavior: contain; background: var(--c-surface); box-shadow: 0 24px 48px #0006; }
.mobile-menu__nav { padding-block: 16px max(24px, env(safe-area-inset-bottom)); }
.mobile-menu__link { min-height: 56px; padding: 16px 12px; border-radius: 8px; }
.mobile-menu__link:hover { background: var(--c-surface-2); }
@media (max-width: 1200px) {
  .site-header__phone span { display: none; }
  .site-header__phone { width: 44px; height: 44px; justify-content: center; }
  .site-header__actions { gap: 8px; }
  .process { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .site-nav, .site-header__messengers, .site-header__actions::before { display: none; }
  .site-nav__burger { display: flex; }
  .grid--services, .grid--objects, .grid--steps, .grid--3, .grid--4, .facts, .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .split, .solutions, .form-section, .map-block { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .solutions--single .solutions__text p:not(h3) { columns: 1; }
  .modal__aside { grid-column: 1 / -1; }
  .map-placeholder { min-height: 300px; }
}
@media (min-width: 1101px) {
  .mobile-menu.is-open { display: none; }
}
@media (max-width: 800px) {
  :root { --header-height: 68px; }
  .hero__service-icon { display: none; }
  .hero__panel--page:has(.hero__service-icon) h1,
  .hero__panel--page:has(.hero__service-icon) .hero__subtitle { max-width: 100%; }
  .hero__panel--page { min-height: 300px; padding: 32px; }
  .accordion--split, .works-list, .modal__cols, .modal__form-grid { grid-template-columns: minmax(0, 1fr); }
  .modal__cols { gap: 24px; }
  .modal__form-main, .modal__pitch { padding: 32px 24px; }
  .modal__pitch { border-left: 0; border-top: 1px solid var(--c-line); }
  .modal__foot { flex-direction: column; align-items: stretch; }
  .modal__cover { height: 240px; }
  .modal__main .modal__section ul { columns: 1; }
  .media-frame--tall { min-height: 320px; }
}
@media (max-width: 600px) {
  :root { --header-height: 64px; }
  .site-header__inner { gap: 8px; }
  .site-header__logo { font-size: 15px; }
  .site-header__actions { gap: 4px; }
  .site-header__phone { display: none; }
  .grid--2, .grid--3, .grid--4, .grid--services, .grid--objects, .grid--steps,
  .process, .info-grid, .form--2col, .check-group, .doc-list { grid-template-columns: minmax(0, 1fr); }
  .grid--services { grid-auto-rows: auto; }
  .hero--brand { padding: 0 0 16px; }
  .hero--brand .hero__panel > .container { padding-block: 36px; }
  .hero__panel .hero__inner { gap: 20px; }
  .hero__panel { min-height: 0; }
  .hero__logo { width: 112px; }
  .hero__slogan { font-size: 17px; margin-bottom: 16px; letter-spacing: .01em; }
  .hero__subtitle { font-size: 16px; }
  .hero--page { padding-block: 16px; }
  .hero__panel--page { padding: 28px 20px; border-radius: 20px; }
  .hero__panel::after { background: linear-gradient(90deg, #15181ef0, #15181e9e); }
  .hero--page h1 { font-size: clamp(30px, 8vw, 40px); }
  .section__head { margin-bottom: 24px; }
  .section__label { letter-spacing: .1em; }
  .card--service__icon { height: 128px; margin-bottom: 20px; }
  .card--service { padding: 28px 24px; }
  .process__step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 16px; padding: 20px; }
  .process__step::before { grid-row: span 2; margin: 0; }
  .process__step h3 { margin: 0; }
  .process__step p { grid-column: 2; }
  .fact { padding: 20px 16px; }
  .form-panel, .solution-item, .works-list__item { padding: 20px; }
  .modal { padding: 12px; }
  .modal__dialog { max-height: calc(100dvh - 24px); }
  .modal__head, .modal__body, .modal__dialog--project .modal__body { padding: 20px; }
  .modal__form-main { padding: 60px 20px 24px; }
  .modal__pitch { padding: 24px 20px; }
  .modal__cover-text { left: 20px; right: 20px; bottom: 20px; }
  .modal__gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal__close--float { top: 12px; right: 12px; }
  .stepper { gap: 6px; }
  .stepper__item { padding: 10px 6px; font-size: 12px; }
  .file-drop { padding: 20px; }
  .filters { gap: 8px; }
  .filter-btn { padding: 10px 14px; }
  .data-table th, .data-table td { padding: 16px 12px; overflow-wrap: anywhere; }
  .data-table th { width: 40%; font-size: 11px; }
  .site-footer__grid { gap: 28px 20px; }
  .site-footer__grid > :first-child, .site-footer__grid > :last-child { grid-column: 1 / -1; }
  .site-footer__bottom { align-items: flex-start; flex-direction: column; gap: 12px; }
  .btn--lg { padding: 16px 24px; }
}
@media (max-width: 360px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .site-header__logo { font-size: 14px; }
  .hero__brand { font-size: 32px; }
}
@media (hover: none), (pointer: coarse) {
  .card:hover, .card--service:hover, .doc-card:hover, .solution-item:hover { transform: none; }
  .card:hover .card__media img, .card--service:hover .card--service__icon img { transform: none; }
}

/* Subtle shared motion: quick feedback, soft settling. */
:root { --motion-ease: cubic-bezier(.22, 1, .36, 1); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  a, button, .tag, .check, .stepper__item,
  .form__input, .form__select, .form__textarea,
  .card, .card--service, .card--stat, .process__step, .step,
  .fact, .doc-card, .doc-item, .info-item, .map-note, .solution-item, .works-list__item {
    transition: color 200ms ease, background-color 240ms ease,
      border-color 240ms ease, box-shadow 280ms ease, transform 280ms var(--motion-ease);
  }
  .accordion__icon, .icon, .site-nav__burger span {
    transition: transform 260ms var(--motion-ease), color 200ms ease, opacity 200ms ease;
  }
  .card__media img, .card--service__icon img, .media-frame--photo img {
    transition: transform 360ms var(--motion-ease), filter 300ms ease;
  }
  .dropdown, .lang-switch__list { transition-duration: 220ms, 260ms, 0s; }
  .modal.is-open .modal__dialog { animation: panel-enter 280ms var(--motion-ease); }
  .form__step.is-active { animation: content-enter 220ms var(--motion-ease); }
  @keyframes panel-enter {
    from { transform: translateY(12px) scale(.99); }
    to { transform: translateY(0) scale(1); }
  }
  @keyframes content-enter {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
  }
}



.site-header {
    background-color: rgba(30, 31, 33, 0.94);
}

.info-item--glass {
    background: rgba(60, 62, 66, 0.8);
}

body::before {
    background:
        radial-gradient(
            80% 50% at 50% -10%,
            rgba(151, 129, 82, 0.06) 0%,
            transparent 60%
        ),
        radial-gradient(
            60% 40% at 100% 100%,
            rgba(160, 160, 160, 0.04) 0%,
            transparent 70%
        );
}



/* Модальное окно */

#modal-calc .modal__dialog--form {
    position: relative;
    max-width: 1040px;
    overflow: hidden;
    border: 1px solid var(--c-line);
    border-radius: 20px;
    background: var(--grad-panel);
    box-shadow: var(--shadow-lift);
}

#modal-calc .modal__scroll {
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

#modal-calc .modal__close--float {
    top: 14px;
    right: 14px;
    z-index: 5;
    background: var(--c-bg-deep);
}

/* Две колонки, как в первом варианте */

#modal-calc .modal__form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.85fr);
}

#modal-calc .modal__form-main {
    min-width: 0;
    padding: 32px;
}

#modal-calc .modal__eyebrow {
    margin-bottom: 12px;
}

#modal-calc .modal__title {
    margin-bottom: 12px;
    font-family: var(--font-title);
    font-size: 32px;
    font-weight: 500;
    line-height: 1.2;
}

#modal-calc .modal__lead {
    margin-bottom: 24px;
    color: var(--c-muted);
    font-size: 16px;
    line-height: 1.55;
}

/* Форма */

#modal-calc .form {
    gap: 18px 20px;
}

#modal-calc .form__group {
    min-width: 0;
    margin-bottom: 0;
    gap: 8px;
}

#modal-calc .form__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--c-ink-2);
}

#modal-calc .form__input,
#modal-calc .form__select,
#modal-calc .form__textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid var(--c-line);
    border-radius: 8px;
    background-color: var(--c-bg-deep);
    color: var(--c-ink);
    font-size: 16px;
    line-height: 1.4;
    transition:
        border-color 200ms ease,
        box-shadow 200ms ease;
}

#modal-calc .form__select {
    padding-right: 40px;
}

#modal-calc .form__textarea {
    min-height: 100px;
    resize: vertical;
}

#modal-calc .form__input::placeholder,
#modal-calc .form__textarea::placeholder {
    color: var(--c-muted);
}

#modal-calc .form__input:focus,
#modal-calc .form__select:focus,
#modal-calc .form__textarea:focus {
    outline: none;
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px rgba(151, 129, 82, 0.15);
}

/* FilePond — загрузчик с иконкой */

#modal-calc .filepond--root {
    margin-bottom: 0;
    font-family: var(--font-base);
    color: var(--c-muted);
}

#modal-calc .filepond--panel-root {
    border: 1px dashed var(--c-line-2);
    border-radius: 12px;
    background: var(--c-bg-deep);
    transition: border-color 200ms ease;
}

#modal-calc .filepond--drop-label {
    min-height: 88px;
    color: var(--c-muted);
}

#modal-calc .filepond--drop-label label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}

/* Иконка загрузки слева от текста */
#modal-calc .filepond--drop-label label::before {
    content: "";
    display: block;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    background-color: var(--c-accent-hi);

    -webkit-mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 9l5-5 5 5M12 4v12'/%3E%3C/svg%3E")
        center / contain no-repeat;

    mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 9l5-5 5 5M12 4v12'/%3E%3C/svg%3E")
        center / contain no-repeat;
}

#modal-calc .filepond--root:hover .filepond--panel-root {
    border-color: var(--c-accent);
}

#modal-calc .filepond--root:hover .filepond--drop-label {
    color: var(--c-accent-hi);
}

#modal-calc .filepond--label-action {
    color: var(--c-accent-hi);
}

#modal-calc .filepond--item-panel {
    background: var(--c-surface-3);
}

#modal-calc .filepond--file {
    color: var(--c-ink);
}

#modal-calc .form__hint {
    font-size: 12px;
    line-height: 1.5;
    color: var(--c-muted);
}

/* Кнопка и подпись */

#modal-calc .form__actions {
    gap: 12px;
    margin-top: 4px;
}

#modal-calc .form__actions .btn {
    min-height: 52px;
    padding: 14px 24px;
    font-size: 16px;
}

#modal-calc .form__note {
    font-size: 12px;
    line-height: 1.5;
    color: var(--c-muted);
}

/* Правая колонка */

#modal-calc .modal__pitch {
    min-width: 0;
    padding: 32px 28px;
    gap: 20px;
    border-left: 1px solid var(--c-line);
    background:
        linear-gradient(
            180deg,
            rgba(151, 129, 82, 0.06),
            transparent 60%
        ),
        var(--c-bg-deep);
}

#modal-calc .modal__pitch > .modal__eyebrow {
    padding-right: 40px;
    margin-bottom: 8px;
}

#modal-calc .modal__pitch-list {
    display: grid;
    gap: 20px;
}

#modal-calc .modal__pitch-list li {
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.6;
}

#modal-calc .modal__pitch-list .icon {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--c-accent);
}

/* Сообщения */

#calcForm_forms_flash:empty,
#modal-calc .form__error:empty {
    display: none;
}

#modal-calc .form__error {
    color: #ffb4aa;
    font-size: 13px;
}

#modal-calc .calc-feedback {
    padding: 14px 16px;
    border: 1px solid var(--c-line);
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
}

#modal-calc .calc-feedback--success {
    background: #26382d;
    color: #d5eedc;
}

#modal-calc .calc-feedback--error {
    background: #3b2929;
    color: #ffd2cd;
}

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

@media (max-width: 800px) {
    #modal-calc .modal__form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    #modal-calc .modal__form-main {
        padding: 28px;
    }

    #modal-calc .modal__form-main > .modal__eyebrow {
        padding-right: 48px;
        min-height: 28px;
    }

    #modal-calc .modal__pitch {
        padding: 24px 28px;
        border-left: 0;
        border-top: 1px solid var(--c-line);
    }

    #modal-calc .modal__pitch-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 24px;
    }
}

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

@media (max-width: 600px) {
    #modal-calc .modal__scroll {
        max-height: calc(100dvh - 24px);
    }

    #modal-calc .modal__form-main {
        padding: 24px 20px;
    }

    #modal-calc .modal__title {
        font-size: 28px;
    }

    #modal-calc .modal__lead {
        font-size: 15px;
    }

    #modal-calc .form--2col {
        grid-template-columns: minmax(0, 1fr);
    }

    #modal-calc .form {
        gap: 16px;
    }

    #modal-calc .modal__pitch {
        padding: 24px 20px;
    }

    #modal-calc .modal__pitch-list {
        grid-template-columns: minmax(0, 1fr);
    }

    #modal-calc .filepond--drop-label label {
        padding: 16px;
        gap: 10px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #modal-calc *,
    #modal-calc *::before,
    #modal-calc *::after {
        transition: none !important;
        animation: none !important;
    }
}






.calc-toast {
    position: fixed;
    top: calc(var(--header-height, 76px) + 16px);
    right: 24px;
    bottom: auto;
    z-index: calc(var(--z-modal, 200) + 20);

    display: flex;
    align-items: center;
    gap: 12px;

    width: min(440px, calc(100vw - 48px));
    padding: 16px;

    border: 1px solid rgba(194, 167, 116, 0.45);
    border-radius: 16px;

    background: linear-gradient(
        145deg,
        #393b3e 0%,
        #27292c 100%
    );

    color: var(--c-ink, #f1f1f4);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 16px 48px rgba(0, 0, 0, 0.3);

    font-family: var(--font-base);
    font-size: 14px;
    line-height: 1.55;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    pointer-events: none;

    transition:
        opacity 240ms ease,
        transform 280ms cubic-bezier(.22, 1, .36, 1),
        visibility 240ms;
}

.calc-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Галочка */

.calc-toast__icon {
    display: grid;
    place-items: center;

    flex: 0 0 36px;
    width: 36px;
    height: 36px;

    border: 1px solid rgba(194, 167, 116, 0.25);
    border-radius: 50%;

    background: rgba(151, 129, 82, 0.14);
    color: var(--c-accent-hi, #c2a774);

    font-size: 21px;
    line-height: 1;
}

/* Текст уведомления */

.calc-toast [data-toast-message] {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Кнопка закрытия */

.calc-toast__close {
    display: grid;
    place-items: center;

    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;

    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--c-muted, #bdbfc3);

    font: inherit;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;

    transition:
        color 180ms ease,
        background-color 180ms ease;
}

.calc-toast__close:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--c-ink, #f1f1f4);
}

.calc-toast__close:focus-visible {
    outline: 2px solid var(--c-accent-hi, #c2a774);
    outline-offset: 2px;
}

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

@media (max-width: 600px) {
    .calc-toast {
        top: calc(var(--header-height, 64px) + 12px);
        right: 12px;
        width: calc(100vw - 24px);
        padding: 12px;
        gap: 10px;
        border-radius: 14px;
        font-size: 13px;
    }

    .calc-toast__icon {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
        font-size: 19px;
    }
}

/* Уменьшение движения */

@media (prefers-reduced-motion: reduce) {
    .calc-toast,
    .calc-toast__close {
        transition: none;
    }

    .calc-toast {
        transform: none;
    }
}