* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
}

button, input, textarea, select {
    font-family: inherit;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.form-error {
    margin-top: 12px;
    color: #a33b3b;
    font-size: 14px;
}

/* ==================== ШРИФТЫ ==================== */

@font-face {
    font-family: 'PlayfairDisplay';
    src: url('../fonts/PlayfairDisplay/PlayfairDisplay-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PlayfairDisplay';
    src: url('../fonts/PlayfairDisplay/PlayfairDisplay-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PlayfairDisplay';
    src: url('../fonts/PlayfairDisplay/PlayfairDisplay-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PlayfairDisplay';
    src: url('../fonts/PlayfairDisplay/PlayfairDisplay-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PlayfairDisplay';
    src: url('../fonts/PlayfairDisplay/PlayfairDisplay-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: Roboto;
    src: url('../fonts/Roboto/Roboto-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Inter;
    src: url('../fonts/Inter/Inter_18pt-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Inter;
    src: url('../fonts/Inter/Inter_18pt-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Inter;
    src: url('../fonts/Inter/Inter_18pt-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Inter;
    src: url('../fonts/Inter/Inter_28pt-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Prata;
    src: url('../fonts/Prata/Prata-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Libre_Bodoni;
    src: url('../fonts/Libre_Bodoni/LibreBodoni-VariableFont_wght.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Libre_Bodoni;
    src: url('../fonts/Libre_Bodoni/LibreBodoni-VariableFont_wght.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ==================== ПЕРЕМЕННЫЕ ==================== */

:root {
    --color-primary: #ffffff;
    --color-accent: #000000;
    --color-text-dark: #1a1a1a;
    --color-text-muted: #4a4a4a;
    --color-bg-light: #F0F0EF;
    --color-accent-warm: #B38456;
    --color-pink: #b98686;

    --font-main: 'PlayfairDisplay';
    --font-inter: Inter, sans-serif;
    --font-roboto: Roboto, sans-serif;
    --font-prata: Prata, sans-serif;
    --font-libre_bodoni: Libre_Bodoni, sans-serif;

    --section-padding-x: clamp(60px, 14vw, 280px);
    --section-padding-y: clamp(32px, 4vw, 72px);

    --content-max-width: 1300px;
}

.container {
    max-width: var(--content-max-width);
    margin: 0 auto;
}

/* Фон под страницей (оверскролл на телефонах): тёмный, как футер, вместо белого.
   Сам контент остаётся на белом фоне body. */
html {
    background-color: var(--color-text-dark);
}

body {
    font-family: var(--font-main);
    color: var(--color-primary);
    background-color: var(--color-primary);
}

/* ==================== HERO ==================== */

.hero {
    height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    justify-items: center;
    background-image: linear-gradient(rgba(0,0,0,0.70), rgba(0,0,0,0.70)), url('../images/backgrounds/hero_bg_1920x1080.jpg');
    background-size: cover;
    background-position: center;
    padding: clamp(24px, 4vw, 40px) 0 clamp(32px, 6vw, 60px);
    text-align: center;
}

.nav {
    grid-row: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--section-padding-x);
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.nav__logo img {
    width: clamp(62px, 5.5vw, 96px);
    height: auto;
    display: block;
}

.nav__logo,
.nav__phone {
    display: inline-block;
    will-change: transform;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav__logo:hover,
.nav__phone:hover {
    transform: scale(1.08);
}

.nav__contacts {
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.6vw, 24px);
}

.nav__socials {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav__socials a {
    display: inline-flex;
    color: var(--color-primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__socials a:hover {
    transform: translateY(-2px) scale(1.1);
    opacity: 0.72;
}

.nav__socials svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.nav__menu {
    display: flex;
    gap: clamp(15px, 1.8vw, 29px);
    list-style: none;
}

.nav__menu a {
    position: relative;
    display: inline-block;
    color: var(--color-primary);
    text-decoration: none;
    font-size: clamp(15px, 1.05vw, 19px);
    font-weight: 400;
    white-space: nowrap;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.nav__menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: center;
    will-change: transform;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav__menu a:hover::after {
    transform: scaleX(1);
}

.nav__phone {
    color: var(--color-primary);
    text-decoration: none;
    font-size: clamp(15px, 1.05vw, 19px);
    font-family: var(--font-libre_bodoni);
    font-weight: 700;
    white-space: nowrap;
}

.nav__phone-icon {
    display: none;
}

.nav__burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 101;
}

.nav__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__burger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__burger.is-open span:nth-child(2) {
    opacity: 0;
}

.nav__burger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero__title-group {
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 1.3vw, 11px);
    max-width: var(--content-max-width);
    padding: 0 var(--section-padding-x);
}

.hero__title {
    font-size: clamp(32px, 6vw, 67px);
    font-weight: 500;
    line-height: 1.1;
}

.hero__subtitle {
    font-size: clamp(12px, 1.4vw, 18px);
    font-weight: 400;
    letter-spacing: 1px;
}

.hero__button-group {
    grid-row: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(11px, 1.9vw, 16px);
    padding: 0 var(--section-padding-x);
    text-align: center;
}

.hero__button-text {
    font-size: clamp(14px, 1.2vw, 20px);
    font-weight: 400;
}

.hero__button {
    background: transparent;
    border: 1px solid var(--color-primary);
    border-radius: 5px;
    color: var(--color-primary);
    padding: clamp(6px, 0.6vw, 8px) clamp(14px, 1.4vw, 20px);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero__button:hover {
    transform: scale(1.08);
}

/* ==================== СЕКЦИЯ: "ВИДЕО О СТУДИИ" ==================== */

.video-presentation {
    background-color: var(--color-text-dark);
    padding: var(--section-padding-y) var(--section-padding-x);
}

.video-presentation__intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: clamp(24px, 3vw, 40px);
}

.video-presentation__label {
    align-self: flex-start;
    font-size: clamp(11px, 0.9vw, 14px);
    font-family: var(--font-inter);
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--color-bg-light);
}

.video-presentation__title {
    max-width: 680px;
    margin-left: auto;
    font-size: clamp(28px, 3.5vw, 52px);
    font-weight: 400;
    line-height: 1.15;
    color: var(--color-primary);
    text-align: right;
}

.video-presentation__title em {
    color: var(--color-pink);
    font-style: italic;
}

.video-presentation__preview {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-inline: auto;
    overflow: hidden;
    padding: 0;
    border: 0;
    background-color: #111;
    cursor: pointer;
    appearance: none;
}

.video-presentation__video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.video-presentation__preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 55%, rgba(0, 0, 0, 0.12));
    pointer-events: none;
}

.video-presentation__preview:hover .video-presentation__video,
.video-presentation__preview:focus-visible .video-presentation__video {
    transform: scale(1.025);
}

.video-presentation__play {
    position: absolute;
    z-index: 1;
    right: clamp(16px, 2vw, 28px);
    bottom: clamp(16px, 2vw, 28px);
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding-left: 3px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--color-primary);
    font-size: 13px;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.35s ease, transform 0.35s ease, background-color 0.35s ease;
}

.video-presentation__preview:hover .video-presentation__play,
.video-presentation__preview:focus-visible .video-presentation__play {
    opacity: 1;
    transform: scale(1);
}

.video-presentation__preview:hover .video-presentation__play {
    background-color: rgba(0, 0, 0, 0.42);
}

/* ==================== СЕКЦИЯ: "НАШ ПОДХОД" ==================== */

.approach {
    background-color: var(--color-bg-light);
    padding-top: clamp(20px, 2.5vw, 40px);
    padding-bottom: var(--section-padding-y);
    padding-left: var(--section-padding-x);
    padding-right: var(--section-padding-x);
}

.approach__intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: clamp(13px, 1.4vw, 19px);
    margin-bottom: clamp(26px, 3.2vw, 38px);
}

.approach__label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(16px, 3.2vw, 27px);
    font-size: clamp(10px, 0.85vw, 13px);
    font-family: var(--font-inter);
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 3px;
    color: var(--color-text-dark);
}

.approach__line {
    display: block;
    width: clamp(176px, 20.8vw, 272px);
    max-width: 100%;
    height: 1px;
    background-color: var(--color-accent-warm);
}

.approach__title {
    font-size: clamp(29px, 3.5vw, 51px);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-text-dark);
    text-align: left;
}

.approach__title-accent {
    font-style: italic;
    color: var(--color-accent-warm);
}

.approach__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2.4vw, 32px);
}

.approach__card {
    border: 1px solid var(--color-text-dark);
    border-radius: 8px;
    padding: clamp(24px, 4vw, 48px) clamp(16px, 2.5vw, 32px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.approach__card:hover {
    transform: scale(1.01);
}

.approach__icon {
    height: clamp(45px, 4vw, 64px);
    width: auto;
    display: block;
    margin-bottom: 19px;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.approach__card-title {
    font-size: clamp(14px, 1.1vw, 16px);
    font-weight: 700;
    font-family: var(--font-roboto);
    letter-spacing: 1px;
    margin-bottom: 13px;
    color: var(--color-text-dark);
}

.approach__card-text {
    font-size: clamp(13px, 1.1vw, 16px);
    font-family: var(--font-inter);
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-text-muted);
}

/* ==================== СЕКЦИЯ: "О СТУДИИ" ==================== */

.about {
    background-color: var(--color-text-dark);
    padding: var(--section-padding-y) var(--section-padding-x);
}

.about__inner {
    border: 1px solid var(--color-bg-light);
    padding: clamp(32px, 5vw, 80px) clamp(24px, 5vw, 100px);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(32px, 4vw, 64px);
}

.about__left {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2.4vw, 22px);
}

.about__label {
    display: flex;
    flex-direction: column;
    gap: clamp(3px, 0.6vw, 5px);
}

.about__label-small {
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--color-bg-light);
}

.about__label-bold {
    font-size: clamp(14px, 1.1vw, 16px);
    font-family: var(--font-inter);
    font-weight: 400;
    letter-spacing: 1px;
    color: #BE9393;
}

.about__title {
    font-size: clamp(26px, 2.9vw, 42px);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-bg-light);
}

.about__title em {
    font-style: italic;
    font-weight: 400;
    color: #BE9393;
}

.about__stat {
    display: flex;
    flex-direction: column;
    margin-top: 16px;
}

.about__stat-number {
    font-size: clamp(38px, 3.8vw, 58px);
    font-weight: 400;
    line-height: 1;
    color: #BE9393;
}

.about__stat-label {
    font-size: 12px;
    letter-spacing: 2px;
    color: #BE9393;
    margin-top: 6px;
}

.about__right {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2.4vw, 22px);
}

.about__text {
    font-size: clamp(14px, 1vw, 16px);
    font-family: var(--font-inter);
    font-weight: 300;
    line-height: 1.5;
    color: var(--color-bg-light);
}

.about__values {
    margin-top: 26px;
}

.about__values-label {
    display: block;
    font-size: 14px;
    font-family: var(--font-inter);
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--color-bg-light);
    margin-bottom: 16px;
}

.about__values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: clamp(14px, 2.4vw, 22px) clamp(22px, 4vw, 35px);
}

.about__values-col {
    list-style: none;
    border-top: 1px solid #d8d6d1;
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.3vw, 11px);
}

.about__values-col li {
    position: relative;
    padding-left: 16px;
    font-size: 14px;
    font-family: var(--font-inter);
    font-weight: 300;
    color: var(--color-bg-light);
}

.about__values-col li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 5px;
    height: 5px;
    background-color: #BE9393;
}

/* ==================== СЕКЦИЯ: "ПРОЦЕСС" ==================== */

.process {
    background-color: var(--color-primary);
    padding: var(--section-padding-y) var(--section-padding-x);
}

.process__intro {
    margin-bottom: clamp(26px, 3vw, 48px);
}

.process__label {
    display: block;
    font-size: clamp(11px, 0.9vw, 14px);
    letter-spacing: 2px;
    color: var(--color-text-muted);
    margin-bottom: 13px;
}

.process__title {
    font-size: clamp(25px, 3vw, 48px);
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-text-dark);
}

.process__title em {
    font-style: italic;
    color: var(--color-accent-warm);
}

.process__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background-color: #8a8578;
    border: 1px solid #8a8578;
}

.process__step {
    padding: clamp(20px, 2.25vw, 36px);
    background-color: var(--color-text-dark);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    box-sizing: border-box;
}

.process__number,
.process__step-title,
.process__step-text {
    margin-top: 0; 
}

.process__number {
    display: block;
    font-style: italic;
    font-size: clamp(22px, 2.4vw, 38px);
    color: var(--color-accent-warm);
    margin-bottom: clamp(10px, 1vw, 16px);
}

.process__step-title {
    font-size: clamp(16px, 1.8vw, 29px);
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: clamp(8px, 0.8vw, 13px);
}

.process__step-text {
    font-size: clamp(13px, 1vw, 16px);
    font-family: var(--font-inter);
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-bg-light);
    margin-bottom: 0;
}

/* ==================== СЕКЦИЯ: "CTA" ==================== */

.cta {
    background-color: var(--color-bg-light);
    padding: var(--section-padding-y) var(--section-padding-x);
}

.cta__inner {
    display: flex;
    flex-direction: column;
    gap: clamp(13px, 2.1vw, 19px);
}

.cta__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(19px, 3.2vw, 48px);
    flex-wrap: wrap;
}

.cta__left {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2.4vw, 22px);
    flex: 1;
    min-width: 208px;
}

.cta__label {
    font-size: clamp(11px, 0.9vw, 12px);
    font-family: var(--font-inter);
    font-weight: 300;
    letter-spacing: 4px;
    color: var(--color-text-muted);
}

.cta__title {
    font-size: clamp(29px, 3.3vw, 48px);
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-accent);
    text-wrap: balance;
}

.cta__line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-accent);
}

.cta__button {
    flex-shrink: 0;
    background-color: var(--color-pink);
    color: var(--color-text-dark);
    text-decoration: none;
    font-size: clamp(11.9px, 2.975vw, 13.6px);
    font-weight: 400;
    letter-spacing: 0.5px;
    padding: clamp(8.5px, 2.55vw, 20.4px) clamp(15.3px, 4.25vw, 34px);
    border-radius: 4.25px;
    white-space: nowrap;
    box-shadow: 3.4px 3.4px 8.5px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cta__button:hover {
    transform: scale(1.05);
}

/* ==================== СЕКЦИЯ: "ПОРТФОЛИО" ==================== */

.portfolio {
    background-color: var(--color-text-dark);
    padding: var(--section-padding-y) var(--section-padding-x);
}

.portfolio__intro {
    margin-bottom: 32px;
}

.portfolio__label {
    display: block;
    font-size: clamp(11px, 0.9vw, 14px);
    letter-spacing: 2px;
    color: var(--color-bg-light);
    margin-bottom: 13px;
}

.portfolio__title {
    font-size: clamp(26px, 2.9vw, 46px);
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--color-primary);
}

.portfolio__title span {
    color: var(--color-pink);
}

.mobile-break { display: none; }

@media (max-width: 480px) {
    .mobile-break { display: inline; }
}

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
    scroll-behavior: smooth;
}

.portfolio__item {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
    border: none;
    outline: none;
    box-shadow: none;
    padding: 0;
    background-color: transparent;
    appearance: none;
    -webkit-appearance: none;
    transition: transform 0.35s ease;
}

.portfolio__item:hover {
    transform: scale(1.03);
}

.portfolio__item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.90) 0%, rgba(0, 0, 0, 0) 55%);
}

.portfolio__item-title {
    position: absolute;
    left: 19px;
    bottom: 19px;
    z-index: 1;
    color: var(--color-primary);
    font-family: var(--font-inter);
    font-size: clamp(14px, 1vw, 16px);
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ==================== СЕКЦИЯ: "ВИРТУАЛЬНЫЙ ТУР" ==================== */

.virtual-tour {
    background-color: var(--color-text-dark);
    padding: var(--section-padding-y) var(--section-padding-x);
}

.virtual-tour__intro {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    column-gap: clamp(24px, 5vw, 80px);
    align-items: end;
    margin-bottom: clamp(24px, 3vw, 40px);
}

.virtual-tour__label {
    align-self: start;
    font-size: clamp(11px, 0.9vw, 14px);
    font-family: var(--font-inter);
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--color-bg-light);
}

.virtual-tour__title {
    font-size: clamp(28px, 3.5vw, 52px);
    font-weight: 400;
    line-height: 1.15;
    color: var(--color-primary);
}

.virtual-tour__title em {
    color: var(--color-accent-warm);
    font-style: italic;
}

.virtual-tour__text {
    grid-column: 2;
    max-width: 440px;
    margin-top: 22px;
    font-family: var(--font-inter);
    font-size: clamp(13px, 1vw, 16px);
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-bg-light);
}

.virtual-tour__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #1a1a1a;
    box-shadow: 0 18px 40px rgba(26, 26, 26, 0.16);
}

.virtual-tour__frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .virtual-tour__intro {
        display: block;
    }

    .virtual-tour__label {
        display: block;
        margin-bottom: 18px;
    }

    .virtual-tour__text {
        margin-top: 18px;
    }

    .virtual-tour__frame {
        aspect-ratio: 4 / 5;
    }
}

/* ==================== ЛАЙТБОКС ПОРТФОЛИО ==================== */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.92);
    padding: 24px;
}

.lightbox.is-open {
    display: flex;
}

.lightbox__stage {
    position: relative;
    max-width: 1100px;
    max-height: 85vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    display: block;
}

.lightbox__counter {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-primary);
    font-family: var(--font-inter);
    font-size: 13px;
    letter-spacing: 1px;
}

.lightbox__close {
    position: absolute;
    inset-block-start: clamp(12px, 1.6vw, 20px);
    inset-inline-end: clamp(12px, 1.6vw, 20px);
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--color-primary);
    font-size: 0;
    cursor: pointer;
    z-index: 2;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.lightbox__close::before,
.lightbox__close::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 1.5px;
    border-radius: 1px;
    background-color: currentColor;
}

.lightbox__close::before {
    transform: rotate(45deg);
}

.lightbox__close::after {
    transform: rotate(-45deg);
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
    background-color: rgba(255, 255, 255, 0.16);
}

.lightbox__close:active {
    transform: scale(0.94);
}

.lightbox__close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.lightbox__nav {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    padding: 0 16px;
    flex-shrink: 0;
}

.lightbox__nav--prev {
    order: -1;
}

/* ==================== ЛАЙТБОКС ВИДЕО ==================== */

.video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 310;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(18px, 4vw, 48px);
    background-color: rgba(0, 0, 0, 0.92);
}

.video-lightbox.is-open {
    display: flex;
}

.video-lightbox__stage {
    width: min(1200px, 100%);
}

.video-lightbox__player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    max-height: 85vh;
    background-color: #000;
}

.video-lightbox__close {
    position: absolute;
    inset-block-start: clamp(12px, 1.6vw, 20px);
    inset-inline-end: clamp(12px, 1.6vw, 20px);
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--color-primary);
    font-size: 0;
    cursor: pointer;
    z-index: 2;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.video-lightbox__close:hover,
.video-lightbox__close:focus-visible {
    background-color: rgba(255, 255, 255, 0.16);
}

@media (max-width: 768px) {
    .lightbox__nav {
        display: none;
    }

    .video-presentation__intro {
        display: block;
    }

    .video-presentation__label {
        display: block;
        margin-bottom: 18px;
    }

    .video-presentation__title {
        text-align: left;
    }

    .video-presentation__preview {
        width: min(100%, 42vh);
        aspect-ratio: 9 / 16;
    }

    .video-presentation__video {
        position: absolute;
        top: 0;
        left: 50%;
        width: 316%;
        height: 100%;
        transform: translateX(-50%);
    }

    .video-presentation__preview:hover .video-presentation__video,
    .video-presentation__preview:focus-visible .video-presentation__video {
        transform: translateX(-50%) scale(1.025);
    }

    .video-presentation__play {
        opacity: 0.9;
        transform: scale(1);
    }

    .video-lightbox__stage {
        width: min(100%, 90vw, 151.1vh);
    }
}

/* ==================== СЕКЦИЯ: "ЗНАЕМ БРЕНДЫ" ==================== */

.weknowbrands {
    background-color: #D2CDC7;
    padding: clamp(32px, 4vw, 60px) var(--section-padding-x);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.weknowbrands__text {
    font-family: var(--font-inter);
    font-size: clamp(13px, 1vw, 16px);
    color: var(--color-accent);
    font-weight: 300;
}

/* ==================== СЕКЦИЯ: "ПАРТНЁРЫ" ==================== */

.partners {
    background-color: #1a1a1a;
    padding: clamp(32px, 4vw, 60px) var(--section-padding-x);
}

.partners__grid {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(14px, 2.4vw, 22px);
    overflow-x: auto;
    scroll-behavior: smooth;
    flex-wrap: nowrap;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;

    scrollbar-width: none;
    -ms-overflow-style: none;
}

.partners__grid.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.partners__grid::-webkit-scrollbar {
    display: none;
}

.partners__item {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .partners__grid {
        justify-content: flex-start;
        scroll-snap-type: x mandatory;
        padding-right: calc(50% - 32px);
        cursor: auto;
    }

    .partners__item {
        scroll-snap-align: center;
    }
}

.partners__item img {
    width: auto;
    height: clamp(44px, 5vw, 77px);
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

/* ==================== СЕКЦИЯ: "ПАКЕТЫ УСЛУГ" ==================== */

.pricing {
    background-color: #F5F1EC;
    padding: var(--section-padding-y) var(--section-padding-x);
}

.pricing__intro {
    text-align: center;
    margin-bottom: clamp(38px, 4vw, 64px);
}

.pricing__title {
    font-size: clamp(26px, 2.9vw, 46px);
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 10px;
}

.pricing__subtitle {
    font-size: clamp(12px, 0.4vw + 10.5px, 14px);
    font-weight: 400;
    font-style: italic;
    font-family: var(--font-inter);
    color: var(--color-text-dark);
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(14px, 2.4vw, 22px);
}

.pricing__card {
    border: 1px solid var(--color-text-dark);
    border-radius: 4px;
    padding: clamp(32px, 4vw, 48px) 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pricing__card-title {
    font-size: clamp(16.8px, 1.56vw, 22.8px);
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 13px;
}

.pricing__line {
    display: block;
    width: 128px;
    max-width: 100%;
    height: 1px;
    background-color: var(--color-text-dark);
    margin-bottom: 26px;
}

.pricing__features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: clamp(13px, 2.1vw, 19px);
    margin-bottom: 26px;
    flex-grow: 1;
}

.pricing__features li {
    font-size: 14px;
    font-family: var(--font-inter);
    font-weight: 300;
    color: var(--color-text-dark);
}

.pricing__features li.is-disabled {
    color: #c4c1ba;
}

.pricing__button {
    display: inline-block;
    border: 1px solid var(--color-text-dark);
    border-radius: 4px;
    background-color: transparent;
    color: var(--color-text-dark);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1px;
    padding: 8px 32px;
    font-family: var(--font-inter);
    font-weight: 300;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.pricing__button:hover {
    background-color: var(--color-text-dark);
    color: var(--color-primary);
}

/* ==================== ПОДВАЛ ==================== */

.footer {
    background-color: var(--color-text-dark);
    color: var(--color-bg-light);
    padding-top: var(--section-padding-y);
    padding-bottom: clamp(24px, 3vw, 40px);
    padding-left: var(--section-padding-x);
    padding-right: var(--section-padding-x);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__container {
    padding-left: 0;
    padding-right: 0;
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1fr;
    gap: clamp(26px, 4vw, 64px);
    padding-bottom: clamp(32px, 4vw, 48px);
}

.footer__col {
    display: flex;
    flex-direction: column;
}

.footer__title {
    font-family: var(--font-main);
    font-size: clamp(16px, 0.4vw + 11.5px, 18px);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: clamp(13px, 1.6vw, 19px);
}

.footer__text {
    font-family: var(--font-inter);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-bg-light);
    margin-bottom: 19px;
    max-width: 336px;
}

.footer__socials {
    display: flex;
    align-items: center;
    gap: clamp(11px, 1.6vw, 14px);
    margin-top: auto;
}

.footer__socials a {
    color: var(--color-bg-light);
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer__social-icon {
    width: 38px;
    height: 38px;
}

.footer__socials a:hover {
    color: #BE9393;
    transform: translateY(-2px);
}

.footer__contact-list,
.footer__nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.4vw, 13px);
}

.footer__contact-list li {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.3vw, 11px);
    font-family: var(--font-inter);
    font-size: 14px;
    font-weight: 300;
    color: var(--color-bg-light);
}

.footer__contact-list svg {
    flex-shrink: 0;
    color: #BE9393;
}

.footer__contact-list a {
    color: var(--color-bg-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__contact-list a:hover {
    color: #BE9393;
}

.footer__nav-list a {
    font-family: var(--font-inter);
    font-size: 14px;
    font-weight: 300;
    color: var(--color-bg-light);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer__nav-list a:hover {
    color: #BE9393;
    padding-left: 4px;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__copyright {
    font-family: var(--font-inter);
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 1px;
    color: #8a8578;
}

@media (max-width: 1024px) {
    .footer__content {
        grid-template-columns: 1fr 1fr;
    }

    .footer__col--about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .footer__content {
        grid-template-columns: 1fr;
        gap: clamp(38px, 6.4vw, 58px);
        text-align: center;
    }

    .footer__col {
        align-items: center;
    }

    .footer__text {
        margin-left: auto;
        margin-right: auto;
    }

    .footer__contact-list li {
        justify-content: center;
    }

    .footer__socials {
        justify-content: center;
        margin-top: 8px;
    }

    .footer__nav-list a:hover {
        padding-left: 0;
    }

    .footer__bottom {
        text-align: center;
        justify-content: center;
    }
}

/* ==================== АДАПТИВНОСТЬ ==================== */

@media (max-width: 1024px) {
    .about__inner {
        grid-template-columns: 1fr;
    }

    .approach__cards,
    .process__grid,
    .portfolio__grid,
    .pricing__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding-x: clamp(45px, 9vw, 136px);
        --section-padding-y: clamp(24px, 3vw, 56px);
    }

    .hero {
        padding-top: clamp(32px, 7vw, 48px);
    }

    .nav__burger {
        display: flex;
    }

    .nav__contacts {
        gap: 12px;
    }

    .nav__socials {
        display: flex;
        order: 2;
        gap: 12px;
    }

    .nav__phone {
        order: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0;
    }

    .nav__phone-number {
        display: none !important;
    }

    .nav__phone-icon {
        display: block;
        width: 24px;
        height: 24px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .nav__menu {
        position: fixed;
        inset: 0;
        height: 100vh;
        width: 100%;
        background-color: var(--color-text-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: clamp(19px, 4.8vw, 29px);
        padding: 100px 32px 60px;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        z-index: 100;
    }

    .nav__menu a {
        color: var(--color-primary) !important;
        font-size: clamp(17px, 4.2vw, 22px);
        text-align: center;
    }

    .nav__menu.is-open {
        transform: translateX(0);
    }

    .approach__cards,
    .process__grid,
    .portfolio__grid,
    .pricing__grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: clamp(14px, 2.4vw, 22px);
        overflow-x: visible;
        scroll-snap-type: none;
        padding-left: 0;
        padding-right: 0;
    }

    .approach__card,
    .process__step,
    .portfolio__item,
    .pricing__card {
        scroll-snap-align: none;
        flex: none;
        width: 100%;
    }

    .process__step {
        min-height: 256px;
        justify-content: flex-start;
    }

    .portfolio__grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: clamp(8px, 1.3vw, 11px);
    }

    .process__grid {
        background-color: transparent;
        border: none;
    }

    .approach__line {
        width: clamp(144px, 48vw, 224px);
    }

    .cta__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer {
        flex-direction: column;
        gap: clamp(8px, 1.3vw, 11px);
        text-align: center;
    }
}

@media (max-width: 768px) {
    .cta__label {
        display: none;
    }
}

/* ==================== МОДАЛКА: "ПОЛУЧИТЬ КОНСУЛЬТАЦИЮ" ==================== */

.modal {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.is-open {
    display: flex;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
}

.modal__dialog {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    background-color: var(--color-primary);
    border-radius: 0;
    padding: clamp(32px, 4vw, 48px);
}

.modal__close {
    position: absolute;
    inset-block-start: 12px;
    inset-inline-end: 12px;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--color-text-dark);
    font-size: 0;
    cursor: pointer;
    z-index: 2;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.modal__close::before,
.modal__close::after,
.quiz-modal__close::before,
.quiz-modal__close::after,
.video-lightbox__close::before,
.video-lightbox__close::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 1.5px;
    border-radius: 1px;
    background-color: currentColor;
}

.modal__close::before,
.quiz-modal__close::before,
.video-lightbox__close::before {
    transform: rotate(45deg);
}

.modal__close::after,
.quiz-modal__close::after,
.video-lightbox__close::after {
    transform: rotate(-45deg);
}

.modal__close:hover,
.modal__close:focus-visible,
.quiz-modal__close:hover,
.quiz-modal__close:focus-visible {
    background-color: rgba(26, 26, 26, 0.08);
}

.modal__close:active,
.quiz-modal__close:active,
.video-lightbox__close:active {
    transform: scale(0.94);
}

.modal__close:focus-visible,
.quiz-modal__close:focus-visible,
.video-lightbox__close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.modal__form {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2.4vw, 22px);
}

.modal__field {
    display: flex;
    flex-direction: column;
    gap: clamp(5px, 1vw, 8px);
}

.modal__field label {
    font-family: var(--font-inter);
    font-size: 14px;
    color: var(--color-text-dark);
}

.modal__field input,
.modal__field select {
    border: 1px solid var(--color-pink);
    border-radius: 0;
    padding: 14px 16px;
    font-family: var(--font-inter);
    font-size: 16px;
    color: var(--color-text-dark);
    background-color: transparent;
    outline: none;
}

.modal__field input::placeholder {
    color: #b3b0aa;
}

.modal__field input:focus,
.modal__field select:focus {
    border-color: var(--color-pink);
}

.modal__field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M1 1L8 8L15 1' stroke='%231a1a1a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

.modal__checkbox {
    display: flex;
    align-items: flex-start;
    gap: clamp(8px, 1.3vw, 11px);
    font-family: var(--font-inter);
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text-dark);
    cursor: pointer;
}

.modal__checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 3px;
    accent-color: var(--color-pink);
    cursor: pointer;
}

.modal__checkbox a {
    color: var(--color-text-dark);
    text-decoration: underline;
}

.modal__submit {
    background-color: var(--color-pink);
    color: var(--color-primary);
    border: none;
    border-radius: 0;
    padding: 18px;
    font-family: var(--font-inter);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: filter 0.3s ease;
}

.modal__submit:hover {
    filter: brightness(0.85);
}

.modal__success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: clamp(8px, 1.3vw, 11px);
    padding: 24px 0;
}

.modal__success.is-visible {
    display: flex;
}

.modal__success-icon {
    width: 38px;
    height: 38px;
    border: 2px solid var(--color-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--color-pink);
    margin-bottom: 6px;
}

.modal__success-title {
    font-family: var(--font-main);
    font-size: 18px;
    color: var(--color-text-dark);
}

.modal__success-text {
    font-family: var(--font-inter);
    font-size: 14px;
    color: var(--color-text-muted);
}

/* ==================== КВИЗ "РАССЧИТАТЬ СТОИМОСТЬ" ==================== */

.quiz-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}

.quiz-modal.is-open {
    opacity: 1; pointer-events: auto;
}

.quiz-modal__overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
}

.quiz-modal__content {
    position: relative;
    background: var(--color-primary);
    width: 100%; max-width: 850px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 0;
    padding: clamp(32px, 4vw, 48px);
    color: var(--color-text-dark);
    z-index: 1;
}

.quiz-option,
.quiz-card__content,
.quiz-field input,
.quiz-btn {
    border-radius: 0;
}

.quiz-modal__close {
    position: absolute;
    inset-block-start: 12px;
    inset-inline-end: 12px;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--color-text-dark);
    font-size: 0;
    cursor: pointer;
    z-index: 2;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.quiz-modal__subtitle {
    font-family: var(--font-inter);
    font-size: 14px;
    color: var(--color-text-muted);
}

.quiz-step { display: none; margin-top: 16px; }
.quiz-step.active { display: block; }

.quiz-step__title {
    font-family: var(--font-main);
    font-size: clamp(19px, 5vw, 29px);
    font-weight: 500;
    margin-bottom: 19px; color: var(--color-text-dark);
}

.quiz-step__body--with-img {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(14px, 2.4vw, 22px); align-items: start;
}

.quiz-step__media img {
    width: 100%;
    aspect-ratio: 16 / 9; /* пропорция Full HD вместо фиксированной высоты 208px */
    height: auto;
    object-fit: cover;
}

.quiz-options { display: flex; flex-direction: column; gap: clamp(8px, 1.3vw, 11px); }
.quiz-options--grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1.3vw, 11px); }

.quiz-option {
    display: flex; align-items: center; gap: clamp(8px, 1.3vw, 11px);
    padding: 14px 16px;
    border: 1px solid var(--color-pink);
    cursor: pointer;
    font-family: var(--font-inter);
    transition: all 0.2s ease;
}

.quiz-option input { display: none; }

.quiz-option__control {
    width: 14px; height: 14px;
    border: 2px solid var(--color-pink); border-radius: 50%;
    transition: all 0.2s; flex-shrink: 0;
}

.quiz-option input:checked + .quiz-option__control {
    border-color: var(--color-pink);
    background-color: var(--color-pink);
    box-shadow: inset 0 0 0 3px var(--color-primary);
}

/* Выделение выбранного варианта — заливка сделана заметнее (было 0.06),
   плюс тонкая обводка через box-shadow, не влияющая на размер блока */
.quiz-option:has(input:checked) {
    border-color: var(--color-pink);
    background-color: rgba(185, 134, 134, 0.18);
    box-shadow: 0 0 0 1px var(--color-pink);
}

.quiz-option__text {
    font-size: 14px;
    color: var(--color-text-dark);
}

.quiz-cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(11px, 1.6vw, 14px); }

.quiz-card input { display: none; }

.quiz-card__content {
    border: 1px solid var(--color-pink);
    overflow: hidden;
    cursor: pointer; text-align: center;
    padding-bottom: 12px; transition: all 0.2s;
    font-family: var(--font-inter);
    font-size: 14px;
    color: var(--color-text-dark);
}

.quiz-card__content img {
    width: 100%;
    aspect-ratio: 16 / 9; /* пропорция Full HD */
    height: auto;
    object-fit: cover;
    margin-bottom: 8px;
}

/* Тот же принцип усиленного выделения, что и у .quiz-option */
.quiz-card input:checked + .quiz-card__content {
    border-color: var(--color-pink);
    background-color: rgba(185, 134, 134, 0.18);
    box-shadow: 0 0 0 1px var(--color-pink);
}

.quiz-final { text-align: center; max-width: 336px; margin: 0 auto; }

.quiz-final__title {
    font-family: var(--font-main);
    font-size: clamp(19px, 5vw, 29px);
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--color-text-dark);
}

.quiz-final__subtitle {
    font-family: var(--font-inter);
    font-size: 14px; color: var(--color-text-muted);
    margin-bottom: 16px;
}

.quiz-final__fields { display: flex; flex-direction: column; gap: clamp(10px, 1.4vw, 13px); text-align: left; }

.quiz-field label {
    font-family: var(--font-inter);
    font-size: 14px;
    color: var(--color-text-dark);
    display: block; margin-bottom: 8px;
}

.quiz-field input {
    width: 100%;
    border: 1px solid var(--color-pink);
    padding: 14px 16px;
    font-family: var(--font-inter);
    font-size: 16px;
    color: var(--color-text-dark);
    background-color: transparent;
    outline: none;
}

.quiz-field input::placeholder {
    color: #b3b0aa;
}

.quiz-field input:focus { border-color: var(--color-pink); }

.quiz-checkbox {
    display: flex;
    align-items: flex-start;
    gap: clamp(8px, 1.3vw, 11px);
    font-family: var(--font-inter);
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text-dark);
    cursor: pointer;
    margin-top: 12px;
}

.quiz-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 3px;
    accent-color: var(--color-pink);
    cursor: pointer;
}

.quiz-checkbox a {
    color: var(--color-text-dark);
    text-decoration: underline;
}

.quiz-modal__footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 26px; padding-top: 20px;
    border-top: 1px solid #e5e0da;
}

.quiz-progress { flex: 1; max-width: 300px; }

.quiz-progress__label {
    font-family: var(--font-inter);
    font-size: 12px; color: var(--color-text-muted);
}

.quiz-progress__bar {
    width: 100%; height: 3px; background: #ede8e2;
    margin-top: 4px; overflow: hidden;
}

.quiz-progress__fill {
    height: 100%; width: 0%;
    background-color: var(--color-pink);
    transition: width 0.3s ease;
}

.quiz-actions { display: flex; gap: clamp(6px, 1.1vw, 10px); }

.quiz-btn {
    padding: 14px 28px;
    font-family: var(--font-inter);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer; border: none; transition: filter 0.3s ease;
}

.quiz-btn--prev {
    background: transparent;
    color: var(--color-text-dark);
    border: 1px solid var(--color-pink);
}
.quiz-btn--prev:hover { filter: brightness(0.95); }

.quiz-btn--next, .quiz-btn--submit {
    background: var(--color-pink);
    color: var(--color-primary);
}
.quiz-btn--next:hover, .quiz-btn--submit:hover {
    filter: brightness(0.85);
}

.quiz-btn:disabled {
    opacity: 0.4; cursor: not-allowed;
}

@media (max-width: 640px) {
    .quiz-step__body--with-img { grid-template-columns: 1fr; }
    .quiz-step__media { display: none; }
    .quiz-options--grid, .quiz-cards { grid-template-columns: 1fr; }
}

/* ==================== ЭКРАН УСПЕХА КВИЗА ==================== */

.quiz-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: clamp(8px, 1.3vw, 11px);
    padding: 24px 0;
}

.quiz-success.is-visible {
    display: flex;
}

.quiz-success__icon {
    width: 38px;
    height: 38px;
    border: 2px solid var(--color-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--color-pink);
    margin-bottom: 6px;
}

.quiz-success__title {
    font-family: var(--font-main);
    font-size: 18px;
    color: var(--color-text-dark);
}

.quiz-success__text {
    font-family: var(--font-inter);
    font-size: 14px;
    color: var(--color-text-muted);
}