/* ============================================================
   Ensley — контентные страницы (page.css)
   about / careers / contacts / legal / sitemap.
   После colors_and_type.css + site.css.
   ============================================================ */

/* ---- компактный hero (careers) ---- */
.phero--compact { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(28px, 4vw, 48px); }
.phero--compact .eyebrow { margin-bottom: 12px; }
.phero--compact h1 { font-size: clamp(34px, 4.4vw, 60px); margin: 0; }

/* ---- lead-блок ---- */
.lead { max-width: 720px; }
.lead p { font-family: var(--font-body); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.7; color: var(--graphite); margin: 0 0 20px; }
.lead p:last-child { margin-bottom: 0; }

/* ---- vsplit: фото + текст ---- */
.vsplit { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 5vw, 72px); }
.vsplit + .vsplit { margin-top: clamp(48px, 7vw, 96px); }
.vsplit--rev .vsplit__media { order: -1; }
.vsplit__media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 4/3; background: var(--cream); }
.vsplit__media img { width: 100%; height: 100%; object-fit: cover; }
.vsplit .eyebrow { margin-bottom: 12px; }
.vsplit h2 { margin: 0 0 14px; }
.vsplit p { font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: var(--fg-secondary); margin: 0 0 16px; }
.vsplit p:last-child { margin-bottom: 0; }
.vsplit p.vsplit__lead { color: var(--graphite); font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; margin-bottom: 18px; }
.vsplit__body a { color: var(--olive); border-bottom: 1px solid color-mix(in srgb, var(--olive) 32%, transparent);
  padding-bottom: 1px; transition: color var(--dur-fast), border-color var(--dur-fast); white-space: nowrap; }
.vsplit__body a:hover { color: var(--graphite); border-color: var(--graphite); }

/* ---- about: мантра в hero ---- */
.phero__mantra { font-family: var(--font-display); font-weight: 300; font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.2; color: var(--olive); margin: 4px 0 0; letter-spacing: .005em; }

/* ---- about: «вкусные» карточки продуктов (как на главной) ---- */
.showcase { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.showcard { position: relative; display: block; border-radius: var(--r-card); overflow: hidden; min-height: 400px;
  box-shadow: var(--shadow-card); transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.showcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-h); }
.showcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 24%;
  transition: transform 800ms var(--ease-out); }
.showcard:hover .showcard__img { transform: scale(1.04); }
.showcard__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42,42,42,0) 40%, rgba(42,42,42,0.20) 62%, rgba(42,42,42,0.64) 100%); }
.showcard__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; display: flex; flex-direction: column; gap: 5px; }
.showcard__name { font-family: var(--font-display); font-weight: 400; font-size: 21px; color: #fff; line-height: 1.1; }
.showcard__tag { font-family: var(--font-ui); font-size: 11px; text-transform: lowercase; color: var(--sage-light); margin-left: 6px; }
.showcard__mood { font-family: var(--font-body); font-size: 14px; color: rgba(255,255,255,0.9); }
.showcard__badge { position: absolute; top: 14px; left: 14px; z-index: 2; font-family: var(--font-ui); font-size: 12px;
  text-transform: lowercase; color: var(--graphite); background: rgba(252,250,246,0.92); padding: 5px 13px;
  border-radius: var(--r-pill); box-shadow: var(--shadow-xs); }

/* ---- about: строка доверия (одна строка) ---- */
.trustline { display: flex; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 16px; white-space: nowrap; }
.trustline__item { font-family: var(--font-body); font-size: clamp(14px, 1.4vw, 17px); color: var(--warm-gray); }
.trustline__item b { font-family: var(--font-display); font-weight: 400; color: var(--graphite); font-variant-numeric: tabular-nums; }
.trustline__dot { color: var(--sage); }

/* ---- about: полоса ценностей «во что мы верим» ---- */
.believe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: start; }
.believe__item { display: flex; flex-direction: column; gap: 12px; }
.believe__icon { width: 46px; height: 46px; border-radius: var(--r-full); background: var(--white);
  display: grid; place-items: center; color: var(--sage); box-shadow: var(--shadow-xs); }
.believe__icon svg { width: 23px; height: 23px; }
.believe__t { font-family: var(--font-display); font-weight: 400; font-size: 20px; color: var(--graphite); line-height: 1.1; }
.believe__d { font-family: var(--font-body); font-size: 14.5px; line-height: 1.6; color: var(--fg-secondary); }
.alink--lg { font-size: 16px; }

/* ---- мини-плитки продуктов ---- */
.minitiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.minitile { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-card); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-card);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.minitile:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-h); }
.minitile__media { aspect-ratio: 1/1; background: var(--cream); overflow: hidden; }
.minitile__media img { width: 100%; height: 100%; object-fit: cover; }
.minitile__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.minitile__name { font-family: var(--font-display); font-weight: 400; font-size: 19px; color: var(--graphite); }
.minitile__name .tag { font-family: var(--font-ui); font-size: 11px; text-transform: lowercase; color: var(--sage); margin-left: 6px; }
.minitile__line { font-family: var(--font-body); font-size: 14px; line-height: 1.45; color: var(--fg-secondary); }

/* ---- статы ---- */
.pstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pstat { text-align: center; position: relative; }
.pstat + .pstat::before { content: ""; position: absolute; left: -14px; top: 14%; bottom: 14%; width: 1px; background: var(--border-soft); }
.pstat__n { font-family: var(--font-display); font-weight: 300; font-size: clamp(48px, 7vw, 88px); line-height: .95; color: var(--graphite); font-variant-numeric: tabular-nums; }
.pstat__n .star { color: var(--sage); font-size: .42em; }
.pstat__c { font-family: var(--font-body); font-size: 15px; color: var(--fg-secondary); margin-top: 10px; }

/* ---- trust block ---- */
.trust { background: var(--cream); border-radius: var(--r-lg); padding: clamp(26px, 4vw, 40px); display: flex; gap: 22px; align-items: flex-start; }
.trust svg { flex: none; width: 34px; height: 34px; color: var(--sage); }
.trust p { font-family: var(--font-body); font-size: 16px; line-height: 1.65; color: var(--graphite); margin: 0; max-width: 60ch; }

/* ---- page-link cards ---- */
.plinks { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plinks--3 { grid-template-columns: repeat(3, 1fr); }
.plink { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 30px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; box-shadow: var(--shadow-card);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast); }
.plink:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-h); }
.plink__t { font-family: var(--font-display); font-weight: 400; font-size: 24px; color: var(--graphite); }
.plink__d { font-family: var(--font-body); font-size: 14.5px; color: var(--fg-secondary); margin-top: 4px; }
.plink .arr { color: var(--sage); font-size: 22px; transition: transform var(--dur-fast) var(--ease-out); }
.plink:hover .arr { transform: translateX(6px); }

/* ---- values (careers) — карточки с иконками ---- */
.vrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: start; }
.vcard { display: flex; flex-direction: column; gap: 14px; }
.vcard__top { display: flex; align-items: center; gap: 13px; }
.vcard__icon { flex: none; width: 46px; height: 46px; border-radius: var(--r-full); background: var(--cream);
  display: grid; place-items: center; color: var(--sage); }
.vcard__icon svg { width: 23px; height: 23px; }
.vcard__t { font-family: var(--font-display); font-weight: 400; font-size: clamp(19px, 1.6vw, 22px);
  color: var(--graphite); line-height: 1.12; }
.vcard p { font-family: var(--font-body); font-size: 14.5px; line-height: 1.65; color: var(--fg-secondary); margin: 0; }

/* ---- careers cta ---- */
.cta-mail { font-family: var(--font-body); font-size: clamp(17px, 1.6vw, 20px); color: var(--graphite); }
.cta-mail a { color: var(--olive); border-bottom: 1px solid color-mix(in srgb, var(--olive) 35%, transparent);
  padding-bottom: 1px; transition: color var(--dur-fast), border-color var(--dur-fast); }
.cta-mail a:hover { color: var(--graphite); border-color: var(--graphite); }

/* ---- contacts ---- */
.contact-card { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-card); max-width: 560px; }
.contact-card .lbl { font-family: var(--font-ui); font-size: 13px; text-transform: lowercase; color: var(--warm-gray); }
.contact-card .eml { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 3vw, 34px); color: var(--graphite); margin: 6px 0 4px; }
.contact-card .eml a:hover { color: var(--olive); }
.contact-card .time { font-family: var(--font-body); font-size: 15px; color: var(--fg-secondary); margin-bottom: 22px; }
.contact-note { font-family: var(--font-body); font-size: 13.5px; line-height: 1.6; color: var(--warm-gray); max-width: 60ch; }
.contact-note a { color: var(--olive); }

.qcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.qcard { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 24px 26px;
  box-shadow: var(--shadow-card); transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast); display: block; }
.qcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-h); }
.qcard__t { font-family: var(--font-display); font-weight: 400; font-size: 20px; color: var(--graphite); display: flex; align-items: center; gap: 8px; }
.qcard__t .arr { color: var(--sage); transition: transform var(--dur-fast) var(--ease-out); }
.qcard:hover .qcard__t .arr { transform: translateX(5px); }
.qcard__d { font-family: var(--font-body); font-size: 14.5px; line-height: 1.5; color: var(--fg-secondary); margin: 8px 0 0; }

/* ---- contacts: hero mantra line ---- */
.phero__line { font-family: var(--font-display); font-weight: 300; font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.22; color: var(--olive); margin: 16px 0 0; letter-spacing: .005em; max-width: 22ch; }

/* ---- contacts: «может быть, ответ уже есть» — карусель ---- */
.qcar__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 34px; flex-wrap: wrap; }
.qcar__head h2 { margin: 0; }
.carnav { display: flex; gap: 10px; }
.carbtn { width: 46px; height: 46px; border-radius: var(--r-full); background: var(--white); border: 1px solid var(--border-soft);
  display: grid; place-items: center; color: var(--graphite); cursor: pointer; box-shadow: var(--shadow-xs);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), color var(--dur-fast); }
.carbtn:hover { color: var(--olive); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.carbtn:active { transform: translateY(0) scale(.97); }
.carbtn svg { width: 19px; height: 19px; }
.carbtn:disabled { opacity: .32; cursor: default; box-shadow: none; transform: none; color: var(--warm-gray); }
.qtrack { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(280px, calc(33.333% - 12px), 372px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; scroll-behavior: smooth; }
.qtrack::-webkit-scrollbar { display: none; }
.qtrack > .qcard { scroll-snap-align: start; height: 100%; display: flex; flex-direction: column; }
.qcard__a { font-family: var(--font-body); font-size: 14.5px; line-height: 1.6; color: var(--fg-secondary); margin: 8px 0 0; }
.qcard__lk { font-family: var(--font-ui); font-size: 14px; color: var(--olive); display: inline-flex; align-items: center; gap: 7px;
  text-transform: lowercase; margin-top: auto; padding-top: 14px; }
.qcard__lk .arr { color: var(--sage); transition: transform var(--dur-fast) var(--ease-out); }
.qcard:hover .qcard__lk .arr { transform: translateX(5px); }
@media (prefers-reduced-motion: reduce) { .qtrack { scroll-behavior: auto; } }

/* ---- contacts: два канала связи (главное) ---- */
.channels { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.channel { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: clamp(28px, 3.4vw, 42px); box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 16px; }
.channel--fast { border-color: color-mix(in srgb, var(--sage) 42%, transparent); }
.channel__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.channel__t { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 2.1vw, 28px); color: var(--graphite); line-height: 1.14; }
.channel__badge { font-family: var(--font-ui); font-size: 12px; text-transform: lowercase; color: #fff; background: var(--sage);
  padding: 4px 13px; border-radius: var(--r-pill); white-space: nowrap; }
.channel__d { font-family: var(--font-body); font-size: 15.5px; line-height: 1.66; color: var(--fg-secondary); margin: 0; }
.channel__d:not(:last-child) { flex: 1; }
.channel__eml { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2.8vw, 32px); color: var(--graphite); margin: 2px 0; }
.channel__eml a:hover { color: var(--olive); }
.channel__btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.channel__btns .btn { flex: 0 0 auto; white-space: nowrap; }

/* ---- contacts: дополнительные заметки ---- */
.minor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.minor { background: var(--cream); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 28px 30px; }
.minor__t { font-family: var(--font-display); font-weight: 400; font-size: 19px; color: var(--graphite); margin: 0 0 10px; }
.minor p { font-family: var(--font-body); font-size: 14.5px; line-height: 1.66; color: var(--fg-secondary); margin: 0; }
.minor p + p { margin-top: 12px; }
.minor p a, .minor .alink { color: var(--olive); }
.minor p a:hover { color: var(--graphite); }
.minor .alink { margin-top: 14px; }

/* ============================================================ LEGAL */
.legal-list { display: flex; flex-direction: column; gap: 2px; max-width: 760px; }
.legal-list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 4px;
  border-bottom: 1px solid var(--hairline); font-family: var(--font-body); font-size: 17px; color: var(--graphite); transition: color 200ms; }
.legal-list a:hover { color: var(--olive); }
.legal-list a .arr { color: var(--sage); transition: transform var(--dur-fast) var(--ease-out); }
.legal-list a:hover .arr { transform: translateX(5px); }

.reqs { background: var(--cream); border-radius: var(--r-lg); padding: clamp(26px, 4vw, 40px); max-width: 760px; }
.reqs h2 { margin: 0 0 18px; font-size: clamp(22px, 2.4vw, 28px); }
.reqs dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; }
.reqs dt { font-family: var(--font-ui); font-size: 14px; color: var(--warm-gray); }
.reqs dd { font-family: var(--font-body); font-size: 15px; color: var(--graphite); margin: 0; }
.reqs p { font-family: var(--font-body); font-size: 14.5px; line-height: 1.65; color: var(--fg-secondary); margin: 20px 0 0; }

.legal-prose { max-width: 760px; }
.legal-prose h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 2.4vw, 28px); color: var(--graphite); margin: 38px 0 14px; }
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose p { font-family: var(--font-body); font-size: 16px; line-height: 1.72; color: var(--graphite); margin: 0 0 18px; }
.legal-prose ul { margin: 0 0 20px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.legal-prose ul li { position: relative; padding-left: 26px; font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--graphite); }
.legal-prose ul li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 7px; height: 7px; border-radius: var(--r-full); background: var(--sage); }
.legal-prose a { color: var(--olive); text-decoration: underline; }
.legal-prose .upd { font-family: var(--font-ui); font-size: 13px; text-transform: lowercase; color: var(--warm-gray); margin-bottom: 30px; }

/* ---- sitemap ---- */
.smap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.smap__group .ttl { font-family: var(--font-display); font-weight: 400; font-size: 22px; color: var(--graphite); margin: 0 0 14px; }
.smap__group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.smap__group ul ul { margin: 9px 0 4px 16px; padding-left: 14px; border-left: 1px solid var(--hairline); }
.smap__group a { font-family: var(--font-body); font-size: 15.5px; color: var(--fg-secondary); transition: color 200ms; }
.smap__group a:hover { color: var(--olive); }

@media (max-width: 900px) {
  .vsplit, .vsplit--rev { grid-template-columns: 1fr; gap: 22px; }
  .vsplit--rev .vsplit__media { order: 0; }
  .vrow { grid-template-columns: 1fr 1fr; gap: 30px; }
  .showcase { grid-template-columns: 1fr 1fr; }
  .believe { grid-template-columns: 1fr 1fr; gap: 28px; }
  .minitiles { grid-template-columns: 1fr 1fr; }
  .plinks, .plinks--3 { grid-template-columns: 1fr; }
  .qcards { grid-template-columns: 1fr; }
  .channels { grid-template-columns: 1fr; }
  .minor-grid { grid-template-columns: 1fr; }
  .smap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .qtrack { grid-auto-columns: 84%; }
  .channel__btns { flex-direction: column; }
  .channel__btns .btn { width: 100%; }
}
@media (max-width: 700px) {
  .trustline { flex-wrap: wrap; white-space: normal; gap: 8px 14px; }
  .trustline__dot { display: none; }
  .trustline__item { width: 100%; text-align: center; }
}
@media (max-width: 560px) {
  .minitiles { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
  .vrow { grid-template-columns: 1fr; gap: 26px; }
  .showcase { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }
  .believe { grid-template-columns: 1fr; gap: 22px; max-width: 420px; margin-inline: auto; }
  .pstats { grid-template-columns: 1fr; gap: 10px; }
  .pstat + .pstat::before { display: none; }
  .smap { grid-template-columns: 1fr; }
}
/* —— планшет: широкие карточки-ссылки и q-карточки держим в 2 колонки —— */
@media (min-width: 561px) and (max-width: 900px) {
  .plinks, .plinks--3 { grid-template-columns: 1fr 1fr; }
  .qcards { grid-template-columns: 1fr 1fr; }
}
/* —— узкий мобайл 375 —— */
@media (max-width: 480px) {
  .reqs dl { grid-template-columns: 1fr; gap: 3px 0; }
  .reqs dt { margin-top: 12px; }
  .reqs dt:first-child { margin-top: 0; }
  .legal-list a { font-size: 16px; padding: 18px 2px; }
  .trust { gap: 16px; padding: 24px; }
  .contact-card { padding: 26px 22px; }
  .channel__eml, .contact-card .eml { font-size: 23px; word-break: break-word; }
  .plink { padding: 26px 24px; }
}
