/* assets/css/style.css */

:root {
    --bg: #FCF8F5;
    --bg-2: #F6EDE8;
    --surface: #FFFFFF;
    --pink: #F8DDE2;
    --pink-2: #EFC6CE;
    --blue: #D9EBEC;
    --coral: #E9837B;
    --ink: #1B3330;
    --muted: #5F7671;
    --accent: #14504A;
    --accent-ink: #FFFFFF;
    --accent-soft: #E4F0EE;
    --line: #EADFD8;
    --radius: 24px;
    --radius-lg: 32px;
    --pill: 999px;
    --wrap: 1160px;
    --gap: clamp(56px, 7vw, 104px);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
    overflow-x: hidden;
}

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

a {
    color: inherit;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 0.5em;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(30px, 5.2vw, 54px);
}

h2 {
    font-size: clamp(26px, 3.6vw, 42px);
}

h3 {
    font-size: clamp(19px, 1.6vw, 22px);
    letter-spacing: -0.01em;
}

p {
    margin: 0 0 1em;
}

p:last-child {
    margin-bottom: 0;
}

/* ---------- Служебное ---------- */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 18px;
    border-radius: var(--pill);
    background: var(--accent);
    color: var(--accent-ink);
    text-decoration: none;
    transition: top 0.15s ease;
}

.skip-link:focus {
    top: 12px;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 32px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border: 1px solid transparent;
    border-radius: var(--pill);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn--accent {
    background: var(--accent);
    color: var(--accent-ink);
}

.btn--accent:hover {
    background: #0E403B;
}

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

.btn--ghost {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent);
}

.btn--ghost:hover {
    background: var(--accent);
    color: var(--accent-ink);
}

.btn--soft {
    background: var(--pink);
    color: var(--ink);
}

.btn--soft:hover {
    background: var(--pink-2);
}

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

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
label:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: 0.5;
    pointer-events: none;
}

/* ---------- Шапка ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(252, 248, 245, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-row {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 72px;
}

.nav-toggle {
    position: absolute;
}

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

.brand-mark {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 700;
    font-size: 20px;
}

.brand-logo {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: contain;
}

.brand-name {
    font-size: clamp(15px, 1.4vw, 18px);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.site-nav {
    order: 2;
    margin-left: 8px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link {
    font-size: 15px;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

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

.nav-extra {
    display: none;
}

.header-actions {
    order: 3;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-hours {
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
}

.header-phone {
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.header-phone:hover {
    color: var(--accent);
}

.only-mobile {
    display: none;
}

.burger {
    order: 4;
    display: none;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
}

.burger-lines {
    position: relative;
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
}

.burger-lines::before,
.burger-lines::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--ink);
}

.burger-lines::before {
    top: -6px;
}

.burger-lines::after {
    top: 6px;
}

/* ---------- Секции ---------- */

.section {
    padding-block: var(--gap);
}

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

.section__head {
    max-width: 760px;
    margin-bottom: clamp(28px, 4vw, 48px);
}

.section__title {
    margin-bottom: 12px;
}

.section__lead {
    margin: 0;
    font-size: clamp(16px, 1.5vw, 19px);
    color: var(--muted);
}

/* ---------- Сетки и карточки ---------- */

.cards {
    display: grid;
    gap: clamp(14px, 2vw, 22px);
}

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

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

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

.card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: clamp(20px, 2.4vw, 30px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.card--pink {
    background: var(--pink);
    border-color: transparent;
}

.card--blue {
    background: var(--blue);
    border-color: transparent;
}

.card--accent {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: transparent;
}

.card__title {
    margin: 0;
    font-size: clamp(18px, 1.5vw, 21px);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.card__text {
    margin: 0;
    font-size: 15px;
    color: var(--muted);
}

.card--accent .card__text {
    color: rgba(255, 255, 255, 0.8);
}

.media-ph {
    display: grid;
    place-items: center;
    min-height: 220px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--pink) 0%, var(--blue) 100%);
    color: var(--muted);
    font-size: 14px;
    text-align: center;
    padding: 24px;
}

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

.list-check li {
    position: relative;
    padding-left: 28px;
    font-size: 15px;
}

.list-check li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 14px;
    height: 8px;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}

/* ---------- Подвал ---------- */

.site-footer {
    padding-block: 36px;
    border-top: 1px solid var(--line);
    font-size: 14px;
    color: var(--muted);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 32px;
}

.footer-name {
    margin: 0;
    font-weight: 600;
    color: var(--ink);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 0;
}

.footer-links a,
.footer-credit a {
    color: var(--muted);
    text-decoration: underline;
    text-decoration-color: var(--line);
    text-underline-offset: 3px;
}

.footer-links a:hover,
.footer-credit a:hover {
    color: var(--accent);
}

.footer-credit {
    margin: 0;
}

/* ---------- Адаптив ---------- */

@media (max-width: 1024px) {
    .burger {
        display: grid;
    }

    .site-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        margin: 0;
        padding: 22px clamp(16px, 4vw, 32px) 28px;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 24px 40px rgba(27, 51, 48, 0.12);
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }

    .nav-toggle:checked ~ .site-nav {
        display: flex;
    }

    .nav-toggle:focus-visible ~ .burger {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .nav-link {
        display: block;
        padding: 10px 0;
        font-size: 18px;
        color: var(--ink);
        border-bottom: 1px solid var(--line);
    }

    .nav-extra {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .nav-phone {
        font-size: 20px;
        font-weight: 700;
        text-decoration: none;
    }

    .nav-hours {
        font-size: 15px;
        color: var(--muted);
    }

    .header-hours,
    .header-phone {
        display: none;
    }

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

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

    .header-row {
        min-height: 64px;
        gap: 10px;
    }

    .brand-name {
        max-width: 42vw;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .only-desktop {
        display: none;
    }

    .only-mobile {
        display: inline;
    }

    .header-actions .btn {
        padding: 11px 18px;
    }

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

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
}

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

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}
/* Блоки этапа 2: первый экран, о студии, услуги, популярное, мастер */

.hero {
 padding-block: clamp(24px, 3.5vw, 48px) var(--gap);
}

.hero__grid {
 display: grid;
 grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
 gap: clamp(24px, 3.5vw, 56px);
 align-items: center;
}

.hero__title {
 margin-bottom: 14px;
}

.hero__lead {
 max-width: 46ch;
 font-size: clamp(16px, 1.6vw, 19px);
 color: var(--muted);
}

.hero__actions {
 display: flex;
 flex-wrap: wrap;
 gap: 12px;
 margin: 24px 0 18px;
}

.hero__trust {
 display: flex;
 align-items: center;
 gap: 10px;
 margin: 0 0 22px;
 font-size: 14px;
 color: var(--muted);
}

.hero__dot {
 flex: 0 0 auto;
 width: 8px;
 height: 8px;
 border-radius: 50%;
 background: var(--coral);
}

.hero__meta {
 display: grid;
 grid-template-columns: repeat(2, minmax(0, 1fr));
 gap: 14px 24px;
 margin: 0;
 padding-top: 20px;
 border-top: 1px solid var(--line);
}

.hero__meta dt {
 margin-bottom: 4px;
 font-size: 12px;
 letter-spacing: 0.08em;
 text-transform: uppercase;
 color: var(--muted);
}

.hero__meta dd {
 margin: 0;
 font-size: 15px;
 font-weight: 600;
}

.hero__img {
 width: 100%;
 aspect-ratio: 4 / 5;
 border-radius: var(--radius-lg);
 object-fit: cover;
}

/* О студии */

.about__grid {
 display: grid;
 grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
 gap: clamp(24px, 3.5vw, 56px);
 align-items: center;
}

.about__text {
 font-size: clamp(16px, 1.4vw, 18px);
}

.about__img {
 width: 100%;
 aspect-ratio: 5 / 6;
 border-radius: var(--radius-lg);
 object-fit: cover;
}

.features {
 display: grid;
 grid-template-columns: repeat(2, minmax(0, 1fr));
 gap: 14px;
 margin: 24px 0 0;
 padding: 0;
 list-style: none;
}

.feature {
 padding: 20px;
 border: 1px solid var(--line);
 border-radius: var(--radius);
 background: var(--surface);
}

.feature:nth-child(4n + 1) {
 background: var(--pink);
 border-color: transparent;
}

.feature:nth-child(4n + 2) {
 background: var(--blue);
 border-color: transparent;
}

.feature__title {
 margin: 0 0 6px;
 font-size: 16px;
 font-weight: 700;
 letter-spacing: -0.01em;
}

.feature__text {
 margin: 0;
 font-size: 14px;
 color: var(--muted);
}

/* Услуги и цены */

.prices {
 display: grid;
 grid-template-columns: repeat(3, minmax(0, 1fr));
 gap: 16px;
 margin: 0;
 padding: 0;
 list-style: none;
}

.price-card {
 display: flex;
 flex-direction: column;
 gap: 10px;
 padding: clamp(22px, 2.4vw, 32px);
 border: 1px solid var(--line);
 border-radius: var(--radius-lg);
 background: var(--surface);
}

.price-card:nth-child(2) {
 background: var(--pink);
 border-color: transparent;
}

.price-card:nth-child(3) {
 background: var(--blue);
 border-color: transparent;
}

.price-card__title {
 margin: 0;
 font-size: clamp(17px, 1.5vw, 20px);
}

.price-card__range {
 margin: 0;
 font-size: clamp(20px, 2vw, 26px);
 font-weight: 700;
 letter-spacing: -0.02em;
}

.prices__actions {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 gap: 12px 20px;
 margin-top: 24px;
}

.prices__note {
 margin: 0;
 font-size: 14px;
 color: var(--muted);
}

/* Популярные услуги */

.pop {
 display: grid;
 grid-template-columns: repeat(3, minmax(0, 1fr));
 gap: 16px;
 margin: 0;
 padding: 0;
 list-style: none;
}

.pop-card {
 display: flex;
 flex-direction: column;
 gap: 10px;
 padding: clamp(20px, 2.2vw, 28px);
 border: 1px solid var(--line);
 border-radius: var(--radius);
 background: var(--surface);
}

.pop-card__title {
 margin: 0;
 font-size: clamp(17px, 1.5vw, 19px);
}

.pop-card__price {
 margin: 0;
 font-size: 18px;
 font-weight: 700;
 color: var(--accent);
}

.pop-card__meta {
 margin: 0;
 font-size: 14px;
 color: var(--muted);
}

.pop-card .btn {
 margin-top: auto;
}

/* Мастер */

.master__grid {
 display: grid;
 grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
 gap: clamp(24px, 3.5vw, 56px);
 align-items: center;
}

.master__img {
 width: 100%;
 aspect-ratio: 4 / 5;
 border-radius: var(--radius-lg);
 object-fit: cover;
}

.master__name {
 margin: 0 0 8px;
 font-size: clamp(20px, 2vw, 26px);
 font-weight: 700;
 letter-spacing: -0.02em;
}

.master__exp {
 margin: 0;
 color: var(--muted);
}

.chips {
 display: flex;
 flex-wrap: wrap;
 gap: 8px;
 margin: 18px 0 0;
 padding: 0;
 list-style: none;
}

.chips li {
 padding: 8px 14px;
 border-radius: var(--pill);
 background: var(--accent-soft);
 color: var(--accent);
 font-size: 14px;
 font-weight: 600;
}

.master__actions {
 margin-top: 24px;
}

/* Адаптив блоков этапа 2 */

@media (max-width: 1024px) {
 .hero__grid,
 .about__grid,
 .master__grid {
 grid-template-columns: 1fr;
 }

 .hero__media,
 .about__media,
 .master__media {
 order: -1;
 }

 .hero__img {
 aspect-ratio: 16 / 10;
 }

 .about__img,
 .master__img {
 aspect-ratio: 16 / 10;
 }

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

@media (max-width: 640px) {
 .hero__meta,
 .features,
 .prices,
 .pop {
 grid-template-columns: 1fr;
 }

 .hero__img,
 .about__img,
 .master__img {
 aspect-ratio: 4 / 3;
 border-radius: var(--radius);
 }

 .hero__actions .btn {
 flex: 1 1 100%;
 }
}
