:root {
  --logo-green: #2f7565;
  --logo-red: #b01f22;
  --bg-page: #f8f8f8;
  --text-primary: #3d3d3d;
  --text-muted: rgba(61, 61, 61, 0.5);
  --white: #ffffff;
  --container-width: 1336px;
  --page-width: 1440px;

  /* Spacing */
  --container-padding: 52px;
  --section-gap: 60px;
  --section-gap-sm: 30px;
  --grid-gap: 20px;
  --nav-gap: 30px;

  /* Typography */
  --fs-section-title: 32px;
  --fs-hero-title: 40px;
  --fs-body-lg: 20px;
  --fs-body: 16px;
  --fs-btn: 16px;
  --fs-nav: 16px;
  --fs-phone: 20px;
  --fs-info-title: 24px;
  --fs-contact-value: 24px;
  --fs-caption: 10px;
  --fs-b2b-label: 20px;

  /* Components */
  --header-height: 98px;
  --header-padding: 10px;
  --footer-height: 88px;
  --hero-height: 550px;
  --hero-content-width: 550px;
  --hero-content-padding-top: 69px;
  --btn-padding-y: 12px;
  --btn-padding-x: 24px;
  --btn-radius: 10px;
  --logo-icon-width: 132px;
  --logo-icon-height: 47px;
  --logo-text-height: 15px;
  --logo-gap: 13px;
  --header-logo-col: 392px;
  --product-card-width: 206px;
  --product-image-height: 180px;
  --product-card-padding: 20px;
  --audience-item-width: 206px;
  --info-icon-size: 60px;
  --info-banner-padding: 42px;
  --info-item-gap: 20px;
  --info-banner-gap: 44px;
  --b2b-image-width: 823px;
  --b2b-image-height: 435px;
  --b2b-padding: 57px;
  --b2b-content-max: 550px;
  --contact-details-left: 452px;
  --contact-details-gap: 97px;
  --contact-details-top: 70px;
  --contact-padding-bottom: 65px;
  --hero-design-width: 1920px;
  --hero-design-height: 550px;
  --hero-image-left: 95px;
  --hero-image-top: -261px;
  --hero-image-width: 1687px;
  --hero-image-height: 941px;
  --hero-pattern-left: 1023px;
  --hero-pattern-top: -130px;
  --hero-pattern-width: 626px;
  --hero-pattern-height: 810.686px;
  --hero-bg-scale: 1;
  --hero-buttons-gap: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  line-height: normal;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

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

p,
h1,
h2,
ul {
  margin: 0;
}

.page {
  width: 100%;
  background: var(--bg-page);
}

.container {
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section-title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: var(--fs-section-title);
  line-height: normal;
  color: var(--logo-green);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--btn-padding-y) var(--btn-padding-x);
  border-radius: var(--btn-radius);
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: var(--fs-btn);
  line-height: normal;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn--primary {
  background: var(--logo-green);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--logo-red);
  border-color: var(--logo-red);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--logo-gap);
  flex-shrink: 0;
}

.logo__icon {
  width: var(--logo-icon-width);
  height: var(--logo-icon-height);
  object-fit: contain;
}

.logo__text {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.logo__text-part {
  height: var(--logo-text-height);
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--nav-gap);
  flex: 1;
  justify-content: center;
}

.nav__link {
  font-weight: 500;
  font-size: var(--fs-nav);
  color: var(--text-primary);
}

.nav--white .nav__link {
  color: var(--white);
}

.phone-block {
  text-align: right;
}

.phone-block__number {
  font-weight: 500;
  font-size: var(--fs-phone);
  line-height: normal;
}

.phone-block__caption {
  font-size: var(--fs-caption);
  line-height: normal;
  color: var(--text-muted);
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: var(--header-padding) 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--grid-gap);
  height: var(--logo-icon-height);
}

.header__menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
  gap: var(--grid-gap);
}

.burger {
  display: none;
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--grid-gap);
  flex-shrink: 0;
}

.nav {
  justify-self: auto;
}

/* Hero — full width */
.hero {
  position: relative;
  width: 100%;
  height: var(--hero-height);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: calc(50% - var(--hero-design-width) / 2);
  width: var(--hero-design-width);
  height: var(--hero-design-height);
  background: #b7b7b7;
  transform: scale(var(--hero-bg-scale));
  transform-origin: top center;
}

.hero__image {
  position: absolute;
  left: var(--hero-image-left);
  top: var(--hero-image-top);
  width: var(--hero-image-width);
  height: var(--hero-image-height);
  max-width: none;
  object-fit: cover;
  pointer-events: none;
  z-index: 1;
}

.hero__pattern {
  position: absolute;
  left: var(--hero-pattern-left);
  top: var(--hero-pattern-top);
  width: var(--hero-pattern-width);
  height: var(--hero-pattern-height);
  max-width: none;
  pointer-events: none;
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
  height: 100%;
}

.hero__content {
  width: var(--hero-content-width);
  max-width: 100%;
  padding-top: var(--hero-content-padding-top);
  margin-right: auto;
  text-align: left;
}

.hero__title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: var(--fs-hero-title);
  line-height: normal;
  color: var(--logo-green);
  margin-bottom: var(--section-gap-sm);
  max-width: var(--hero-content-width);
}

.hero__text {
  font-size: var(--fs-body-lg);
  line-height: normal;
  color: var(--text-primary);
  max-width: var(--hero-content-width);
}

.hero__text + .hero__text {
  margin-top: var(--section-gap-sm);
}

.hero__buttons {
  display: flex;
  align-items: center;
  gap: var(--hero-buttons-gap);
  margin-top: var(--section-gap-sm);
}

/* Products — page background, content in container */
.products {
  width: 100%;
  padding: var(--section-gap) 0 0;
}

.products .section-title {
  margin-bottom: var(--section-gap);
}

.products .container {
  overflow-x: clip;
}

.products__grid {
  display: flex;
  gap: var(--grid-gap);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: var(--section-gap);
}

.product-card {
  flex: 0 0 var(--product-card-width);
  background: var(--white);
  border-radius: var(--btn-radius);
  padding: var(--product-card-padding) var(--product-card-padding) 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-card__image {
  width: 100%;
  height: var(--product-image-height);
  object-fit: cover;
}

.product-card__title {
  font-size: var(--fs-body);
  line-height: normal;
  color: var(--logo-green);
}

/* Info banner — full width green band */
.info-banner {
  width: 100%;
  background: var(--logo-green);
  padding: var(--info-banner-padding) 0;
  min-height: 200px;
  display: flex;
  align-items: center;
}

.info-banner__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--info-banner-gap);
}

.info-item {
  display: flex;
  gap: var(--info-item-gap);
  align-items: center;
  padding: var(--info-item-gap) 0 0 0;
  flex: 1;
}

.info-item--wide {
  flex: 1.2;
}

.info-item__icon {
  flex-shrink: 0;
  width: var(--info-icon-size);
  height: var(--info-icon-size);
}

.info-item__title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: var(--fs-info-title);
  line-height: normal;
  color: var(--bg-page);
}

.info-item__desc {
  font-size: var(--fs-body);
  line-height: normal;
  color: var(--bg-page);
  margin-top: 0;
}

/* Audience — full width white band */
.audience {
  width: 100%;
  background: var(--white);
  padding: var(--section-gap) 0;
  min-height: 345px;
}

.audience .section-title {
  margin-bottom: var(--section-gap);
}

.audience__grid {
  display: flex;
  gap: var(--grid-gap);
  justify-content: space-between;
}

.audience-item {
  flex: 0 0 var(--audience-item-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--grid-gap);
  text-align: center;
}

.audience-item__icon {
  width: var(--info-icon-size);
  height: var(--info-icon-size);
}

.audience-item__title {
  font-size: var(--fs-body-lg);
  line-height: normal;
  color: var(--text-primary);
}

/* B2B — page background, content in container */
.b2b {
  width: 100%;
  padding: var(--b2b-padding) 0;
  min-height: var(--hero-height);
}

.b2b__inner {
  display: flex;
  align-items: center;
  gap: 21px;
}

.b2b__image-wrap {
  flex: 0 0 var(--b2b-image-width);
  height: var(--b2b-image-height);
}

.b2b__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.b2b__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--section-gap-sm);
  max-width: var(--b2b-content-max);
}

.b2b__label {
  font-weight: 700;
  font-size: var(--fs-b2b-label);
  line-height: normal;
  color: var(--logo-red);
  text-transform: uppercase;
}

.b2b__title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: var(--fs-hero-title);
  line-height: normal;
  color: var(--logo-green);
}

.b2b__list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--section-gap-sm);
}

.b2b__list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-body-lg);
  line-height: normal;
  color: var(--text-primary);
}

.b2b__list-item img {
  flex-shrink: 0;
}

/* Contact — full width white band */
.contact {
  width: 100%;
  background: var(--white);
  padding: var(--section-gap) 0 var(--contact-padding-bottom);
  min-height: 285px;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  position: relative;
  overflow-x: clip;
}

.contact__left .section-title {
  margin-bottom: var(--section-gap-sm);
}

.contact__subtitle {
  font-size: var(--fs-body-lg);
  line-height: normal;
  margin-bottom: var(--section-gap-sm);
}

.contact__details {
  position: absolute;
  top: var(--contact-details-top);
  left: var(--contact-details-left);
  right: 0;
  max-width: calc(100% - var(--contact-details-left));
  display: flex;
  flex-wrap: wrap;
  gap: var(--contact-details-gap);
}

.contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.contact-item__icon {
  flex-shrink: 0;
}

.contact-item__value {
  font-weight: 500;
  font-size: var(--fs-contact-value);
  line-height: normal;
}

.contact-item__caption {
  font-size: var(--fs-caption);
  line-height: 20px;
  color: var(--text-muted);
}

/* Footer — full width */
.footer {
  width: 100%;
  background: var(--logo-green);
  height: var(--footer-height);
  display: flex;
  align-items: center;
}

.footer__inner {
  display: grid;
  grid-template-columns: var(--header-logo-col) 1fr auto;
  align-items: center;
  gap: var(--grid-gap);
  height: var(--logo-icon-height);
}

.footer .nav {
  justify-self: center;
}

.footer__copyright {
  font-size: var(--fs-caption);
  line-height: normal;
  color: rgba(255, 255, 255, 0.5);
  text-align: right;
  max-width: 198px;
}

/* Laptop: up to 1440px (design width) */
@media (max-width: 1440px) {
  :root {
    --container-padding: 40px;
    --section-gap: 48px;
    --section-gap-sm: 24px;
    --grid-gap: 16px;
    --nav-gap: 24px;

    --fs-section-title: 28px;
    --fs-hero-title: 36px;
    --fs-body-lg: 18px;
    --fs-body: 15px;
    --fs-btn: 15px;
    --fs-nav: 15px;
    --fs-phone: 18px;
    --fs-info-title: 22px;
    --fs-contact-value: 22px;
    --fs-b2b-label: 18px;

    --header-height: 88px;
    --footer-height: 80px;
    --hero-height: 480px;
    --hero-content-width: 480px;
    --hero-content-padding-top: 56px;
    --btn-padding-y: 10px;
    --btn-padding-x: 20px;
    --logo-icon-width: 118px;
    --logo-icon-height: 42px;
    --logo-text-height: 13px;
    --logo-gap: 11px;
    --header-logo-col: 340px;
    --product-card-width: 180px;
    --product-image-height: 155px;
    --product-card-padding: 16px;
    --audience-item-width: 160px;
    --info-icon-size: 52px;
    --info-banner-padding: 36px;
    --info-item-gap: 16px;
    --info-banner-gap: 28px;
    --b2b-image-width: 58%;
    --b2b-image-height: 380px;
    --b2b-padding: 48px;
    --b2b-content-max: 480px;
    --contact-details-left: 380px;
    --contact-details-gap: 56px;
    --contact-details-top: 64px;
    --contact-padding-bottom: 52px;
    --hero-bg-scale: calc(var(--hero-height) / var(--hero-design-height));
    --hero-buttons-gap: 20px;
  }

  .info-item__title {
    white-space: normal;
  }
}

/* Small laptop: up to 1280px */
@media (max-width: 1280px) {
  :root {
    --container-padding: 32px;
    --section-gap: 40px;
    --section-gap-sm: 20px;
    --grid-gap: 14px;
    --nav-gap: 20px;

    --fs-section-title: 26px;
    --fs-hero-title: 32px;
    --fs-body-lg: 16px;
    --fs-body: 14px;
    --fs-btn: 14px;
    --fs-nav: 14px;
    --fs-phone: 16px;
    --fs-info-title: 20px;
    --fs-contact-value: 20px;
    --fs-b2b-label: 16px;

    --header-height: 80px;
    --footer-height: 72px;
    --hero-height: 440px;
    --hero-content-width: 420px;
    --hero-content-padding-top: 48px;
    --btn-padding-y: 9px;
    --btn-padding-x: 18px;
    --logo-icon-width: 108px;
    --logo-icon-height: 38px;
    --logo-text-height: 12px;
    --header-logo-col: 300px;
    --product-card-width: 165px;
    --product-image-height: 140px;
    --product-card-padding: 14px;
    --audience-item-width: 140px;
    --info-icon-size: 48px;
    --info-banner-padding: 32px;
    --info-banner-gap: 20px;
    --b2b-image-width: 52%;
    --b2b-image-height: 340px;
    --b2b-padding: 40px;
    --b2b-content-max: 420px;
    --contact-details-left: 340px;
    --contact-details-gap: 40px;
    --contact-details-top: 58px;
    --contact-padding-bottom: 48px;
    --hero-bg-scale: calc(var(--hero-height) / var(--hero-design-height));
    --hero-buttons-gap: 16px;
  }

  .audience {
    min-height: auto;
  }

  .info-item__title {
    white-space: normal;
  }

  .b2b__inner {
    gap: 16px;
  }
}

/* Mobile: up to 767px (Figma frame Mobile 375px) */
@media (max-width: 767px) {
  :root {
    --container-padding: 17px;
    --section-gap: 30px;
    --section-gap-sm: 30px;
    --grid-gap: 16px;
    --nav-gap: 26px;

    --fs-section-title: 24px;
    --fs-hero-title: 36px;
    --fs-body-lg: 16px;
    --fs-body: 10px;
    --fs-btn: 16px;
    --fs-nav: 12px;
    --fs-phone: 20px;
    --fs-info-title: 24px;
    --fs-contact-value: 20px;
    --fs-caption: 10px;
    --fs-b2b-label: 16px;

    --header-height: 92px;
    --footer-height: auto;
    --hero-height: auto;
    --hero-content-width: 100%;
    --hero-content-padding-top: 22px;
    --logo-icon-width: 132px;
    --logo-icon-height: 47px;
    --header-logo-col: auto;
    --product-card-width: 135px;
    --product-image-height: 118px;
    --product-card-padding: 13px;
    --audience-item-width: auto;
    --info-icon-size: 60px;
    --info-banner-padding: 30px;
    --info-item-gap: 20px;
    --info-banner-gap: 30px;
    --b2b-image-width: 100%;
    --b2b-image-height: 199px;
    --b2b-padding: 34px 0 0;
    --b2b-content-max: 100%;
    --contact-padding-bottom: 34px;
    --hero-buttons-gap: 20px;
    --btn-radius: 10px;
  }

  .header__inner {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .burger {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .header__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    background: var(--white);
    padding: 20px var(--container-padding) 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    flex-direction: column;
    gap: 24px;
  }

  .header--open .header__menu {
    display: flex;
  }

  .header__menu .nav {
    flex: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
  }

  .header__menu .nav__link {
    font-size: 16px;
  }

  .header__actions {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .phone-block {
    text-align: left;
  }

  .logo__text {
    display: none;
  }

  .nav {
    justify-self: auto;
  }

  /* Hero — без фона, кнопки столбиком */
  .hero {
    height: auto;
    min-height: 0;
    background: var(--bg-page);
  }

  .hero__bg {
    display: none;
  }

  .hero .container {
    height: auto;
  }

  .hero__content {
    padding-top: var(--hero-content-padding-top);
    padding-bottom: 30px;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 213px;
  }

  .hero__buttons .btn {
    width: 100%;
    justify-content: center;
  }

  /* Products — горизонтальный скролл */
  .products {
    padding-top: 30px;
    overflow-x: clip;
  }

  .products .section-title {
    margin-bottom: 30px;
  }

  .products__grid {
    margin: 0 calc(-1 * var(--container-padding));
    padding: 0 var(--container-padding) 30px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .product-card {
    scroll-snap-align: start;
    border-radius: 6.5px;
    gap: 6.5px;
  }

  .product-card__title {
    font-size: 10.5px;
  }

  /* Info — вертикальный стек */
  .info-banner {
    min-height: 0;
    padding: var(--info-banner-padding) 0;
  }

  .info-banner__inner {
    flex-direction: column;
    align-items: center;
    gap: var(--info-banner-gap);
  }

  .info-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0 0;
    width: 100%;
    max-width: 301px;
  }

  .info-item--wide {
    flex: none;
  }

  .info-item__text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .info-item__title {
    white-space: normal;
  }

  /* Audience — сетка 2 колонки */
  .audience {
    min-height: 0;
    padding: 30px 0;
  }

  .audience .section-title {
    margin-bottom: 30px;
  }

  .audience__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 16px;
  }

  .audience-item {
    flex: none;
    gap: 16px;
  }

  .audience-item__icon {
    width: 48px;
    height: 48px;
  }

  .audience-item__title {
    font-size: 16px;
  }

  /* B2B — колонка */
  .b2b {
    min-height: 0;
    padding-bottom: 30px;
    overflow-x: clip;
  }

  .b2b__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
  }

  .b2b__image-wrap {
    flex: none;
    margin: 0 calc(-1 * var(--container-padding));
    width: calc(100% + 2 * var(--container-padding));
  }

  .b2b__title {
    font-size: 32px;
  }

  .b2b__title br {
    display: none;
  }

  .b2b__list {
    gap: 20px;
  }

  .b2b__list-item {
    font-size: 16px;
  }

  /* Contact — столбик */
  .contact {
    min-height: 0;
    padding: 34px 0;
  }

  .contact__inner {
    display: flex;
    flex-direction: column;
    gap: 45px;
  }

  .contact__left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .contact__left .section-title,
  .contact__subtitle {
    margin-bottom: 0;
  }

  .contact__details {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    max-width: none;
    width: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 30px;
  }

  .contact-item {
    width: 100%;
    max-width: 100%;
  }

  .contact .section-title {
    font-size: 32px;
  }

  .contact__title {
    max-width: 220px;
  }

  /* Footer — колонка */
  .footer {
    height: auto;
    padding: 26px 0 20px;
  }

  .footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    height: auto;
  }

  .footer .logo {
    order: 1;
  }

  .footer__copyright {
    order: 2;
    text-align: center;
    max-width: none;
  }

  .footer .nav {
    order: 3;
    flex: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--nav-gap);
    font-size: 12px;
  }

  .footer .logo__text {
    display: flex;
  }
}
