/* =========================================================
   GARTEL landing — FULL styles.css
   Breakpoints:
   - Desktop Large: >1440px
   - Desktop: default 1440px
   - Tablet: <=1024px
   - Mobile: <=640px
   - Small Mobile: <=480px

   Assets:
   - img/section.png (hero background)
   - img/cat.png (footer background cat)
========================================================= */

/* ========== Reset / Base ========== */
*{ box-sizing:border-box; }
html,body{ height:100%; }
html{ font-size:16px; scroll-behavior: smooth; }
body{
  margin:0;
  background:#E8E3D9;
  color:#2f2f2f;
  font-family:"IBM Plex Serif", serif;
  line-height:1.2;
}
img{ display:block; max-width:100%; height:auto; }
button{ font-family:inherit; }

/* container: макет 1440, поля 24px слева/справа (48px суммарно) */
.container{
  width:min(1440px, calc(100% - 48px));
  margin-inline:auto;
}

/* ==========================
   BUTTONS (общие состояния)
========================== */
.btn{
  appearance:none;
  border:1px solid transparent;
  border-radius:0;
  background:transparent;
  font:inherit;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  text-align:center;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, opacity .18s ease;
  user-select:none;
}
.btn:disabled, .btn[aria-disabled="true"]{ opacity:.55; cursor:not-allowed; }
.btn:focus, .btn:focus-visible{ outline:none; }

.btn--primary, .btn--secondary{
  background:#3F4223;
  color:#E8E3D9;
  transition: none;
  cursor: pointer;
  text-decoration: none;
}
.btn--primary:hover, .btn--secondary:hover{ background:#34371E; }
.btn--primary:focus-visible, .btn--secondary:focus-visible{
  background:transparent;
  color:#3F4223;
  border-color:#3F4223;
}

.btn--light{
  background:#E8E3D9;
  color:#3F4223;
}
.btn--light:hover{ background:#DCD6CB; }
.btn--light:focus-visible{
  background:transparent;
  color:#E8E3D9;
  border-color:#E8E3D9;
}
.btn-ussd--light{
  background:#3F4223;
  color:#E8E3D9;
  transition: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-ussd--light:hover{ background:#34371D; text-decoration: none; outline: none;}
.btn-ussd--light:focus-visible{
  background:transparent;
  color:#E8E3D9;
  border-color:#E8E3D9;
  text-decoration: none;
  outline: none;
}

/* =========================================================
   HEADER
========================================================= */
.header{
  height:115px;
  display:flex;
  align-items:center;
}
.header__inner{
  height:100%;
  display:flex;
  justify-content:center;
  align-items:center;
}
.header__logo{
  height:28px;
  width:auto;
}

/* =========================================================
   HERO
========================================================= */
.hero{ background:#E8E3D9; }
.hero__bg{
  height:696px;
  width:100%;
  background:url("img/section.png") center/cover no-repeat;
}
.hero__inner{
  height:100%;
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap:36px;
  align-items:center;
  padding-top:8px;
}
.hero__content{ padding-left:6px; }
.hero__subtitle{ margin:0 0 30px; font-weight:400; font-size:40px; line-height:1; letter-spacing:0.02em; color:#3F4223; }
.hero__title{ margin:0 0 45px; font-weight:500; font-size:80px; line-height:1; color:#3F4223; text-transform:uppercase; }
.hero__description{ margin:0 0 160px; font-weight:300; font-size:30px; line-height:1; color:#6b6b62; max-width:520px; }
.hero__price{ margin:0; font-weight:300; font-size:30px; line-height:1; color:#6b6b62; }
.hero__visual{ display:flex; justify-content:flex-end; align-items:center; }

/* HERO BOTTOM */
.hero-bottom{ padding:50px 0 10px; background:#E8E3D9; }
.hero-bottom__inner{
  display: flex;
  flex-direction: row;
  justify-content: space-between; /* равные зоны слева и справа */
  align-items: flex-start;
  gap: 48px;
}
.hero-bottom__title{ margin:0 0 12px; font-weight:500; font-size:40px; line-height:1; text-transform:uppercase; color:#3F4223; }
.hero-bottom__desc{ margin:0 0 70px; font-weight:400; font-size:25px; line-height:1; color:#6b6b62; max-width:520px; }
.hero-bottom__actions{ justify-self:end; display:flex; flex-direction:column; gap:16px; padding-top:6px; }
.hero-bottom__actions .btn{ width:443px; height:47px; padding:0; }

/* =========================================================
   CTA
========================================================= */
.cta{
  padding:80px 0 40px;
  overflow:visible;
  --cta-img-w:744px;
  --cta-card-w:830px;
  --cta-overlap:0;
  --cta-card-top:170px;
}
.cta__inner{
  position:relative;
  display:grid;
  grid-template-columns: var(--cta-img-w) 1fr;
  column-gap:48px;
  align-items:start;
  min-height:720px;
  padding-bottom:60px;
}
.cta__visual{ width:var(--cta-img-w); position:relative; z-index:1; }
.cta__visual img{ width:100%; height:auto; }
.cta-mobil__visual{ width:var(--cta-img-w); position:relative; z-index:1; display: none; }
.cta-mobil__visual img{ width:100%; height:auto; }
.cta__content{ position:relative; z-index:2; min-width:0; padding-top:6px; }
.cta__subtitle{
  margin:35px 0 0;
  font-weight:500;
  font-size:30px;
  text-transform:uppercase;
  color:#3F4223;
  position:absolute;
  right:0;
  top:0;
  width:520px;
}
.cta__card{
  width:var(--cta-card-w);
  min-height:558px;
  background:#3F4223;
  color:#E8E3D9;
  padding:44px 54px 38px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  position:absolute;
  z-index:5;
  right:0;
  top:var(--cta-card-top);
  transform:translateX(calc(-1 * var(--cta-overlap)));
}
.cta__title{ margin:0 0 65px; font-weight:300; font-size:50px; line-height:1; letter-spacing:0.02em; }
.cta__text{ margin:0 0 65px; font-weight:300; font-size:34px; line-height:1; letter-spacing:0.02em; max-width:680px; }
.cta__form{ width:100%; display:flex; justify-content:center; margin-bottom:20px; }
.cta__ussd{ width:100%; display:flex; justify-content:center; }
.cta__btn{ width:667px; height:60px; padding:10px; display:flex; align-items:center; justify-content:center; }
.cta-ussd__btn{ width:667px; height:60px; padding:10px; display:flex; align-items:center; justify-content:center; border: 2px solid #E8E3D9; border-radius: 0; }

/* =========================================================
   AUDIENCE
========================================================= */
.audience{ padding:30px 0 40px; }
.section-title{ margin:0 0 36px; text-align:center; font-weight:500; font-size:50px; line-height:1; text-transform:uppercase; color:#3F4223; }
.section-title--left{ text-align:left; margin-bottom:36px; }
.audience__grid{ display:grid; grid-template-columns:1fr 1fr; gap:26px 0; }
.audience__item{ padding:18px; }
.audience__item h3{ margin:0 0 36px; font-weight:500; font-size:18px; line-height:1.1; text-transform:uppercase; color:#3F4223; }
.audience__item p{ margin:0; font-weight:300; font-size:18px; line-height:1.2; color:#6b6b62; }
.audience__item--dark{ background:#3F4223; }
.audience__item--dark h3, .audience__item--dark p{ color:#E8E3D9; }

/* =========================================================
   FAQ
========================================================= */
.faq{ padding:20px 0 86px; }
.faq__list{ display:grid; gap:24px; max-width:1100px; }
.faq__item{ padding:0; display:flex; flex-direction:column; max-width:1100px; }
.faq__item h3{ margin:0; font-weight:400; font-size:28px; line-height:1.1; color:#3F4223; border-bottom:2px solid #494949; padding-bottom:8px; max-width:760px; }
.faq__item p{ margin:4px 0 0; font-weight:400; font-size:28px; line-height:1.1; color:#3F4223; max-width:1100px; }

/* =========================================================
   FOOTER
========================================================= */
.footer{ background:#E8E3D9; }
.footer__bg{
  width: 100%;
  height: 540px; /* базовая высота */
  background-image: url("img/cat.png"), linear-gradient(180deg, #E8E3D9 0%, #DFD8CC 100%);
  background-repeat: no-repeat;
  background-position: right bottom; /* котик справа */
  background-size: cover; /* картинка растягивается на весь блок */
  position: relative;
}

/* Tablet */
@media (max-width:1024px){
  .footer__bg{
    background-position: center bottom;
    background-size: cover;
    height: 400px;
  }
}

/* Mobile */
@media (max-width:640px){
  .footer__bg{
    background-position: center bottom;
    background-size: contain; /* чтобы котик полностью помещался */
    height: 200px;
  }
}
.footer__inner{ height:100%; display:flex; align-items:flex-end; padding-bottom:48px; }
.footer__brand img{ height:30px; width:auto; margin-bottom:10px; }
.footer__brand p{ margin:0; font-weight:400; font-size:12px; letter-spacing:0.08em; text-transform:uppercase; color:#6b6b62; }

/* =========================================================
   POPUP
========================================================= */
.popup{ position:fixed; inset:0; z-index:999; display:none; }
.popup.is-open{ display:block; }
.popup__overlay{ position:absolute; inset:0; background:rgba(0,0,0,0.35); }
.popup__content{
  position:relative; z-index:2;
  width:min(640px, calc(100% - 32px));
  max-height:calc(100vh - 32px);
  margin:16px auto;
  background:#E8E3D9;
  display:flex; flex-direction:column;
  overflow-y:auto;
  justify-content:flex-start; align-items:center;
}
.popup__close{ position:absolute; top:12px; right:12px; background:none; border:none; font-size:28px; cursor:pointer; color:#3F4223; }
.popup__body{ padding:28px 24px 32px; width:100%; max-width:480px; display:flex; flex-direction:column; }
.popup__title{ margin:0 0 6px; font-weight:500; font-size:34px; line-height:1.1; color:#3F4223; }
.popup__subtitle{ margin:0 0 24px; font-weight:300; font-size:18px; line-height:1.2; color:#6b6b62; }
.popup__form{ display:flex; flex-direction:column; gap:18px; }
.popup__label{ display:flex; flex-direction:column; gap:6px; font-weight:400; font-size:16px; color:#3F4223; }
.popup__label input{ height:44px; padding:0 14px; border:1px solid #8b8b80; background:#fff; font-family:inherit; font-size:16px; }
.popup__label input::placeholder{ color:#8b8b80; }
.popup__policy{ display:flex; gap:10px; font-size:12px; line-height:1.2; color:#3F4223; }
.popup__policy input{ margin-top:2px; }
.popup__policy a{ color:#3F4223; text-decoration:underline; }
.popup__submit{ margin-top:10px; height:52px; background:#3F4223; color:#E8E3D9; border:none; cursor:pointer; font-size:16px; font-family:inherit; }
.popup__hero{ width:100%; height:439px; background-image:url("img/form.png"); background-size:cover; background-repeat:no-repeat; background-position:center center; }

/* =========================================================
   TABLET (<=1024px)
========================================================= */
@media (max-width:1024px){
  .hero__bg{ height:auto; padding:30px 0; }
  .hero__inner{ grid-template-columns:1fr; gap:20px; height:auto; }
  .hero__content{ padding-left:0; }
  .hero__visual{ justify-content:center; }

  .hero__subtitle{ width:70%; margin-right: auto; margin-left: auto; }
  .hero__title{ width:70%; margin-right: auto; margin-left: auto; }
  .hero__description, .hero__price{ width:40%; margin-left: 150px;}

  .hero-bottom{ padding:18px 0 10px; }
  .hero-bottom__inner{
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  .hero-bottom__title{ width:85%; margin-right: auto; margin-left: auto;}
  .hero-bottom__desc{ width:50%; margin-left: 75px; }
  .hero-bottom__actions{ flex-direction:column; gap:12px;  width:100% }
  .hero-bottom__actions .btn{ width:70%; margin-right: auto; margin-left: auto; }
  .hero-bottom__text { width:100%; }

  .cta{ --cta-overlap:0px; --cta-card-top:0px; }
  .cta__inner{ grid-template-columns:1fr; row-gap:18px; min-height:0; padding-bottom:0; }
  .cta__subtitle{ position:static; font-size:30px; text-align:left; width:70%; margin-right: auto; margin-left: auto; margin-bottom: 30px;}

  .cta__visual{ width:100%; margin:0 auto 8px; display: none; }
  .cta-mobil__visual{ display: block; width:85%; margin-right: auto; margin-left: auto; }
  .cta__card{ position:static; transform:none; min-height:0; padding:34px 28px 28px; width:85%; margin-right: auto; margin-left: auto;}

  .cta__btn{ width:100%; height:60px; }
  .cta-ussd__btn{ width:100%; height:60px; }
  .cta__content{ width:100%; margin:auto; }

  .audience__grid{ grid-template-columns:1fr; gap:18px; }
  .audience__item{ width:90%; }
  .audience-mobil__item-zero{ margin-right: auto; background:#3F4223;}
  .audience-mobil__item-zero h3, .audience-mobil__item-zero p{ color:#E8E3D9; }
  .audience-mobil__item-one{ margin-left: auto; background:#E8E3D9;}
  .audience-mobil__item-one h3, .audience-mobil__item-one p{ color:#2f2f2f; }
  .audience-mobil__item-two{ margin-right: auto; background:#3F4223;}
  .audience-mobil__item-two h3, .audience-mobil__item-two p{ color:#E8E3D9; }
  .audience-mobil__item-tree{ margin-left: auto; background:#E8E3D9;}
  .audience-mobil__item-tree h3, .audience-mobil__item-tree p{ color:#2f2f2f; }

  .section-title{ text-align:center; }
  .faq { padding: 20px 0 26px}
  .faq__list{ max-width:none; width:85%; margin-right: auto; margin-left: auto;}
  .footer__inner{ padding-bottom:36px; }

  .container{
    width:100%;
    margin-inline:auto;
  }
}

/* =========================================================
   MOBILE (<=640px)
========================================================= */
@media (max-width:640px){
  .header{ height:80px; }
  .header__logo{ height:22px; }

  .hero__subtitle{ font-size:18px; text-align:center; }
  .hero__title{ font-size:44px; text-align:center; }
  .hero__description, .hero__price{ font-size:16px; line-height:1.15; width:70%; margin-right: auto; margin-left: auto;}
  .hero-bottom{ margin-bottom: 50px; }
  .hero-bottom__title{ font-size:22px; width:85%; margin-right: auto; margin-left: auto;}
  .hero-bottom__desc{ font-size:16px; line-height:1.2; display: none;}
  .hero-bottom__actions .btn{ max-width:none; height:47px; width:70%; margin-right: auto; margin-left: auto;}

  .cta{ padding:24px 0 32px; }
  .cta__inner{ display:flex; flex-direction:column; gap:16px; }
  .cta__subtitle{ position:static; max-width:none; font-size:22px; line-height:1.1; width:70%; margin-right: auto; margin-left: auto; margin-bottom: 30px;}
  .cta__visual{ width:100%; margin:0 auto 8px; display: none; }
  .cta-mobil__visual{ display: block; width:85%; margin-right: auto; margin-left: auto; }
  .cta__card{ position:static; transform:none; max-width:none; padding:28px 20px 24px; width:85%; margin-right: auto; margin-left: auto;}
  .cta__title{ font-size:28px; line-height:1.1; margin: 20px 0 40px;}
  .cta__text{ font-size:18px; line-height:1.2; }
  .cta__btn{ width:100%; height:52px; }
  .cta-ussd__btn{ width:100%; height:52px; }
  .cta__content{ width:100%; margin:auto; }

  .audience__item{ width:90%; }
  .audience-mobil__item-zero{ margin-right: auto; background:#3F4223;}
  .audience-mobil__item-zero h3, .audience-mobil__item-zero p{ color:#E8E3D9; }
  .audience-mobil__item-one{ margin-left: auto; background:#E8E3D9;}
  .audience-mobil__item-one h3, .audience-mobil__item-one p{ color:#2f2f2f; }
  .audience-mobil__item-two{ margin-right: auto; background:#3F4223;}
  .audience-mobil__item-two h3, .audience-mobil__item-two p{ color:#E8E3D9; }
  .audience-mobil__item-tree{ margin-left: auto; background:#E8E3D9;}
  .audience-mobil__item-tree h3, .audience-mobil__item-tree p{ color:#2f2f2f; }

  .section-title{ font-size:28px; margin-bottom:18px; text-align:center; }
  .faq { padding: 20px 0 26px}
  .faq__list{ max-width:none; width:85%; margin-right: auto; margin-left: auto;}
  .footer__inner{ padding-bottom:24px; }

  .popup__title{ font-size:28px; }
  .popup__subtitle{ font-size:16px; }

  .container{
    width:100%;
    margin-inline:auto;
  }
}

/* =========================================================
   SMALL MOBILE (<=480px)
========================================================= */
@media (max-width:480px){
  .hero__title{ font-size:36px; text-align:center; }
  .hero__subtitle{ font-size:16px; text-align:center; }
  .hero__description, .hero__price{ font-size:14px; }
  .hero-bottom__title{ font-size:20px; }
  .hero-bottom__desc{ font-size:14px; display: none;}
  .cta__subtitle{ font-size:20px; }
  .cta__title{ font-size:24px; }
  .cta__text{ font-size:16px; }
  .cta__btn{ height:48px; }
  .cta-ussd__btn{ height:48px; }
  .cta__content{ width:100%; margin:auto; }
  .section-title{ font-size:24px; }
  .faq__item h3, .faq__item p{ font-size:22px; }
}
