:root {
  --primary-color: #f28c1a;
  --primary-dark: #ed731e;
  --primary-light: #f59f17; 
  /* --primary-color: red;
  --primary-dark: green;
  --primary-light: blue; */
  --text-color: #333333;
  --text-light: #666666;
  --text-lighter: #999999;
  --bg-light: #F9F9F9;
  --bg-dark: #222222;
  --white: #FFFFFF;
  --black: #000000;
  --border-radius: 8px;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}


@font-face {
  font-family: 'TitleFont1';
  src: url('../fonts/Cinzel-Bold.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'TitleFont2';
  src: url('../fonts/CaviarDreams.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'MainFont';
  src: url('../fonts/GOTHIC.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'MainFont';
  src: url('../fonts/GOTHICB.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'MainFont';
  src: url('../fonts/GOTHICBI.ttf') format('truetype');
  font-weight: bold;
  font-style: italic;
}


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


body {
  font-family: 'MainFont', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-light);
  overflow-x: hidden;
}


.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}


/* SECTION */
section {
  padding: 35px 0 50px;
}

.section__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 50px;
  text-align: center;
  position: relative;
  color: var(--text-color);
}

.section__title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--primary-dark);
  margin: 15px auto 0;
}


/* BUTTONS */
.btn {
  display: inline-block;
  padding: 10px 30px;
  border-radius:30px;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: none; 
}

.btn--block {
  display: block;
  width: 100%;
}

.btn--primary {
  background: linear-gradient(to right,#ed731e, #f49a18);
  color:  var(--white);
  font-size: 1rem;
  background-clip: border-box;
  
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
  filter: brightness(1.1);
  background-color: var(--primary-dark);
}


button.btn {
  all: unset; 
  display: inline-block;
  padding: 10px 30px;
  box-sizing: border-box;
  border-radius: 30px;
  font-weight: 500;
  font-size: 1rem;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: linear-gradient(to right,#ed731e, #f49a18);
  color: var(--white);
  background-clip: border-box;
  border: none;
}

button.btn.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
  filter: brightness(1.1);
  background-color: var(--primary-dark);
}

button.btn.btn--block {
  display: block;   
  width: 100%;
  margin: 0;
}
 

.btn--outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 8px 30px;
}

.btn--outline:hover {
  background: linear-gradient(to right, #ed731e, #f49a18);
  /* background-color: var(--primary-color); */
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
  filter: brightness(1.1);
  
}
.hero__content .btn {
  position: relative;
  z-index: 3;
}


/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding:8px 0 ;
}

.nav {
  display: flex;
}

.nav__link {
  margin: 0 15px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav__link {
  justify-content: center;
}

.nav__link:hover {
  color: var(--primary-color);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav__link:hover::after {
  width: 100%;
}

.icon__header__mobile{
  display: none;
}

.header__phone {
  display: flex;
  align-items: center;
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
}

.header__phone i {
  margin-right: 8px;
  color: var(--primary-color);
}

.header__phone:hover {
  color: var(--primary-color);
}

/* HEAD IMG */
.logo img {
  height: 52px;
  width: auto;
}
.header .logo img {
  transform: translateY(3px);
}

/* Логотип скрыт, когда header прозрачный */
.header.on-top .logo {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Логотип видим, когда header НЕ прозрачный */
.header .logo {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}


/* FOOTER IMG */
.footer .logo img {
  height: 110px;
  width: auto;
}
.footer .logo {
  background-color: rgba(255, 255, 255);
  padding: 10px 42px 4px 6px;  
  display: inline-block; 
  border-radius: var(--border-radius);
}


/* HERO */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: url('../assets/bg_main.jpeg') no-repeat center center;
  background-size: cover;
  color: var(--white);
  overflow: hidden;
}

.hero__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 80px;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero__title {
  font-family: 'TitleFont1', sans-serif;
  font-size: 8rem;
  font-weight: 700;
  margin-bottom: -10px;
  text-transform: uppercase;
  animation: fadeInDown 1s ease;
}

.hero__title span {
  color: var(--primary-color);
}

.hero__subtitle {
  font-family: 'TitleFont2', sans-serif;
  font-size: 2rem;
  margin-bottom: 100px;
  animation: fadeInUp 1s ease;
}


/* LOGO MAIN */
.logo-assembly {
  position: relative;
  width: 780px;
  height: 438px;
  overflow: visible; 
  margin: 0 auto;
} 

.logo-background-bar {
  position: absolute;
  top: 0%;
  left: -15%; 
  width: 120%;
  height: 105%; 
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255,0.8) 30%,
    rgba(255, 255, 255, 0.8) 68%,
    transparent 100%
  );
  filter: blur(35px);
  pointer-events: none;
  z-index: 0; /* позади логотипа */
}

.logo-part {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;

}

/* Общие настройки анимации */
.logo-part {
  opacity: 0;
  transform: translate(0, 0);
  animation-fill-mode: forwards;
}

.Logo_Line {
  animation: slideInBottom 1s ease-out 1.2s forwards;
} 

.Logo_Tree {
  animation: slideInTop 1s ease-out 1.2s forwards;
  z-index: 6;
  transform-origin: 21% 70%;
}

.Logo_Title {
  animation: slideInRight 1.1s ease-in-out 2s forwards;
   z-index: 5;
}

.Logo_ForText {
  animation: slideInRightForText 1.1s ease-in-out 2s forwards;
   z-index: 7;
}

.Logo_TreeList {
  /* transform-origin: 51% 40%; */
  transform-origin: 55% 45%; 
  animation: leafFall 1.5s linear forwards,
  leafSettle 1s ease-in-out forwards; 
  animation-delay: 2.5s,4s ; 
}

.Logo_Subtitle {
  animation: slideInLeft 1.1s ease-in-out 2s forwards;
}

@keyframes leafFall {
  0% {
    opacity: 0;
    transform: translate(-180px, -145px) rotate(5deg) scale(0.7);
  }
  31% {
    opacity: 0.9;
    transform: translate(-30px, -100px) rotate(390deg) scale(0.8);
  }
  81% {
    opacity: 1;
    transform: translate(5px, -35px) rotate(760deg) scale(1.1);     
  } 
  100% {
    opacity: 1;
    transform: translate(0px, 0px) rotate(720deg) scale(1);     
  } 
}

@keyframes leafSettle {
  0% {
    transform: translate(0, 0px) rotate(0deg);
  }
  12% {
    transform: translate(0, 0px) rotate(-7deg);
  }
  30% {
    transform: translate(0, 0px) rotate(6deg);
  }
  47% {
    transform: translate(0, 0px) rotate(-5deg);
  }
   63% {
    transform: translate(0, 0px) rotate(3deg);
  }
  80% {
    transform: translate(0, 0px) rotate(-1deg);
  }
  100% {
    transform: translate(0, 0px) rotate(0deg);
  }
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-200px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(200px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRightForText {
  0% {
    opacity: 0;
     transform: translateX(200px);
  }
  69% {
    opacity: 0;
  }
  86% {
    opacity: 0;
  }
  87% {
    opacity: 1;
  }
  100% {
    opacity: 1;
     transform: translateX(0); 
  }
}

@keyframes slideInTop {
  0% {
    opacity: 0;
    transform: translateY(-100px)rotate(-5deg);
  } 
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInBottom {
  0% {
    opacity: 0;
    transform: translateY(100px);
  }
  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}


/* .hero {
  border: 2px solid red;
}
.hero__content {
  border: 2px solid blue;
}
.logo-assembly {
  border: 2px solid green;
} */
 /* .logo-part{
  border: 2px solid yellow;
} */




/* ABOUT */
.about {
  background-color: var(--white);
}

.about__content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about__text {
  flex: 1;
}

.about__text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.about__image {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  aspect-ratio: 4 / 3;
}

.image-frame {
  position: absolute;
  inset: 0; 
  border: 3px solid var(--primary-light);
  background: url('../assets/bg_small.png') no-repeat center center;
  background-size: cover;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  transform: rotate(-5deg);
}

.about__image:hover .image-frame {
  transform: rotate(0);
}

.about-link {
    display: inline-block;
    margin-top: 15px;
    font-weight: 150;
    font-size: 0.8rem;
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}
.about-link:hover {
    border-bottom: 1px solid var(--primary-color);
    color: var(--primary-dark);
}

.about__note {
  color: var(--text-lighter);
  font-weight: 500;
  margin: 25px 0;
 
}
.about__note, 
.about__note strong, 
.about__note em {
  font-size: 0.75rem !important;
}

/* SERVICES */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 12px 0px;
}

@media (max-width: 1200px) {
  .services__grid {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services__grid {
      grid-template-columns: 1fr;
  }
}

.service-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 30px;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.service-card__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background-color: rgba(255, 125, 51, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 2rem;
  transition: var(--transition);
}

.service-card:hover .service-card__icon {
  background-color: var(--primary-color);
  color: var(--white);
}

.service-card__title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--text-color);
  text-align: center;
}

.service-card__desc {
  color: var(--text-light);
  font-size: 1rem;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255,125,51,0.15);
}


.service-card__list {
    list-style: none;
    padding-left: 0;
}

.service-card__list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #666;
    line-height: 1.6;
}

.service-card__list li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 10px;
    font-size: 1.5rem;
    line-height: 1;
}
.price-list {
  text-align: center;
  margin-top: 50px;
}


/* FOOTER */
.footer {
  background-color: var(--bg-dark);
  color: var(--white);
  padding: 60px 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer__col {
  margin-bottom: 30px;
}

.footer__title {
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
  font-weight: normal;

}

.footer__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-dark);
}

.footer__text {
  margin: 20px 0;
  color: var(--text-lighter);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  
}

.contact-item i {
  color: var(--primary-color);
  margin-right: 10px;
  margin-top: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hours-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer__bottom {
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-lighter);
  font-size: 0.9rem;
}


/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.scroll-top.active {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

/* PRELOADER */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white; 
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease;
}

.preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.logo-spinner {
  transform-origin: 54% 50%;
  width: 100px; 
  height: 100px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.loader {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 125, 51, 0.2);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s linear infinite;
}

/* Animations */
@keyframes fadeInDown {
  from {
      opacity: 0;
      transform: translateY(-50px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(50px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(  --text-color);
  color: var(--white);
  padding: 20px 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  z-index: 10000;
  font-size: 1rem;
  max-width: 90vw;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  animation: fadeIn 0.4s ease forwards;
  white-space: pre-line; 
}

/* Responsive */

@media (max-width: 1200px) {
  .logo-assembly {
    width: 613px;
    height: 350px;
    
  }

  .logo-part {
    object-fit: contain;
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 1100px) {
  .footer .logo img {
    height: 100px; 
  }

  .footer .logo {
    padding: 5px 28px 0px 5px; 
       
  }
}


@media (max-width: 992px) {
  .logo-assembly {
    width: 516px;
    height: 290px;
    
  }
  .logo-part {
    object-fit: contain;
    width: 100%;
    height: 100%;
  }
  .about__content {
      flex-direction: column;
  }
  .about__image {
    min-height: auto;
    height: auto;
    aspect-ratio: 4 / 3; 
  }
  .image-frame {
    border-width: 4px; 
    transform: rotate(0deg);
  }

 .footer .logo img {
    height: 75px; 
  }

  .footer .logo {
    padding: 6px 24px 0px 3px; 
      
  }
  button.btn,
  .btn {
    font-size: 0.92rem;
   padding: 9px 25px;
  }
  .btn--outline {
    padding: 7px 25px;
  }

}


@media (max-width: 768px) {
  .header__inner {
      flex-direction: column;
      padding: 15px 0;
  }

  .header .logo {
  display: none !important;
}

  .hero__content {
    gap: 40px; /* уменьшили расстояние между логотипом и кнопкой */
}

  .logo-assembly {
    width: 443px;
    height: 250px;
    
  }
  .logo-part {
    object-fit: contain;
    width: 100%;
    height: 100%;
  }

  button.btn,
  .btn {
   padding: 8px 20px;
    font-size: 0.85rem;
  }
  .btn--outline {
    padding: 6px 20px;
  }
  
  .hero__title {
      font-size: 6rem;
  }
  
  .hero__subtitle {
      font-size: 2rem;
  }
  
  section {
      padding: px 0;
  }
  
  .section__title {
      font-size: 2rem;
  }
  .price-list {
  text-align: center;
  margin-top: 10px;
}

  .nav__link {
    font-size: 14px;
    margin-bottom: 6px; 
  }

  .header__phone {
    font-size: 14px; 
    display: flex;
  align-items: center;
  
  }
  

  .icon__header__mobile {
    font-size: 14px;
  }
  .header__inner {
  

  padding:6px 0 ;
  }
}

@media (max-width: 576px) {
  .logo-assembly {
    width: 374px;
    height: 210px;
  }

  .hero__content {
    gap: 120px; /* уменьшили расстояние между логотипом и кнопкой */
}

  .logo-part {
    object-fit: contain;
    width: 100%;
    height: 100%;
  }

  .logo-background-bar {
    top: -5%;
     height: 125%;
  background: linear-gradient(
    
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.75) 20%,
    rgba(255, 255, 255, 0.75)75%,
    transparent 100%
    
  );
}
  .header .logo {
  display: block !important;
} 
  .header__inner {
    flex-direction: row;
  }

  .nav {
    display: none
  }

  .nav__link{
    margin: 0 10px;
  }

  .fa-phone-alt{
    margin-bottom: 0px;
    font-size: 15px;
  }

  .nav__link span{
    display: none;
  }

  .icon__header__mobile{
    display: inline;
  }

  .logo{
    margin-bottom: 0;
  }

  .header__phone span{
    font-size: 15px;
  }

  .logo img{
    height: 40px;
    width: auto;
  }

  .hero__title {
      font-size: 4.5rem;
  }
  .hero__subtitle {
    font-size: 1.5rem;
}
  
  .about__text {
    padding: 0 10px;
  }

  .about__text p {
    font-size: 1rem;      
    line-height: 1.6;    
    margin-bottom: 16px;  
  }

  .notification {
  max-width: 70vw;         /* Ограничение по ширине максимум 70% ширины окна */
  padding: 15px 20px;     
  font-size: 0.82rem;         
  }
}



.on-top {
  background-color: transparent;
  box-shadow: none;
}

.on-top a.nav__link {
  color: white;
}

.on-top .container div span {
  color: white;
}





@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}


