/* Страница «Про Катю». Перенесено из concepts/b-about.html; повторяет часть блоков главной – объединяются в components.css при чистке. */
/* Концепт B, страница «Про Катю». Значения те же, что в b.html; при фиксации разбираются в tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: var(--fs-body); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.wrap { width: 100%; max-width: calc(1280px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 18px; height: 18px; flex: none; }

/* Кнопки: красная – только покупка, остальное контуром */
.btn { display: inline-flex; align-items: center; gap: var(--s3); min-height: 56px; padding: 0 var(--s2) 0 var(--s5); border-radius: var(--r-pill); background: var(--red); color: #fff; font: 600 var(--fs-body)/1 var(--font); text-decoration: none; transition: background-color .3s var(--ease), color .3s var(--ease); }
.btn__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--red); transition: transform .45s var(--ease); }
.btn:hover { background: var(--red-deep); }
.btn:hover .btn__icon { transform: rotate(-45deg); }
.btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.btn--sm { min-height: 44px; padding-left: var(--s4); font-size: var(--fs-small); }
.btn--sm .btn__icon { width: 32px; height: 32px; }
.btn--ghost { background: none; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--ghost .btn__icon { background: var(--ink); color: var(--paper); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--ghost:hover .btn__icon { background: var(--paper); color: var(--ink); }
.btn--light { background: none; color: var(--night-ink); box-shadow: inset 0 0 0 2px var(--night-ink); }
.btn--light .btn__icon { background: var(--night-ink); color: var(--night); }
.btn--light:hover { background: var(--night-ink); color: var(--night); }

/* Меню-таблетка, как на главной */
.menu { position: sticky; top: var(--s3); z-index: 20; display: flex; justify-content: center; padding: var(--s3) var(--gutter) 0; pointer-events: none; }
.menu__pill { pointer-events: auto; display: flex; align-items: center; gap: var(--s5); padding: 6px 6px 6px var(--s5); border-radius: var(--r-pill); background: rgba(244, 240, 233, .9); backdrop-filter: blur(8px); box-shadow: 0 0 0 1px rgba(23, 20, 15, .08); }
.menu__logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; letter-spacing: -0.03em; text-decoration: none; }
.menu nav:not(.lang) a, .menu__logo { white-space: nowrap; }
@media (max-width: 1100px) { .menu nav:not(.lang) { display: none; } }
.menu__mark { width: 30px; height: 30px; flex: none; transition: transform .4s var(--ease); }
.menu__logo:hover .menu__mark { transform: rotate(-8deg) scale(1.08); }
.menu nav:not(.lang) { display: flex; gap: var(--s5); font-size: var(--fs-small); }
.menu nav:not(.lang) a { text-decoration: none; color: var(--ink-2); }
.menu nav:not(.lang) a:hover, .menu nav:not(.lang) a[aria-current] { color: var(--ink); }
.lang { display: inline-flex; padding: 3px; border-radius: var(--r-pill); background: var(--paper-2); }
.lang span, .lang a { text-decoration: none; transition: color .2s, background-color .2s; padding: 6px 10px; border-radius: var(--r-pill); font-size: var(--fs-tiny); font-weight: 500; line-height: 1; color: var(--ink-2); }
.lang span[aria-current] { background: var(--paper); color: var(--ink); }
.lang a:hover { color: var(--ink); background: rgba(244, 240, 233, .6); }
.lang a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.mtop { display: none; align-items: center; justify-content: space-between; padding: var(--s4) var(--gutter) 0; }

/* Hero */
#hero { padding: var(--s8) 0 var(--s9); overflow-x: clip; }
.hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s7); align-items: end; }
.hero__text { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: var(--s6); }
.back { align-self: flex-start; display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--fs-small); font-weight: 500; color: var(--ink-2); text-decoration: none; }
.back:hover { color: var(--ink); }
.back svg { width: 16px; height: 16px; }
.hero h1 { font-size: var(--fs-display); font-weight: 700; line-height: .86; letter-spacing: -0.05em; }
.hero h1 span { display: block; }
.hero h1 .row2 { display: flex; flex-wrap: wrap; align-items: center; gap: .08em .12em; }
.sticker { display: inline-flex; align-items: center; padding: .14em .3em .18em; border-radius: .22em; background: var(--red); color: #fff; font-size: .34em; line-height: 1; letter-spacing: -0.03em; transform: rotate(-8deg); box-shadow: 0 .08em 0 var(--red-deep); position: relative; z-index: 2; }
.hero__lead { font-size: var(--fs-lead); line-height: 1.45; max-width: 40ch; text-wrap: pretty; }
.hero__photo { grid-column: 9 / span 4; margin: 0; border-radius: var(--r-photo); overflow: hidden; transform: rotate(4deg); }
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }

/* Цифры: один жёлтый квиток на три части, как «Як це працює» на главной */
.strip { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 24px; background: var(--t-yellow); transform: rotate(-1.2deg); list-style: none; margin: 0; padding: 0;
  -webkit-mask: radial-gradient(circle 16px at 33.333% 0, #0000 98%, #000 100%) top / 100% 51% no-repeat, radial-gradient(circle 16px at 33.333% 100%, #0000 98%, #000 100%) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 16px at 33.333% 0, #0000 98%, #000 100%) top / 100% 51% no-repeat, radial-gradient(circle 16px at 33.333% 100%, #0000 98%, #000 100%) bottom / 100% 51% no-repeat; }
.strip::after { content: ""; position: absolute; left: 66.666%; top: 0; width: 32px; height: 100%; margin-left: -16px; background: radial-gradient(circle 16px at 50% 0, var(--paper) 98%, #0000 100%) top / 100% 51% no-repeat, radial-gradient(circle 16px at 50% 100%, var(--paper) 98%, #0000 100%) bottom / 100% 51% no-repeat; }
.part { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s7) var(--s6); }
.part + .part { box-shadow: inset 2px 0 0 rgba(23, 20, 15, .14); }
.part b { font-size: 104px; font-weight: 700; line-height: .8; letter-spacing: -0.06em; }
.part p { font-size: var(--fs-lead); line-height: 1.35; max-width: 24ch; }

/* Секции */
.sec { padding: var(--s10) 0; overflow-x: clip; }
.h2 { font-size: var(--fs-h2); font-weight: 700; line-height: .95; letter-spacing: -0.045em; text-wrap: balance; }
.h2--s { font-size: var(--fs-h2s); line-height: 1; }
.two { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s6); }
.two > .h2 { grid-column: 1 / span 5; align-self: start; position: sticky; top: var(--s9); }
.items { grid-column: 7 / span 6; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s7); }
.items li { display: flex; flex-direction: column; gap: var(--s2); }
.items h3 { font-size: var(--fs-item); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
.items p { font-size: var(--fs-lead); line-height: 1.45; max-width: 44ch; }

/* Мета: большая цитата на светлом */
#goal { padding-top: 0; }
.goal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s7); align-items: center; }
.goal__photo { grid-column: 1 / span 5; margin: 0; border-radius: var(--r-photo); overflow: hidden; }
.goal__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.goal blockquote { grid-column: 7 / span 6; margin: 0; display: flex; flex-direction: column; gap: var(--s5); }
.goal blockquote p { font-size: var(--fs-quote); font-weight: 700; line-height: 1; letter-spacing: -0.04em; text-wrap: balance; }
.goal blockquote cite { font-style: normal; font-size: var(--fs-lead); }

/* Вступ: тёмный блок, вставкой */
#uni { padding: 0 var(--s4); }
.uni { border-radius: 48px; background: var(--night); color: var(--night-ink); padding: var(--s10) 0; }
.uni__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s6); align-items: end; }
.uni .h2 { grid-column: 1 / span 7; }
.uni__text { grid-column: 9 / span 4; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s5); }
.uni__text p { font-size: var(--fs-lead); line-height: 1.45; color: var(--night-ink); }

/* Финал: что дальше */
.next { display: flex; flex-direction: column; align-items: center; gap: var(--s6); text-align: center; }
.next .h2 { max-width: 14ch; }
.next p { font-size: var(--fs-lead); max-width: 40ch; }
.next__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); }

/* Футер, как на главной */
.foot { padding: var(--s9) 0 var(--s7); background: var(--paper-2); border-radius: 48px 48px 0 0; }
.foot__big { font-size: clamp(56px, 11vw, 168px); font-weight: 700; line-height: .85; letter-spacing: -0.055em; }
.foot__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s6); margin-top: var(--s8); font-size: var(--fs-small); }
.foot__col { display: flex; flex-direction: column; gap: var(--s2); }
.foot__col:nth-child(1) { grid-column: 1 / span 4; }
.foot__col:nth-child(2) { grid-column: 6 / span 3; }
.foot__col:nth-child(3) { grid-column: 10 / span 3; }
.foot__col b { font-weight: 600; margin-bottom: var(--s1); }
.foot__col a { color: var(--ink); text-decoration: none; }
.foot__col a:hover { text-decoration: underline; }
.foot__col span { color: var(--ink-2); }
.todo { color: var(--ink-2); background: var(--paper); border-radius: 6px; padding: 0 .3em; font-size: .92em; }

@media (max-width: 1100px) {
  .hero__text { grid-column: 1 / span 8; }
  .hero__photo { grid-column: 9 / span 4; }
  .two > .h2 { grid-column: 1 / -1; position: static; }
  .items { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .menu { display: none; }
  .mtop { display: flex; }
  #hero { padding: var(--s5) 0 var(--s8); }
  .hero h1 .row2 { flex-wrap: wrap; row-gap: .08em; }
  .sticker { font-size: .3em; }
  .hero__text, .hero__photo, .goal__photo, .goal blockquote, .uni .h2, .uni__text { grid-column: 1 / -1; }
  .hero__photo { width: 72%; justify-self: center; transform: rotate(3deg); }
  .strip { grid-template-columns: 1fr; transform: rotate(-.8deg); -webkit-mask: none; mask: none; }
  .strip::after { display: none; }
  .part { flex-direction: row; align-items: baseline; gap: var(--s4); padding: var(--s5); }
  .part + .part { box-shadow: inset 0 2px 0 rgba(23, 20, 15, .14); }
  .part b { flex: none; min-width: 2.2ch; font-size: 56px; }
  .part p { font-size: var(--fs-body); }
  .sec { padding: var(--s9) 0; }
  .items { gap: var(--s6); }
  .goal__photo { width: 72%; justify-self: center; }
  #uni { padding: 0 var(--s2); }
  .uni { border-radius: 32px; padding: var(--s9) 0; }
  .uni__text .btn, .next__btns .btn { width: 100%; justify-content: space-between; }
  .next__btns { width: 100%; }
  .foot { border-radius: 32px 32px 0 0; }
  .foot__col:nth-child(n) { grid-column: 1 / -1; }
}

.has-motion [data-r] { opacity: 0; transform: translateY(26px); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
