/* SAAP Store — стили сайта по дизайну design_handoff_saapstore_site (значения взяты из макета). */

html, body { margin: 0; background: #FFFFFF; color: #1A1513; font-family: 'Onest', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
a { color: #1A1513; text-decoration: none; }
a:hover { color: #F05A28; }
button, input { font-family: inherit; }
input::placeholder { color: #8E857D; }
[hidden] { display: none !important; }

.page { min-height: 100vh; display: flex; flex-direction: column; background: #FFFFFF; }
main { flex: 1; }
.container { max-width: 1280px; margin: 0 auto; padding-left: clamp(16px, 4vw, 32px); padding-right: clamp(16px, 4vw, 32px); width: 100%; }
.arrow { flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.dot { flex: none; border-radius: 50%; }

/* ---------- шапка ---------- */
.header { border-bottom: 1px solid #EEEAE4; background: #FFFFFF; }
.header__inner { padding-top: 16px; padding-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; cursor: pointer; }
.logo__mark { transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.logo:hover .logo__mark { transform: rotate(-12deg) scale(1.08); }
.logo__mark { width: 40px; height: 40px; border-radius: 50%; background: #F05A28; color: #1A1513; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; line-height: 1; }
.logo--footer .logo__mark { width: 44px; height: 44px; font-size: 24px; }
.nav { position: relative; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav__link { position: relative; z-index: 1; padding: 10px 16px; border-radius: 999px; font-size: 15px; font-weight: 500; color: #4A433D; transition: color .2s, background-color .25s, transform .15s; }
.nav__link:hover { color: #F05A28; background: #FAF8F5; }
.nav__link:active { transform: scale(.95); }
.nav__link.is-active { background: #F5F2EE; color: #1A1513; }
/* серая «таблетка» под открытым разделом: скрипт двигает её от прошлого пункта к новому */
.nav__glider { position: absolute; z-index: 0; top: 0; left: 0; width: 0; height: 0; border-radius: 999px; background: #F5F2EE; opacity: 0; pointer-events: none; }
.nav--js .nav__link.is-active { background: transparent; }
.nav--js .nav__glider { opacity: 1; }
.nav--js .nav__glider.is-moving { transition: transform .45s cubic-bezier(.3, 1.3, .5, 1), width .45s cubic-bezier(.3, 1.3, .5, 1); }
.nav__bot { display: inline-flex; align-items: center; gap: 10px; padding: 6px 6px 6px 18px; border-radius: 999px; background: #F05A28; color: #1A1513; font-size: 15px; font-weight: 600; transition: background .2s, transform .15s, box-shadow .2s; }
.nav__bot:hover { box-shadow: 0 6px 18px rgba(240, 90, 40, .35); }
.nav__bot:hover { background: #FF6A38; color: #1A1513; }
.nav__bot .arrow { width: 30px; height: 30px; background: #1A1513; color: #FFFFFF; font-size: 14px; }

/* ---------- экраны ---------- */
.screen { padding-top: 28px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 24px; }
.screen--product { padding-top: 24px; gap: 16px; }
.eyebrow { font-size: 15px; font-weight: 500; color: #B23D14; }

/* ---------- главная: баннер ---------- */
.banner { background: #FCE9DF; border-radius: 28px; padding: clamp(28px, 4vw, 44px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.banner__text { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.banner__title { margin: 0; font-size: clamp(44px, 6vw, 76px); line-height: 0.95; font-weight: 600; letter-spacing: -0.045em; color: #1A1513; }
.banner--compact { padding: clamp(20px, 3vw, 32px); }
.banner--compact .banner__title { font-size: clamp(36px, 5vw, 60px); }
.banner__subtitle { margin: 0; font-size: 17px; line-height: 1.45; color: #4A3A32; text-wrap: pretty; }
.banner__subtitle a { color: #B23D14; text-decoration: underline; }
.banner__count { padding: 10px 16px; border-radius: 999px; background: #FFFFFF; font-size: 15px; font-weight: 500; color: #1A1513; }
.banner__count--btn { border: none; cursor: pointer; display: inline-block; }
.banner__count--btn:hover { color: #F05A28; }

/* ---------- главная: карточки ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { cursor: pointer; display: flex; flex-direction: column; gap: 16px; padding: 10px 10px 18px; background: #F5F2EE; border: 1px solid #F5F2EE; border-radius: 24px; color: #1A1513; transition: border-color .2s, transform .2s, background .2s; }
.card:hover { border-color: #E2DCD4; background: #FFFFFF; transform: translateY(-3px); color: #1A1513; }
.photo { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 16px; object-fit: cover; background: #ECE7E1; }
.photo--hero { border-radius: 20px; background: #F7DCCE; }
.card.is-out .photo, .card.is-out .tile { opacity: 0.45; }
.card__body { padding: 0 8px; display: flex; flex-direction: column; gap: 12px; }
.card__name { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: #1A1513; }
.card__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.months { padding: 6px 12px; border-radius: 999px; background: #FFFFFF; font-size: 13px; font-weight: 500; color: #4A433D; }

/* плитка вместо фото: оранжевая / тёмная / белая */
.tile { aspect-ratio: 1 / 1; border-radius: 16px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; }
.tile__top { display: flex; flex-direction: column; gap: 10px; }
.tile__num { font-size: 14px; font-weight: 600; }
.tile__name { font-size: clamp(26px, 2.4vw, 34px); font-weight: 600; letter-spacing: -0.035em; line-height: 1; overflow-wrap: anywhere; }
.tile__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.tile__tariffs { font-size: 14px; font-weight: 500; line-height: 1.3; }
.tile .arrow { width: 36px; height: 36px; font-size: 15px; }
.tile--0 { background: #F05A28; color: #1A1513; }
.tile--0 .tile__num { color: #1A1513; }
.tile--0 .arrow { background: #1A1513; color: #FFFFFF; }
.tile--1 { background: #1A1513; color: #F3EFE8; }
.tile--1 .tile__num { color: #F05A28; }
.tile--1 .arrow { background: #F05A28; color: #1A1513; }
.tile--2 { background: #FFFFFF; color: #1A1513; }
.tile--2 .tile__num { color: #F05A28; }
.tile--2 .arrow { background: #1A1513; color: #FFFFFF; }
.tile--hero { border-radius: 20px; padding: clamp(20px, 2.5vw, 28px); }
.tile--hero .tile__top { gap: 12px; }
.tile--hero .tile__num { font-size: 16px; }
.tile--hero .tile__name { font-size: clamp(40px, 4.5vw, 60px); letter-spacing: -0.04em; line-height: 0.95; }
.tile--hero .tile__tariffs { font-size: 16px; }

/* статус наличия */
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; }
.status .dot { width: 7px; height: 7px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid #F3CDBB; font-size: 14px; font-weight: 600; }
.status-pill .dot { width: 8px; height: 8px; }
.status--in { color: #1A1513; }
.status--in .dot { background: #2F9E5B; }
.status--out { color: #6E655E; }
.status--out .dot { background: #B5ADA5; }
.status--wait { color: #1A1513; }
.status--wait .dot { background: #E09A1A; }

.empty { padding: 40px 24px; border-radius: 24px; background: #F5F2EE; font-size: 17px; line-height: 1.5; color: #4A433D; text-align: center; }
.empty a { color: #F05A28; font-weight: 600; }

/* ---------- страница товара ---------- */
.crumbs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; color: #8E857D; }
.crumbs a { color: #4A433D; font-weight: 500; }
.crumbs a:hover { color: #F05A28; }
.crumbs__current { color: #1A1513; }

.hero { background: #FCE9DF; border-radius: 28px; padding: clamp(14px, 2vw, 22px); display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 40px); }
.hero__media { flex: 1 1 300px; max-width: 440px; min-width: 240px; }
.hero__info { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 26px; padding: clamp(4px, 1.5vw, 20px) 4px; }
.hero__titles { display: flex; flex-direction: column; gap: 12px; }
.hero__title { margin: 0; font-size: clamp(40px, 5vw, 64px); line-height: 0.95; font-weight: 600; letter-spacing: -0.045em; color: #1A1513; overflow-wrap: anywhere; }
.hero__title--order { font-size: clamp(36px, 4.5vw, 56px); }
.hero__status { display: flex; }
.hero--order { padding: clamp(28px, 4vw, 44px); }
.hero--order .hero__info { padding: 0; }
.perks { display: flex; flex-wrap: wrap; gap: 8px; }
.perk { display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 999px; background: #FFFFFF; font-size: 15px; font-weight: 500; color: #1A1513; }
.perk::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #F05A28; }

/* «Подробнее о товаре» */
.details { background: #F5F2EE; border-radius: 24px; overflow: hidden; }
.details__head { width: 100%; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 20px 20px 24px; border: none; background: transparent; color: #1A1513; text-align: left; font: inherit; }
.details__head:hover { background: #F0ECE7; }
.details__title { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.details__right { display: flex; align-items: center; gap: 14px; }
.details__hint { font-size: 14px; color: #6E655E; }
.details__icon { width: 38px; height: 38px; border-radius: 50%; background: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 500; color: #1A1513; flex: none; }
.details__body { padding: 0 12px 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.info-card { background: #FFFFFF; border-radius: 18px; padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.info-card__title { font-size: 17px; font-weight: 600; }
.info-item { display: flex; gap: 12px; font-size: 15px; line-height: 1.5; color: #3A332E; }
.info-item__num { flex: none; width: 24px; font-weight: 600; color: #F05A28; }

/* опции */
.buy-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.options { flex: 1 1 440px; min-width: 0; background: #F5F2EE; border-radius: 28px; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.options--wide { flex: none; width: 100%; }
.opt-section { background: #FFFFFF; border-radius: 22px; padding: clamp(20px, 2.5vw, 28px); display: flex; flex-direction: column; gap: 18px; }
.opt-section__head { display: flex; align-items: baseline; gap: 12px; }
.opt-section__num { font-size: 14px; font-weight: 600; color: #F05A28; }
.opt-section__title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.opt-grid { display: grid; gap: 10px; }
.opt-grid--delivery { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.opt-grid--tariff { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.opt-grid--term { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.opt { cursor: pointer; width: 100%; margin: 0; border-radius: 18px; border: 1px solid #E6E1DA; background: #FFFFFF; color: #1A1513; display: flex; flex-direction: column; align-items: stretch; text-align: left; font: inherit; transition: background .15s, border-color .15s; }
.opt:hover { filter: brightness(0.98); }
.opt.is-selected { background: #F05A28; border-color: #F05A28; }
.opt__sub { color: #6E655E; }
.opt.is-selected .opt__sub { color: #2E1206; }
.opt--delivery { padding: 18px 20px; gap: 6px; }
.opt--tariff { padding: 20px; gap: 10px; }
.opt--term { padding: 18px 20px; gap: 8px; }
.opt__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.opt__name { font-size: 18px; font-weight: 600; }
.radio { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #C9C1B8; display: flex; align-items: center; justify-content: center; }
.radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.opt.is-selected .radio { border-color: #1A1513; background: #1A1513; }
.opt.is-selected .radio::after { background: #FFFFFF; }
.opt__desc { font-size: 14px; line-height: 1.45; text-wrap: pretty; }
.opt__tariff-name { font-size: 30px; font-weight: 600; letter-spacing: -0.035em; line-height: 1; overflow-wrap: anywhere; }
.opt__term-name { font-size: 16px; font-weight: 500; }
.opt__price { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }

/* тёмная панель оплаты */
.pay { flex: 1 1 300px; max-width: 420px; position: sticky; top: 20px; background: #1A1513; color: #F3EFE8; border-radius: 28px; padding: clamp(22px, 2.5vw, 28px); display: flex; flex-direction: column; gap: 22px; }
.pay a { color: #C9C3BC; text-decoration: underline; }
.pay a:hover { color: #FFFFFF; }
.pay__block { display: flex; flex-direction: column; gap: 12px; }
.pay__caption { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #A8A19A; }
.pay__row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; padding-bottom: 12px; border-bottom: 1px solid #2E2925; }
.pay__label { color: #A8A19A; }
.pay__value { font-weight: 600; text-align: right; }
.pay__sum { display: flex; flex-direction: column; gap: 8px; }
.pay__sum-label { font-size: 14px; color: #A8A19A; }
.pay__sum-line { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pay__total { font-size: 44px; font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.pay__old { font-size: 18px; color: #8E857D; text-decoration: line-through; }
.pay__discount { font-size: 14px; font-weight: 500; color: #7FD49B; }
.pay__discount.is-warn { color: #FF8A5C; }
.pay-btn { width: 100%; height: 58px; border: none; border-radius: 999px; background: #F05A28; color: #1A1513; font-size: 17px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 26px; text-decoration: none; }
.pay a.pay-btn { color: #1A1513; text-decoration: none; }
.pay-btn:hover, .pay a.pay-btn:hover { background: #FF6A38; color: #1A1513; }
.pay-btn .arrow { width: 42px; height: 42px; background: #1A1513; color: #FFFFFF; font-size: 16px; }
.pay-btn:disabled { background: #2E2925; color: #8E857D; cursor: not-allowed; justify-content: center; padding: 0; }
.pay-btn:disabled .arrow { display: none; }
.pay-btn.is-busy { opacity: .7; cursor: progress; }
.pay__note { margin-top: -10px; font-size: 13px; line-height: 1.45; color: #A8A19A; }
.pay__error { margin-top: -10px; font-size: 14px; color: #FF8A5C; }
.pay__sep { height: 1px; background: #2E2925; }
.pay__cancel { margin-top: -10px; text-align: center; }
.pay form { margin: 0; }

.promo, .share { display: flex; flex-direction: column; gap: 10px; }
.email { display: flex; flex-direction: column; gap: 8px; }
.email .promo__input { flex: none; width: 100%; }
.email .promo__input:disabled { opacity: .55; cursor: not-allowed; }
.email .promo__input.is-invalid { border-color: #FF8A5C; }
.email__note { font-size: 13px; line-height: 1.45; color: #A8A19A; }
.promo__title { font-size: 15px; font-weight: 600; }
.promo__form, .share__row { display: flex; gap: 8px; margin: 0; }
.promo__input { flex: 1; min-width: 0; height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid #3A332E; background: #26201C; font-size: 15px; color: #F3EFE8; outline: none; }
.promo__input:focus { border-color: #F05A28; }
.promo__apply { flex: none; height: 50px; padding: 0 18px; border-radius: 14px; border: none; background: #F3EFE8; color: #1A1513; font-size: 15px; font-weight: 600; cursor: pointer; }
.promo__apply:hover { background: #FFFFFF; }
.promo__applied { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 50px; padding: 0 8px 0 16px; border-radius: 14px; background: #26201C; border: 1px solid #3A332E; }
.promo__code { font-size: 15px; font-weight: 600; letter-spacing: 0.04em; }
.promo__remove { cursor: pointer; padding: 8px 12px; border-radius: 10px; border: none; background: none; font-size: 14px; color: #C9C3BC; font-family: inherit; }
.promo__remove:hover { color: #FFFFFF; background: #3A332E; }
.promo__error { font-size: 14px; color: #FF8A5C; }
.share .pay__note { margin-top: 0; }

/* ---------- заказ, вход, мои заказы ---------- */
.text { margin: 0; font-size: 16px; line-height: 1.55; color: #3A332E; }
.rich { font-size: 15px; line-height: 1.6; color: #3A332E; overflow-wrap: anywhere; }
.rich a { color: #F05A28; text-decoration: underline; }
.rich code, .rich pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: #F5F2EE; border-radius: 6px; padding: 1px 6px; }
.rich pre { padding: 12px 14px; white-space: pre-wrap; }
.rich blockquote { margin: 8px 0; padding-left: 14px; border-left: 3px solid #F3CDBB; }
.rich .spoiler { background: #E6E1DA; border-radius: 4px; }
.codes { display: flex; flex-direction: column; gap: 10px; }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 20px; border-radius: 18px; background: #F5F2EE; }
.code-box__value { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 18px; font-weight: 600; word-break: break-all; }
.copy-btn { flex: none; height: 42px; padding: 0 18px; border-radius: 999px; border: none; background: #1A1513; color: #FFFFFF; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
.copy-btn:hover { background: #3A332E; }
.copy-btn.is-done, .promo__apply.is-done { background: #2F9E5B; color: #FFFFFF; }
.steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.5; color: #3A332E; }
.btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 8px 0 24px; border: none; border-radius: 999px; background: #F05A28; color: #1A1513; font-size: 16px; font-weight: 600; cursor: pointer; font-family: inherit; }
.btn:hover { background: #FF6A38; color: #1A1513; }
.btn .arrow { width: 38px; height: 38px; background: #1A1513; color: #FFFFFF; font-size: 15px; }
.btn--dark { background: #1A1513; color: #FFFFFF; }
.btn--dark:hover { background: #3A332E; color: #FFFFFF; }
.btn--dark .arrow--accent { background: #F05A28; color: #1A1513; }
.link-btn { border: none; background: none; padding: 6px 10px; font: inherit; font-size: 14px; color: #A8A19A; cursor: pointer; text-decoration: underline; }
.link-btn:hover { color: #FFFFFF; }
.login-form { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.field { flex: 1 1 220px; min-width: 0; max-width: 320px; height: 54px; padding: 0 20px; border-radius: 14px; border: 1px solid #E6E1DA; background: #FFFFFF; font-size: 22px; font-weight: 600; letter-spacing: 0.2em; color: #1A1513; outline: none; }
.field:focus { border-color: #F05A28; }
.form-error { font-size: 15px; color: #C2410C; }
.login-account { flex: 1 1 100%; display: flex; flex-direction: column; gap: 6px; }
.login-account .field { flex: 0 0 auto; max-width: 420px; font-size: 17px; font-weight: 500; letter-spacing: normal; }
.login-account .text { margin: 0; font-size: 14px; }
.orders { display: flex; flex-direction: column; gap: 10px; }
.order-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 22px; border-radius: 20px; background: #F5F2EE; border: 1px solid #F5F2EE; color: #1A1513; transition: border-color .2s, background .2s; }
.order-row:hover { background: #FFFFFF; border-color: #E2DCD4; color: #1A1513; }
.order-row__main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.order-row__title { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.order-row__meta { font-size: 13px; color: #6E655E; }
.order-row__side { display: flex; align-items: center; gap: 16px; }
.order-row__sum { font-size: 18px; font-weight: 600; }

/* ---------- подвал ---------- */
.footer { background: #F5F2EE; }
.footer__inner { padding-top: 48px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 36px; }
.footer__top { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.footer__about { flex: 1 1 320px; max-width: 440px; display: flex; flex-direction: column; gap: 14px; }
.footer__text { margin: 0; font-size: 15px; line-height: 1.55; color: #4A433D; text-wrap: pretty; }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-width: 240px; padding: 14px 14px 14px 20px; border-radius: 20px; background: #FFFFFF; border: 1px solid #FFFFFF; }
.footer-card:hover { border-color: #F05A28; color: #1A1513; }
.footer-card__text { display: flex; flex-direction: column; gap: 3px; }
.footer-card__label { font-size: 13px; color: #6E655E; }
.footer-card__value { font-size: 17px; font-weight: 600; color: #1A1513; }
.footer-card .arrow { width: 36px; height: 36px; font-size: 15px; }
.arrow--accent { background: #F05A28; color: #1A1513; }
.arrow--dark { background: #1A1513; color: #FFFFFF; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid #E6E1DA; font-size: 13px; color: #6E655E; }
.footer__docs { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__docs a { color: #6E655E; }
.footer__docs a:hover { color: #1A1513; }

/* ---------- профиль ---------- */
.profile-rows { display: flex; flex-direction: column; }
.profile-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid #EEEAE4; font-size: 16px; }
.profile-row:first-child { padding-top: 0; }
.profile-row:last-child { border-bottom: none; padding-bottom: 0; }
.profile-row__label { color: #6E655E; }
.profile-row__value { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.profile-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.profile-stat { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 18px; background: #FCE9DF; }
.profile-stat__value { font-size: 30px; font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.profile-stat__label { font-size: 14px; color: #6E655E; }
.code-box__value--link { font-size: 15px; }

/* ---------- «Мои заказы»: страницы по 10 ---------- */
.orders-pager { display: flex; flex-direction: column; gap: 12px; }
.orders-pager__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.orders-pager__info { font-size: 15px; color: #6E655E; }
.orders-pager__btns { display: flex; align-items: center; gap: 10px; }
.orders-pager__count { min-width: 52px; text-align: center; font-size: 15px; font-weight: 600; }
.orders-pager__viewport { overflow: hidden; }
.pager-btn { width: 46px; height: 46px; border-radius: 50%; border: none; background: #1A1513; color: #FFFFFF; font-size: 18px; cursor: pointer; font-family: inherit; transition: background .2s, transform .15s; }
.pager-btn:hover { background: #F05A28; color: #1A1513; }
.pager-btn:active { transform: scale(.9); }
.pager-btn:disabled { background: #F5F2EE; color: #C9C1B8; cursor: default; transform: none; }
.orders.is-in-next { animation: slide-from-right .35s ease both; }
.orders.is-in-prev { animation: slide-from-left .35s ease both; }

/* ---------- анимации ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes slide-from-right { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes slide-from-left { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(.96); } 100% { transform: scale(1); } }
@keyframes open-down { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
/* блоки страницы плавно поднимаются по очереди */
.screen > * { animation: rise .5s ease both; }
.screen > :nth-child(2) { animation-delay: .06s; }
.screen > :nth-child(3) { animation-delay: .12s; }
.screen > :nth-child(4) { animation-delay: .18s; }
/* карточки каталога и заказы появляются «волной» */
.grid > .card, .orders > .order-row { animation: rise .45s ease both; }
.grid > .card:nth-child(2), .orders > .order-row:nth-child(2) { animation-delay: .04s; }
.grid > .card:nth-child(3), .orders > .order-row:nth-child(3) { animation-delay: .08s; }
.grid > .card:nth-child(4), .orders > .order-row:nth-child(4) { animation-delay: .12s; }
.grid > .card:nth-child(5), .orders > .order-row:nth-child(5) { animation-delay: .16s; }
.grid > .card:nth-child(6), .orders > .order-row:nth-child(6) { animation-delay: .2s; }
.grid > .card:nth-child(7), .orders > .order-row:nth-child(7) { animation-delay: .24s; }
.grid > .card:nth-child(n+8), .orders > .order-row:nth-child(n+8) { animation-delay: .28s; }
.orders.is-in-next > .order-row, .orders.is-in-prev > .order-row { animation: none; }
/* фото и плитка чуть приближаются при наведении на карточку */
.card .photo, .card .tile { transition: transform .35s ease, opacity .2s; }
.card:hover .photo, .card:hover .tile { transform: scale(1.03); }
.card { overflow: hidden; }
.order-row { transition: border-color .2s, background .2s, transform .2s; }
.order-row:hover { transform: translateX(4px); }
/* стрелка ↗ «подпрыгивает» при наведении на кнопку */
.arrow { transition: transform .25s ease; }
.btn:hover .arrow, .pay-btn:hover .arrow, .nav__bot:hover .arrow, .footer-card:hover .arrow, .card:hover .arrow { transform: translate(2px, -2px) scale(1.06); }
/* кнопки слегка «вдавливаются» при нажатии */
.btn, .pay-btn, .copy-btn, .promo__apply, .banner__count--btn { transition: background .2s, color .2s, transform .15s; }
.btn:active, .pay-btn:active, .copy-btn:active, .promo__apply:active, .banner__count--btn:active, .nav__bot:active, .opt:active { transform: scale(.97); }
.pay-btn:disabled:active { transform: none; }
/* выбранный вариант (способ, тариф, срок) мягко «щёлкает» */
.opt.is-selected { animation: pop .3s ease; }
/* «Подробнее о товаре»: блок раскрывается, плюс поворачивается */
.details__icon { transition: transform .3s ease; }
.details__head[aria-expanded="true"] .details__icon { transform: rotate(180deg); }
.details__body:not([hidden]) { animation: open-down .3s ease both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- узкие экраны: оплата уходит под опции ---------- */
@media (max-width: 800px) {
  .pay { position: static; max-width: none; }
}
@media (max-width: 520px) {
  .footer-card { min-width: 0; flex: 1 1 100%; }
  .order-row__side { width: 100%; justify-content: space-between; }
  .details__hint { display: none; }
}
