:root {
  --primary-color: #FF9D48;
  --primary-dark: #E68A3D;
  --secondary-color: #71503A;
  --text-color: #333333;
  --text-light: #777777;
  --light-bg: #F9F9FB;
  --white: #FFFFFF;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  background-color: var(--light-bg);
  line-height: 1.6;
  max-width: 100vw;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: var(--shadow);
  z-index: 1000;
  padding: 5px 0;
  transition: var(--transition);
}



.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo__img {
  height: 50px;
  transition: var(--transition);
}

.logo:hover .logo__img {
  transform: scale(1.05);
}

.nav {
  display: flex;
  gap: 30px;
}

.nav__link {
  font-weight: 500;
  color: var(--text-color);
  transition: var(--transition);
  position: relative;
  padding: 5px 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--primary-color);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

/* Social Media Icons */

.social {
  display: flex;
  align-items: center;
  gap: 20px;
}

.social__link {
  display: flex;
  align-items: center;
  position: relative;
  transition: all 0.3s ease;
}

.social__icon {
  width: 32px;
  height: 32px;
  transition: all 0.3s ease;
  opacity: 0.8;
}

.social__link:hover .social__icon {
  opacity: 1;
  transform: translateY(-2px);
}

/* Специальные стили для телефонной ссылки */
.social__link .phone-number {
  position: absolute;
  right: 100%; /* Позиционируем слева от иконки */
  white-space: nowrap;
  opacity: 0;
  transform: translateX(20px); /* Начальное положение (спрятано) */
  transition: all 0.4s cubic-bezier(0.33, 1, 0.68, 1);
  font-size: 14px;
  font-weight: 500;
  margin-right: 12px; /* Отступ от иконки */
  pointer-events: none;
  margin-top: 5px;
}

.social__link:hover .phone-number {
  opacity: 1;
  transform: translateX(0); /* Плавное появление */
}

/* Анимация для других иконок */
.social__link:not(:first-child):hover .social__icon {
  transform: scale(1.1) rotate(5deg);
}

/* Для мобильных устройств */
@media (max-width: 768px) {
  .phone-number {
    display: none;
  }
}

/* Burger Menu */

.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  z-index: 1001;
  cursor: pointer;
}

.burger__line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  transition: var(--transition);
}

.burger.active .burger__line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.burger.active .burger__line:nth-child(2) {
  opacity: 0;
}

.burger.active .burger__line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background-color: var(--white);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
  padding: 40px 20px;
  z-index: 999;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 40px;
}

.mobile-nav__link {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-color);
  transition: var(--transition);
  transform: translateX(20px);
  opacity: 0;
}

.mobile-menu.active .mobile-nav__link {
  transform: translateX(0);
  opacity: 1;
}

.mobile-menu.active .mobile-nav__link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-nav__link:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-nav__link:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-nav__link:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu.active .mobile-nav__link:nth-child(5) { transition-delay: 0.5s; }

.mobile-nav__link:hover,
.mobile-nav__link.active {
  color: var(--primary-color);
}

.mobile-social {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.mobile-social__icon {
  width: 28px;
  height: 28px;
  transition: var(--transition);
  opacity: 0.8;
}

.mobile-social__link:hover .mobile-social__icon {
  opacity: 1;
  transform: scale(1.1);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 150px 0 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
  overflow: hidden;
}

.hero__bg {
  position: fixed;
  inset: 0;
  z-index: -2;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.hero__leaves {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.hero__leaf {
  position: absolute;
  opacity: 0.2;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  animation: float 8s infinite ease-in-out;
}

.hero__leaf--1 {
  top: 10%;
  left: 5%;
  width: 9%;
  --start-rotate: -15deg;
  animation: float 8s infinite ease-in-out;
}

.hero__leaf--2 {
  top: 40%;
  left: 15%;
  width: 8%;
  --start-rotate: 10deg;
  animation: float 9s infinite ease-in-out 1s;
}

.hero__leaf--3 {
  top: 70%;
  left: 6%;
  width: 10%;
  --start-rotate: -5deg;
  animation: float 7s infinite ease-in-out 2s;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.hero__text {
  flex: 1;
  min-width: 280px;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero__title span {
  color: var(--primary-color);
}

.hero__subtitle {
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 30px;
}

.hero__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 600px;
}

.hero__card {
  display: flex;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 15px 20px;
  min-width: 180px;
  height: 60px;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-color);
  transition: var(--transition);
}

.hero__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.hero__form {
  flex: 1;
  min-width: 280px;
  max-width: 460px;
}

.form {
  background-color: rgba(113, 80, 58, 0.3);
  backdrop-filter: blur(2px);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form__title {
  color: var(--primary-color);
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.form__subtitle {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1rem;
}

.form__inner {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form__select,
.form__input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  transition: var(--transition);
}

.form__select:focus,
.form__input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(255, 157, 72, 0.3);
  transform: translateY(-2px);
}

.form__row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.form__button {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.form__button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 7px 14px rgba(255, 157, 72, 0.3);
}

.form__button:after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform .5s, opacity 1s;
}

.form__button:active:after {
  transform: scale(0, 0);
  opacity: .3;
  transition: 0s;
}

/* --- Services Section --- */

.services {
  position: relative;
  padding: 100px 0;
  background-color: var(--white);
  z-index: 1;
  padding-bottom: 150px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 15px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
}

.service-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.service-card__icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  transition: var(--transition);
  color: var(--primary-color);
}

.service-card:hover .service-card__icon {
  transform: scale(1.1);
}

.service-card__title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-color);
}

.service-card__text {
  color: var(--text-light);
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-card__button {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 6px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card__button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 7px 14px rgba(255, 157, 72, 0.3);
}

.service-card__button:after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform .5s, opacity 1s;
}

.service-card__button:active:after {
  transform: scale(0, 0);
  opacity: .3;
  transition: 0s;
}

/* --- Contact Us Section --- */

.contact-us {
  position: relative;
  padding: 80px 20px 40px;
  background-color: #fbf3ec;
  overflow: visible;
  z-index: 2;
  box-shadow: 
    0 -4px 12px rgba(0, 0, 0, 0.08), /* Тень сверху */
    0 4px 12px rgba(0, 0, 0, 0.08);   /* Тень снизу */
}

.contact-us .container {
  max-width: 1200px; /* Было 1400px, что могло вызывать скролл */
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.telephon__svg {
  position: absolute;
  width: 400px;
  max-width: 100%; /* Добавьте это */
  height: auto;
  left: 0;
  top: 50%;
  transform: translateY(-50%) translateX(-20%);
  z-index: 2;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-us.visible .telephon__svg {
  transform: translateY(-50%) translateX(0%);
  opacity: 1;
}

.contact-us__content {
  position: relative; /* Поднимаем над изображением */
  z-index: 10;
  padding-left: 420px; /* Отступ для изображения */
}

.contact-us__title {
  font-size: 36px;
  margin-bottom: 10px;
  line-height: 1.2;
}

.contact-us__text {
  font-size: 18px;
  margin-bottom: 20px;
}

.contact-us__info {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.contact-us__button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background-color: #ffffff;
  color: var(--text-color);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-us__phone-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background-color: var(--primary-color);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-us__button:hover {
  background-color: #f5f5f5;
  transform: translateY(-2px);
}

.contact-us__phone-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.contact-us__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.4;
}

/* --- Footer ---*/

.footer {
  background-color: #2a2a2a;
  color: #ffffff;
  padding: 60px 0 0;
  position: relative;
  z-index: 1;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.footer__col.animate {
  opacity: 1;
  transform: translateY(0);
}

.footer__logo img {
  height: 50px;
  margin-bottom: 20px;
}

.footer__about {
  color: #b0b0b0;
  margin-bottom: 20px;
  line-height: 1.6;
}

.footer__social {
  display: flex;
  gap: 15px;
}

.footer__social img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
  opacity: 0.8;
}

.footer__social a:hover img {
  opacity: 1;
  transform: translateY(-3px);
}

.footer__title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 10px;
}

.footer__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 12px;
}

.footer__links a {
  color: #b0b0b0;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.footer__links a:hover {
  color: var(--primary-color);
}

.footer__contacts {
  list-style: none;
}

.footer__contacts li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: #b0b0b0;
  font-size: 0.95rem;
}

.footer__contacts img {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  opacity: 0.7;
}

.footer__contacts a {
  color: #b0b0b0;
  transition: color 0.3s ease;
}

.footer__contacts a:hover {
  color: var(--primary-color);
}

.footer__bottom {
  border-top: 1px solid #3a3a3a;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  color: #777;
  font-size: 0.9rem;
}

.footer__legal {
  display: flex;
  gap: 20px;
}

.footer__legal a {
  color: #777;
  transition: color 0.3s ease;
}

.footer__legal a:hover {
  color: var(--primary-color);
}

/* Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(var(--start-rotate));
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  }
  50% {
    transform: translateY(-30px) rotate(calc(var(--start-rotate) + 5deg));
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}


/* Responsive Styles */
@media (max-width: 1200px) {
  .contact-us__content {
    padding-left: 350px;
  }
  
  .telephon__svg {
    width: 350px;
    left: -30px;
  }
}

@media (max-width: 992px) {
  .nav {
    gap: 20px;
  }

  .hero__form {
    min-width: 400px;
    justify-content: center;
    align-self: center;
  }

  .telephon__svg {
    left: 20%;
    top: -35%;
    transform: translateX(-50%) translateY(0);
  }
  
  .contact-us.visible .telephon__svg {
    transform: translateX(-50%) translateY(0);
  }
}

@media (max-width: 768px) {
  .nav,
  .social {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero {
    padding: 120px 0 40px;
  }

  .hero__bg-img {
    filter: blur(5px);
    transform: scale(1.05);
  }

  .hero__text {
    text-align: left;
  }

  .hero__form {
    min-width: 80px;
  }

  .hero__cards {
    justify-content: center;
  }

  .section-title {
    font-size: 2rem;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .footer__bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .telephon__svg {
    left: 20%;
    top: -20%;
    transform: translateX(-50%) translateY(0);
  }
}

@media (max-width: 576px) {

  .hero__title {
    font-size: 1.8rem;
  }

  .hero__subtitle {
    font-size: 0.95rem;
  }

  .hero__card {
    font-size: 0.8rem;
    padding: 8px 12px;
    min-width: 140px;
    height: 50px;
  }

  .form {
    padding: 25px 20px;
  }

  .form__button {
    font-size: 1rem;
    padding: 12px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .telephon__svg {
    display: none;
  }

  .contact-us__content {
    padding-left: 0;
    text-align: left;
  }

  .contact-us__title {
    font-size: 28px;
    margin-top: -40px;
  }
  
  .contact-us__text {
    font-size: 16px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px) {
  .hero__cards {
    flex-direction: column;
    align-items: center;
  }
  
  .hero__card {
    width: 100%;
  }
  
  .contact-us__info {
    flex-direction: column;
  }
  
  .contact-us__button,
  .contact-us__phone-button {
    width: 100%;
    justify-content: center;
  }

  .telephon__svg {
    display: none;
  }
}



.invisible-block {
  position: relative;
  width: 100%;
  background-color: rgb(255, 255, 255);
  z-index: 1;
  height: 150px;
}