/* =========================================================
   PLIS ME — информационные страницы (extension/plisme/page):
   «Про нас» (About us), «Контакти» + окно «Дякуємо за звернення» (Contact us), текстовые статьи (Privacy policy).
   Геометрия — спеки *_AI_Implementation_Spec, фреймы 1920 / 1440 / 1024 / 375.
   ========================================================= */

/* ---------- Общая типографика ---------- */
.about__title, .about__h2, .contact__title, .article-page__title { font-size: var(--fs-24); line-height: var(--lh-24); font-weight: var(--fw-medium); }
.about__text, .about__lead, .about__item-text, .contact__text, .article-page__body { font-weight: var(--fw-light); }

/* =========================================================
   Про нас: main — 40 сверху, 32 по бокам, 80 снизу; между крупными блоками 100
   ========================================================= */
.about { display: grid; gap: 100px; padding: 40px var(--gutter) 80px; }
.about__hero { display: block; width: 100%; aspect-ratio: 1856 / 400; object-fit: cover; border-radius: 2px; background: var(--bg-placeholder); }

.about__intro, .about__head { display: grid; gap: 32px; text-align: center; }
.about__text--narrow { max-width: 876px; margin-inline: auto; }

/* История (фото → текст) и ценности (текст → фото): две колонки, gap 32 */
.about__split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: center; }
.about__photo { display: block; width: 100%; height: auto; aspect-ratio: 912 / 500; object-fit: cover; border-radius: 2px; background: var(--bg-placeholder); }
.about__split--reverse .about__photo { order: 2; }
.about__col { display: grid; gap: 32px; align-content: center; align-self: center; }
.about__col > .about__h2, .about__heading { text-align: center; }
.about__heading { display: grid; gap: 16px; }
.about__accent { color: var(--text-sale); font-weight: var(--fw-light); }
.about__list { display: grid; gap: 32px; }
.about__item-title { font-size: var(--fs-14); line-height: var(--lh-14); font-weight: var(--fw-medium); }
.about__item-text { margin-top: 8px; }

/* Аромати: 3 × 2, gap 16 / 32; переваги: 3 в ряд, gap 16 */
.about__block { display: grid; gap: 100px; }
.about__rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 16px; row-gap: 32px; }
.about__rail:focus-visible { outline: 1px solid var(--focus-ring); outline-offset: 4px; }
.about-scent { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.about-scent__img { display: block; width: 100%; height: auto; aspect-ratio: 140 / 160; object-fit: cover; border-radius: 2px; background: var(--bg-placeholder); }
.about-scent .scent__dot { width: 8px; height: 8px; }
.about-scent .scent { gap: 5px; }
.about-scent .scent[data-scent="revelation"] .scent__dot, .about-scent .scent[data-scent="wood-sea"] .scent__dot { box-shadow: inset 0 0 0 .5px var(--border-default); }
.about-scent .scent[data-scent="clean-h2o"] .scent__dot { box-shadow: inset 0 0 0 .5px var(--border-strong); }
.about-scent__text { font-size: var(--fs-14); line-height: var(--lh-14); }
.about-benefit { display: grid; gap: 12px; align-content: start; min-width: 0; }
.about-benefit__media { position: relative; }
.about-benefit__img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 2px; background: var(--bg-placeholder); }
.about-benefit__title { position: absolute; top: 16px; left: 16px; right: 16px; font-size: var(--fs-16); line-height: 22px; font-weight: var(--fw-medium); }

/* =========================================================
   Контакти: внутренняя область 1440, две колонки по 680 с промежутком 80
   ========================================================= */
.contact {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; align-items: start;
  max-width: calc(1440px + 2 * var(--gutter)); margin: 0 auto; padding: 40px var(--gutter) 80px;
}
.contact__info { display: grid; gap: 80px; }
.contact__intro { display: grid; gap: 16px; }
.contact__channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.contact__channel { display: grid; gap: 8px; align-content: start; min-width: 0; }
.contact__label { font-weight: var(--fw-medium); }
.contact__value { justify-self: start; font-weight: var(--fw-light); overflow-wrap: anywhere; transition: color var(--dur-fast); }
a.contact__value:hover { color: var(--text-secondary); }
.contact__social { display: grid; gap: 10px; justify-items: start; }
.contact__social-link { gap: 5px; font-weight: var(--fw-medium); }

.contact__form-wrap { display: grid; gap: 80px; }
.contact-form { display: grid; gap: 32px; }
.contact-form__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.contact-form__field--full { grid-column: 1 / -1; }
.contact-form .field-line__label { font-weight: var(--fw-regular); }
.contact-form__textarea { min-height: 76px; padding: 11px 0; resize: none; }
.contact-form .ui-select__trigger {
  height: 40px; padding: 0; border-bottom: 1px solid var(--border-default); color: var(--text-primary);
  font-size: var(--fs-14); line-height: var(--lh-14); transition: border-color var(--dur-fast);
}
.contact-form .ui-select__value.is-placeholder { color: var(--text-primary); }      /* «Обери тему» — #111 по макету */
.contact-form .ui-select__chev { width: 24px; height: 24px; padding: 3px; }
.contact-form .ui-select__trigger:hover:not(:disabled) { border-bottom-color: var(--color-pink); }
.contact-form .ui-select.is-open .ui-select__trigger, .contact-form .ui-select__trigger:focus-visible { border-bottom-color: var(--border-strong); outline: none; }
.contact-form .ui-select__trigger[aria-invalid="true"] { border-bottom-color: var(--color-grey-400); }
.contact-form .ui-select__menu { right: 0; }
.contact-form__submit { justify-self: center; width: min(340px, 100%); }
.contact-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Окно «Дякуємо за звернення»: 548 × 262, отступы 24 / 24 / 32, иконка 48 по центру верхнего ряда */
.contact-thanks .modal__panel { padding: 24px 24px 32px; }
.contact-thanks__top { position: relative; display: flex; justify-content: center; height: 40px; }
.contact-thanks__icon { position: absolute; top: -4px; left: 50%; width: 48px; height: 48px; margin-left: -24px; color: var(--accent-oval); }
.contact-thanks .contact-thanks__close { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 40px; height: 40px; }
.contact-thanks__body { display: grid; gap: 32px; margin-top: 16px; text-align: center; }
.contact-thanks__copy { display: grid; gap: 12px; }
.contact-thanks__copy .modal__heading:focus { outline: none; }
.contact-thanks__text { font-weight: var(--fw-light); }

/* =========================================================
   Текстовая статья: колонка 850, H1 → текст 32, между абзацами 24
   ========================================================= */
.article-page { width: min(850px, 100% - 2 * var(--gutter)); box-sizing: content-box; margin: 0 auto; padding: 40px var(--gutter) 80px; }
.article-page__body { margin-top: 32px; }
.article-page__body > * + * { margin-top: 24px; }
.article-page__body h2, .article-page__body h3 { font-size: var(--fs-16); line-height: 22px; font-weight: var(--fw-medium); }
.article-page__body h2 + *, .article-page__body h3 + * { margin-top: 8px; }
.article-page__body b, .article-page__body strong { font-weight: var(--fw-medium); }
.article-page__body ul, .article-page__body ol { padding-left: 20px; }
.article-page__body ul { list-style: disc; }
.article-page__body ol { list-style: decimal; }
.article-page__body a { text-decoration: underline; text-underline-offset: 3px; transition: color var(--dur-fast); }
.article-page__body a:hover { color: var(--text-secondary); }
.article-page__body table { width: 100%; border-collapse: collapse; }
.article-page__body td, .article-page__body th { padding: 8px; border: 1px solid var(--border-default); text-align: left; }
.article-page__body img { max-width: 100%; height: auto; }

/* ---------- 1440 ---------- */
@media (max-width: 1599px) {
  .about__photo { aspect-ratio: 672 / 420; }
}

/* ---------- 1024: контакты — способы связи столбцом, форма справа ---------- */
@media (max-width: 1279px) {
  .about__photo { aspect-ratio: 464 / 456; }
  .contact { gap: 40px; }
  .contact__info { gap: 32px; }
  .contact__channels { grid-template-columns: 1fr; gap: 24px; }
  .contact-form__fields { gap: 24px; }
}

/* ---------- 375: одна колонка, стрічки ароматів і переваг ---------- */
@media (max-width: 767px) {
  .about__title, .about__h2, .contact__title, .article-page__title { font-size: var(--fs-16); line-height: 22px; }
  .about__text, .about__lead, .about__item-text, .about__accent, .about-scent__text, .about-benefit__text,
  .contact__text, .contact__label, .contact__value, .contact__social-link, .article-page__body { font-size: var(--fs-12); line-height: var(--lh-12); }

  .about { gap: 24px; padding-top: 24px; }
  .about__hero { aspect-ratio: 343 / 110; }
  .about__intro, .about__head { gap: 16px; }
  .about__split { grid-template-columns: 1fr; gap: 24px; }
  .about__split--reverse .about__photo { order: 0; }                   /* на 375 и в ценностях фото — перед текстом */
  .about__photo { aspect-ratio: 343 / 188; }
  .about__col { gap: 24px; }
  .about__list { gap: 24px; }
  .about__heading { gap: 8px; }
  .about__block { gap: 24px; }
  .about__rail {
    display: flex; gap: 8px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .about__rail::-webkit-scrollbar { display: none; }
  .about-scent, .about-benefit { flex: none; width: 270px; scroll-snap-align: start; }
  .about-scent .scent { font-size: var(--fs-12); line-height: var(--lh-12); }
  .about-benefit__title { font-size: var(--fs-14); line-height: var(--lh-14); }

  .contact { grid-template-columns: 1fr; gap: 32px; padding-top: 24px; }
  .contact__info { gap: 24px; }
  .contact__intro { gap: 8px; }
  .contact__channel { gap: 8px; }
  .contact__social { gap: 10px; }
  .contact__form-wrap { gap: 24px; }
  .contact-form__fields { grid-template-columns: 1fr; }
  .contact-form .field-line__label { font-size: var(--fs-14); line-height: var(--lh-14); }

  .contact-thanks .modal__panel { padding: 16px; }
  .contact-thanks__icon { top: 0; width: 40px; height: 40px; margin-left: -20px; }
  .contact-thanks .contact-thanks__close svg { width: 16px; height: 16px; }
  .contact-thanks__body { gap: 24px; }
  .contact-thanks .modal__heading { font-size: var(--fs-16); line-height: 22px; }
  .contact-thanks__copy { gap: 12px; }
  .contact-thanks__text { font-size: var(--fs-12); line-height: var(--lh-12); }
  .contact-thanks .btn { height: 36px; }

  .article-page { padding-top: 24px; }
}
