/* KORRTO 2026 — страницы для покупателей: оплата и доставка, размеры, контакты, избранное. */

.ip { padding-bottom: clamp(72px, 8vw, 120px); }
.ip-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; padding: 28px 0 clamp(32px, 3.4vw, 52px); }
.ip-head__title { margin: 0; font-size: clamp(48px, 6vw, 96px); line-height: .88; }
.ip-head__lead { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 50ch; }
.ip-head--row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; }
.ip-head--row .ip-head__lead { font-size: 14px; color: var(--ink-3); }

.ip-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.ip-nav { position: sticky; top: 104px; display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.ip-nav .mono { margin: 14px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.ip-nav a { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2); transition: color .2s, padding .25s var(--ease); }
.ip-nav a:hover { color: var(--ink); padding-left: 6px; }
.ip-nav a + .mono { margin-top: 26px; }
.ip-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--red); padding-left: 14px; }
.ip-body { min-width: 0; }

.ip-sec { padding-bottom: clamp(36px, 4vw, 56px); margin-bottom: clamp(36px, 4vw, 56px); border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.ip-sec__title { margin: 0 0 20px; font-family: var(--f-display); font-variation-settings: "wdth" 52, "opsz" 144; font-weight: 680; text-transform: uppercase; font-size: clamp(30px, 2.8vw, 42px); line-height: .95; }
.ip-sec__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.ip-sec__row .ip-sec__title { margin: 0; }
.ip-sub { margin: -8px 0 18px; font-size: 15px; color: var(--ink-3); }
.ip-h3 { margin: 0 0 12px; font-size: 17px; font-weight: 640; }

.ip-table-wrap { overflow-x: auto; max-width: 100%; }
.ip-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.ip-table th { text-align: left; font-weight: 500; font-size: 13px; color: var(--ink-3); padding: 0 16px 12px 0; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.ip-table td { padding: 15px 16px 15px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ip-table td b { display: block; font-weight: 600; }
.ip-table td span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--ink-3); }
.ip-table td:last-child { font-weight: 600; white-space: nowrap; }
.ip-table--sm td:last-child, .sz-table td:last-child { font-weight: 400; }
.ip-table tbody tr { transition: background-color .15s; }
.ip-table tbody tr:hover { background: var(--mist); }
.ip-table tr.is-hit { background: #F7E6E8; }
.ip-table tr.is-hit td:first-child b { color: var(--red); }

.ip-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ip-card { padding: 26px 26px 24px; background: var(--mist); }
.ip-card > svg { width: 26px; height: 26px; color: var(--red); stroke-width: 1.5; }
.ip-card h3 { margin: 14px 0 4px; font-size: 20px; font-weight: 640; }
.ip-card .mono { margin: 0 0 10px; font-size: 13px; color: var(--ink-3); }
.ip-card p:last-child { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.ip-card ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.ip-card li { position: relative; padding-left: 18px; font-size: 15.5px; color: var(--ink-2); }
.ip-card li::before { content: ""; position: absolute; left: 0; top: .65em; width: 8px; height: 1.5px; background: var(--red); }
.ip-note { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.ip-note svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--ink-3); }
.ip-dl { margin: 0 0 22px; border-top: 1px solid var(--line); }
.ip-dl div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.5; }
.ip-dl dt { color: var(--ink-3); }
.ip-dl dd { margin: 0; }
.ip-dl a { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.ip-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

.ip-help { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: center; padding: clamp(26px, 3vw, 40px); background: var(--night); color: #fff; }
.ip-help .display { margin: 0 0 8px; font-size: clamp(28px, 2.6vw, 40px); line-height: .95; color: #fff; }
.ip-help p { margin: 0; color: #BDBDBD; font-size: 15.5px; line-height: 1.5; max-width: 52ch; }
.ip-help__links { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 18px; }
.ip-help__links a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Подбор размера ---------- */
.seg2 { display: inline-grid; grid-auto-flow: column; gap: 4px; padding: 4px; border-radius: 999px; background: var(--mist); }
.seg2 input { position: absolute; opacity: 0; pointer-events: none; }
.seg2 span, .seg2 button { display: inline-flex; align-items: center; height: 42px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 560; cursor: pointer; transition: background-color .2s, color .2s; }
.seg2 input:checked + span, .seg2 button[aria-selected="true"] { background: var(--ink); color: #fff; }
.seg2 input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.seg2--sm span, .seg2--sm button { height: 36px; padding: 0 16px; font-size: 14px; }
.calc { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-areas: "seg out" "in out"; gap: 20px 32px; padding: clamp(22px, 2.6vw, 36px); border: 1px solid var(--line-strong); }
.calc .seg2 { grid-area: seg; justify-self: start; }
.calc__inputs { grid-area: in; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.calc__inputs input { font-family: var(--f-mono); }
.calc__out { grid-area: out; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 24px 26px; background: var(--mist); min-height: 180px; transition: background-color .3s, color .3s; }
.calc__out.is-on { background: var(--ink); color: #fff; }
.calc__size { font-size: clamp(56px, 6vw, 88px); line-height: .85; }
.calc__out.is-on .calc__size { color: #fff; }
.calc__size small { font-family: var(--f-mono); font-size: 16px; letter-spacing: 0; text-transform: none; color: #A8A8A8; margin-left: 10px; font-weight: 500; }
.calc__text { font-size: 14.5px; line-height: 1.5; color: var(--ink-3); }
.calc__out.is-on .calc__text { color: #BDBDBD; }
.calc__text a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.measure { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.measure__fig { width: 100%; height: auto; }
.measure__list { list-style: none; margin: 0; padding: 0; counter-reset: m; border-top: 1px solid var(--line); }
.measure__list li { counter-increment: m; display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.measure__list li::before { content: counter(m, decimal-leading-zero); grid-row: 1 / 3; font: 600 13px var(--f-mono); color: var(--red); padding-top: 3px; }
.measure__list b { font-size: 17px; font-weight: 600; }
.measure__list span { font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* ---------- Контакты ---------- */
.ct-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ct-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--mist); min-height: 150px; transition: background-color .25s, color .25s; }
a.ct-card:hover { background: var(--ink); color: #fff; }
a.ct-card:hover .mono, a.ct-card:hover span { color: #A8A8A8; }
.ct-card .mono { font-size: 12.5px; color: var(--ink-3); }
.ct-card b { margin-top: auto; font-size: clamp(19px, 1.6vw, 24px); font-weight: 600; }
.ct-card--main { grid-column: span 2; grid-row: span 2; background: var(--red); color: #fff; justify-content: flex-end; }
.ct-card--main .mono, .ct-card--main span { color: rgba(255,255,255,.75); }
.ct-card--main b { margin-top: auto; font-size: clamp(44px, 5vw, 80px); line-height: .9; font-weight: 680; }
a.ct-card--main:hover { background: var(--red-dk); }
.ct-card--msg { gap: 12px; }
.ct-msg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.ct-msg a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: #fff; font-size: 14.5px; font-weight: 560; transition: background-color .2s, color .2s; }
.ct-msg a:hover { background: var(--ink); color: #fff; }
.ct-msg svg { width: 16px; height: 16px; }
.ct-card__sub { font-family: var(--f-mono); font-size: 13px; color: var(--ink-3); }
.ct-ask__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.ct-req { margin-top: 32px; }
.ct-ask .brief { background: var(--mist); }

/* Формы брифа и вопроса на этих страницах */
.brief { padding: clamp(24px, 3vw, 40px); }
.brief__body { display: grid; gap: 20px; }
.brief .err:empty { display: none; }
.brief [data-consent-err] { font-size: 13px; color: var(--red); margin-top: -12px; }
.brief__btn { height: 58px; justify-content: center; font-size: 16px; }
.brief__done .co-done__icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; animation: addPop .5s var(--ease); }
.brief__done .co-done__icon svg { width: 34px; height: 34px; stroke-width: 2; }
.brief__done h3 { margin: 22px 0 10px; font-size: clamp(36px, 3.6vw, 52px); line-height: .92; }
.brief__done p { margin: 0 0 22px; font-size: 16px; color: var(--ink-2); }

/* ---------- Избранное ---------- */
.fv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; }
.fcard { display: flex; flex-direction: column; animation: fadeIn .35s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } }
.fcard.is-out { animation: fadeOut .25s var(--ease) forwards; }
@keyframes fadeOut { to { opacity: 0; transform: scale(.96); } }
.fcard__media { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--stone); }
.fcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.fcard:hover .fcard__media img { transform: scale(1.03); }
.fcard__media .card__nophoto { position: absolute; inset: 0; }
.fcard__del { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 4px 12px -6px rgba(0,0,0,.3); transition: transform .2s; }
.fcard__del:hover { transform: scale(1.08); }
.fcard__del svg { width: 18px; height: 18px; fill: var(--red); stroke: var(--red); }
.fcard__meta { display: flex; align-items: center; gap: 8px; margin: 14px 0 6px; font-size: 13px; color: var(--ink-3); }
.fcard__meta i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--line-strong); }
.fcard__name { margin: 0; font-size: 16px; font-weight: 560; line-height: 1.35; }
.fcard__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fcard__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; }
.fcard__foot .price { font-size: 19px; }
.fcard__stock { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.fcard__stock .dot { width: 6px; height: 6px; animation: none; }
.fv-empty { max-width: 640px; padding: 8px 0 24px; }
.co-empty__icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); }
.co-empty__icon svg { width: 32px; height: 32px; stroke-width: 1.4; }
.co-empty__title { margin: 26px 0 14px; font-size: clamp(40px, 4.4vw, 64px); line-height: .92; }
.fv-empty p { margin: 0 0 26px; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.fv-help { margin-top: clamp(56px, 6vw, 88px); }

[hidden] { display: none !important; }

@media (max-width: 1100px) {
  .fv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-card--main { grid-row: auto; min-height: 200px; }
}

@media (max-width: 1024px) {
  .ip-head { grid-template-columns: 1fr; }
  .ip-layout { grid-template-columns: 1fr; }
  .ip-nav { position: static; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 8px; border-top: 0; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut) 4px; scrollbar-width: none; }
  .ip-nav::-webkit-scrollbar { display: none; }
  .ip-nav .mono { display: none; }
  .ip-nav a { flex: none; padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14.5px; }
  .ip-nav a:hover { padding-left: 16px; }
  .ip-nav a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; padding-left: 16px; }
  .calc { grid-template-columns: 1fr; grid-template-areas: "seg" "in" "out"; }
  .ct-ask__grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .ip-head__title { font-size: 46px; }
  .ip-cards, .ip-cols { grid-template-columns: 1fr; }
  .ip-dl div { grid-template-columns: 1fr; gap: 2px; }
  .ip-help { grid-template-columns: 1fr; }
  .ip-help__links { align-items: flex-start; }
  .calc__inputs { grid-template-columns: 1fr 1fr; }
  .calc__inputs .lf:first-child { grid-column: 1 / -1; }
  .measure { grid-template-columns: 110px minmax(0, 1fr); align-items: start; }
  .ip-table { font-size: 14.5px; }
  .ip-table th, .ip-table td { padding-right: 10px; }
  .ct-grid { grid-template-columns: 1fr; }
  .ct-card--main { grid-column: auto; }
  .ct-card { min-height: 0; }
  .ct-card b { margin-top: 10px; }
  .ct-card--main { min-height: 180px; }
  .fv-grid { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .fcard__foot { flex-direction: column; align-items: stretch; }
  .fcard__foot .btn { justify-content: center; }
  .brief { margin: 0 calc(var(--gut) * -1); }
}
