/* Основные стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #8b4513; /* Коричневый цвет дерева */
  --primary-dark: #654321;
  --primary-light: #a0522d;
  --secondary: #d4a76a; /* Бежевый/золотистый */
  --light: #faf3e0; /* Светло-бежевый */
  --dark: #3e2723; /* Темно-коричневый */
  --gray: #8d6e63; /* Серо-коричневый */
  --light-gray: #efebe9;
  --shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background-color: #fefefe;
  transition: var(--transition);
}

body.menu-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
}

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

/* Кнопки */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  font-family: "Roboto", sans-serif;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--dark);
  border: 2px solid var(--secondary);
}

.btn-secondary:hover {
  background-color: #c99554;
  border-color: #c99554;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-large {
  padding: 16px 35px;
  font-size: 18px;
  font-weight: 600;
}

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

/* Шапка */
.header {
  background-color: white;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  padding: 5px 0;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--light-gray);
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 1002;
}

.logo-icon {
  /* background-color: var(--primary);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  flex-shrink: 0; */
  width: 50px;
  height: 50px;
}

.logo-img {
  width: 50px;
  height: 50px;
}

.logo-text h1 {
  font-size: 22px;
  margin-bottom: 3px;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.logo-text p {
  font-size: 12px;
  color: var(--gray);
  max-width: 200px;
  display: none;
}

/* Контакты для десктопа */
.header-contacts-desktop {
  display: flex;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-item i {
  color: var(--primary);
  font-size: 20px;
}

.contact-item p {
  font-weight: 600;
  margin-bottom: 3px;
  color: var(--dark);
}

.contact-item span {
  font-size: 13px;
  color: var(--gray);
}

/* Контакты для мобильных */
.header-contacts-mobile {
  display: none;
}

.mobile-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  font-size: 18px;
  transition: var(--transition);
}

.mobile-phone:hover {
  background-color: var(--primary-dark);
}

.callback-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

/* Бургер-меню */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  border-radius: 3px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Навигация */
.navbar {
  padding: 15px 0;
  transition: var(--transition);
}

.nav-menu {
  display: flex;
  justify-content: space-between;
  list-style: none;
}

.nav-menu li {
  position: relative;
}

.nav-menu li a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  padding: 8px 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  white-space: nowrap;
}

.nav-menu li a:hover {
  color: var(--primary);
}

/* Мобильное меню */
.mobile-menu-contacts {
  display: none;
}

/* Герой секция */
.hero {
  background-color: var(--light);
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--dark);
}

.hero-subtitle {
  font-size: 18px;
  margin-bottom: 35px;
  color: var(--gray);
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow);
  border: 10px solid white;
}

/* Секции */
section {
  padding: 60px 0;
}

.section-title {
  font-size: 32px;
  text-align: center;
  margin-bottom: 15px;
  color: var(--dark);
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary);
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  margin-bottom: 50px;
  font-size: 18px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Преимущества */
.advantages {
  background-color: white;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.advantage-card {
  background-color: var(--light);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--light-gray);
}

.advantage-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

.advantage-icon {
  background-color: var(--primary);
  color: white;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 25px;
}

.advantage-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--dark);
}

.advantage-card p {
  color: var(--gray);
  line-height: 1.6;
}

/* Продукция */
.products {
  background-color: var(--light);
}

.product-description {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 50px;
}

.product-text p {
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.7;
}

.product-uses {
  list-style: none;
  margin-top: 25px;
}

.product-uses li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.product-uses li i {
  color: var(--primary);
  margin-top: 3px;
}

.product-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.benefits {
  background-color: white;
  border-radius: 10px;
  padding: 40px;
  margin-top: 30px;
  box-shadow: var(--shadow);
}

.benefits h3 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 26px;
  color: var(--dark);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.benefit {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.benefit i {
  color: var(--primary);
  font-size: 20px;
  margin-top: 3px;
}

.benefit p {
  font-size: 16px;
  line-height: 1.6;
}

/* Технические характеристики */
.specs {
  background-color: white;
}

.specs-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.specs-card {
  background-color: var(--light);
  border-radius: 10px;
  padding: 30px;
  border-left: 5px solid var(--primary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.specs-card h3 {
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.specs-card h3 i {
  color: var(--primary);
}

.specs-list {
  list-style: none;
}

.specs-list li {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--light-gray);
  display: flex;
}

.specs-list li:last-child {
  border-bottom: none;
}

.specs-list li strong {
  min-width: 180px;
  color: var(--dark);
}

/* Галерея */
.gallery {
  background-color: var(--light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  background-color: white;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-10px);
}

.gallery-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover .gallery-image img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-btn {
  background-color: var(--primary);
  color: white;
  padding: 10px 25px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.gallery-btn:hover {
  background-color: var(--primary-dark);
}

.gallery-caption {
  padding: 20px;
  text-align: center;
  font-weight: 500;
  color: var(--dark);
}

.portfolio-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-card {
  text-align: center;
  padding: 40px 20px;
}

.portfolio-card i {
  font-size: 60px;
  color: var(--primary);
  margin-bottom: 20px;
}

.portfolio-card h3 {
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--dark);
}

/* О компании */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 50px;
}

.about-text h3 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--dark);
}

.about-text p {
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.7;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.stat {
  text-align: center;
}

.stat h4 {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 5px;
}

.stat p {
  font-size: 14px;
  color: var(--gray);
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

/* Контакты */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 50px;
}

.contact-details {
  margin-top: 30px;
}

.contact-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-item i {
  color: var(--primary);
  font-size: 24px;
  margin-top: 5px;
}

.contact-item h4 {
  margin-bottom: 8px;
  font-size: 18px;
  color: var(--dark);
}

.contact-item p {
  color: var(--gray);
  margin-bottom: 5px;
}

.contact-form {
  background-color: var(--light);
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--dark);
}

.contact-form p {
  color: var(--gray);
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: var(--transition);
  font-family: "Roboto", sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(139, 69, 19, 0.1);
}

/* Футер */
.footer {
  background-color: var(--dark);
  color: white;
  padding: 50px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* .footer-logo .logo-icon {
  background-color: var(--secondary);
  color: var(--dark);
  width: 50px;
  height: 50px;
  font-size: 24px;
} */

.footer-logo-text h3 {
  font-size: 20px;
  margin-bottom: 5px;
  color: white;
}

.footer-logo-text p {
  color: #bbb;
  font-size: 14px;
  max-width: 300px;
}

.footer-copyright p {
  color: #bbb;
  font-size: 14px;
  margin-bottom: 5px;
  text-align: center;
}

.footer-social {
  display: flex;
  gap: 15px;
}

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

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

/* Скрывающаяся шапка */
.header {
  transform: translateY(0);
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.header-hidden {
  transform: translateY(-100%);
  box-shadow: none;
}

.header.scrolled {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Кнопка "Наверх" */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

/* Для мобильных - кнопка "Наверх" не показывается */
@media (max-width: 992px) {
  .scroll-top-btn {
    display: none;
  }

  .header-hidden {
    transform: translateY(0) !important;
  }
}

/* Адаптивность */
@media (max-width: 1200px) {
  .logo-text p {
    display: none;
  }
}

@media (max-width: 992px) {
  .hero .container,
  .product-description,
  .about-content,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
  }

  .desktop-only {
    display: none !important;
  }

  .header-contacts-desktop {
    display: none;
  }

  .header-contacts-mobile {
    display: block;
  }

  .menu-toggle {
    display: flex;
  }

  /* Мобильное меню */
  .navbar {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: white;
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  .navbar.active {
    transform: translateX(0);
  }

  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 30px;
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid var(--light-gray);
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-menu li a {
    padding: 15px 0;
    width: 100%;
    font-size: 18px;
  }

  .mobile-menu-contacts {
    display: block;
    border-top: 1px solid var(--light-gray);
    padding-top: 30px;
  }

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

  .mobile-contact-item i {
    color: var(--primary);
    font-size: 20px;
    margin-top: 3px;
  }

  .mobile-contact-item p {
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--dark);
  }

  .mobile-contact-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
  }

  .mobile-contact-item span {
    font-size: 14px;
    color: var(--gray);
    display: block;
  }

  .mobile-callback {
    margin-top: 20px;
  }

  .logo-text p {
    display: block;
  }

  .hero-title {
    font-size: 32px;
  }

  .about-stats {
    justify-content: center;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 28px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .advantages-grid,
  .benefits-grid,
  .specs-content {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-link {
    grid-column: 1;
  }

  .about-stats {
    flex-direction: column;
    gap: 25px;
  }

  .benefits {
    padding: 25px;
  }

  .benefits h3 {
    font-size: 22px;
  }

  .contact-form {
    padding: 25px;
  }

  .hero {
    padding: 40px 0 60px;
  }

  section {
    padding: 40px 0;
  }
}

@media (max-width: 480px) {
  .logo-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .logo-text h1 {
    font-size: 18px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .section-title {
    font-size: 24px;
  }

  .section-subtitle {
    font-size: 16px;
  }

  .advantage-card {
    padding: 20px;
  }

  .specs-card {
    padding: 20px;
  }

  .specs-list li {
    flex-direction: column;
    gap: 5px;
  }

  .specs-list li strong {
    min-width: auto;
  }
}
