:root {
  --ink: #2e2013;
  --body-c: #5c4a34;
  --navy: #47562b;
  --navy-deep: #333f1f;
  --accent: #b8451f;
  --accent-deep: #8f3416;
  --bg: #f7ead4;
  --bg2: #eedbb4;
  --green: #8a9b4c;
  --white: #fffdf8;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0; }
html { scroll-behavior: smooth; }
body { min-width: 320px; color: var(--body-c); background: var(--bg); font-family: "Public Sans", Arial, sans-serif; font-size: 17px; line-height: 165%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
address { font-style: normal; }
[class*="__container"] { width: 100%; max-width: 1210px; margin: 0 auto; padding: 0 30px; }
.wrapper { display: flex; flex-direction: column; min-height: 100%; overflow: hidden; }
.page { flex: 1 1 auto; }
.header { background: var(--bg); border-bottom: 1px solid rgba(46, 32, 19, 0.14); }
.header__container { display: flex; align-items: center; justify-content: space-between; min-height: 92px; }
.header__logo, .footer__logo { display: inline-flex; }
.header__logo-image, .footer__logo-image { width: 238px; height: auto; }
.header__label { color: var(--body-c); font-size: 12px; font-weight: 700; line-height: 100%; letter-spacing: 2px; text-transform: uppercase; }
.hero { position: relative; padding: 68px 0 78px; }
.hero__container { position: relative; z-index: 1; display: flex; align-items: center; gap: 64px; }
.hero__content { flex: 0 1 52%; }
.hero__title { max-width: 660px; margin-bottom: 25px; color: var(--ink); font-family: "Domine", Georgia, serif; font-size: 47px; font-weight: 700; line-height: 116%; letter-spacing: -1.4px; }
.hero__text { max-width: 635px; font-size: 19px; line-height: 165%; }
.hero__picture { flex: 1 1 48%; height: 520px; overflow: hidden; background: var(--bg2); clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%); }
.hero__image { width: 100%; height: 100%; object-fit: cover; }
.benefits { position: relative; z-index: 1; padding: 0 0 80px; background: var(--bg); }
.benefit { display: flex; flex-direction: column; padding: 80px 0; scroll-margin-top: 20px; }
.benefit__body { display: flex; align-items: stretch; gap: 150px; }
.benefit__picture { position: relative; flex: 0 0 43%; min-height: 0; overflow: hidden; background: var(--bg2); clip-path: polygon(0 0, 89% 0, 100% 100%, 0 100%); }
.benefit__image { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.benefit__content { position: relative; display: flex; flex: 1 1 auto; flex-direction: column; justify-content: flex-start; min-width: 0; padding-top: 34px; }
.benefit__number { position: absolute; top: 190px; left: -158px; z-index: 0; color: var(--bg); font-family: "Domine", Georgia, serif; font-size: 118px; font-weight: 700; line-height: 100%; -webkit-text-stroke: 2px var(--green); user-select: none; }
.benefit__title, .benefit__text, .benefit__list, .benefit__button { position: relative; z-index: 1; }
.benefit__title { margin-bottom: 22px; color: var(--ink); font-family: "Domine", Georgia, serif; font-size: 32px; font-weight: 700; line-height: 125%; letter-spacing: -0.5px; }
.benefit__text { margin-bottom: 23px; }
.benefit__list { display: flex; flex-direction: column; gap: 10px; }
.benefit__item { position: relative; padding-left: 31px; color: var(--ink); font-size: 16px; font-weight: 600; line-height: 145%; }
.benefit__item::before { position: absolute; top: 0; left: 0; color: var(--green); font-size: 20px; font-weight: 700; content: "✓"; }
.benefit__button { margin-top: 30px; }
.button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 62px; padding: 15px 22px; color: #ffffff; background: var(--accent); font-size: 16px; font-weight: 700; line-height: 140%; transition: background-color 0.2s ease, transform 0.2s ease; }
.button:hover { background: var(--accent-deep); transform: translateY(-2px); }
.button:focus-visible, .footer__link:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.footer { color: rgba(247, 234, 212, 0.78); background: var(--ink); }
.footer__container { padding-top: 66px; padding-bottom: 30px; }
.footer__top { display: flex; justify-content: space-between; gap: 70px; padding-bottom: 45px; border-bottom: 1px solid rgba(247, 234, 212, 0.17); }
.footer__logo { align-self: flex-start; flex: 0 0 270px; }
.footer__legal { flex: 0 1 250px; }
.footer__company { flex: 0 1 360px; }
.footer__title { margin-bottom: 18px; color: var(--bg); font-family: "Domine", Georgia, serif; font-size: 18px; font-weight: 600; line-height: 130%; }
.footer__links { display: flex; flex-direction: column; gap: 7px; }
.footer__link { transition: color 0.2s ease; }
.footer__link:hover { color: var(--bg); }
.cookie-settings-link { padding: 0; color: inherit; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.footer__address { line-height: 165%; }
.footer__notices { display: flex; gap: 45px; padding: 34px 0; }
.footer__notice { flex: 1 1 50%; font-size: 12px; line-height: 160%; }
.footer__copyright { padding-top: 22px; border-top: 1px solid rgba(247, 234, 212, 0.17); font-size: 12px; line-height: 140%; text-align: center; }
.legal-page { padding: 72px 0 100px; background: var(--white); }
.legal-page__container { max-width: 900px; }
.legal-page__back { display: inline-block; margin-bottom: 28px; color: var(--accent); font-weight: 700; line-height: 130%; }
.legal-page__title { margin-bottom: 38px; color: var(--ink); font-family: "Domine", Georgia, serif; font-size: 44px; font-weight: 700; line-height: 120%; }
.legal-page__section { margin-bottom: 32px; }
.legal-page__subtitle { margin-bottom: 12px; color: var(--ink); font-family: "Domine", Georgia, serif; font-size: 23px; font-weight: 700; line-height: 130%; }
.legal-page__text { margin-bottom: 13px; }
.legal-page__list { display: flex; flex-direction: column; gap: 8px; padding-left: 24px; list-style: disc; }
.legal-page__list li { list-style: disc; }
.legal-page__table { width: 100%; border-collapse: collapse; }
.legal-page__table th, .legal-page__table td { padding: 14px; border: 1px solid var(--bg2); line-height: 145%; text-align: left; vertical-align: top; }
.legal-page__table th { color: var(--ink); background: var(--bg); }

@media (max-width: 991px) {
  .hero__container { gap: 38px; }
  .hero__title { font-size: 39px; }
  .hero__picture { height: 470px; }
  .benefit__body { gap: 85px; }
  .benefit__picture { flex-basis: 40%; }
  .benefit__number { left: -88px; font-size: 88px; }
  .footer__top { flex-wrap: wrap; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  [class*="__container"] { padding-right: 20px; padding-left: 20px; }
  .header__container { min-height: 76px; }
  .header__logo-image { width: 172px; }
  .header__label { font-size: 10px; letter-spacing: 1.4px; }
  .hero { padding: 42px 0 55px; }
  .hero__container, .benefit__body { flex-direction: column; }
  .hero__title { font-size: 31px; letter-spacing: -0.7px; }
  .hero__text { font-size: 17px; }
  .hero__picture { flex-basis: auto; width: 100%; height: 330px; clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%); }
  .benefits { padding-bottom: 60px; }
  .benefit { padding: 55px 0; }
  .benefit__body { gap: 30px; }
  .benefit__picture { order: 2; flex: 0 0 330px; width: 100%; height: 330px; }
  .benefit__content { order: 1; padding-top: 90px; }
  .benefit__number { top: 0; left: 0; font-size: 82px; }
  .benefit__title { font-size: 26px; }
  .benefit__button { margin-top: 30px; }
  .button { font-size: 15px; }
  .footer__top, .footer__notices { flex-direction: column; gap: 36px; }
  .footer__logo, .footer__legal, .footer__company { flex-basis: auto; }
  .legal-page { padding: 48px 0 70px; }
  .legal-page__title { font-size: 31px; }
  .legal-page__table { display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .footer__link { transition: none; }
}

/* Cookie consent */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.cookie-modal-open { overflow: hidden; }
.cookie-banner { position: fixed; right: 24px; bottom: 24px; left: 24px; z-index: 1000; display: none; align-items: center; gap: 32px; max-width: 1160px; margin: 0 auto; padding: 24px 26px; color: var(--body-c); background: var(--white); border: 1px solid rgba(46, 32, 19, 0.18); box-shadow: 0 12px 38px rgba(46, 32, 19, 0.22); }
.cookie-banner--visible { display: flex; }
.cookie-banner__content { flex: 1 1 auto; }
.cookie-banner__title { margin-bottom: 5px; color: var(--ink); font-family: "Domine", Georgia, serif; font-size: 20px; line-height: 130%; }
.cookie-banner__text { font-size: 14px; line-height: 155%; }
.cookie-banner__link { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__actions, .cookie-settings__actions { display: flex; flex: 0 0 auto; gap: 10px; }
.cookie-button { min-height: 45px; padding: 10px 17px; border: 1px solid var(--accent); font-family: inherit; font-size: 14px; font-weight: 700; line-height: 130%; cursor: pointer; transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease; }
.cookie-button:hover { transform: translateY(-1px); }
.cookie-button--primary { color: #fff; background: var(--accent); }
.cookie-button--primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.cookie-button--secondary { color: var(--accent); background: transparent; }
.cookie-button--secondary:hover { color: #fff; background: var(--accent); }
.cookie-button:focus-visible, .cookie-banner__link:focus-visible, .cookie-settings__close:focus-visible, .cookie-switch input:focus-visible + .cookie-switch__control { outline: 3px solid var(--green); outline-offset: 3px; }
.cookie-modal { position: fixed; inset: 0; z-index: 1100; display: none; align-items: center; justify-content: center; padding: 24px; }
.cookie-modal--visible { display: flex; }
.cookie-modal__backdrop { position: absolute; inset: 0; background: rgba(46, 32, 19, 0.68); }
.cookie-settings { position: relative; z-index: 1; width: min(100%, 680px); max-height: calc(100vh - 48px); padding: 34px; overflow-y: auto; color: var(--body-c); background: var(--white); box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28); }
.cookie-settings__close { position: absolute; top: 14px; right: 17px; width: 38px; height: 38px; color: var(--ink); background: transparent; font-family: Arial, sans-serif; font-size: 31px; line-height: 1; cursor: pointer; }
.cookie-settings__title { padding-right: 35px; color: var(--ink); font-family: "Domine", Georgia, serif; font-size: 28px; line-height: 125%; }
.cookie-settings__description { margin-top: 12px; font-size: 15px; line-height: 155%; }
.cookie-categories { margin: 25px 0; border-top: 1px solid rgba(46, 32, 19, 0.15); }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 17px 0; border-bottom: 1px solid rgba(46, 32, 19, 0.15); }
.cookie-category__title { color: var(--ink); font-size: 16px; line-height: 140%; }
.cookie-category__text { margin-top: 3px; font-size: 13px; line-height: 145%; }
.cookie-switch { position: relative; flex: 0 0 46px; width: 46px; height: 26px; cursor: pointer; }
.cookie-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cookie-switch__control { position: absolute; inset: 0; background: #a89f94; border-radius: 20px; transition: background-color 0.2s ease; }
.cookie-switch__control::after { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); content: ""; transition: transform 0.2s ease; }
.cookie-switch input:checked + .cookie-switch__control { background: var(--navy); }
.cookie-switch input:checked + .cookie-switch__control::after { transform: translateX(20px); }
.cookie-switch input:disabled + .cookie-switch__control { cursor: not-allowed; opacity: 0.65; }

@media (max-width: 767px) {
  .cookie-banner { right: 12px; bottom: 12px; left: 12px; flex-direction: column; align-items: stretch; gap: 17px; padding: 20px; }
  .cookie-banner__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cookie-banner__actions .cookie-button--primary { grid-column: 1 / -1; }
  .cookie-settings { padding: 28px 20px 20px; }
  .cookie-settings__title { font-size: 23px; }
  .cookie-settings__actions { flex-direction: column; }
  .cookie-settings__actions .cookie-button--primary { order: -1; }
}

@media (max-width: 410px) {
  .cookie-banner__actions { display: flex; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-button, .cookie-switch__control, .cookie-switch__control::after { transition: none; }
}
