/*======= Fonts =======*/

/* Light */
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  font-stretch: normal;
}

/* Regular */
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  font-stretch: normal;
}

/* Medium */
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  font-stretch: normal;
}

/* Semi Bold */
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  font-stretch: normal;
}

/* Bold */
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  font-stretch: normal;
}

/*======= Variables Setup  =======*/

:root {
  /* Colors */
  --primary: #A12334;
  --primary-hover: #93202F;
  --body-bg: #F4F8F6;
  --primary-bg: #F6F0F1;
  --border-primary: #c7c3e1;

  --secondary: #77A240;
  --secondary-bg: #EEF3EA;

  /* neutral */
  --title: #1A2D24;
  --main-text: #2B3B32;
  --white: #FEFEFE;
  --meta: #959494;
  --gray: #CAC9C9;
  --placeholder-text: #918e8e;

  /* info */
  --danger: #D02B1F;
  --warning: #EAC21B;
  --success: #44AC60;
  --info: #3157EF;

  /* Links — blue */
  --link: #2C4784;
  --link-hover: #213561;
  --link-visited: #553C78;

  /* Transition */
  --transition-main: 0.2s ease;

  /* Shadows */
  --shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 8px 24px 0 rgba(0, 0, 0, 0.45);

  /* Typography */
  --font-body: 'Manrope',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  --font-title: 'Manrope',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;

  /* Radius */
  --card-radius: 20px;
  --btn-radius: 30px;

  /* Section spacing */
  --section-heading-margin-bottom: 64px;
  --subsection-heading-margin-bottom: 32px;

  /* Layout */
  --container-width: 1600px;
  --container-wide: 100%;
  --container-padding: 40px;
  --container-narrow: 1400px;
  --container-blog: 960px;
  --grid-gap: 24px;
  --grid-gap-m: 48px;
  --grid-gap-xl: 80px;

  --header-height: 100px;
}

@media (max-width: 768px) {
  :root {
    --header-height: 80px;
  }
}

/*======= General Settings =======*/

html {
  scroll-behavior: smooth;
}

:target,
[id] {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #fff;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/*======= Typography =======*/

body {
  background: var(--body-bg);

  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(16px, 1vw + 0.2rem, 18px);
  line-height: 1.5;
  color: var(--main-text);
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0;

  font-family: var(--font-title);
  font-weight: 700;
  color: var(--title);
  text-wrap: pretty;
}

h1 {
  font-size: clamp(40px, 2.2vw + 0.5rem, 64px);
  line-height: 1.1;
  letter-spacing: -0.5px;

  margin-bottom: clamp(16px, 2.2vw, 28px);
}

.site-title {
  font-size: clamp(36px, 2.2vw + 0.5rem, 52px);
}

h2,
.h2,
.page-title-small {
  font-size: clamp(32px, 1.2vw + 1rem, 48px);
  line-height: 1.2;

  margin-bottom: clamp(22px, 2.6vw, 28px);
}

h3,
.h3 {
  font-size: clamp(24px, 1.5vw + 0.875rem, 32px);
  line-height: 1.3;

  margin-bottom: clamp(20px, 2vw, 24px);
}

h4,
.h4 {
  font-size: clamp(20px, 1.5vw + 0.125rem, 24px);
  line-height: 1.3;

  margin-bottom: clamp(16px, 0.7vw, 18px);
}

h5 {
  font-size: clamp(18px, 1vw + 0.2rem, 22px);
  line-height: 1.3;

  margin-bottom: clamp(13px, 0.7vw, 15px);
}

p,
.body {
  font-size: clamp(16px, 1vw + 0.2rem, 18px);
  font-weight: 400;
  line-height: 1.5;
  text-wrap: pretty;
}

p,
ul:not([class]),
ol:not([class]),
blockquote,
.text-block {
  margin-bottom: clamp(12px, 1.6vw, 16px);
}

.container>*:last-child {
  margin-bottom: 0;
}

.text-lead {
  font-size: clamp(18px, 1.2vw + 0.2rem, 20px);
}

.caption {
  font-size: clamp(14px, 1.2vw + 0.2rem, 15px);
}

/* Text modifications */

.text-secondary {
  color: var(--secondary);
}

.text-bold {
  font-weight: 700;
}

.text-caps {
  text-transform: uppercase;
}

/*======= Layout =======*/

/* CONTAINER */

.container {
  max-width: var(--container-width);
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.container-blog {
  max-width: var(--container-blog);
}

.container-wide {
  max-width: var(--container-wide);
}

/* SECTIONS */

.section-base {
  margin-top: clamp(48px, 32px + 4vw, 120px);
}

.section-bg {
  background-color: var(--secondary-bg);
  padding: clamp(32px, 32px + 4vw, 96px) 0;
}

.section-bg-white {
  background-color: var(--white);
}

.section-header {
  margin-bottom: var(--section-heading-margin-bottom);
}

.section-header-inner {
  margin-bottom: 24px;
}

.section-header-center {
  margin-left: auto;
  margin-right: auto;
  max-width: 960px;

  text-align: center;
}

.section-content-inner {
  display: flex;
  align-items: center;
  gap: var(--grid-gap-m);
}

.section-img {
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: var(--card-radius);
  box-shadow: var(--shadow);

  overflow: hidden;
}

.section-img img {
  display: block;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Section list numbered */

.section-list-numbered {
  padding-left: 0;
  margin: 12px 0 24px !important;
  max-width: 640px;
}

.section-list-numbered li {
  display: flex;
  align-items: flex-start;
  gap: 16px;

  margin-bottom: 24px;
}

.section-list-number {
  font-size: 22px;
  font-weight: 700;

  color: var(--primary);
}

/* MARGINS */

.mb-0 {
  margin-bottom: 0;
}

/* GRID */

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

.grid-gap-xl {
  gap: var(--grid-gap-xl);
}

.grid-gap-m {
  gap: var(--grid-gap-m);
}

.grid-ac {
  align-items: center;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-12 {
  grid-template-columns: repeat(12, 1fr);
}

/* CARDS */

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-shrink: 0;

  padding: 16px;
  background-color: var(--white);
  border-radius: var(--card-radius);
  text-align: center;
}

.card-shadow {
  box-shadow: var(--shadow);
}

.card-title {
  font-size: clamp(16px, 1.5vw + 0.2rem, 22px);
  line-height: 1.3;
  margin-bottom: 0 !important;
}

.card-title-bold {
  font-weight: 700;
}

.card p:last-of-type {
  margin-bottom: 0;
}

.card-icon {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 48px;
  height: 48px;
  padding: 8px;
  border-radius: 50%;
  border: 1px solid var(--secondary);
}

.card-bg {
  background-color: var(--secondary);
}

.card-bg .card-title {
  color: var(--white) !important;
}

.card-bg .card-icon {
  border: 1px solid var(--white);
}

/*======= Components =======*/

/* ACTIONS */

.actions {
  margin-top: clamp(20px, 1vw + 0.2rem, 32px);
}

.actions-center {
  margin-left: auto;
  margin-right: auto;

  width: fit-content;
}

/* LINKS */

a:not([class]) {
  color: var(--main-text);

  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;

  transition: var(--transition-main);
}

a:not([class]):hover,
a:not([class]):focus-visible {
  color: var(--primary);
}

.link {
  text-decoration: none;
  color: inherit;
}

.link:hover,
.link:focus-visible {
  color: var(--primary);
}

/* Block link */

.block-link {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;
}

/* Link with icon */

.link-with-icon {
  display: flex;
  align-items: center;
  gap: 8px;

  width: fit-content;

  color: var(--main-text);
  text-decoration: none;
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 600;
}

.link-with-icon svg {
  width: 12px;
  height: 12px;

  transition: var(--transition-main);
}

.link-with-icon svg path.fill {
  transition: var(--transition-main);
}

.link-with-icon:hover,
.link-with-icon:focus-visible {
  color: var(--primary);
}

.link-with-icon:hover svg,
.link-with-icon:focus-visible svg {
  transform: rotate(45deg);
}

.link-with-icon:hover svg path.fill,
.link-with-icon:focus-visible svg path.fill {
  fill: var(--primary);
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  width: fit-content;
  border: 1px solid transparent;
  padding: 2px 48px;
  height: 52px;
  border-radius: var(--btn-radius);
  background-color: var(--primary);

  font-weight: 600;
  font-size: 16px;
  line-height: 1.1;
  text-decoration: none;
  text-align: center;
  color: var(--white);

  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition-main);
}

.btn:hover,
.btn:focus-visible {
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
  background-color: var(--primary-hover);
}

.btn:active {
  transform: translateY(0);
}

.btn-cta {
  height: 56px;
  padding: 2px 56px;
}

.btn-outline {
  background-color: var(--white);
  border: 1px solid var(--primary);

  color: var(--primary);
}

.btn-outline svg path,
.btn-outline svg path {
  transition: var(--transition-main);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  color: var(--white);
}

.btn-outline:hover svg path,
.btn-outline:focus-visible svg path {
  fill: var(--white);
}

/* Back to top */

.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 16px;
  z-index: 99;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;
  padding: 0;
  background-color: var(--primary-bg-2);
  border: 1px solid var(--primary);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);

  color: var(--primary);
  font-size: 0;
  font-weight: 500;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  cursor: pointer;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background-color: var(--primary);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top svg {
  transform: rotate(-45deg);
}

.back-to-top svg path {
  transition: var(--transition-main);
}

.back-to-top:hover svg path,
.back-to-top:focus-visible svg path {
  fill: var(--white);
}

/* Mobile button */

.mobile-button {
  position: fixed;
  left: 50%;
  bottom: -40px;
  transform: translateX(-50%);

  /* display: inline-flex; */
  display: none;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;

  width: 180px;
  height: 80px;
  padding: 14px 24px;
  border-radius: 60px;
  background-color: var(--primary);
  border: 1px solid var(--primary);

  font-weight: 600;
  font-size: 16px;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  color: var(--white);

  cursor: pointer;
  z-index: 100;
}

/* LISTS */

ul:not([class]) {
  margin: 16px 0 24px;
  list-style: initial;
  padding-left: 16px;
}

ul:not([class]) li:not(:last-child) {
  margin-bottom: 16px;
}

ul:not([class]) li::marker {
  color: var(--main-text);
}

/* PAGE */

.page-banner,
.page-content {
  margin: clamp(32px, 3vw + 0.2rem, 64px) 0;
}

.page-banner-single {
  margin: clamp(32px, 3vw + 0.2rem, 64px) 0 clamp(16px, 2vw + 0.2rem, 24px);
}

/* .page-banner+.page-content {
  margin-top: 128px;
} */

.page-banner h1 {
  font-size: clamp(32px, 2vw + 0.2rem, 52px);
}

.wp-block-heading {
  margin: 1.5em 0 0.75em;
}

h2.wp-block-heading {
  font-size: clamp(1.5rem, 2vw + 0.2rem, 2rem);
  line-height: 1.2;
}

h3.wp-block-heading {
  font-size: clamp(1.25rem, 2vw + 0.2rem, 1.75rem);
  line-height: 1.3;
}

h4.wp-block-heading {
  font-size: clamp(1.15rem, 2vw + 0.2rem, 1.5rem);
  line-height: 1.3;
}

h5.wp-block-heading {
  font-size: clamp(1.05rem, 2vw + 0.2rem, 1.375rem);
  line-height: 1.3;
}

h5.wp-block-heading {
  font-size: clamp(1rem, 2vw + 0.2rem, 1.15rem);
  line-height: 1.3;
}

/* COOKIE */

.rucookie-banner__text p,
.rucookie-modal__intro p {
  font-size: 15px;
}

/*======= Header and Footer =======*/

/* HEADER */

header {
  position: sticky;
  top: 0;
  z-index: 999;
  transition: 0.5s ease;
  transition-property: padding, background;
}

header.sticky {
  background: hsla(150, 22%, 96%, 60%);
  backdrop-filter: blur(20px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 24px 0;
}

.nav-menu-button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-menu-burger {
  display: none;
}

.nav-menu-close {
  display: none;
}

.menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.menu-item a {
  text-decoration: none;
}

.current-menu-item a {
  color: var(--primary);
}

/* header.sticky .navigation {
  display: none;
} */

.nav-right-simple {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* FOOTER */

.site-footer {
  padding-top: clamp(32px, 5vw, 48px);
  background-color: var(--secondary-bg);

  overflow: hidden;
}

.footer-top,
.footer-bottom,
.footer-disclaimer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;

  margin-bottom: 32px;
}

.footer-bottom {
  align-items: center;

  padding-top: 32px;
  border-top: 1px solid var(--white);
  margin-bottom: 0;
  padding-bottom: 32px;
}

.footer-bottom>* {
  font-size: 15px;
}

.footer-disclaimer {
  padding: 16px;
  justify-content: center;
  align-items: center;

  color: var(--main-text);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 300;
  letter-spacing: 0.25px;
  text-transform: uppercase;
  text-align: center;
}

.footer-credits,
.footer-menu-wrap {
  display: flex;
  align-items: flex-start;
  gap: 80px;
}

.footer-menu-wrap {
  gap: 48px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 24px;

  max-width: 362px;
}

.menu-item-with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-menu,
.footer-menu-contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 0;
}

.footer-menu-contacts {
  gap: 8px;
}

.footer-inner {
  max-width: 160px;
}

/*======= Blog =======*/

.article-main {
  margin: 0 0 clamp(48px, 32px + 10vw, 120px);
}

.article-card {
  align-self: stretch;
  justify-content: start;
}

.article-card,
.article-content {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  padding: 0;
}

.article-thumb {
  width: 100%;
  aspect-ratio: 3/2;
}

.article-thumb,
.article-thumb img,
.article-full-thumb,
.article-full-thumb img {
  border-radius: 10px;
}

.article-thumb img,
.article-full-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-content {
  padding: 24px;
  padding-top: 0;
  height: 100%;
}

.article-content .card-title {
  margin-bottom: 16px !important;
}

.article-card .link-with-icon {
  margin-top: auto;
}

/* Article Full */

.article-full-thumb {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  margin-bottom: clamp(24px, 3vw + 0.2rem, 48px);
  max-height: 420px;

  overflow: hidden;
}

/* Breadcrumbs */

.breadcrumbs-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.breadcrumbs-item {
  font-size: 15px;
}

.breadcrumbs-item a {
  font-size: 15px;
  text-decoration: none;
  color: var(--placeholder-text);
}

.breadcrumbs-item a:hover,
.breadcrumbs-item a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  color: var(--primary);
}

.breadcrumbs-item.breadcrumbs-item-current {
  font-size: 15px;
  color: var(--placeholder-text);
  align-self: center;
}

.breadcrumbs-separator {
  width: 4px;
  height: 4px;
  background-color: var(--meta);
  margin-top: 2px;
  border-radius: 50%;
}

/* WP Settings */

.wp-block-image,
.wp-block-image img {
  border-radius: 10px;
}

.wp-block-image {
  margin-bottom: 1.25rem;
}

.wp-element-caption {
  font-size: 14px;
  font-style: italic;
  color: var(--placeholder-text);
}

ol.wp-block-list,
ul.wp-block-list {
  list-style: initial;
  padding-left: 24px;
  margin: clamp(12px, 2vw, 16px) 0 clamp(16px, 2.5vw, 24px) !important;
}

ol.wp-block-list li::marker,
ul.wp-block-list li::marker {
  color: var(--primary);
}

ol.wp-block-list li,
ul.wp-block-list li {
  margin-bottom: 8px;
}

blockquote {
  display: inline-block;
  position: relative;

  border-left: 2px solid var(--secondary);
  background-color: var(--secondary-bg);
  padding: 24px;
  margin-bottom: 1.5rem;
  margin-left: 0;
  margin-right: 0;
  width: 100%;

  font-size: 24px;
  font-style: italic;
}

blockquote p {
  margin: 0;
}

blockquote cite {
  display: block;
  margin-top: 4px;
  margin-right: 8px;
  float: right;

  font-size: 14px;
}

/* PAGINATION */

nav.pagination {
  display: flex;
  align-items: center;
  justify-content: center;

  margin-top: clamp(32px, 5vw, 64px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--grid-gap);
}

.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  padding: 12px;
  background-color: var(--white);
  width: 32px;
  height: 32px;

  color: var(--main-text);
  text-decoration: none;
  transition: var(--transition-main);
}

.page-numbers.next,
.page-numbers.prev {
  background-color: transparent;
  padding: 0;
  width: auto;
  height: auto;
}

.page-numbers.current,
.page-numbers:hover,
.page-numbers:focus-visible {
  background-color: var(--primary);

  color: var(--white);
}

.page-numbers.next:hover,
.page-numbers.next:focus-visible,
.page-numbers.prev:hover,
.page-numbers.prev:focus-visible {
  background-color: transparent;

  color: var(--primary);
}

/*======= Main Content =======*/

/* HERO */

.section-hero {
  position: relative;
  overflow: hidden;
  height: calc(728px - 52px);
}

.section-hero-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 64px;
}


.section-hero-content {
  margin-top: 120px;
  max-width: 720px;
}

.sie-title {
  margin: 0 0 24px;
}

.site-description {
  max-width: 420px;
}

.section-hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 0;
  min-height: 480px;
  overflow: visible;
}

.section-hero-img {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.section-hero-img img {
  display: block;
  width: 100%;
}

.section-hero-img-product {
  position: absolute;
  bottom: -16%;
  left: -24%;
  width: clamp(320px, 50vw, 650px);
  z-index: 2;
  pointer-events: none;
}

.section-hero-img-main {
  position: absolute;
  top: 0;
  right: -102px;
  max-width: none;
  z-index: 1;
  pointer-events: none;
  width: clamp(320px, 50vw, 684px);
  height: auto;
  aspect-ratio: 1 / 1;
  pointer-events: none;
}

.section-hero-badge {
  position: absolute;
  left: -24%;
  bottom: 10%;
  z-index: 3;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 0;

  padding: 24px;
  width: fit-content;
  background-color: var(--secondary);
  border-radius: 50%;
  box-shadow: var(--shadow);

  font-size: clamp(13px, 1vw + 0.2rem, 15px);
  font-weight: 700;
  color: var(--white);
  text-align: center;
}

.section-hero-badge-value {
  font-size: clamp(16px, 1vw + 0.2rem, 20px);
}

/* BENEFITS */

.section-benefits .section-content {
  grid-column: 6/-1;
}

.section-benefits .section-media {
  grid-column: 1/6;
  height: 404px;
}

.benefits-grid .card {
  padding: 32px;
  border: 1px solid var(--secondary);

  transition: var(--transition-main);
}

.benefits-grid .card:hover {
  box-shadow: var(--shadow);
}

/* ABOUT */

.section-about .section-content {
  grid-column: 1/7;
}

.section-about .section-media {
  grid-column: 7/-1;
}

/* WEIGHT */

.section-weight .section-content {
  grid-column: 6/12;
}

.section-weight .section-content ul {
  max-width: 640px;
}

.section-weight .section-media {
  grid-column: 1 / 6;
  position: relative;
  display: block;
  width: 100%;
  border-radius: var(--card-radius);
  overflow: hidden;
}

.section-weight .section-media img {
  height: 100%;
}

.section-weight .section-media::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 0;
  height: 0;
  border-style: solid;
  border-width: 20px 0 20px 34px;
  border-color: transparent transparent transparent var(--white);

  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .4));
  pointer-events: none;

  /* ▼ Ключевое */
  z-index: 1;
  transition: opacity 0.3s ease;
  opacity: 1;
}

.section-weight .section-media.is-playing::after {
  opacity: 0;
}

/* HOW */

.section-how {
  position: relative;
  padding-bottom: clamp(48px, 32px + 10vw, 120px);

  overflow: hidden;
}

.section-how-bg {
  position: absolute;
  z-index: 1;
  right: -3%;
  bottom: 0%;
  transform: rotate(21deg);

  width: calc(320px, 5vw, 600px);
}

.section-how .section-content {
  grid-column: 2/8;
}

.section-how .section-media {
  position: absolute;
  right: 2%;
  top: 48px;
  z-index: 2;
}

.section-how-instruction {
  display: flex;
  padding: 24px;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

/* Instruction */

.instruction {
  position: relative;
  z-index: 10;

  background-color: var(--white);
  padding: 24px;
  border-radius: var(--card-radius);
}

.instruction-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.instruction-title {
  font-weight: 600;
  flex: 0 0 200px;
  width: 200px;
}

.instruction-info {
  flex: 1 1 auto;
  min-width: 0;
}

/* DIAGRAM */

.section-diagram.section-bg {
  padding-bottom: 0;
}

.section-diagram .section-content {
  display: flex;
  align-items: center;
  justify-content: center;

  height: 100%;
  max-height: 646px;
  overflow: hidden;
}

.diagram {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
}

/* Картинка по центру */
.diagram-img {
  position: absolute;
  left: 49%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: clamp(300px, 45%, 646px);
}

/* Слой SVG растягиваем на весь контейнер */
.diagram-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  left: 3%;
  top: 3%;
}

/* Текстовые блоки */
.diagram-text {
  position: absolute;
  z-index: 4;
  width: auto;
  font-size: clamp(16px, 1.2vw, 24px);
  line-height: 1.4;
}

/* Позиции задаются в процентах от контейнера */
.diagram-text-1 {
  left: 13.5%;
  top: 39.5%;
}

.diagram-text-2 {
  left: 4%;
  top: 48.5%;
}

.diagram-text-3 {
  left: 3%;
  top: 62%;
}

.diagram-text-4 {
  right: 4%;
  top: 36.5%;
}

.diagram-text-5 {
  right: 7%;
  top: 44.5%;
}

.diagram-text-6 {
  right: 2%;
  top: 53%;
}

.diagram-text-7 {
  right: 4%;
  top: 62.5%;
}

/* ARTICLES */

.section-articles .actions {
  margin-top: clamp(32px, 3vh, 64px);
}

/* FAQ */

.section-faq .section-content {
  grid-column: 1/8;
}

.section-faq .section-media {
  grid-column: 8/-1;
  margin-left: calc(80px - 24px);
}

/* FAQ List */

.faq-list {
  width: 100%;
}

.faq-item {
  padding: 16px 0;
  border-top: 1px solid var(--primary);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--primary);
}

.faq-question {
  width: 90%;

  font-size: clamp(18px, 1.2vw + 0.2rem, 22px);
  color: var(--main-text);
  font-weight: 700;
  line-height: 1.3;
}

.faq-question:hover,
.faq-question:active {
  color: var(--primary);
  cursor: pointer;
}

.faq-summary {
  list-style: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0;
  position: relative;
}

.faq-summary::after {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 32 32'%3E%3Cpath fill='%23a12334' d='M22 16L12 26l-1.4-1.4l8.6-8.6l-8.6-8.6L12 6z'/%3E%3C/svg%3E");

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 32px;
  height: 32px;
  background-color: var(--white);
  border-radius: 50%;
  padding-left: 2px;

  cursor: pointer;
  transition: var(--transition-main);
}

.faq-summary:hover::after {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 32 32'%3E%3Cpath fill='%23fefefe' d='M22 16L12 26l-1.4-1.4l8.6-8.6l-8.6-8.6L12 6z'/%3E%3C/svg%3E");
  background-color: var(--primary);
}

details[open] .faq-summary::after {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 32 32'%3E%3Cpath fill='%23fefefe' d='M22 16L12 26l-1.4-1.4l8.6-8.6l-8.6-8.6L12 6z'/%3E%3C/svg%3E");
  background-color: var(--primary);
  transform: rotate(90deg);
}

details .faq-text {
  color: var(--main-text);
  font-size: 1rem;

  margin: 16px 0 0 0;
}

details .faq-text p {
  font-size: 1rem;
}

/* answer open animation */

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-1.25em);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

details[open] .faq-text {
  animation-name: fadeInDown;
  animation-duration: 0.5s;
  animation-iteration-count: 1;
}

/* Company */

.section-company .section-content {
  grid-column: 6/-1;
  position: relative;
  z-index: 2;
}

.section-company .section-media {
  grid-column: 1/6;
  margin-right: calc(80px - 24px);
  max-height: 480px;
}

.section-company .section-img img {
  height: 100%;
  max-width: none;
}

/* Swiper */

.swiper {
  width: 100%;
  padding-top: 40px;
}

.swiper-wrapper {
  align-items: stretch;
}

.swiper-slide {
  position: relative;
  z-index: 2;
  height: unset;
}

.swiper-slide>* {
  height: 100%;
}

.swiper-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;

  height: 100%;
  padding: clamp(16px, 1vw + 1rem, 32px);
  border-radius: var(--card-radius);
  border: 1px solid var(--secondary);
  background-color: var(--white);
  width: 99%;

  font-size: 15px;

  transition: transform 0.3s ease, background-color 0.3s ease;
  transform: scale(1);
}

.swiper-card p {
  font-size: 15px;
  margin-bottom: 0;
}

.swiper-slide-active {
  z-index: 10;
}

.swiper-slide-active .swiper-card {
  background-color: var(--secondary);
  font-size: 18px;
  transform: scale(1.125);
}

.swiper-slide-active .swiper-card h3,
.swiper-slide-active .swiper-card p {
  color: var(--white);
}

.swiper-pagination {
  position: static;
  margin-top: 48px;
  text-align: center;
}

.swiper-pagination-bullet {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: var(--gray);
  opacity: 1;
  margin: 0 6px;
  border-radius: 50%;
  cursor: pointer;
}

.swiper-pagination-bullet-active {
  background-color: var(--primary);
}

/* Buy */

.section-buy,
.read-more,
.archive-articles {
  margin-bottom: clamp(48px, 32px + 10vw, 120px);
}

.section-buy .section-content-inner {
  gap: var(--grid-gap-xl);
}

.section-buy .section-img {
  max-width: 620px;
}

.section-buy .section-content {
  width: 100%;
}

.buy-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--grid-gap-m);
}

.buy-box {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;

  padding: clamp(16px, 12px + 1vw, 32px);
  border-radius: var(--card-radius);
  background: var(--white);

  transition: var(--transition-main);
}

.buy-box:hover,
.buy-box:focus-visible {
  box-shadow: var(--shadow);
}

/* 404 Error page */

.section-error {
  margin: clamp(32px, 3vw + 0.2rem, 64px);
}

.error,
.error-header {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  text-align: center;
}

/*======= Media Queries =======*/

/* 1440px */

@media (max-width: 1440px) {

  .section-diagram .section-content {
    max-height: 580px;
  }

  .diagram-img {
    left: 50%;
  }
}

/* 1200px */

@media (max-width: 1200px) {

  :root {
    --grid-gap: 20px;
    --grid-gap-m: 32px;
    --grid-gap-xl: 64px;
  }

  .navbar {
    padding: 16px 0;
  }

  .nav-menu-burger {
    display: block;
    position: relative;
    z-index: 30;
  }

  .nav-menu-burger svg path {
    transition: var(--transition-main);
  }

  .nav-menu-burger:hover svg path,
  .nav-menu-burger:focus-visible svg path {
    stroke: var(--primary);
  }

  .nav-menu-close {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1;
  }

  /* Скрываем кнопку "Где купить" в шапке на мобильных —
       при желании можно перенести внутрь меню */
  .nav-right:not(.nav-right-simple),
  .nav-right-simple .btn:not(.btn-outline) {
    display: none;
  }

  /* Меню — выезжающая панель */
  .navigation {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(26, 45, 36, 0.95);
    backdrop-filter: blur(10px);

    /* Скрыто по умолчанию */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  }

  /* Открытое состояние */
  .navigation.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Внутренняя обёртка */
  .menu-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    padding: 60px 24px 40px;
  }

  /* Вертикальное меню */
  .menu {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .menu .menu-item a {
    color: #fffcfa;
    font-size: 1.25rem;
    line-height: 1.4;
    padding: 8px 12px;
    display: inline-block;
  }

  .menu .menu-item a:hover,
  .menu .menu-item a:focus-visible {
    color: var(--primary);
  }

  header.sticky .navigation.active {
    display: flex;
    height: 100dvh;
  }

  .back-to-top {
    bottom: 40px;
  }

  .mobile-button {
    display: inline-flex;
  }

  /* HERO */

  .section-hero {
    height: calc(620px - 52px);
  }

  .section-diagram .section-content {
    max-height: 480px;
  }

  /* FAQ / COMPANY */

  .section-faq .section-content-grid,
  .section-company .section-content-grid {
    display: flex;
    align-items: flex-start;
  }

  .section-company .section-content-grid {
    flex-direction: column;
  }

  .section-faq .section-content,
  .section-faq .section-media {
    width: calc(50% - var(--grid-gap-xl));
  }

  .section-company .section-content,
  .section-company .section-media {
    width: 100%;
  }

  .section-company .section-img {
    max-height: 420px;
  }

  .section-company .section-img img {
    width: 100%;
    height: auto;
  }

  .footer-disclaimer {
    padding-bottom: 64px;
  }

  .section-benefits .section-content-grid {
    gap: var(--grid-gap-xl);
    grid-template-columns: 1fr;
  }

  .section-benefits .section-media,
  .section-benefits .section-content {
    grid-column: 1 / -1;
  }

  /* Diagram */

  .diagram-text-4 {
    right: 3%;
    top: 36.5%;
  }

  .diagram-text-5 {
    right: 6%;
    top: 44.5%;
  }

  .diagram-text-6 {
    right: 1%;
    top: 53%;
  }

  .diagram-text-7 {
    right: 0%;
    top: 62.5%;
  }

  .section-articles .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
  }
}

/* 1080 */

@media (max-width: 1080px) {

  .section-hero-content {
    margin-top: 80px;
  }

  .section-hero-container {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr);
  }

  .section-hero-img-product {
    bottom: -10%;
    left: -100%;
  }

  .section-hero-badge {
    left: -100%;
    bottom: 5%;
  }

  .section-diagram .section-content {
    max-height: 426px;
  }

  .diagram-lines {
    left: 2.75%;
  }

  .article-content {
    padding: 16px;
    padding-top: 0;
  }

  .article-content .card-title {
    margin-bottom: 8px !important;
  }

  .article-thumb,
  .article-thumb img {
    border-radius: 8px;
  }

  .section-hero {
    height: calc(560px - 52px);
  }
}

/* 1024 */

@media (max-width: 1024px) {

  :root {
    --container-padding: 24px;
    --section-heading-margin-bottom: 32px;
    --subsection-heading-margin-bottom: 24px;
  }

  .page-banner,
  .page-content {
    margin: 48px 0;
  }

  /* .page-banner+.page-content {
    margin-top: 96px;
  } */

  .grid-12,
  .grid-2 {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .grid-12>div {
    grid-column: 1/-1 !important;
  }

  .section-hero {
    height: calc(520px - 52px);
    padding-bottom: var(--grid-gap-xl);
  }

  .section-img {
    max-height: 420px;
  }

  .section-about.section-bg {
    padding-top: 24px;
  }

  .section-about .section-media {
    order: 1;
    justify-content: start;
    max-width: 520px;
  }

  .section-about .section-content {
    order: 2;
  }

  .section-buy .section-content-inner {
    flex-direction: column;
  }

  .section-buy .section-img {
    max-width: 100%;
    align-items: flex-start;
  }

  .section-buy .section-img img {
    margin-top: -15%;
  }

  .footer-credits {
    flex-direction: column;
    gap: var(--grid-gap-m);
  }

  .footer-bottom {
    flex-wrap: wrap;
  }

  .footer-inner {
    max-width: 100%;
  }

  .diagram {
    width: 100%;
    display: flex;
    align-items: center;
  }

  .diagram-lines {
    display: none;
  }

  .diagram-img {
    left: 45%;
  }

  .diagram-text {
    position: relative;
    inset: 0;

    padding-left: 20px;
    width: fit-content;
  }

  .diagram-text::before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4' fill='none' stroke='%23a12334' stroke-width='2'/%3E%3C/svg%3E");
    position: absolute;
    top: 2px;
    left: 0;

    width: 24px;
    height: 24px;
    color: var(--primary);
  }

  .diagram-text-left,
  .diagram-text-right {
    position: absolute;
    top: 40%;
    left: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--grid-gap);

    width: fit-content;
    height: fit-content;
  }

  .diagram-text-right {
    right: 0;
    left: auto;
  }

  .section-how-instruction {
    margin-top: 160px;
  }

  .section-how .section-media {
    top: -20px;
  }

  .section-how-bg {
    right: -10%;
    bottom: -18%;
  }

  .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
  }
}

/* 930px */

@media (max-width: 930px) {

  .section-hero {
    height: calc(500px - 52px);
  }

  .section-hero-img-product {
    bottom: 5%;
  }

  .section-hero-badge {
    bottom: 17%;
  }

  .section-diagram .section-content {
    max-height: 380px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 768px */

@media (max-width: 768px) {

  :root {
    --grid-gap: 16px;
    --grid-gap-m: 24px;
    --grid-gap-xl: 48px;
  }

  .section-img {
    max-height: 320px;
  }

  .section-hero-badge {
    bottom: 13%;
  }

  .section-about .section-media {
    max-width: 60dvw;
  }

  .section-diagram.section-bg {
    padding-bottom: clamp(48px, 32px + 4vw, 120px);
  }

  .section-diagram .section-content {
    max-height: none;
    height: 100%;
  }

  .diagram {
    align-items: flex-start;
    gap: var(--grid-gap);
    aspect-ratio: auto;
  }

  .diagram-img,
  .diagram-text-block,
  .diagram-text-right,
  .diagram-text-left {
    position: static;
  }

  .diagram-img {
    align-self: center;

    max-width: 520px;
    height: auto;

    aspect-ratio: 1;
    transform: translate(0);
  }

  .diagram-text-block,
  .diagram-text-right,
  .diagram-text-left {
    display: flex;
    flex-direction: column;
    gap: var(--grid-gap);
  }

  .diagram-text-block br {
    display: none;
  }

  .section-faq .section-content-grid {
    flex-direction: column;
  }

  .section-faq .section-content-grid>div {
    width: 100%;
  }

  .section-faq .section-content-grid .section-media {
    display: none;
  }

  .swiper {
    padding-top: 64px;
  }

  .swiper-slide {
    position: static;
    z-index: auto;
    width: auto;
    margin-right: 0;
  }

  .swiper-slide-active .swiper-card {
    transform: scale(1);
  }

  .footer-top {
    flex-direction: column;
    gap: var(--grid-gap-m);
  }
}

/* 640px */

@media (max-width: 640px) {

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-hero-img-product {
    left: -55%;
    bottom: 15%;
  }

  .section-hero-badge {
    left: -50%;
    bottom: auto;
    top: 20%;
  }

  .swiper {
    padding-top: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--grid-gap);
  }

  .footer-disclaimer {
    text-align: left;
    padding-inline: 0;
  }
}

/* 576px */

@media (max-width: 576px) {

  :root {
    --container-padding: 16px;
  }

  .page-banner,
  .page-content {
    margin: 32px 0;
  }

  /* .page-banner+.page-content {
    margin-top: 64px;
  } */

  .btn {
    height: 48px;
    padding: 2px 24px;
  }

  .btn-cta {
    height: 52px;
    padding: 2px 32px;
  }

  .btn-with-icon {
    height: 48px;
    padding: 2px 32px;
  }

  /* .link-with-icon svg {
    margin-top: 2px;
  } */

  .section-hero {
    height: 100%;
  }

  .section-hero-content {
    margin-top: var(--grid-gap-xl);
  }

  .section-hero-container {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 0;
  }

  .section-hero-visual {
    min-height: 300px;
  }

  .section-hero-img-main {
    left: auto;
    right: 0;
    bottom: 25%;
  }

  .section-hero-img-product {
    left: 16px;
    bottom: auto;
    top: -12%;
  }

  .section-hero-badge {
    left: 16px;
    bottom: auto;
    top: 40%;
  }

  .diagram {
    flex-direction: column;
  }

  .benefits-grid .card {
    padding: 16px;
  }

  .instruction {
    padding: 16px;
    gap: 24px;
  }

  .instruction-item {
    flex-direction: column;
    gap: 8px;
  }

  .instruction-title,
  .instruction-info {
    flex: 0 1 auto;
    width: fit-content;
  }
}

/* 420px */

@media (max-width: 420px) {

  .grid-4,
  .grid-3,
  .grid-2,
  .grid-12,
  .section-articles .grid-4 {
    grid-template-columns: 1fr;
  }

  .section-hero-img-main {
    max-width: 200px;
  }

  .section-hero-img-product {
    max-width: 320px;
    inset: 0;
    top: -10%;
    left: -5%;
  }

  .section-hero-badge {
    top: 50%;
  }

  .section-situation .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-about .section-media {
    max-width: 100%;
  }

  .section-benefits .section-media,
  .section-company .section-img {
    height: 240px;
  }

  .section-how .section-media {
    top: 48px;
  }

  .section-how-bg {
    display: none;
  }

  .section-list-number {
    font-size: 18px;
  }

  .footer-menu-wrap {
    gap: 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .section-hero-content {
    margin-top: 32px;
  }

}