@font-face {
  font-family: "Nata Sans";
  src: url("/fonts/nata-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MAK";
  src: url("/fonts/mak.woff2/mak.woff2") format("woff2"),
  url("/fonts/mak.woff2/mak.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   01. GLOBAL / TOKENS / RESET
   ========================================================= */

:root {
  --page-bg: #f6f7f2;
  --sidebar-bg: #5f6b80;
  --white: #fff;
  --text: #0d0d0d;
  --accent: #ed6c02;
  --sidebar-width: 323px;
  --page-left-gap: 24px;
  --page-right-gap: 43px;

  /* Единая горизонтальная сетка */
  --tablet-page-gap: 20px;
  --mobile-page-gap: 12px;

  /* Единый вертикальный ритм */
  --space-section: clamp(56px, 5vw, 72px);
  --space-section-lg: clamp(84px, 7vw, 108px);
  --space-heading: 40px;
  --space-content: 28px;
  --space-tight: 18px;
  --space-footer-y: 42px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
}

html {
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 0;
  color: var(--text);
  background: var(--page-bg);
  font-family: "Nata Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

/* Декоративный паттерн для мобильных синих блоков */
.blue-pattern {
  display: none;
  pointer-events: none;
  user-select: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button,
input {
  font: inherit;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(22px, 1.65vw, 30px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.1px;
}

/* --- (min-width: 1729px) --- */
@media (min-width: 1729px) {
  :root {
    --sidebar-width: clamp(323px, 18.7vw, 360px);
    --page-left-gap: clamp(24px, 1.4vw, 30px);
    --page-right-gap: clamp(43px, 2.5vw, 50px);
  }
}

/* --- (max-width: 1280px) --- */
@media (max-width: 1280px) {
  :root {
    --sidebar-width: 280px;
    --page-left-gap: 20px;
    --page-right-gap: 28px;
  }
}

/* --- (max-width: 1024px) --- */
@media (max-width: 1024px) {
  :root {
    --mobile-header-height: 76px;
    --page-left-gap: var(--tablet-page-gap);
    --page-right-gap: var(--tablet-page-gap);

    --space-section: 52px;
    --space-section-lg: 72px;
    --space-heading: 32px;
    --space-content: 24px;
    --space-tight: 18px;
    --space-footer-y: 40px;
  }
}

/* --- (max-width: 760px) --- */
@media (max-width: 760px) {
  :root {
    --space-section: 44px;
    --space-section-lg: 60px;
    --space-heading: 28px;
    --space-content: 22px;
    --space-tight: 16px;
    --space-footer-y: 38px;
  }

  .section-heading h2 {
    letter-spacing: -0.4px;
  }
}

/* --- (max-width: 640px) --- */
@media (max-width: 640px) {
  :root {
    --mobile-header-height: 68px;
  }
}

/* --- (max-width: 480px) --- */
@media (max-width: 480px) {
  :root {
    --page-left-gap: var(--mobile-page-gap);
    --page-right-gap: var(--mobile-page-gap);

    --space-section: 36px;
    --space-section-lg: 48px;
    --space-heading: 24px;
    --space-content: 18px;
    --space-tight: 14px;
    --space-footer-y: 34px;
  }

  .section-heading h2 {
    font-size: 24px;
  }
}

/* --- единая мобильная горизонтальная сетка --- */
@media (max-width: 480px) {
  .products-section,
  .promos-section,
  .reviews-section,
  .life-section,
  .custom-section,
  .contact-order {
    padding-left: var(--mobile-page-gap);
    padding-right: var(--mobile-page-gap);
  }
}

/* --- (prefers-reduced-motion: reduce) --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
/* =========================================================
   03. ABOUT INTRO / PHOTO / FOUNDERS / STORY
   ========================================================= */

.about-intro {
  display: grid;

  grid-template-columns:
    minmax(0, 1.05fr)
    minmax(430px, .95fr);

  align-items: start;

  gap:
    clamp(
      42px,
      4.8vw,
      76px
    );

  padding:
    10px
    var(--page-right-gap)
    0
    var(--page-left-gap);
}


.about-intro__photo {
  position: relative;

  min-width: 0;

  height: 1054px;

  overflow: hidden;

  background: #171717;
}


/*
 * DESKTOP:
 * фотография остается в левой колонке и фиксируется
 * внутри секции, пока справа прокручивается текст.
 *
 * Используем sticky, а не fixed:
 * так фото не выпадает из сетки и останавливается
 * вместе с окончанием секции "О компании".
 */
@media (min-width: 1025px) {

  .about-intro__photo {
    position: sticky;

    top: 10px;

    height: calc(100vh - 20px);

    align-self: start;
  }

}


.about-intro__photo > img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  /*
   * В исходном макете фотография нарочно разбита
   * по вертикали, поэтому чуть сильнее кадрируем центр.
   */
  object-position: 50% 50%;
}


.founder-label {
  position: absolute;
  z-index: 2;

  min-width: 170px;

  padding:
    15px
    16px;

  color: #111;
  background: #fff;
}


.founder-label strong,
.founder-label span {
  display: block;
}


.founder-label strong {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}


.founder-label span {
  margin-top: 4px;

  font-size: 12px;
  font-weight: 300;
  line-height: 1.3;
}


.founder-label--ivan {
  left: 0;
  bottom: 88px;
}


.founder-label--alena {
  right: 0;
  top: 58%;
}


.about-intro__content {
  min-width: 0;

  padding-top: 52px;
}


.about-intro__content > h1 {
  margin: 0;

  font-family:
    "MAK",
    "Mak",
    Georgia,
    serif;

  font-size:
    clamp(
      38px,
      3.5vw,
      58px
    );

  font-weight: 400;
  line-height: 1.08;

  letter-spacing: -0.2px;
}


.about-intro__text {
  width: min(100%, 590px);

  margin-top: 342px;
}


.about-intro__lead,
.about-copy-block p,
.about-values li {
  font-size:
    clamp(
      14px,
      1.03vw,
      17px
    );

  font-weight: 300;
  line-height: 1.35;
}


.about-intro__lead {
  margin: 0;
}


.about-copy-block {
  margin-top: 26px;
}


.about-copy-block h2 {
  margin:
    0
    0
    3px;

  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}


.about-copy-block p {
  margin: 0;
}


.about-values {
  margin-top: 44px;
}


.about-values ol {
  display: grid;

  gap: 26px;

  margin: 0;

  padding-left: 22px;
}


.about-values li {
  padding-left: 2px;
}


.about-values strong {
  display: block;

  margin-bottom: 2px;

  font-size: inherit;
  font-weight: 700;
}


.about-values p {
  margin: 0;
}


.about-history {
  margin-top: 54px;
}


.about-history h2 {
  margin-bottom: 28px;
}


.about-history p + p {
  margin-top: 26px;
}


/* --- ABOUT: max-width 1280 --- */

@media (max-width: 1280px) {

  .about-intro {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(390px, .9fr);

    gap: 38px;
  }


  /*
   * Высоту desktop sticky-фото здесь не переопределяем.
   * Для <=1024 ниже остается отдельная планшетная высота.
   */


  .about-intro__content {
    padding-top: 42px;
  }


  .about-intro__text {
    margin-top: 260px;
  }

}


/* --- ABOUT: max-width 1024 --- */

@media (max-width: 1024px) {

  .about-intro {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(350px, .9fr);

    gap: 30px;

    padding:
      24px
      var(--tablet-gap)
      0;
  }


  .about-intro__photo {
    position: relative;

    top: auto;

    height: 780px;

    align-self: auto;
  }


  .about-intro__content {
    padding-top: 26px;
  }


  .about-intro__content > h1 {
    font-size: 42px;
  }


  .about-intro__text {
    margin-top: 180px;
  }


  .about-values {
    margin-top: 36px;
  }


  .about-history {
    margin-top: 44px;
  }

}


/* --- ABOUT: max-width 760 --- */

@media (max-width: 760px) {

  .about-intro {
    display: flex;

    flex-direction: column;

    gap: 0;

    padding-top: 30px;
  }


  .about-intro__content {
    display: contents;
  }


  .about-intro__content > h1 {
    order: 1;

    width: 100%;

    margin-bottom: 28px;

    font-size: 40px;
  }


  .about-intro__photo {
    order: 2;

    width: 100%;
    height: auto;

    aspect-ratio: 4 / 5.2;
  }


  .about-intro__text {
    order: 3;

    width: 100%;

    margin-top: 38px;
  }


  .founder-label--ivan {
    bottom: 30px;
  }


  .founder-label--alena {
    top: auto;
    right: 0;
    bottom: 126px;
  }


  .about-intro__lead,
  .about-copy-block p,
  .about-values li {
    font-size: 15px;
  }

}


/* --- ABOUT: max-width 480 --- */

@media (max-width: 480px) {

  .about-intro {
    padding:
      24px
      var(--mobile-page-gap)
      0;
  }


  .about-intro__content > h1 {
    margin-bottom: 24px;

    font-size: 34px;
    line-height: 1.05;
  }


  .about-intro__photo {
    aspect-ratio: 3 / 4.4;
  }


  .founder-label {
    min-width: 145px;

    padding:
      11px
      12px;
  }


  .founder-label strong {
    font-size: 12px;
  }


  .founder-label span {
    font-size: 11px;
  }


  .founder-label--ivan {
    left: 0;
    bottom: 24px;
  }


  .founder-label--alena {
    right: 0;
    bottom: 112px;
  }


  .about-intro__text {
    margin-top: 32px;
  }


  .about-values {
    margin-top: 34px;
  }


  .about-values ol {
    gap: 22px;
  }


  .about-history {
    margin-top: 40px;
  }


  .about-history h2 {
    margin-bottom: 22px;
  }


  .about-history p + p {
    margin-top: 22px;
  }

}


/* --- ABOUT: max-width 360 --- */

@media (max-width: 360px) {

  .about-intro__content > h1 {
    font-size: 31px;
  }


  .founder-label {
    min-width: 132px;
  }


  .founder-label--alena {
    bottom: 102px;
  }

}



/* =========================================================
   04. LOWER FOS / CONTACT ORDER
   ========================================================= */

.contact-order {
  display: grid;

  grid-template-columns:
    minmax(0, .9fr)
    minmax(0, 1.1fr);

  align-items: center;

  gap:
    clamp(
      56px,
      6.5vw,
      105px
    );

  padding:
    62px
    var(--page-right-gap)
    60px
    var(--page-left-gap);
}


.contact-order__form-column {
  min-width: 0;
}


.contact-order h2 {
  margin: 0;

  font-size: clamp(22px, 1.65vw, 30px);

  font-weight: 300;
  line-height: 1.05;

  letter-spacing: -0.2px;
}


.question-form {
  display: grid;

  gap: 22px;

  width: min(100%, 520px);

  margin-top: 58px;
}


.question-form label {
  display: block;
}


.question-form input {
  width: 100%;
  height: 46px;

  padding: 0 6px;

  border: 0;
  border-bottom: 1px solid #6b6b68;
  border-radius: 0;

  outline: 0;

  color: #111;
  background: transparent;

  text-align: center;

  font-size: 17px;
}


.question-form input::placeholder {
  color: #282828;

  opacity: 1;
}


.question-form input:focus {
  border-bottom-color: var(--accent);
}


.question-form__submit {
  display: grid;

  min-height: 52px;

  place-items: center;

  margin-top: 8px;

  border: 2px solid var(--accent);
  border-radius: 999px;

  background: transparent;

  font-size: 19px;

  cursor: pointer;

  transition:
    color 180ms ease,
    background 180ms ease;
}


.question-form__submit:hover,
.question-form__submit:focus-visible {
  color: #fff;
  background: var(--accent);
}


.question-form__message {
  min-height: 18px;

  margin: -8px 0 0;

  color: #5c5c59;

  font-size: 13px;
  text-align: center;
}


.contact-order__cart-wrap {
  position: relative;

  min-height: 390px;

  display: flex;

  align-items: center;
  justify-content: flex-end;
}


.contact-order__wheat {
  position: absolute;
  z-index: 0;

  left: -18%;
  bottom: -20%;

  width: auto;
  height: 115%;

  max-width: none;

  object-fit: contain;

  pointer-events: none;
  user-select: none;
}


.cart-state {
  position: relative;
  z-index: 2;

  display: grid;

  width: min(100%, 530px);
  min-height: 305px;

  place-items: center;
  align-content: center;

  gap: 42px;

  padding:
    48px
    40px;

  color: #fff;
  background: var(--sidebar-bg);

  text-align: center;
}


.cart-state p {
  margin: 0;

  font-size:
    clamp(
      22px,
      1.8vw,
      30px
    );

  font-weight: 300;
  line-height: 1.25;
}


.cart-state a {
  display: grid;

  min-width: 230px;
  min-height: 50px;

  place-items: center;

  padding: 0 30px;

  border-radius: 999px;

  color: #111;
  background: #fff;

  font-size: 18px;
}


/* --- FOS: max-width 1024 --- */

@media (max-width: 1024px) {

  .contact-order {
    gap: 40px;

    padding:
      56px
      var(--tablet-gap);
  }


  .question-form {
    margin-top: 44px;
  }


  .contact-order__wheat {
    left: -24%;

    height: 100%;
  }


  .cart-state {
    min-height: 280px;
  }

}


/* --- FOS: max-width 760 --- */

@media (max-width: 760px) {

  .contact-order {
    grid-template-columns: 1fr;

    gap: 54px;
  }


  .question-form {
    width: 100%;
  }


  .contact-order__cart-wrap {
    min-height: 0;

    display: block;
  }


  .contact-order__wheat {
    display: none;
  }


  .cart-state {
    width: 100%;
    max-width: none;

    min-height: 270px;
  }

}


/* --- FOS: max-width 480 --- */

@media (max-width: 480px) {

  .contact-order {
    gap: 46px;

    padding:
      48px
      var(--mobile-gap)
      54px;
  }


  .contact-order h2 {
    font-size: 29px;
  }


  .question-form {
    margin-top: 38px;
  }


  .question-form input {
    font-size: 16px;
  }


  .cart-state {
    min-height: 250px;

    gap: 32px;

    padding:
      34px
      20px;
  }


  .cart-state p {
    font-size: 21px;
  }


  .cart-state a {
    width: 100%;

    min-width: 0;

    font-size: 16px;
  }

}



/* =========================================================
   05. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    transition-duration: .01ms !important;
    animation-duration: .01ms !important;

    animation-iteration-count: 1 !important;
  }

}
