/* Лендинг «Аниматор»: один файл стилей вместо bootstrap.css + style.css.
   Вёрстка резиновая (mobile-first): от 360px до широких экранов без
   горизонтального скролла. Шрифт Nunito — свой, в fonts/nunito (OFL). */

@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url(../fonts/nunito/nunito-cyrillic.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    /* latin-ext — ради знака ₽ (U+20BD) */
    src: url(../fonts/nunito/nunito-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url(../fonts/nunito/nunito-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --brand: #b0179f;
    --brand-dark: #6a1170;
    --brand-soft: #fbeefa;
    --ink: #2a1033;
    --muted: #6d5a75;
    --line: #eedcf0;
    --bg: #ffffff;
    --bg-soft: #fdf6fd;
    --accent: #ffb000;
    --accent-2: #ff7a00;
    --radius: 20px;
    --shadow: 0 12px 32px rgba(74, 12, 84, .12);
    --container: 1180px;
    --gutter: 20px;
    --header-h: 72px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
    overflow-x: clip;
}

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

a {
    color: var(--brand);
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -.01em;
}

p {
    margin: 0;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- кнопки ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 12px 26px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 800;
    font-size: 17px;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn--accent {
    color: #2a1033;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
    box-shadow: 0 8px 20px rgba(255, 122, 0, .35);
}

.btn--accent:hover,
.btn--accent:focus-visible {
    box-shadow: 0 10px 26px rgba(255, 122, 0, .5);
    transform: translateY(-1px);
}

.btn--ghost {
    color: var(--brand-dark);
    background: #fff;
    box-shadow: inset 0 0 0 2px var(--line);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
    box-shadow: inset 0 0 0 2px var(--brand);
}

.btn--block {
    width: 100%;
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(176, 23, 159, .45);
    outline-offset: 2px;
}

.icon {
    width: 1em;
    height: 1em;
    flex: none;
}

/* ---------- шапка ---------- */

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}

.header__row {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: var(--header-h);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.brand__logo {
    width: 52px;
    height: 52px;
    flex: none;
}

/* Без min-width: 0 подпись не сжимается и на узком экране уезжает под кнопку звонка. */
.brand > span {
    min-width: 0;
}

.brand__name {
    display: block;
    white-space: nowrap;
    font-weight: 900;
    font-size: 19px;
    line-height: 1.1;
    color: var(--brand-dark);
}

.brand__tagline {
    /* Длинный город переносится на вторую строку, а не обрезается многоточием. */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    max-width: 230px;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.2;
    color: var(--muted);
}

.nav {
    display: none;
    gap: 2px;
    margin: 0 auto;
}

.nav a {
    padding: 8px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}

.nav a:hover {
    color: var(--brand);
    background: var(--brand-soft);
}

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

.phone {
    display: none;
    text-align: right;
}

.phone__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 900;
    font-size: 19px;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}

.phone__link .icon {
    color: var(--brand);
}

.phone__hours {
    display: block;
    font-size: 13px;
    color: var(--muted);
}

.header__call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: 50%;
    color: #fff;
    background: var(--brand);
    font-size: 20px;
}

.header__order {
    display: none;
    min-height: 46px;
    padding: 10px 20px;
    font-size: 15px;
    white-space: nowrap;
}

/* ---------- первый экран ---------- */

.hero {
    position: relative;
    isolation: isolate;
    color: #fff;
    background: var(--brand-dark);
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(42, 8, 52, .78) 0%, rgba(42, 8, 52, .7) 60%, rgba(42, 8, 52, .86) 100%);
}

/* Только вертикальные отступы: боковые даёт .container (--gutter). */
.hero__grid {
    display: grid;
    gap: 28px;
    padding-block: 40px 48px;
}

.hero__eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
    background: rgba(255, 255, 255, .16);
}

.hero__title {
    font-size: clamp(30px, 6.4vw, 54px);
}

.hero__title span {
    display: block;
    color: #ffd25a;
}

.hero__lead {
    margin-top: 16px;
    font-size: clamp(18px, 2.4vw, 22px);
    font-weight: 600;
    opacity: .95;
}

.hero__lead b {
    color: #ffd25a;
    font-weight: 900;
    white-space: nowrap;
}

.hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.hero__facts li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
}

.hero__facts .icon {
    color: #7ee08a;
}

.promo {
    margin-top: 26px;
    padding: 20px 22px;
    border-radius: var(--radius);
    background: rgba(20, 4, 26, .55);
    border: 1px solid rgba(255, 255, 255, .18);
}

.promo__badge {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #2a1033;
    background: #ffd25a;
}

.promo__text {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
}

.promo__text b {
    color: #ffd25a;
}

.promo__note {
    margin-top: 6px;
    font-size: 15px;
    opacity: .85;
}

.countdown {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    font-weight: 800;
}

/* На телефоне подпись — отдельной строкой, иначе «секунд» переносится одна. */
.countdown__label {
    flex-basis: 100%;
    margin-right: 4px;
    font-size: 15px;
}

.countdown__cell {
    min-width: 58px;
    padding: 6px 8px;
    border-radius: 12px;
    text-align: center;
    color: var(--ink);
    background: #fff;
}

.countdown__num {
    display: block;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.countdown__unit {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
}

/* ---------- форма заявки ---------- */

.order-card {
    align-self: start;
    padding: 26px 22px;
    border-radius: 24px;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 20px 50px rgba(20, 0, 30, .35);
}

.order-card__title {
    font-size: 26px;
    color: var(--brand-dark);
}

.order-card__text {
    margin-top: 8px;
    color: var(--muted);
}

.order-form {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.order-form__input {
    width: 100%;
    min-height: 52px;
    padding: 12px 18px;
    border: 2px solid var(--line);
    border-radius: 14px;
    font: inherit;
    font-size: 17px;
    color: var(--ink);
    background: var(--bg-soft);
    transition: border-color .15s ease, background-color .15s ease;
}

.order-form__input:focus {
    border-color: var(--brand);
    background: #fff;
    outline: none;
}

.order-form__input[aria-invalid='true'] {
    border-color: #e0263c;
}

.order-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--muted);
}

.order-form__consent input {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: none;
    accent-color: var(--brand);
}

.order-form__note {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.order-form__note:empty {
    display: none;
}

.order-form__note.is-ok {
    padding: 12px 14px;
    border-radius: 12px;
    color: #17602a;
    background: #e7f8eb;
}

.order-form__note.is-error {
    padding: 12px 14px;
    border-radius: 12px;
    color: #9b1027;
    background: #fdeaed;
}

.order-form .btn[disabled] {
    opacity: .7;
    cursor: progress;
}

/* ---------- секции ---------- */

.section {
    padding: 64px 0;
}

.section--soft {
    background: var(--bg-soft);
}

.section__head {
    max-width: 720px;
    margin: 0 auto 36px;
    text-align: center;
}

.section__title {
    font-size: clamp(28px, 4.4vw, 40px);
    color: var(--brand-dark);
}

.section__sub {
    margin-top: 10px;
    font-size: 18px;
    color: var(--muted);
}

/* преимущества */

/* Flex, а не grid: пять карточек в три колонки дают неполный ряд —
   его центрируем. */
.perks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.perk {
    flex: 1 1 100%;
    padding: 24px 20px;
    border-radius: var(--radius);
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.perk__img {
    width: auto;
    height: 96px;
    margin: 0 auto 14px;
    object-fit: contain;
}

.perk__title {
    font-size: 18px;
    font-weight: 900;
    line-height: 1.25;
}

.perk__text {
    margin-top: 8px;
    font-size: 15px;
    color: var(--muted);
}

/* услуги */

.services {
    display: grid;
    gap: 20px;
}

.service-card {
    padding: 26px 22px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.service-card__title {
    margin-bottom: 16px;
    font-size: 24px;
    color: var(--brand);
}

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

.service-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    font-weight: 700;
}

.service-list__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: none;
    border-radius: 14px;
    background: var(--brand-soft);
}

.service-list__icon img {
    max-width: 40px;
    max-height: 36px;
}

/* полоса с формой «прайс-лист» */

.cta {
    position: relative;
    isolation: isolate;
    padding: 56px 0;
    color: #fff;
    background: var(--brand-dark);
}

.cta__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(106, 17, 112, .92) 0%, rgba(106, 17, 112, .75) 50%, rgba(42, 8, 52, .55) 100%);
}

.cta__grid {
    display: grid;
    gap: 28px;
    align-items: center;
}

.cta__title {
    font-size: clamp(28px, 4.4vw, 40px);
}

.cta__text {
    margin-top: 12px;
    font-size: 19px;
    opacity: .95;
}

/* программы */

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

.program {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    font: inherit;
    text-align: left;
    color: inherit;
    background: #fff;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.program:hover,
.program:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(74, 12, 84, .2);
}

.program__img {
    width: 100%;
    aspect-ratio: 299 / 193;
    object-fit: cover;
    background: var(--brand-soft);
}

.program__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px 14px;
}

.program__name {
    font-weight: 900;
    font-size: 16px;
    line-height: 1.2;
}

.program__more {
    flex: none;
    color: var(--brand);
    font-size: 18px;
}

.programs__all {
    margin-top: 32px;
    text-align: center;
}

/* как работаем */

.steps-section {
    color: #fff;
    background: radial-gradient(120% 140% at 0% 0%, #c0249e 0%, #7a157c 45%, #3f0b4b 100%);
}

.steps-section .section__title {
    color: #fff;
}

.steps {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 17px;
    line-height: 1.35;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    counter-increment: step;
}

.step::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: 50%;
    font-weight: 900;
    font-size: 20px;
    color: #2a1033;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
}

/* отзывы */

.reviews {
    columns: 1;
    column-gap: 20px;
}

.review {
    margin: 0 0 20px;
    padding: 24px 22px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    break-inside: avoid;
}

.review__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.review__avatar {
    width: 60px;
    height: 60px;
    flex: none;
    border-radius: 50%;
    object-fit: cover;
}

.review__name {
    font-weight: 900;
    font-size: 18px;
}

.review__text {
    margin: 0;
    font-size: 16px;
    color: #44324c;
}

/* фото праздников */

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

.gallery__img {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 16px;
    object-fit: cover;
    background: var(--brand-soft);
}

/* подвал */

.footer {
    padding: 56px 0 32px;
    color: rgba(255, 255, 255, .9);
    background: #2a0a34;
}

.footer__grid {
    display: grid;
    gap: 32px;
}

.footer .brand__name {
    color: #fff;
}

.footer .brand__tagline {
    color: rgba(255, 255, 255, .7);
}

.footer__title {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
}

.footer__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    font-size: 26px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.footer__phone .icon {
    color: #ffd25a;
}

.footer__line {
    margin-top: 6px;
}

.footer__about {
    margin-top: 16px;
    max-width: 380px;
}

.footer__cta {
    margin-top: 18px;
}

.footer__legal {
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    font-size: 13px;
    color: rgba(255, 255, 255, .6);
}

.footer__legal p + p {
    margin-top: 8px;
}

.footer__legal a {
    color: rgba(255, 255, 255, .85);
}

/* окно с формой */

.dialog {
    width: min(440px, calc(100% - 32px));
    max-height: calc(100% - 32px);
    padding: 0;
    border: 0;
    border-radius: 24px;
    background: transparent;
    overflow: visible;
}

.dialog::backdrop {
    background: rgba(30, 6, 38, .6);
}

.dialog .order-card {
    position: relative;
    box-shadow: 0 24px 60px rgba(20, 0, 30, .45);
}

.dialog__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    font-size: 22px;
    color: var(--muted);
    background: var(--bg-soft);
    cursor: pointer;
}

.dialog__close:hover {
    color: var(--ink);
}

.dialog .order-card__title {
    padding-right: 40px;
}

/* нижняя панель на телефоне */

.mobile-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -6px 20px rgba(42, 16, 51, .12);
}

.mobile-bar .btn {
    min-height: 48px;
    padding: 10px 14px;
    font-size: 16px;
}

.mobile-bar .btn--call {
    color: #fff;
    background: var(--brand);
}

/* Панель закрывает низ страницы — запас под неё даёт тёмный подвал,
   иначе под ним осталась бы светлая полоса фона. */
.footer {
    padding-bottom: calc(32px + 72px + env(safe-area-inset-bottom));
}

/* ---------- планшет ---------- */

@media (min-width: 640px) {
    .countdown__label {
        flex-basis: auto;
    }

    .phone {
        display: block;
    }

    .header__call {
        display: none;
    }

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

    .perk {
        flex: 0 0 calc((100% - 2 * 18px) / 3);
    }

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

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

    .reviews {
        columns: 2;
    }
}

@media (min-width: 900px) {
    :root {
        --gutter: 32px;
    }

    .mobile-bar {
        display: none;
    }

    .footer {
        padding-bottom: 32px;
    }

    .header__order {
        display: inline-flex;
    }

    .hero__grid {
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 48px;
        align-items: center;
        min-height: 620px;
        padding-block: 56px 64px;
    }

    .hero::before {
        background: linear-gradient(90deg, rgba(42, 8, 52, .88) 0%, rgba(42, 8, 52, .66) 55%, rgba(42, 8, 52, .4) 100%);
    }

    .order-card {
        padding: 30px 28px;
    }

    .section {
        padding: 88px 0;
    }

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

    .service-list {
        grid-template-columns: 1fr;
    }

    .cta__grid {
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 56px;
    }

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

    .step {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px 20px 24px;
    }

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

@media (min-width: 1100px) {
    .nav {
        display: flex;
    }

    .programs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }

    .perk {
        flex-basis: calc((100% - 4 * 18px) / 5);
    }

    .gallery {
        gap: 16px;
    }

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .btn,
    .program {
        transition: none;
    }
}
