/* FONTS */

/* Regular (400) */
@font-face {
  font-family: "Fixel Display";
  src: url("https://svoyiridni.com.ua/wp-content/themes/svoitheme/assets/fonts/FixelDisplay/FixelDisplay-Regular.woff2") format("woff2"), url("https://svoyiridni.com.ua/wp-content/themes/svoitheme/assets/fonts/FixelDisplay/FixelDisplay-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Medium (500) */
@font-face {
  font-family: "Fixel Display";
  src: url("https://svoyiridni.com.ua/wp-content/themes/svoitheme/assets/fonts/FixelDisplay/FixelDisplay-Medium.woff2") format("woff2"), url("https://svoyiridni.com.ua/wp-content/themes/svoitheme/assets/fonts/FixelDisplay/FixelDisplay-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Bold (700) */
@font-face {
  font-family: "Fixel Display";
  src: url("https://svoyiridni.com.ua/wp-content/themes/svoitheme/assets/fonts/FixelDisplay/FixelDisplay-Bold.woff2") format("woff2"), url("https://svoyiridni.com.ua/wp-content/themes/svoitheme/assets/fonts/FixelDisplay/FixelDisplay-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Bold (800) */
@font-face {
  font-family: "Fixel Display";
  src: url("https://svoyiridni.com.ua/wp-content/themes/svoitheme/assets/fonts/FixelDisplay/FixelDisplay-ExtraBold.woff2") format("woff2"), url("https://svoyiridni.com.ua/wp-content/themes/svoitheme/assets/fonts/FixelDisplay/FixelDisplay-ExtraBold.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* FONTS */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Fixel Display", sans-serif;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

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

ul,
ol {
  list-style-type: none;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  background-color: transparent;
  border: none;
  cursor: pointer;
}

main {
  background-color: var(--color-white);
}

:root {
  --color-primary: #50690e;
  --color-secondary: #F9B036;
  --color-secondary-300: #F6E1B5;

  --color-blue: #0077B5;

  --color-gray: #aaaaaa;

  --color-black: #050505;
  --color-white: #fcfcfc;

  --error: #ff0000;

  --text-sm: 14px;
  --text-md: clamp(0.9375rem, 0.8717rem + 0.2632vw, 1.1875rem); /* 15-19 px */
  --text-l3: clamp(1.125rem, 1.0263rem + 0.3947vw, 1.5rem); /* 18-24 px */
  --text-lg: clamp(1.75rem, 1.6184rem + 0.5263vw, 2.25rem); /* 28-36 px */
  --text-2\.5lg: clamp(2.25rem, 2.1053rem + 0.5263vw, 3rem); /* 36-48 px */
  --text-xl: clamp(2.75rem, 1.9487rem + 2.5641vw, 4rem); /* 40-64 px */
  --text-2xl: clamp(3rem, 2.6053rem + 1.5789vw, 4.5rem); /* 48-72 px */

  --section-padding: clamp(3.125rem, 2.3026rem + 3.2895vw, 6.25rem);
  --header-height: 92px;

  --auto-fill: repeat(auto-fill, minmax(min(275px, 100%), 1fr));
  --auto-fit: repeat(auto-fit, minmax(min(275px, 100%), 1fr));

  --font-fixel: "Fixel Display", sans-serif;
}

section {
  padding-block: var(--section-padding);
  transition: 0.3s ease;
}

.container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding-inline: 1rem;
}

@media screen and (max-width: 1280px) {
  .container {
    max-width: 1024px;
  }
}

@media screen and (max-width: 1024px) {
  .container {
    max-width: 768px;
  }
}

@media screen and (max-width: 768px) {
  .container {
    max-width: 640px;
  }
}

@media screen and (max-width: 640px) {
  .container {
    max-width: 480px;
  }
}

@media screen and (max-width: 480px) {
  .container {
    max-width: 100%;
  }
}

/* Buttons */

.btn {
  border-radius: 14px;
  padding: 10px 18px;
  border: 1px solid transparent;

  color: var(--color-white);
  font-weight: 800;
  line-height: 30px;

  transition: 0.3s ease;
}

.btn.primary {
  background-color: var(--color-primary);
}
.btn.secondary {
  background-color: var(--color-secondary);
}

@media (hover: hover) {
  .btn.primary:hover {
    background-color: #4A5F0D;
  }

  .btn.secondary:hover {
    background-color: #E0A130;
  }
}
.btn.primary:active {
  background-color: #42540C;
}
.btn.secondary:active {
  background-color: #C68F2B;
}

/* BREADCRUMBS */

.breadcrumb {
  display: flex;
  gap: 13.5px !important;
  flex-wrap: wrap;
  align-items: center;
  font-size: var(--text-l3);
  line-height: 1;
  color: var(--color-white);
  margin-bottom: 2rem;
}
.breadcrumb a {
  color: var(--color-secondary);
}
.breadcrumb > * {
  position: relative;
  color: var(--color-gray);
}
.breadcrumb > *::after {
  content: "|";
  position: absolute;
  top: 0;
  bottom: 0;
  right: -9.5px;
  color: var(--color-gray);
}
.breadcrumb a:first-child {
  display: flex;
  align-items: center;
}
.breadcrumb *:last-child::after {
  content: none;
}
.breadcrumb a:first-child::before {
  content: url(https://svoyiridni.com.ua/wp-content/themes/svoitheme/assets/img/home.svg);
  position: static;
  margin-right: 8px;
}

/* SWIPER */

.swiper .swiper-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  width: fit-content;
  margin-inline: auto;
  margin-top: 55px;
}
.swiper .swiper-container:has(.swiper-pagination-lock) {
  display: none;
}
.swiper .swiper-pagination {
  position: static;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.swiper .swiper-pagination .swiper-pagination-bullet {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background-color: var(--color-secondary);
  opacity: 0.4;
  
  cursor: pointer;
  
  transition: 0.3s ease;
}
@media screen and (max-width: 640px) {
  .swiper .swiper-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
  }
  .swiper .swiper-pagination {
    display: none;
  }
}
.swiper .swiper-pagination .swiper-pagination-bullet-active {
  transform: scale(1.3);
  opacity: 1;
}
.swiper .swiper-container button {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  background-color: transparent;
  aspect-ratio: 1/1;
  width: 40px;
}
.swiper .swiper-container .swiper-navigation-prev {
  padding-right: 5px;
}
.swiper .swiper-container .swiper-navigation-next {
  padding-left: 5px;
}

/* ––––––– MAIN HERO –––––––– */

section.main_hero {
  background-color: var(--color-primary);
  position: relative;
  isolation: isolate;
  overflow: clip;
}
section.main_hero > img {
  position: absolute;
  right: 0;
  top: -4rem;
  bottom: -4rem;
  height: calc(100% + 10rem);
  z-index: -1;
  transform: rotate(170deg);
}

section.main_hero .breadcrumb > p {
  color: var(--color-white);
}

section.main_hero .container h1 {
  font-weight: 700;
  font-size: var(--text-2xl);
  color: var(--color-white);
  line-height: 1;
}
section.main_hero .container > p {
  margin-top: 50px;
  font-weight: 400;
  font-size: var(--text-l3);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--color-white);
}
section.main_hero .container > div:not(.breadcrumb) {
  margin-top: 4rem;
  display: flex;
  align-items: center;
  gap: 50px;
}
section.main_hero .container > div:not(.breadcrumb) a {
  display: flex;
  align-items: center;
  gap: 6px;

  font-weight: 700;
  font-size: var(--text-l3);
  line-height: 30px;
  color: var(--color-white);
}

section.main_hero .container > div .btn {
  display: flex;
  gap: 6px;
  align-items: center;
  width: fit-content;
  font-size: var(--text-l3);
}
section.main_hero .container > div .btn:not(.secondary) {
  border-color: var(--color-secondary);
  background-color: transparent;
}
@media (hover: hover) {
  section.main_hero .container > div .btn:not(.secondary):hover {
    background-color: #e0a130;
    border-color: var(--color-secondary);
  }
}
section.main_hero .container > div .btn:not(.secondary):active {
  background-color: #c68f2b;
}

@media screen and (max-width: 1024px) {
  section.main_hero .container > div:has(.btn) {
    flex-direction: column;
    gap: 1.5rem;
    align-items: start;
  }

  section.main_hero > img {
    height: 60%;
  }
}

@media screen and (max-width: 640px) {
  section.main_hero .container > div .btn {
    width: 100%;
  }
  section.main_hero > img {
    opacity: 0.4;
  }
}


.onClick {
  animation: blink 1s forwards;
}
@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* MODAL POPUP - Mobile First */

.popup {
  position: fixed;
  inset: 0;
  z-index: 1100;

  display: none;
  justify-content: center;
  align-items: center;

  backdrop-filter: brightness(0.4);
}
.popup.active {
  display: flex;
  animation: popup 0.3s ease forwards;
}

@keyframes popup {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes popupScale {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.popup .popup__content {
  --grid-gap: 1rem;
  --padding: 1.5rem;

  position: relative;

  display: grid;
  grid-template-rows: 1fr;
  gap: var(--grid-gap);
  background-color: #fff;
  padding: var(--padding);
  width: 90%;
  max-height: 90%;
  overflow: hidden;
  border-radius: 20px;
}

.popup.active .popup__content {
  animation: popupScale 0.3s ease forwards;
}

.popup .popup__content .popup__close {
  position: absolute;
  right: calc(var(--padding) / 2);
  top: calc(var(--padding) / 2);
  cursor: pointer;
  padding: 10px;
  border: none;
  display: grid;
  background-color: transparent;
}
.popup .popup__content .popup__close::before,
.popup .popup__content .popup__close::after {
  content: "";
  grid-area: 1/1;
  display: block;
  width: 16px;
  height: 2px;
  background-color: var(--color-white);
  transform-origin: center;
}
.popup .popup__content .popup__close::before {
  transform: rotate(45deg);
}
.popup .popup__content .popup__close::after {
  transform: rotate(-45deg);
}

.popup .popup__content-header p,
.popup .popup__content-header strong {
  font-size: var(--text-md);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-heading-primary);
}

.popup .popup__content-body {
  display: grid;
  overflow: hidden;
  color: var(--text-body);
}

.popup .popup__content-body > div {
  display: grid;
  gap: 12px;
  padding-right: 15px;
  height: 100%;
  width: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
}

.popup .popup__content-footer a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  border-radius: 60px;
  background-color: var(--brand-800);
  padding: 12px 20px;

  color: var(--bg-primary);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* Tablet and above */
@media (min-width: 640px) {
  .popup .popup__content {
    --padding: 2rem;
    max-width: 600px;
  }

  .popup .popup__content-footer a {
    width: 50%;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .popup .popup__content {
    min-width: 440px;
    max-width: 740px;
  }

  .popup .popup__content .popup__close {
    right: calc(2rem + 5px);
    top: calc(2rem + 5px);
  }
}


.popup .popup__content {
  background-color: var(--color-primary);
  position: relative;
  overflow: clip;
  isolation: isolate;
}
.popup .popup__content > img {
  position: absolute;
}
.popup .popup__content > img[data-position='left'] {
  top: -20%;
  left: -25%;
  transform: rotate(-46deg);
  z-index: -1;
}
.popup .popup__content > img[data-position='right'] {
  bottom: -34%;
  right: -27%;
  transform: rotate(52deg) scaleX(-1);
  z-index: -1;
}

.popup .popup__content .popup__content-body form {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.popup .popup__content .popup__content-body form > p {
  text-align: center;
  font-weight: 700;
  font-size: var(--text-2\.5lg);
  line-height: 40px;
  color: var(--color-white);
}

.popup .popup__content .popup__content-body form input,
.popup .popup__content .popup__content-body form textarea {
  font-family: var(--font-fixel);
  border-radius: 5px;
  border: 1px solid #e5e5e5;
  background-color: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-md);
  padding: 12px 16px;
  outline: none;
  transition: border 0.3s ease;
}
.popup .popup__content .popup__content-body form input:focus-visible,
.popup .popup__content .popup__content-body form textarea:focus-visible {
  border-color: var(--color-white);
}

.popup .popup__content .popup__content-body form label span {
  font-weight: 400;
  font-size: var(--text-md);
  line-height: 30px;
  color: var(--color-white);
} 

.popup .popup__content .popup__content-body form label:has(input[type="checkbox"]) {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;

  color: var(--color-white);
  font-size: var(--text-md);

  cursor: pointer;
}
.popup .popup__content .popup__content-body form label:has(input[type="checkbox"]) span {
  color: var(--color-secondary);
  font-weight: 700;
}
.popup .popup__content .popup__content-body form label input[type="checkbox"] {
  display: none;
}

.popup .popup__content .popup__content-body form .btn {
  width: fit-content;
  align-self: center;

  display: flex;
  gap: 6px;
  align-items: center;
  font-size: var(--text-l3);
  margin-bottom: 1.5rem;
}

.checkbox-consent label {
  align-items: center;
  gap: 1rem;
}

@media screen and (max-width: 640px) {
  .checkbox-consent label {
    align-items: baseline;
  }
}

.checkbox-consent label span,
.checkbox-consent label p {
  font-size: inherit;
}
.checkbox-consent label .checkbox {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background-color: var(--color-white);

  position: relative;
  overflow: hidden;
}

.checkbox-consent label .checkbox::before,
.checkbox-consent label .checkbox::after {
  content: none;
  position: absolute;
  top: 50%;
  left: 50%;

  display: block;
  width: 12px;
  height: 2px;

  background-color: var(--color-primary);
}
.checkbox-consent label .checkbox::before {
  width: 0.4em;
  left: 0.28em;
  top: 0.7em;
  transform: translate(-50%, -50%) rotate(42deg);
}
.checkbox-consent label .checkbox::after {
  width: 0.8em;
  left: 0.65em;
  top: 0.55em;
  transform: translate(-50%, -50%) rotate(306deg);
}
.checkbox-consent label:has(input:checked) .checkbox::after,
.checkbox-consent label:has(input:checked) .checkbox::before {
  content: "";
}

label {
  display: flex;
  flex-direction: column-reverse;
}
label > span {
  width: fit-content;
  transition: all 0.2s;
  transform-origin: top left;
}
label > span i {
  color: var(--color-primary);
  vertical-align: top;
  font-style: normal;
}
label > textarea {
  /* field-sizing: content; */
  resize: none;
}
label > input:not([type="checkbox"]):has(+ span)::placeholder,
label > textarea:not([type="checkbox"]):has(+ span)::placeholder {
  transition: opacity 0.2s ease;
  opacity: 0;
}
label > input:not([type="checkbox"]):has(+ span):focus::placeholder,
label > textarea:not([type="checkbox"]):has(+ span):focus::placeholder {
  opacity: 1;
}
label > input:not([type="checkbox"]):has(+ span):not(:focus):placeholder-shown + span,
label > textarea:not([type="checkbox"]):has(+ span):not(:focus):placeholder-shown + span {
  transform: translateY(2em) translateX(1em) scale(1.25);
  pointer-events: none;
  opacity: 0.5;
}

.no-scrollbar {
  overscroll-behavior-block: none;
  overflow-y: auto;            /* или overflow: auto/scroll */
  -ms-overflow-style: none;  /* IE и старый Edge */
  scrollbar-width: none;     /* Firefox */
}
.no-scrollbar::-webkit-scrollbar {
  display: none;             /* Chrome, Safari, новые Edge */
}

.marquee {
  position: relative;
  width: 100vw;
  padding-block: 1rem;
  margin-block: 2rem;
  border-left: none;
  border-right: none;

  display: flex;
  align-items: center;
}

/* The moving "track" that slides left to right */
.marquee__track {
  display: flex;
  flex-shrink: 0;
  white-space: nowrap;
  animation: marquee-scroll 30s linear infinite;
}

/* Animation: moves the track smoothly across the screen */
@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Each block of repeated content (we duplicate it in HTML) */
.marquee__content {
  display: inline-flex;
  flex-shrink: 0; /* Prevents shrinking */
}

/* The list and items inside the marquee */
.marquee__list {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.marquee__item {
  padding-inline: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image-specific item */
.marquee__item--image img {
  width: auto;
  height: 100px;
}

/* на случай пользователей с reduced motion */
@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
  }
}