@import "../libs/btn/anim-menu-btn.css";

@import "../css/vars.css";
@import "../css/grid.css";
@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&family=Lexend:wght@100..900&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap");
div,
span,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
code,
img,
b,
u,
i,
center,
table,
tr,
th,
td,
video {
  margin: 0;
  padding: 0;
  border: 0;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
.navbar,
.nav-links,
.nav-buttons {
  font-family: "Jost", sans-serif;
}

.header-content,
.header-content__info p {
  font-family: "Jost", sans-serif;
}

html,
body {
  font-family: "Jost", sans-serif;
  height: 100%;
  color: var(--white-color);
}

@font-face {
  font-family: montserrat-g;
  src: url(../fonts/Montserrat-Regular.woff2);
}

@font-face {
  font-family: montserrat-g;
  src: url(../fonts/Montserrat-Bold.woff2);
  font-weight: 700;
}

@font-face {
  font-family: montserrat-g;
  src: url(../fonts/Montserrat-Black.woff2);
  font-weight: 900;
}

@font-face {
  font-family: montserrat-g;
  src: url(../fonts/Montserrat-SemiBold.woff2);
  font-weight: 600;
}

body {
  font-size: 16px;
  line-height: 1.6;
  color: white;
}
p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

@media (max-width: 768px) {
  .image-container {
    flex-direction: column;
    align-items: center;
  }

  .image-container img {
    width: 90%;
    margin: 10px 0;
  }
}
h3 {
  display: block;
  font-size: 1.17em;
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  font-weight: bold;
  unicode-bidi: isolate;
  color: #4caf50;
}

.slider {
  height: 100%;
}
.swiper {
  width: 100%;
  height: 100vh;
  position: relative;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background: #000; /* Фон по умолчанию */
}

.slider__layer {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.header-content__slide {
  text-align: center;
  color: #fff;
  padding: 20px;
  border-radius: 10px;
}

/* Сделать шрифт больше для мобильных устройств */
@media (max-width: 767px) {
  .header-content__slide h1 {
    font-size: 2.5rem; /* Увеличить размер текста */
  }
  .header-content__info p {
    font-size: 1.1rem; /* Увеличить размер текста описания */
  }
}

/* Стили для пагинации */
.swiper-pagination {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff; /* Белый цвет для пагинации */
}

.swiper-button-next,
.swiper-button-prev {
  color: #fff; /* Белые стрелки */
}

.slider__layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.slider__item {
  overflow: hidden;
  transition: opacity 2s ease !important;
  opacity: 0.5;
}

.slider__item.swiper-slide-active {
  opacity: 1;
}

.slider-ui {
  position: absolute;
  z-index: 10;
  inset: 0;
}

.top-line {
  padding: 3.2em 0;
}

.header-wrapper {
  display: flex;
  margin-top: 50px;
  flex-direction: column;
  height: 100%;
}

.header-content {
  font-family: "Jost", sans-serif;
  flex: 1;
  padding-top: 60px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1;
  flex-direction: column;
}

.header-content__slide {
  position: absolute;
}

.header-content h1 {
  font-size: calc(var(--index) * 11.95);
  text-transform: uppercase;
  font-weight: 900;
}

.header-content p {
  max-width: 560px;
  font-weight: 600;
  line-height: 1.4;
  display: inline-block;
}

.header-bottom {
  min-height: 120px;
}

.letters .letter {
  text-shadow: 25px 0 35px rgba(0 0 0 / 0.4);
  position: relative;
  margin-left: calc(var(--index) * -2.65);
  right: calc(var(--index) * -2.65);
  opacity: 0;
  top: -5em;
  transition: opacity var(--transition), top var(--transition);
}

.header-content__slide.active .letter {
  opacity: 1;
  top: 0;
}

.header-content__slide.active + * .letter {
  top: 5em;
}

.header-content__info {
  top: -18em;
  position: relative;
  opacity: 0;
  transition: opacity 1s ease, top 1.25s ease;
}

.header-content__slide.active .header-content__info {
  opacity: 1;
  top: 0;
}

.header-content__slide:has(* + .active .header-content__info),
.header-content__slide.active + * .header-content__info {
  top: 18em;
}

.slider-ui {
  pointer-events: none;
}

/* Контейнер */
.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Логотип */
.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  margin-left: -90px;
}

.logo img {
  max-height: 70px;
  width: auto;
}
/* logo mobile */
@media (max-width: 768px) {
  .logo {
    justify-content: center;
    margin-left: 0;
  }

  .logo img {
    max-height: 50px;
  }
}
/* container nvigation */
.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav {
  display: flex;
  align-items: center;
}
/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
  .stats-subheader {
    font-size: 16px; /* Уменьшаем размер шрифта */
    margin-bottom: 20px; /* Чуть уменьшаем отступ */
  }
}

@media (max-width: 480px) {
  .stats-subheader {
    font-size: 14px; /* Еще немного уменьшаем для очень маленьких экранов */
    margin-bottom: 15px;
  }
}
/* Мобильная адаптация */
@media (max-width: 768px) {
  .social-icons {
    margin-left: 0; /* Убираем отступ */
  }
  
  .stats-header-blog {
    font-size: 20px;
    flex-direction: column;
  }

  .stats-header-blog a {
    margin-left: 0;
    font-size: 16px;
  }

  .review {
    min-width: 250px;
    max-width: 270px;
    padding: 15px;
  }

  .stars {
    font-size: 16px;
  }
}
/* social buttons */
.social-icons {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: 50px;
}
strong{
color: #5cba49;
}
.social-icons .icon {
  color: #5cba49;
  font-size: 1.5rem;
  transition: color 0.3s;
}
.reviews-section {
  width: 100%;
  overflow: hidden;
  padding: 50px 0;
  position: relative;
  text-align: center;
}
.stats-header-blog {
  font-size: 28px;
  font-weight: bold;
  color: #2e7d32;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.stats-header-blog a {
  margin-left: 10px;
  text-decoration: none;
  color: #2e7d32;
  font-size: 20px;
}
.stats-subheader {
  font-size: 18px;
  color: #2e7d32;
  margin-bottom: 30px;
}
.reviews-container {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 20px;
  position: relative;
  width: 100%;
}
.reviews-wrapper {
  display: flex;
  gap: 20px;
  animation: scroll 25s linear infinite;
  width: max-content;
}
.review {
  min-width: 350px;
  max-width: 350px;
  background-color: rgba(255, 255, 255, 0.146);
  padding: 25px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  border: 3px solid #2e7d32;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.stars {
  color: #ffb400;
  font-size: 20px;
}
/* Бесконечная анимация */
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.reviews-wrapper {
  animation: scroll 20s linear infinite; /* Ускорено */
}

.reviews-container:hover .reviews-wrapper {
  animation-play-state: paused;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .social-icons {
    margin-left: 0; /* Убираем отступ */
  }
  
  .stats-header-blog {
    font-size: 20px;
    flex-direction: column;
  }

  .stats-header-blog a {
    margin-left: 0;
    font-size: 16px;
  }

  .review {
    min-width: 250px;
    max-width: 270px;
    padding: 15px;
  }

  .stars {
    font-size: 16px;
  }
}
/* navigation */
.nav-buttons {
  display: flex;
  gap: 15px;
  margin-left: auto;
  align-items: center;
}
/* Активный элемент навигации */
.nav-item a.active {
  border-bottom: 2px solid #4caf50;
  color: #4caf50; /* Цвет текста активного элемента */
}

.nav-item a {
  text-decoration: none;
  color: #4caf50; /* Цвет текста по умолчанию */
}

.nav-item a:hover {
  color: #4caf50;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: transparent;
  z-index: 1000;
  padding: 20px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav {
  display: flex;
  align-items: center;
}
.nav {
  margin-left: auto;
  display: flex;
  justify-content: center;
}

.nav-items {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-items a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  position: relative;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.nav-items a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #5cba49;
  transition: width 0.3s;
}

.nav-items a:hover::after {
  width: 100%;
}

.nav-item {
  position: relative;
}

/* arrow */
.arrow {
  margin-left: 5px;
  width: 10px;
  height: 10px;
  border: solid #5cba49;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.nav-item:hover .arrow {
  transform: rotate(-135deg);
}

/*dropdown menu */
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  opacity: 0;
  visibility: hidden;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  transform: translateY(-10px);
  width: 300px;
  z-index: 999;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-card {
  padding: 20px;
}

.dropdown-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-card a {
  color: #5cba49; /* Зеленые буквы в карточках меню */
  text-decoration: none;
  padding: 12px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.dropdown-card a:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* burger-menu*/
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: white;
  transition: transform 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
/* Базовые стили остаются */

.nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

/* Навигация для мобильных (адаптивное поведение) */
@media (max-width: 768px) {
  .nav {
    display: none; /* Скрываем на мобильных по умолчанию */
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.9);
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 75%;
    padding-top: 20px;
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
    z-index: 1000;
  }

  .nav.active {
    display: flex; /* Показываем при активации */
    transform: translateX(0);
  }

  .nav-items {
    flex-direction: column; /* Вертикальное меню */
    gap: 15px;
  }

  .nav-items a {
    font-size: 18px;
    padding: 10px 20px;
    color: white;
  }

  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: none;
    box-shadow: none;
  }

  .nav-item:hover .dropdown {
    transform: none;
  }
}

/* Бургер-меню */
.menu-toggle {
  display: flex; /* Показываем бургер-меню только на мобильных */
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

/* Базовые стили для навигации */
.nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 75%;
  height: 100%;
  background: white;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 999;
  display: none;
  flex-direction: column;
  padding-top: 20px;
}

.nav.active {
  display: flex;
  transform: translateX(0);
}

@media (min-width: 769px) {
  .nav {
    position: static;
    display: flex;
    transform: none;
    background: transparent;
    width: auto;
    height: auto;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
  }

  .menu-toggle {
    display: none;
  }
}

/* Пункты меню */
.nav-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

@media (min-width: 769px) {
  .nav-items {
    flex-direction: row;
    gap: 20px;
  }
}

/* Ссылки в меню */
.nav-item a {
  color: #5cba49;
  text-decoration: none;
  font-size: 16px;
  position: relative;
}

/* Выпадающее подменю */
.nav .dropdown {
  display: none;
  position: absolute;
  background: rgb(255, 255, 255);
  padding: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  z-index: 1000;
  top: 100%;
  left: 0;
}

.nav-item:hover .dropdown {
  display: block;
}

@media (max-width: 768px) {
  .nav .dropdown {
    position: static;
  }

  .nav-item.open .dropdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

/* Переключатель меню (бургер) */
.menu-toggle {
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
  z-index: 1000;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: #5cba49;
  border-radius: 2px;
  position: absolute;
  transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) {
  top: 0;
}

.menu-toggle span:nth-child(2) {
  top: 8px;
}

.menu-toggle span:nth-child(3) {
  top: 16px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 8px;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 8px;
}

/* scroll-to-top */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #ffffff; /* Білий фон */
  color: #5cba49; /* Початковий зелений колір тексту */
  border: 2px solid #5cba49; /* Зелений бордер */
  border-radius: 50%;
  font-size: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease,
    background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top.hide {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

/* При наведенні на кнопку */
.back-to-top:hover {
  background-color: #5cba49; /* Зелений фон при наведенні */
  color: white; /* Білий текст */
  border-color: #5cba49; /* Бордер залишається зеленим */
}

body.vertical-mode .swiper {
  overflow: hidden;
}

.hidden {
  display: none;
}

@keyframes fadeInAnimation {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateX(-100%);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}
/* video */
.video-section {
  position: relative;
  overflow: hidden;
  height: 120vh; /* Увеличиваем высоту секции, например, до 120% высоты экрана */
}

.video-section video {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.video-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  animation: slideIn 1.5s ease-in-out forwards;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateX(-60%);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) translateX(-50%);
  }
}
.text-block__p {
  margin-top: 0.5em;
  margin-bottom: 1rem;
  line-height: 1.75;
  font-size: 1.2em;
}

/* change words */
.changing-word {
  color: #5cba49;
  display: inline-block;
  position: relative;
  height: 1em;
  opacity: 0;
  animation: fade-in-out 6s ease-in-out infinite;
}
.changing-word span {
  display: block;
  position: absolute;
  width: 100%;
  text-align: center;
  opacity: 0;
  animation: fadeInOut 6s ease-in-out infinite;
}

.changing-word span:nth-child(1) {
  animation-delay: 0s;
}

.changing-word span:nth-child(2) {
  animation-delay: 2s;
}

.changing-word span:nth-child(3) {
  animation-delay: 4s;
}
@keyframes fade-in-out {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  10% {
    opacity: 1;
    transform: translateY(0);
  }
  45% {
    opacity: 1;
    transform: translateY(0);
  }
  55% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

:root {
  --index: calc(1vw + 1vh);
  --color-header: #5cba49;
  --color-text: #cdc6c3;
  --gallery-gap: max(calc(var(--index) * 10), 60px);
}

/* will-change */
.content,
.hero,
.main-header,
.gallery > * {
  will-change: transform;
  margin-bottom: 0; /* Убираем только отступ снизу */
  padding-bottom: 0; /* Убираем только внутренний отступ снизу */
}

body {
  background-size: 100px;
  color: #f0f0f0;
  font-family: "Jost", sans-serif;
  overflow-x: hidden;
  margin: 0; /* Убираем отступы у body */
}

.hero {
  width: calc(var(--index) * 36);
  position: absolute;
  left: 37vw;
  top: 22vh;
  z-index: -1;
}

.main-header {
  height: 100vh;
}

.container {
  padding: 0 7vw;
}
/* first page */
.hero-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  height: 100vh;
  padding: 50px;
  gap: 30px;
}

/*text in hero section */
.hero-text {
  font-family: "Exo 2", serif;
  font-size: 1.1em;
  max-width: 30%;
  z-index: 2;
  padding-top: 50px;
  position: relative;
}

/* video */
.video-wrapper {
  position: relative;
  flex: 7;
}

/* video in right form */
.video-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1600px;
  height: 1600px;
  clip-path: circle(78.6% at 81% 15%);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* style for video */
.video-circle video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 0;
}

/* efects for video radius form */
.video-circle:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* header for video */
.video-heading {
  font-size: 9em;
  font-weight: bold;
  color: #f9f3e073;
  text-transform: uppercase;
  font-family: auto;
  letter-spacing: 0.1em;
  text-align: left;
  padding-bottom: 15px;
  position: relative;
  z-index: 1;
  left: 10%;
  top: 20px;
}

/* line under video*/
.video-heading-line {
  display: inline-block;
  position: relative;
  padding-bottom: 10px;
}

.video-heading-line::after {
  content: "";
  display: block;
  width: 60%;
  height: 3px;
  background-color: #f9f3e073;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.main-title {
  font-size: calc(var(--index) * 8);
  position: absolute;
  width: min-content;
  bottom: 12vh;
  line-height: 0.9;
}

.gallery {
  display: flex;
  padding: calc(var(--index) * 1) 0;
}

.gallery > * {
  flex: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.gallery__item {
  margin-bottom: 60px; /* Устанавливаем отступ между элементами */
  max-width: calc(var(--index) * 21);
  max-height: 180vh;
  border-radius: 8px;
}

.gallery__left {
  margin-top: calc(var(--gallery-gap) * 1.25);
}

.gallery__right .gallery__item {
  margin: 0;
  margin-top: calc(var(--gallery-gap) * 0.8);
}

.text-block {
  margin-bottom: 10px; /* Устанавливаем отступ между текстовыми блоками */
  color: #5cba49;
  position: relative;
}

.text-block__h {
  margin-bottom: 1.5rem;
  font-size: 2rem;
  line-height: 2.4rem;
  color: #5cba49;
}

.text-block__p {
  margin-bottom: 1rem;
  line-height: 1.75;
  color: #5cba49;
}

.text-block__x {
  margin-bottom: 2em;
  line-height: 1.75;
  color: white;
  font-size: 1.3em;
}

@media (max-width: 768px) {
  .hero {
    width: 100%;
    left: 0;
    top: 10vh;
    position: relative;
    z-index: -1;
  }
  .gallery {
    gap: calc(var(--gallery-gap) * 1.2);
  }
  .main-title {
    font-size: 5vw;
    bottom: 8vh;
    line-height: 1.2;
    width: 100%;
    text-align: center;
  }

  .container {
    padding: 0 4vw;
  }

  .gallery {
    flex-direction: column;
    gap: var(--gallery-gap);
    padding: var(--index);
  }

  .gallery__item {
    max-width: 90%;
    margin: 0 auto var(--gallery-gap);
    height: auto;
  }

  .gallery__left {
    margin-top: var(--gallery-gap);
  }

  .gallery__right .gallery__item {
    margin-top: var(--gallery-gap);
  }

  .text-block {
    max-width: 90%;
    margin: 20px auto;
    padding: 10px;
  }

  .text-block__h {
    font-size: 1.5rem;
  }

  .text-block__p {
    font-size: 1rem;
  }
}
.hero-section {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 20px;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.2;
  text-align: center;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.3;
    white-space: normal;
  }

  .hero-section {
    height: auto;
    padding: 10px;
  }
}
.stats-section {
  text-align: center;
  padding: 50px 20px;
  background-color: #f5f5f5;
}

.stats-header {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: green; /* Зелёный цвет заголовка */
}

.stats-subheader {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: green; /* Зелёный цвет подзаголовка */
}

.stats-container {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 300px;
  max-width: 350px;
  text-align: center;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: green; /* Зелёный цвет значений */
  transition: transform 0.3s ease, color 0.3s ease; /* Плавная анимация при наведении */
}

.stat-description {
  font-size: 1rem;
  color: #444;
}

.stat-item:hover .stat-value {
  transform: scale(1.2); /* Увеличение числа при наведении */
  color: #2e7d32; /* Более насыщенный зелёный цвет при наведении */
}
.rotating-container {
  position: sticky;
  top: 50%; /* Центрировать по вертикали */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
  background: transparent;
}

.rotating-image {
  width: 150px;
  height: 150px;
  transition: transform 0.1s linear;
}
.stats-section {
  padding: 50px;
  background: #f9f9f9;
}

.hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

.stat-item {
  margin-bottom: 30px;
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  color: green;
}

.stat-description {
  font-size: 1rem;
  color: #333;
}
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.stats-section,
.recycling-section {
  padding: 50px;
  margin-bottom: 50px;
}

.section-header,
.stats-header {
  font-size: 2rem;
  text-align: center;
  color: green;
  margin-bottom: 20px;
}

.section-description,
.stats-subheader {
  text-align: center;
  font-size: 1.2rem;
  color: green;
  margin-bottom: 40px;
}

.recycling-section {
  padding: 60px 20px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  font-size: 2.8rem;
  font-weight: bold;
  color: green;
  margin-bottom: 20px;
}

.section-description {
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.icons-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  justify-items: center;
}

.icon-item {
  background-color: #fff;
  padding: 50px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 320px;
  position: relative;
}

.icon-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.material-icons.huge-icon {
  font-size: 8rem;
  color: #4caf50;
  margin-bottom: 20px;
}

.icon-item h3 {
  font-size: 1.5rem;
  color: green;
  margin-bottom: 15px;
  font-weight: bold;
}

.icon-item p {
  font-size: 1rem;
  color: green;
  line-height: 1.5;
}
.material-icons {
  font-family: "Material Icons";
  color: green;
  font-weight: normal;
  font-style: normal;
  font-size: 50px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
}
.icon-item:before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 15px;
  z-index: -1;
  transition: all 0.3s ease;
}

.icon-item:hover:before {
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
}
/* Общие стили для секции */
.forwhat {
  padding: 40px 0;
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.block {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  background-color: white;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  transition: transform 0.3s ease-in-out;
  flex: 0 0 45%;
  margin-bottom: 20px;
}

.block:hover {
  transform: translateY(-10px);
}

.top {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.top .material-icons {
  font-size: 40px;
  color: #4caf50;
  margin-right: 15px;
}

.top h2 {
  color: green;
  font-size: 24px;
  font-weight: bold;
}

.bottom p {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .block {
    flex: 0 0 100%;
  }

  .divider {
    display: none;
  }
}
.section-divider {
  width: 100%;
  height: 4px;
  background-color: #5cba49;
  margin: 40px 0;
}
.services-section {
  text-align: center;
  padding: 4rem 2rem;
  background-color: #f8fafc;
}

.section-header {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 2rem;
  color: green;
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.service-card {
  flex: 1 1 calc(50% - 1rem);
  max-width: 48%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.service-content {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  gap: 1.5rem;
}

.service-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid green;
  transition: transform 0.3s ease;
}

.service-card:hover .service-image {
  transform: scale(1.1);
}

.service-info {
  text-align: left;
  flex: 1;
}

.service-info h3 {
  font-size: 1.5rem;
  color: green;
  margin-bottom: 0.5rem;
}

.service-info p {
  font-size: 1rem;
  color: green;
  margin-bottom: 1rem;
}

.learn-more-btn {
  font-family: "Jost", sans-serif;
  display: inline-block;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  text-decoration: none; /* Убирает подчеркивание */
  font-weight: bold;
  color: green;
  background: transparent;
  border: 2px solid #4caf50;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.learn-more-btn:hover {
  background: #4caf50;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .service-card {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .service-content {
    flex-direction: column;
    text-align: center;
  }

  .service-image {
    margin-bottom: 1rem;
  }

  .learn-more-btn {
    width: 100%;
  }
}
/* Основные стили */
.stats-section {
  background-color: #fff;
  padding: 40px 0;
  text-align: center;
}

.stats-header {
  font-size: 2.5rem;
  color: green;
  margin-bottom: 10px;
  font-weight: 600;
}

.stats-subheader {
  font-size: 1.2rem;
  color: green;
  margin-bottom: 30px;
  line-height: 1.5;
}

.stats-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap; /* Добавлено для листания */
}

.stat-item {
  position: relative;
  width: 30%;
  overflow: hidden;
  transition: transform 0.3s ease;
  background-color: #f4f4f4;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 20px;
  margin-bottom: 20px; /* Пустое пространство между карточками */
}

.stat-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.stat-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
}

.stat-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
  border-radius: 8px;
}

.stat-image-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 8px;
}

.stat-item:hover .stat-image {
  opacity: 0;
}

.stat-item:hover .stat-image-hover {
  opacity: 1;
}

.stat-value {
  font-size: 1.5rem;
  color: #333;
  font-weight: 600;
  margin-top: 20px;
}

.stat-description {
  font-size: 1rem;
  color: #777;
  margin-top: 10px;
  line-height: 1.6;
}

.learn-more-btn {
  font-family: "Jost", sans-serif;
  display: inline-block;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  color: green;
  background: transparent;
  border: 2px solid #4caf50;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-top: 15px;
}

.learn-more-btn:hover {
  background: #4caf50;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
body {
  margin: 0;
  font-family: "Jost", sans-serif;
}
/* learn-more-btn (for navigation) */
.learn-more-btn-v {
  font-family: "Jost", sans-serif;
  display: inline-block;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  color: green;
  background: transparent;
  border: 2px solid #4caf50;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-left: 35px;
  outline: none;
  text-decoration: none;
}

.learn-more-btn-v:hover {
  background: #4caf50;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.scroll-button {
  font-family: "Jost", sans-serif;
  display: inline-block;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  color: green;
  background: transparent;
  border: 2px solid #4caf50;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-top: 15px;
}

.scroll-button:hover {
  background: #fff;
  color: #4caf50;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
/* Главное изображение */
.main-image {
  position: relative;
  width: 90%; /* Занимает 90% ширины экрана, не растягивается слишком сильно */
  max-width: 800px; /* Ограничение ширины для крупных экранов */
  margin: 40px auto; /* Отцентрировано с отступами сверху и снизу */
  border-radius: 16px; /* Скругленные углы */
  overflow: hidden; /* Обрезка краев для чистого вида */
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-image img {
  width: 100%; /* Изображение адаптируется к ширине контейнера */
  height: auto; /* Сохраняет пропорции */
  transition: transform 0.4s ease-in-out; /* Анимация увеличения при наведении */
}

.main-image:hover img {
  transform: scale(1.05); /* Легкое увеличение при наведении */
}

@media (max-width: 768px) {
  .main-image {
    width: 95%; /* Чуть шире на мобильных устройствах */
    max-width: 100%; /* Заполняет доступную ширину */
    margin: 20px auto; /* Уменьшаем отступы */
  }

  .main-image img {
    border-radius: 12px; /* Уменьшаем радиус на мобильных */
  }
}

/* Листание */
@media (max-width: 1024px) {
  .stats-container {
    justify-content: center;
  }

  .stat-item {
    width: 45%; /* Для планшетов */
  }
}

@media (max-width: 768px) {
  .stat-item {
    width: 100%; /* Для мобильных устройств */
  }
}
/* Секция вопросов */
.faq-section {
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-header {
  text-align: center;
  font-size: 36px; /* Аналог сайта */
  font-weight: 600;
  margin-bottom: 30px;
  color: #4caf50;
}

/* Контейнер для вопросов */
.faq-container {
  border-top: 1px solid #4caf50;
}

.faq-item {
  border-bottom: 1px solid #4caf50;
}

.faq-question {
  font-family: "Jost", sans-serif;
  width: 100%;
  background: none;
  border: none;
  padding: 15px;
  text-align: left;
  font-size: 30px; /* Аналог размера текста вопроса */
  font-weight: 500;
  color: #4caf50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.faq-question:hover {
  background-color: #f1f1f1;
  transform: translateY(-5px); /* Движение вверх на 5 пикселей */
}

/* Иконка (крестик/плюс) */
.faq-icon {
  color: #4caf50;
  width: 20px;
  height: 20px;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 2px;
  background-color: #4caf50;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}

.faq-icon::before {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.active .faq-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.faq-item.active .faq-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Ответы */
.faq-answer {
  font-family: "Jost", sans-serif;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 15px;
  font-size: 18px; /* Аналог размера текста ответа */
  font-weight: 400;
  color: #4caf50;
}

.faq-item.active .faq-answer {
  max-height: 200px; /* Увеличьте при необходимости */
  padding: 15px;
}
/* Заголовок и подзаголовок */
.stats-header-blog {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-top: 30px;
  color: #333; /* Цвет заголовка */
}

.stats-subheader {
  font-size: 18px;
  text-align: center;
  color: #777; /* Цвет подзаголовка */
  margin-bottom: 30px;
}

/* Обертка контейнера с публикациями */
.scroll-container-wrapper {
  position: relative;
  margin-left: 20px;
  margin-right: 20px;
  padding-bottom: 20px; /* Отступ снизу для стрелок */
}

/* Стрелки */
.scroll-button-left,
.scroll-button-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: green; /* Зеленый фон */
  color: white; /* Белый цвет стрелки */
  border: none;
  border-radius: 50%; /* Круглая форма */
  font-size: 30px;
  padding: 15px;
  cursor: pointer;
  z-index: 1;
  transition: all 0.3s ease; /* Плавный переход */
}

.scroll-button-left {
  left: 0;
}

.scroll-button-right {
  right: 0;
}

.scroll-button-left:hover,
.scroll-button-right:hover {
  background-color: white;
  color: green;
  border: 2px solid green;
}

.scroll-container {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.scroll-item {
  flex: 0 0 auto;
  width: 300px;
  margin-right: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.scroll-item:hover {
  transform: translateY(-10px);
}

.scroll-item a {
  text-decoration: none;
  display: block;
}

.scroll-item-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.scroll-item-description {
  padding: 15px;
}

.scroll-item-description h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #333;
}

.scroll-item-description p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .scroll-button-left,
  .scroll-button-right {
    display: none;
  }
}
.arrow-link {
  text-decoration: none;
  font-size: 36px;
  margin-left: 12px;
  color: green;
  font-weight: bold;
  transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

.arrow-link:hover {
  transform: translateX(8px);
  color: #4caf50;
}
.stats-header-blog {
  font-size: 4.3rem;
  text-align: center;
  color: green;
  margin-bottom: 20px;
}
.scroll-button-1 {
  font-family: "Jost", sans-serif;
  display: inline-block;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  color: green;
  background: transparent;
  border: 2px solid #4caf50;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-top: 15px;
  text-align: center;
}
.footer-separator {
  height: 1px;
  background-color: white;
  margin: 20px 0;
}

.scroll-button-1:hover {
  background: #fff;
  color: #4caf50;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Центрирование кнопки */
.scroll-button-1-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
.site-footer {
  background: rgba(92, 186, 73, 0.8);
  border-radius: 20px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  color: #fff; /* Белый текст */
  padding: 50px 20px;
  font-family: "Jost", sans-serif;
  position: relative;
  z-index: 10;
  backdrop-filter: blur(5px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-footer:hover {
  background: rgba(92, 186, 73, 1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  flex: 1;
  text-align: center;
  margin-bottom: 20px;
}

.footer-logo img {
  max-width: 150px;
  height: auto;
  transition: transform 0.3s;
}

.footer-logo img:hover {
  transform: scale(1.1);
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  color: #fff;
  font-weight: bold;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  margin-bottom: 10px;
}
/* instagram post — BinGreen */
.insta-section {
  padding: 60px 30px;
  font-family: 'Arial', sans-serif;
  color: #1e4620;
  max-width: 1300px;
  margin: 0 auto;
}

.insta-header {
  display: flex;
  align-items: center;
  gap: 100px;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 2px dashed #c9eac1;
}

.insta-avatar-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
}

.avatar-ring {
  width: 140px;
  height: 140px;
  position: absolute;
  top: 0;
  left: 0;
}

.insta-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  position: absolute;
  top: 10px;
  left: 10px;
  object-fit: cover;
  animation: bounceLogo 3s infinite ease-in-out;
  transition: transform 0.3s ease;
}

@keyframes bounceLogo {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-8px) rotate(-2deg); }
  60% { transform: translateY(4px) rotate(2deg); }
}

.insta-info {
  flex-grow: 1;
  min-width: 220px;
}

.insta-name-line {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.insta-name-line h2 {
  font-size: 26px;
  font-weight: bold;
  margin: 0;
  color: #2f8d2b;
  letter-spacing: 0.5px;
}

.insta-name-line a {
  color: #3dae2b;
  font-weight: 600;
  text-decoration: none;
}

.insta-name-line a:hover {
  text-decoration: underline;
}

.insta-stats {
  display: flex;
  gap: 35px;
  margin-top: 15px;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: #276b22;
}

.insta-stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.insta-stats li strong {
  font-weight: 700;
  font-size: 18px;
  color: #3dae2b;
}

.insta-follow-wrap {
  flex-shrink: 0;
}

.insta-follow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 38px;
  border-radius: 50px;
  background-color: #3dae2b;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: "Jost", sans-serif;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 30px;
  left: -10px;
}

.insta-follow:hover {
  background: #fff;
  color: #3dae2b;
  box-shadow: 0 0 0 3px #3dae2b;
}

.insta-bio {
  margin-top: 25px;
  font-size: 16px;
  line-height: 1.6;
  color: #2d572c;
}

.insta-link {
  color: #3dae2b;
  font-weight: 500;
  text-decoration: none;
  word-break: break-word;
}

.insta-link:hover {
  text-decoration: underline;
}

.instagram-grid {
  max-width: 1300px;
  margin: 0 auto;
  padding: 50px 20px;
}

.instagram-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.instagram-posts li {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 128, 0, 0.08);
  transition: transform 0.3s ease;
}

.instagram-posts li:hover {
  transform: scale(1.04);
}

.instagram-posts img {
  width: 100%;
  height: 150%;
  object-fit: cover;
  display: block;
  aspect-ratio: 1 / 1;
}

@media (max-width: 576px) {
  .insta-section {
    padding: 30px 16px;
  }

  .insta-header {
    flex-direction: column;
    align-items: center;
    gap: 25px;
    text-align: center;
  }

  .insta-info {
    width: 100%;
  }

  .insta-name-line {
    flex-direction: column;
    gap: 5px;
  }

  .insta-name-line h2 {
    font-size: 20px;
  }

  .insta-stats {
    justify-content: center;
    gap: 20px;
  }

  .insta-stats li {
    font-size: 13px;
  }

  .insta-stats li strong {
    font-size: 15px;
  }

  .insta-follow {
    margin-top: 20px;
    padding: 14px 30px;
    font-size: 14px;
    left: 0;
  }

  .instagram-posts {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .instagram-grid {
    padding: 25px 10px;
  }

  .insta-bio {
    font-size: 14px;
  }
}
.social-icons-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.social-icons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.icon {
  color: #3dae2b;
  font-size: 24px;
  transition: transform 0.2s, color 0.2s;
}

.icon:hover {
  transform: scale(1.2);
  color: #1e4620;
}

.icon:active {
  transform: scale(1.1) translateY(-3px);
  color: #ffffff;
}
.footer-list li a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-list li a:hover {
  color: #333; /* Цвет при наведении */
}

.social-icons {
  margin-top: 20px;
  text-align: center;
}

.social-icon {
  display: inline-block;
  margin-right: 10px;
  color: #fff;
  font-size: 1.5rem;
  transition: color 0.3s, transform 0.3s;
}

.social-icon:hover {
  color: #333; /* Акцентный цвет при наведении */
  transform: scale(1.2); /* Лёгкое увеличение */
}
.contact-link {
  color: #fff; /* Белый текст */
  text-decoration: none; /* Убираем подчеркивание */
  font-weight: bold;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.contact-link:hover {
  color: #333; /* Акцентный цвет при наведении */
  text-decoration: underline; /* Подчеркивание при наведении */
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 0.85rem;
  color: #e0e0e0;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-logo {
    margin-bottom: 20px;
  }

  .footer-column {
    margin-bottom: 20px;
  }
}
/* Styles */
.t823 {
  display: flex;
  height: 100vh;
  font-family: Arial, sans-serif;
}

.t823__imgwrapper {
  flex: 1;
  position: relative;
}

.t823__bgimg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.t823__form {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  background-color: #fff;
}

.t823__form h2 {
  font-size: 35px;
  font-family: "Jost", sans-serif;
  color: #4caf50;
  font-weight: 700;
  margin-bottom: 20px;
}

.t823__form p {
  font-family: "Jost", sans-serif;
  font-size: 16px;
  color: #333;
  line-height: 1.6;
}


.t823__form .t-input-block {
  margin-bottom: 30px;
}

.t-input {
  width: 100%;
  height: 60px;
  padding: 0 20px;
  border: none;
  border-bottom: 2px solid #b3b3b3;
  font-size: 16px;
  line-height: 1.33;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.3s, background-color 0.3s;
}

.t-input:focus {
  border-bottom-color: #4caf50; /* Цвет нижней линии при фокусе */
  background-color: #f9f9f9; /* Легкий фон при фокусе (можно удалить, если не нужно) */
}

.t-input::placeholder {
  color: #b3b3b3; /* Цвет текста для подсказки */
  font-size: 14px; /* Размер текста подсказки */
  opacity: 1; /* Делаем placeholder хорошо видимым */
}


.t-form__submit {
  padding: 15px 30px;
  font-size: 16px;
  color: #fff;
  background-color: #f1c40f;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.t-form__submit:hover {
  background-color: #d4ac0d;
}

/* ============================================
   ПЛАВАЮЧА КНОПКА TELEGRAM-БОТА
   ============================================ */
.floating-tg-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #0088cc, #00b4d8);
  color: #fff;
  padding: 14px 22px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  font-family: "Jost", sans-serif;
  box-shadow: 0 6px 24px rgba(0, 136, 204, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: floatingPulse 3s ease-in-out infinite;
}

.floating-tg-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 32px rgba(0, 136, 204, 0.55);
}

.floating-tg-btn i {
  font-size: 22px;
}

.floating-tg-text {
  white-space: nowrap;
}

@keyframes floatingPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(0, 136, 204, 0.4); }
  50% { box-shadow: 0 8px 32px rgba(0, 136, 204, 0.65); }
}

@media (max-width: 768px) {
  .floating-tg-btn {
    bottom: 20px;
    right: 20px;
    padding: 12px 16px;
    font-size: 13px;
  }
  .floating-tg-text {
    display: none;
  }
  .floating-tg-btn {
    padding: 14px;
    border-radius: 50%;
  }
  .floating-tg-btn i {
    font-size: 24px;
  }
}

/* ============================================
   CTA БЛОК БОТА ПІСЛЯ FAQ
   ============================================ */
.faq-bot-cta {
  text-align: center;
  margin-top: 30px;
  padding: 20px;
}

.faq-bot-cta p {
  font-size: 16px;
  color: #ccc;
  margin-bottom: 15px;
}

.tg-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0088cc, #00b4d8);
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  font-family: "Jost", sans-serif;
  transition: all 0.3s ease;
}

.tg-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}

.tg-cta-btn i {
  font-size: 20px;
}

/* ============================================
   ПОКРАЩЕННЯ АНІМАЦІЙ
   ============================================ */

/* Плавніші fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* GPU-прискорення для анімованих елементів */
.gallery__item,
.service-card,
.stat-item,
.review,
.hero-section {
  will-change: transform, opacity;
}

/* Покращення hover на картках послуг */
.service-card {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Navbar backdrop blur */
.navbar {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
}

/* ========================================
   NAVBAR v2 — clean redesign
   (перекриває попередні правила нижче за каскадом)
   ======================================== */

header.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: transparent;
  box-shadow: none;
  padding: 14px 24px;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease,
              backdrop-filter 0.3s ease, padding 0.3s ease,
              max-width 0.3s ease, margin-top 0.3s ease, border-radius 0.3s ease;
}

header.navbar > .container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

/* Scrolled state */
header.navbar.navbar--scrolled {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 4px 24px rgba(15, 30, 18, 0.08);
  padding: 10px 24px;
  border-radius: 0;
}

/* Логотип компактний */
header.navbar .logo {
  margin: 0;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
header.navbar .logo img {
  max-height: 52px;
  width: auto;
  transition: max-height 0.3s ease;
}
header.navbar.navbar--scrolled .logo img { max-height: 44px; }

/* Контейнер навігації */
@media (min-width: 769px) {
  header.navbar .nav {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    margin-left: auto;
    flex: 1;
    gap: 24px;
    transition: none;
    z-index: auto;
  }
}

/* Пункти меню */
header.navbar .nav-items {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 28px;
  align-items: center;
}

header.navbar .nav-item {
  position: relative;
}

header.navbar .nav-item > a {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 2px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: color 0.2s ease;
  position: relative;
  border-bottom: none;
}
header.navbar .nav-item > a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #48a04b;
  transition: width 0.25s ease;
}
header.navbar .nav-item > a:hover { color: #d8f0db; }
header.navbar .nav-item > a:hover::after,
header.navbar .nav-item.is-active > a::after { width: 100%; }

/* Стрілка */
header.navbar .nav-item .arrow {
  display: inline-block;
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-left: 2px;
  position: relative;
  top: -2px;
  opacity: 0.85;
}
header.navbar .nav-item:hover .arrow { transform: rotate(-135deg); top: 1px; }

/* Стан scrolled — темний текст */
header.navbar.navbar--scrolled .nav-item > a {
  color: #1a2a1c;
  text-shadow: none;
}
header.navbar.navbar--scrolled .nav-item > a:hover { color: #48a04b; }

/* Dropdown */
header.navbar .dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15, 30, 18, 0.15);
  border: 1px solid #e8f0e9;
  min-width: 240px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  z-index: 999;
  display: block;
}
header.navbar .dropdown::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 14px;
}
header.navbar .nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
header.navbar .dropdown-card {
  padding: 0;
}
header.navbar .dropdown-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
header.navbar .dropdown-card a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: #1a2a1c;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
header.navbar .dropdown-card a:hover {
  background: #eef7ef;
  color: #48a04b;
}

/* Соцмережі — компактний блок круглих іконок */
header.navbar .social-icons-container {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 8px;
}
header.navbar .social-icons {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0;
  padding: 5px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50px;
  transition: background 0.3s ease, border-color 0.3s ease;
}
header.navbar .social-icons .icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
header.navbar .social-icons .icon:hover {
  background: #fff;
  color: #48a04b;
  transform: translateY(-1px);
}
header.navbar.navbar--scrolled .social-icons {
  background: #eef7ef;
  border-color: #e2ecdf;
}
header.navbar.navbar--scrolled .social-icons .icon { color: #48a04b; }
header.navbar.navbar--scrolled .social-icons .icon:hover {
  background: #48a04b;
  color: #fff;
}

/* Кнопка "Telegram-Бот" — компактна pill */
header.navbar .learn-more-btn-v {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: #48a04b;
  color: #fff !important;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 14px rgba(72, 160, 75, 0.35);
  white-space: nowrap;
}
header.navbar .learn-more-btn-v:hover {
  background: #3d8a40;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(72, 160, 75, 0.45);
}

/* На середніх екранах ховаємо соц-іконки, залишаємо лише кнопку */
@media (max-width: 1200px) and (min-width: 769px) {
  header.navbar .social-icons { display: none; }
  header.navbar .nav-items { gap: 22px; }
  header.navbar .nav-item > a { font-size: 14.5px; }
}

/* Бургер-меню */
header.navbar .menu-toggle {
  width: 30px;
  height: 22px;
  position: relative;
  cursor: pointer;
  z-index: 1100;
  display: none;
  flex-shrink: 0;
}
header.navbar .menu-toggle span {
  display: block;
  position: absolute;
  width: 100%;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, top 0.3s ease;
  left: 0;
}
header.navbar .menu-toggle span:nth-child(1) { top: 0; }
header.navbar .menu-toggle span:nth-child(2) { top: 9.5px; }
header.navbar .menu-toggle span:nth-child(3) { top: 19px; }
header.navbar.navbar--scrolled .menu-toggle span { background: #1a2a1c; }
header.navbar .menu-toggle.active span:nth-child(1) { top: 9.5px; transform: rotate(45deg); }
header.navbar .menu-toggle.active span:nth-child(2) { opacity: 0; }
header.navbar .menu-toggle.active span:nth-child(3) { top: 9.5px; transform: rotate(-45deg); }

/* Мобільна навігація */
@media (max-width: 768px) {
  header.navbar { padding: 12px 18px; }
  header.navbar.navbar--scrolled { padding: 8px 18px; }
  header.navbar .logo img { max-height: 44px; }
  header.navbar .menu-toggle { display: block; }

  header.navbar .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(82%, 360px);
    height: 100vh;
    background: #fff;
    box-shadow: -10px 0 40px rgba(15, 30, 18, 0.12);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 88px 24px 24px;
    z-index: 1050;
    overflow-y: auto;
  }
  header.navbar .nav.active { transform: translateX(0); }
  header.navbar .nav-items {
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
  }
  header.navbar .nav-item > a {
    color: #1a2a1c;
    text-shadow: none;
    font-size: 16px;
    padding: 14px 12px;
    border-radius: 10px;
    justify-content: space-between;
    width: 100%;
  }
  header.navbar .nav-item > a:hover {
    background: #eef7ef;
    color: #48a04b;
  }
  header.navbar .nav-item > a::after { display: none; }

  header.navbar .dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 16px;
    min-width: auto;
    opacity: 1;
    visibility: visible;
    display: none;
  }
  header.navbar .dropdown::before { display: none; }
  header.navbar .nav-item.open .dropdown { display: block; }
  header.navbar .nav-item:hover .dropdown { transform: none; }
  header.navbar .dropdown-card a { padding: 10px 12px; }

  header.navbar .social-icons-container {
    flex-direction: column;
    margin: 18px 0 0;
    gap: 14px;
    align-items: stretch;
  }
  header.navbar .social-icons {
    justify-content: center;
    gap: 18px;
  }
  header.navbar .social-icons .icon { color: #1a2a1c; font-size: 20px; }
  header.navbar .learn-more-btn-v {
    justify-content: center;
    padding: 12px 18px;
    font-size: 15px;
  }

  /* Затемнення фону при відкритому меню */
  header.navbar .nav.active::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(15, 30, 18, 0.5);
    z-index: -1;
    transform: translateX(-100%);
  }
}

/* ========================================
   BLOG POST v2 — Medium-style редизайн
   Скоуп: .portfolio (тільки на блог-сторінках)
   ======================================== */

/* Загальна підкладка для блог-сторінок */
body.blog-post {
  background: #fff;
  color: #1a2a1c;
}

/* HERO блог-сторінки — велике фото зверху */
body.blog-post .wrapper > .content > .hero-section,
body.blog-post header.hero-section {
  display: block !important;
  position: relative !important;
  height: auto !important;
  min-height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #fff;
}

body.blog-post .hero-section .hero,
body.blog-post img.hero {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: clamp(360px, 55vh, 580px) !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 1 !important;
  transform: none !important;
}

/* Заголовок під фото, центрований */
body.blog-post .hero-section .container {
  max-width: 760px !important;
  margin: 0 auto !important;
  padding: 50px 24px 30px !important;
  display: block !important;
  text-align: center;
  position: static !important;
  height: auto !important;
}
body.blog-post .hero-section .main-header {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
  width: 100% !important;
  transform: none !important;
}
body.blog-post .gallery > * {
  flex: initial !important;
  display: contents !important;
  align-items: stretch !important;
  flex-direction: column !important;
  transform: none !important;
  will-change: auto !important;
}
body.blog-post .gallery__item {
  max-width: 100% !important;
  max-height: none !important;
}
body.blog-post .hero-section .main-title {
  position: static !important;
  font-size: clamp(2rem, 4vw, 3rem) !important;
  font-weight: 700 !important;
  color: #1a2a1c !important;
  line-height: 1.2 !important;
  width: auto !important;
  margin: 0 auto !important;
  bottom: auto !important;
  left: auto !important;
  text-align: center !important;
  letter-spacing: -0.01em;
  white-space: normal !important;
}

/* Контейнер статті — одна колонка max 720px */
body.blog-post .portfolio {
  background: #fff;
  padding: 20px 0 80px;
}
body.blog-post .portfolio > .container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Розбираємо gallery — display:contents щоб діти потекли вертикально */
body.blog-post .gallery {
  display: flex !important;
  flex-direction: column !important;
  gap: 28px !important;
  padding: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
}
body.blog-post .gallery__left,
body.blog-post .gallery__right {
  display: contents !important;
  margin: 0 !important;
}

/* Текст-блоки — чисто, читабельно, темно-зелений колір */
body.blog-post .text-block {
  margin: 0 !important;
  padding: 0 !important;
  color: #1a2a1c !important;
  max-width: 100% !important;
}
body.blog-post .text-block__h {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem) !important;
  line-height: 1.3 !important;
  color: #1a2a1c !important;
  font-weight: 700 !important;
  margin: 22px 0 14px !important;
  letter-spacing: -0.005em;
}
body.blog-post .text-block__p {
  font-size: 1.08rem !important;
  line-height: 1.75 !important;
  color: #2e4a32 !important;
  margin: 0 0 18px !important;
  font-family: "Jost", "Poppins", "Open Sans", sans-serif;
}
body.blog-post .text-block__p strong {
  color: #1a2a1c !important;
}
body.blog-post .text-block__p a {
  color: #48a04b;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
body.blog-post .text-block__p a:hover { color: #3d8a40; }

/* Зображення в статті — на всю ширину колонки */
body.blog-post img.gallery__item,
body.blog-post .gallery__item > img,
body.blog-post .gallery img:not(.hero) {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  margin: 16px 0 !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 28px rgba(31, 61, 35, 0.08);
}

/* Якщо img — це сам .gallery__item */
body.blog-post .gallery > * > img.gallery__item {
  margin: 16px 0 !important;
}

/* .text-block з класом gallery__item — прибрати margin-bottom з gallery__item */
body.blog-post .text-block.gallery__item {
  max-width: 100% !important;
  margin-bottom: 0 !important;
}

/* Бейджі прийому (з page49) */
body.blog-post .accept-badge,
body.blog-post .reject-badge,
body.blog-post .warn-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-left: 8px;
  vertical-align: middle;
  white-space: nowrap;
}
body.blog-post .accept-badge { background: #48a04b; color: #fff; }
body.blog-post .reject-badge { background: #d9534f; color: #fff; }
body.blog-post .warn-badge { background: #f0ad4e; color: #fff; }

/* Закриваючий блок (.new-content) — мʼятна картка */
body.blog-post .new-content {
  max-width: 760px !important;
  margin: 40px auto 0 !important;
  padding: 48px 38px !important;
  background: #eef7ef !important;
  border-radius: 20px !important;
  text-align: center !important;
  color: #1a2a1c !important;
  font-family: inherit !important;
  animation: none !important;
  opacity: 1 !important;
}
body.blog-post .new-content h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem) !important;
  font-weight: 700 !important;
  color: #1a2a1c !important;
  margin: 0 0 16px !important;
  text-align: center !important;
}
body.blog-post .new-content p {
  font-size: 1.05rem !important;
  line-height: 1.7 !important;
  color: #2e4a32 !important;
  text-align: center !important;
  margin: 0 !important;
}

/* CTA-блок (на page49) */
body.blog-post .cta-final {
  max-width: 760px !important;
  margin: 30px auto 0 !important;
  padding: 44px 36px !important;
}

/* Адаптив */
@media (max-width: 768px) {
  body.blog-post .hero-section .hero {
    height: clamp(220px, 40vh, 360px);
  }
  body.blog-post .hero-section .container {
    padding: 36px 20px 20px !important;
  }
  body.blog-post .portfolio > .container {
    padding: 0 20px;
  }
  body.blog-post .text-block__h {
    font-size: 1.35rem !important;
    margin-top: 18px !important;
  }
  body.blog-post .text-block__p {
    font-size: 1rem !important;
  }
  body.blog-post .new-content {
    padding: 32px 24px !important;
  }
}

/* Градієнт-overlay на hero блог-сторінки для читабельності навбару */
body.blog-post .wrapper > .content > .hero-section::before,
body.blog-post header.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
  z-index: 2;
  pointer-events: none;
}


/* === Fallback (html.html-blog-post — клас додається інлайн-скриптом до першого рендеру) === */
/* ========================================
   BLOG POST v2 — Medium-style редизайн
   Скоуп: .portfolio (тільки на блог-сторінках)
   ======================================== */

/* Загальна підкладка для блог-сторінок */
html.html-blog-post body {
  background: #fff;
  color: #1a2a1c;
}

/* HERO блог-сторінки — велике фото зверху */
html.html-blog-post body .wrapper > .content > .hero-section,
html.html-blog-post body header.hero-section {
  display: block !important;
  position: relative !important;
  height: auto !important;
  min-height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #fff;
}

html.html-blog-post body .hero-section .hero,
html.html-blog-post body img.hero {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: clamp(360px, 55vh, 580px) !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 1 !important;
  transform: none !important;
}

/* Заголовок під фото, центрований */
html.html-blog-post body .hero-section .container {
  max-width: 760px !important;
  margin: 0 auto !important;
  padding: 50px 24px 30px !important;
  display: block !important;
  text-align: center;
  position: static !important;
  height: auto !important;
}
html.html-blog-post body .hero-section .main-header {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
  width: 100% !important;
  transform: none !important;
}
html.html-blog-post body .gallery > * {
  flex: initial !important;
  display: contents !important;
  align-items: stretch !important;
  flex-direction: column !important;
  transform: none !important;
  will-change: auto !important;
}
html.html-blog-post body .gallery__item {
  max-width: 100% !important;
  max-height: none !important;
}
html.html-blog-post body .hero-section .main-title {
  position: static !important;
  font-size: clamp(2rem, 4vw, 3rem) !important;
  font-weight: 700 !important;
  color: #1a2a1c !important;
  line-height: 1.2 !important;
  width: auto !important;
  margin: 0 auto !important;
  bottom: auto !important;
  left: auto !important;
  text-align: center !important;
  letter-spacing: -0.01em;
  white-space: normal !important;
}

/* Контейнер статті — одна колонка max 720px */
html.html-blog-post body .portfolio {
  background: #fff;
  padding: 20px 0 80px;
}
html.html-blog-post body .portfolio > .container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Розбираємо gallery — display:contents щоб діти потекли вертикально */
html.html-blog-post body .gallery {
  display: flex !important;
  flex-direction: column !important;
  gap: 28px !important;
  padding: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
}
html.html-blog-post body .gallery__left,
html.html-blog-post body .gallery__right {
  display: contents !important;
  margin: 0 !important;
}

/* Текст-блоки — чисто, читабельно, темно-зелений колір */
html.html-blog-post body .text-block {
  margin: 0 !important;
  padding: 0 !important;
  color: #1a2a1c !important;
  max-width: 100% !important;
}
html.html-blog-post body .text-block__h {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem) !important;
  line-height: 1.3 !important;
  color: #1a2a1c !important;
  font-weight: 700 !important;
  margin: 22px 0 14px !important;
  letter-spacing: -0.005em;
}
html.html-blog-post body .text-block__p {
  font-size: 1.08rem !important;
  line-height: 1.75 !important;
  color: #2e4a32 !important;
  margin: 0 0 18px !important;
  font-family: "Jost", "Poppins", "Open Sans", sans-serif;
}
html.html-blog-post body .text-block__p strong {
  color: #1a2a1c !important;
}
html.html-blog-post body .text-block__p a {
  color: #48a04b;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
html.html-blog-post body .text-block__p a:hover { color: #3d8a40; }

/* Зображення в статті — на всю ширину колонки */
html.html-blog-post body img.gallery__item,
html.html-blog-post body .gallery__item > img,
html.html-blog-post body .gallery img:not(.hero) {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  margin: 16px 0 !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 28px rgba(31, 61, 35, 0.08);
}

/* Якщо img — це сам .gallery__item */
html.html-blog-post body .gallery > * > img.gallery__item {
  margin: 16px 0 !important;
}

/* .text-block з класом gallery__item — прибрати margin-bottom з gallery__item */
html.html-blog-post body .text-block.gallery__item {
  max-width: 100% !important;
  margin-bottom: 0 !important;
}

/* Бейджі прийому (з page49) */
html.html-blog-post body .accept-badge,
html.html-blog-post body .reject-badge,
html.html-blog-post body .warn-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-left: 8px;
  vertical-align: middle;
  white-space: nowrap;
}
html.html-blog-post body .accept-badge { background: #48a04b; color: #fff; }
html.html-blog-post body .reject-badge { background: #d9534f; color: #fff; }
html.html-blog-post body .warn-badge { background: #f0ad4e; color: #fff; }

/* Закриваючий блок (.new-content) — мʼятна картка */
html.html-blog-post body .new-content {
  max-width: 760px !important;
  margin: 40px auto 0 !important;
  padding: 48px 38px !important;
  background: #eef7ef !important;
  border-radius: 20px !important;
  text-align: center !important;
  color: #1a2a1c !important;
  font-family: inherit !important;
  animation: none !important;
  opacity: 1 !important;
}
html.html-blog-post body .new-content h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem) !important;
  font-weight: 700 !important;
  color: #1a2a1c !important;
  margin: 0 0 16px !important;
  text-align: center !important;
}
html.html-blog-post body .new-content p {
  font-size: 1.05rem !important;
  line-height: 1.7 !important;
  color: #2e4a32 !important;
  text-align: center !important;
  margin: 0 !important;
}

/* CTA-блок (на page49) */
html.html-blog-post body .cta-final {
  max-width: 760px !important;
  margin: 30px auto 0 !important;
  padding: 44px 36px !important;
}

/* Адаптив */
@media (max-width: 768px) {
  html.html-blog-post body .hero-section .hero {
    height: clamp(220px, 40vh, 360px);
  }
  html.html-blog-post body .hero-section .container {
    padding: 36px 20px 20px !important;
  }
  html.html-blog-post body .portfolio > .container {
    padding: 0 20px;
  }
  html.html-blog-post body .text-block__h {
    font-size: 1.35rem !important;
    margin-top: 18px !important;
  }
  html.html-blog-post body .text-block__p {
    font-size: 1rem !important;
  }
  html.html-blog-post body .new-content {
    padding: 32px 24px !important;
  }
}

/* Градієнт-overlay на hero блог-сторінки для читабельності навбару */
html.html-blog-post body .wrapper > .content > .hero-section::before,
html.html-blog-post body header.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
  z-index: 2;
  pointer-events: none;
}

/* === Розширення для history та інших content-сторінок === */

/* Відео в галереї */
body.blog-post video.gallery__item,
html.html-blog-post body video.gallery__item {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  margin: 16px 0 !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 28px rgba(31, 61, 35, 0.08) !important;
  background: #000;
}

/* .image-container — додаткова картка із зображеннями */
body.blog-post .image-container,
html.html-blog-post body .image-container {
  max-width: 760px !important;
  margin: 24px auto !important;
  padding: 0 24px;
  display: flex !important;
  justify-content: center !important;
  gap: 16px !important;
}
body.blog-post .image-container .rounded-image,
html.html-blog-post body .image-container .rounded-image {
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 28px rgba(31, 61, 35, 0.08) !important;
  transform: none !important;
}
body.blog-post .image-container .rounded-image:hover,
html.html-blog-post body .image-container .rounded-image:hover {
  transform: none !important;
}

/* learn-more-btn у блог-стилі */
body.blog-post .text-block .learn-more-btn,
html.html-blog-post body .text-block .learn-more-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 12px 24px !important;
  background: #48a04b !important;
  color: #fff !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  margin-top: 8px !important;
  font-size: 0.95rem !important;
  transition: background 0.25s ease, transform 0.2s ease !important;
}
body.blog-post .text-block .learn-more-btn:hover,
html.html-blog-post body .text-block .learn-more-btn:hover {
  background: #3d8a40 !important;
  transform: translateY(-1px) !important;
}

/* Якщо hero — це маленьке лого (не фото), показуємо як декор зверху на мʼятному тлі */
body.blog-post .hero-section:has(.hero[src*="logo"]),
html.html-blog-post body .hero-section:has(.hero[src*="logo"]) {
  background: #eef7ef !important;
  padding: 60px 20px !important;
  text-align: center !important;
}
body.blog-post .hero-section .hero[src*="logo"],
html.html-blog-post body .hero-section .hero[src*="logo"] {
  width: auto !important;
  max-width: 220px !important;
  height: auto !important;
  margin: 0 auto !important;
  object-fit: contain !important;
}

/* ========================================
   MATERIAL DETAIL PAGES (banka, karton, etc.)
   Apple-style: великий простір, мінімалізм, типографіка
   Скоуп: body.material-page
   ======================================== */

body.material-page {
  background: #fff;
  color: #1a1a1a;
  font-family: "Poppins", "Jost", -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  margin: 0;
}

/* === Темна навігація на білому hero === */
body.material-page header.navbar:not(.navbar--scrolled) .nav-item > a,
body.material-page header.navbar:not(.navbar--scrolled) .nav-item > a:hover {
  color: #1a1a1a !important;
  text-shadow: none !important;
}
body.material-page header.navbar:not(.navbar--scrolled) .arrow {
  border-color: #1a1a1a !important;
}
body.material-page header.navbar:not(.navbar--scrolled) .social-icons {
  background: #f5f5f7 !important;
  border-color: #e4e4e9 !important;
}
body.material-page header.navbar:not(.navbar--scrolled) .social-icons .icon {
  color: #48a04b !important;
}
body.material-page header.navbar:not(.navbar--scrolled) .menu-toggle span {
  background: #1a1a1a !important;
}

/* === HERO === */
body.material-page .m-hero {
  padding: 130px 24px 80px;
  text-align: center;
  background: #fff;
  overflow: hidden;
}

/* Контейнер кнопок під заголовком */
body.material-page .m-hero__actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0;
}
body.material-page .m-hero__cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  background: transparent;
  color: #1a1a1a;
  border: 1.5px solid #d2d2d7;
  border-radius: 980px;
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
}
body.material-page .m-hero__cta-ghost:hover {
  border-color: #1a1a1a;
  background: #f5f5f7;
}

body.material-page .m-hero__inner {
  max-width: 1000px;
  margin: 0 auto;
}
body.material-page .m-hero__category {
  color: #48a04b;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
body.material-page .m-hero__title {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0 0 18px;
  color: #1a1a1a;
}
body.material-page .m-hero__tagline {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 500;
  color: #6e6e73;
  line-height: 1.4;
  max-width: 720px;
  margin: 0 auto 28px;
  letter-spacing: -0.01em;
}
body.material-page .m-hero__price {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 1.05rem;
  color: #6e6e73;
  margin: 0 0 36px;
}
body.material-page .m-hero__price span {
  font-size: 1.6rem;
  font-weight: 700;
  color: #48a04b;
}
body.material-page .m-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 38px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 980px;
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease;
}
body.material-page .m-hero__cta:hover {
  background: #48a04b;
  transform: translateY(-1px);
}
body.material-page .m-hero__media {
  margin: 60px auto 0;
  max-width: 720px;
  aspect-ratio: 4 / 3;
  border-radius: 28px;
  overflow: hidden;
  background: #f5f5f7;
}
body.material-page .m-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
body.material-page .m-hero__media:hover img {
  transform: scale(1.03);
}

/* === Загальні секції === */
body.material-page .m-section {
  padding: 130px 24px;
  background: #fff;
}
body.material-page .m-section--dark {
  background: #1a1a1a;
  color: #f5f5f7;
}
body.material-page .m-section--grey {
  background: #f5f5f7;
}
body.material-page .m-section__inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
body.material-page .m-eyebrow {
  color: #48a04b;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
body.material-page .m-section--dark .m-eyebrow {
  color: #5cba49;
}
body.material-page .m-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  color: inherit;
}
body.material-page .m-lead {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.5;
  color: #6e6e73;
  max-width: 760px;
  margin: 0 auto;
  font-weight: 400;
  letter-spacing: -0.005em;
}
body.material-page .m-section--dark .m-lead {
  color: #a1a1a6;
}

/* === Process steps === */
body.material-page .m-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 80px;
  text-align: left;
}
body.material-page .m-step {
  background: #f5f5f7;
  border-radius: 22px;
  padding: 40px 36px;
  transition: transform 0.3s ease;
}
body.material-page .m-section--dark .m-step {
  background: rgba(255, 255, 255, 0.06);
}
body.material-page .m-step:hover { transform: translateY(-4px); }
body.material-page .m-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #48a04b;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 22px;
}
body.material-page .m-step h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: inherit;
  letter-spacing: -0.01em;
}
body.material-page .m-step p {
  font-size: 1rem;
  line-height: 1.55;
  color: #6e6e73;
  margin: 0;
}
body.material-page .m-section--dark .m-step p { color: #a1a1a6; }

/* === Calculator === */
body.material-page .m-calc__panel {
  margin: 60px auto 0;
  max-width: 560px;
  background: #fff;
  border-radius: 28px;
  padding: 44px 40px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.08), 0 4px 20px rgba(0, 0, 0, 0.04);
  text-align: left;
}
body.material-page .m-calc__row {
  margin-bottom: 22px;
}
body.material-page .m-calc__label {
  display: block;
  font-size: 0.9rem;
  color: #6e6e73;
  margin-bottom: 8px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
body.material-page .m-calc__select,
body.material-page .m-calc__input {
  width: 100%;
  padding: 14px 18px;
  background: #f5f5f7;
  border: 1.5px solid transparent;
  border-radius: 14px;
  font-size: 1.05rem;
  color: #1a1a1a;
  font-family: inherit;
  box-sizing: border-box;
  transition: background 0.2s ease, border-color 0.2s ease;
  appearance: none;
  -moz-appearance: textfield;
}
body.material-page .m-calc__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236e6e73' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 10px;
  padding-right: 44px;
}
body.material-page .m-calc__select:focus,
body.material-page .m-calc__input:focus {
  outline: none;
  border-color: #48a04b;
  background: #fff;
}
body.material-page .m-calc__input::placeholder { color: #b0b0b6; }
body.material-page .m-calc__input::-webkit-outer-spin-button,
body.material-page .m-calc__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
body.material-page .m-calc__result {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 22px 22px;
  background: #f5f5f7;
  border-radius: 18px;
  margin: 8px 0 22px;
}
body.material-page .m-calc__result-label {
  font-size: 0.95rem;
  color: #6e6e73;
  font-weight: 500;
}
body.material-page .m-calc__result-value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #b0b0b6;
  transition: color 0.3s ease;
}
body.material-page .m-calc__btn {
  display: block;
  width: 100%;
  padding: 16px 24px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 980px;
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
  font-family: inherit;
}
body.material-page .m-calc__btn:hover {
  background: #48a04b;
  transform: translateY(-1px);
}

/* === Final CTA === */
body.material-page .m-cta {
  padding: 130px 24px;
  background: #fff;
  text-align: center;
}
body.material-page .m-cta__inner { max-width: 720px; margin: 0 auto; }
body.material-page .m-cta__title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 18px;
  color: #1a1a1a;
}
body.material-page .m-cta__sub {
  font-size: 1.2rem;
  color: #6e6e73;
  line-height: 1.5;
  margin: 0 0 36px;
  font-weight: 400;
}
body.material-page .m-cta__btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
body.material-page .m-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 980px;
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
}
body.material-page .m-cta__btn--primary {
  background: #1a1a1a;
  color: #fff;
}
body.material-page .m-cta__btn--primary:hover {
  background: #48a04b;
  transform: translateY(-1px);
}
body.material-page .m-cta__btn--ghost {
  background: transparent;
  color: #1a1a1a;
  border: 1.5px solid #d2d2d7;
}
body.material-page .m-cta__btn--ghost:hover {
  border-color: #1a1a1a;
  background: #f5f5f7;
}

/* Адаптив */
@media (max-width: 900px) {
  body.material-page .m-hero { padding: 90px 20px 60px; }
  body.material-page .m-section, body.material-page .m-cta { padding: 80px 20px; }
  body.material-page .m-steps { grid-template-columns: 1fr; gap: 16px; margin-top: 50px; }
  body.material-page .m-step { padding: 28px 26px; }
  body.material-page .m-hero__media { margin-top: 40px; border-radius: 20px; }
  body.material-page .m-calc__panel { padding: 32px 24px; border-radius: 22px; }
  body.material-page .m-calc__result { padding: 18px; }
  body.material-page .m-calc__result-value { font-size: 1.6rem; }
}

/* === Contact cards для material-page === */
body.material-page .m-contacts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 60px;
  text-align: left;
}
body.material-page .m-contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 28px;
  background: #f5f5f7;
  border-radius: 22px;
  text-decoration: none;
  color: #1a1a1a;
  transition: transform 0.3s ease, background 0.3s ease;
}
body.material-page .m-contact-card:hover {
  transform: translateY(-3px);
  background: #eef7ef;
}
body.material-page .m-contact-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  color: #48a04b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
body.material-page .m-contact-card__label {
  font-size: 0.85rem;
  color: #6e6e73;
  margin: 0 0 4px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
body.material-page .m-contact-card__value {
  font-size: 1.15rem;
  color: #1a1a1a;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* === Maps card === */
body.material-page .m-maps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 60px;
}
body.material-page .m-map-card {
  background: #f5f5f7;
  border-radius: 28px;
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
body.material-page .m-map-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
body.material-page .m-map-card__media {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: #e4e4e9;
  position: relative;
}
body.material-page .m-map-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.4) 100%);
}
body.material-page .m-map-card__body {
  padding: 26px 28px 30px;
}
body.material-page .m-map-card__city {
  font-size: 0.85rem;
  color: #48a04b;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
body.material-page .m-map-card__addr {
  font-size: 1.25rem;
  color: #1a1a1a;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
body.material-page .m-map-card__hours {
  font-size: 0.95rem;
  color: #6e6e73;
  margin: 0 0 18px;
  line-height: 1.5;
}
body.material-page .m-map-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #48a04b;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
  transition: gap 0.2s ease, border-color 0.2s ease;
}
body.material-page .m-map-card__link:hover {
  gap: 14px;
  border-color: #48a04b;
}

/* === Bento grid (для tg-bot.html та instagram.html) === */
body.material-page .m-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
  text-align: left;
}
body.material-page .m-bento__card {
  background: #f5f5f7;
  border-radius: 22px;
  padding: 36px 30px;
  transition: transform 0.3s ease;
}
body.material-page .m-bento__card:hover { transform: translateY(-4px); }
body.material-page .m-bento__card.wide { grid-column: span 2; }
body.material-page .m-bento__card.dark { background: #1a1a1a; color: #fff; }
body.material-page .m-bento__card.green { background: #48a04b; color: #fff; }
body.material-page .m-bento__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff;
  color: #48a04b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 22px;
}
body.material-page .m-bento__card.dark .m-bento__icon,
body.material-page .m-bento__card.green .m-bento__icon {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
body.material-page .m-bento__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
body.material-page .m-bento__text {
  font-size: 1rem;
  color: #6e6e73;
  line-height: 1.55;
  margin: 0;
}
body.material-page .m-bento__card.dark .m-bento__text,
body.material-page .m-bento__card.green .m-bento__text { color: rgba(255,255,255,0.85); }

/* === Form === */
body.material-page .m-form-section {
  background: #f5f5f7;
  padding: 130px 24px;
}
body.material-page .m-form-section__inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
body.material-page .m-form {
  margin-top: 50px;
  background: #fff;
  padding: 48px 44px;
  border-radius: 28px;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
body.material-page .m-form .t-input-block { margin: 0; }
body.material-page .m-form .t-input-block.full { grid-column: span 2; }
body.material-page .m-form .t-input {
  width: 100%;
  padding: 14px 18px;
  background: #f5f5f7;
  border: 1.5px solid transparent;
  border-radius: 14px;
  font-size: 1.05rem;
  color: #1a1a1a;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease;
}
body.material-page .m-form .t-input:focus {
  outline: none;
  border-color: #48a04b;
  background: #fff;
}
body.material-page .m-form-submit {
  grid-column: span 2;
  width: 100%;
  padding: 16px 28px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 980px;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.25s ease, transform 0.2s ease;
}
body.material-page .m-form-submit:hover {
  background: #48a04b;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  body.material-page .m-contacts,
  body.material-page .m-maps { grid-template-columns: 1fr; }
  body.material-page .m-bento { grid-template-columns: 1fr; }
  body.material-page .m-bento__card.wide { grid-column: span 1; }
  body.material-page .m-form { grid-template-columns: 1fr; padding: 32px 24px; }
  body.material-page .m-form .t-input-block.full { grid-column: span 1; }
  body.material-page .m-form-submit { grid-column: span 1; }
}

/* ========================================
   FAQ accordion (.nope-*) — глобально
   ======================================== */
.nope-faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.nope-item { background: #fff; border: 1px solid #e8f0e9; border-radius: 14px; overflow: hidden; transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.nope-item.active { background: #fff; border-color: #d9534f; box-shadow: 0 8px 24px rgba(217, 83, 79, 0.1); }
.nope-q {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 26px;
  font-size: 1.05rem;
  color: #1a2a1c;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
  font-family: inherit;
}
.nope-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eef7ef;
  flex-shrink: 0;
  position: relative;
  transition: background 0.25s ease, transform 0.25s ease;
}
.nope-icon::before, .nope-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 10px;
  height: 2px;
  background: #48a04b;
  transform: translate(-50%, -50%);
}
.nope-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: opacity 0.25s ease; }
.nope-item.active .nope-icon { background: #48a04b; }
.nope-item.active .nope-icon::before, .nope-item.active .nope-icon::after { background: #fff; }
.nope-item.active .nope-icon::after { opacity: 0; }
.nope-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; }
.nope-item.active .nope-a { max-height: 600px; padding: 0 26px 22px; }
.nope-a ul { margin: 8px 0 0; padding-left: 20px; color: #5b7560; line-height: 1.7; }
.nope-a li { margin-bottom: 4px; }
.nope-a p { color: #5b7560; line-height: 1.7; margin: 0; font-size: 0.98rem; }

/* На сірому фоні (material-page--grey) — мʼятний акцент замість червоного */
body.material-page .m-section--grey .nope-item { background: #fff; }
body.material-page .m-section--grey .nope-item.active {
  border-color: #48a04b;
  box-shadow: 0 8px 24px rgba(72, 160, 75, 0.12);
}
