﻿:root {
  --main-color: #8B4513;
  --secondary-color: #D2691E;
  --bg-color: #F8F4EF;
  --secondary-bg-color: #FFFFFF;
  --accent-color: #5D8CAE;
  --text-color: #333333;

  --font-text: "Playfair Display", serif;
}

*,
*::after,
*::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-color);
  font-family: var(--font-text);
  line-height: 1.2;
  background-color: var(--bg-color);
}

h1 {
  margin: 0;
  padding: 0;
}

h2 {
  margin: 0;
  padding: 0;
}

h3 {
  margin: 0;
  padding: 0;
}

h4 {
  margin: 0;
  padding: 0;
}

h5 {
  margin: 0;
  padding: 0;
}

h6 {
  margin: 0;
  padding: 0;
}

p {
  margin: 0;
  padding: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

li {
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  font-family: inherit;
  font-size: inherit;
  background: none;
  cursor: pointer;
}

input {
  font-family: inherit;
  font-size: inherit;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  box-shadow: 0 2px 20px rgba(139, 69, 19, 0.1);
  background: var(--secondary-bg-color);
  transition: all 0.3s ease;
}

.header--scrolled {
  box-shadow: 0 2px 20px rgba(139, 69, 19, 0.15);
}

body.menu-open {
  overflow: hidden;
}

@media (max-width: 880px) {
  body.menu-open {
    position: fixed;
    width: 100%;
  }
}

.faq-item__answer {
  overflow: hidden;
  transition: max-height 0.3s ease;
  max-height: 0;
}

.faq-item__answer.faq-item__answer--open {
  max-height: var(--faq-height, 200px);
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  height: 80px;
  margin: 0 auto;
  padding: 0 20px;
}


.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--main-color);
  font-weight: 600;
  font-size: 24px;
  transition: all 0.3s ease;
}

.logo i {
  color: var(--secondary-color);
  font-size: 28px;
}

.logo:hover {
  transform: translateY(-2px);
}

.logo__text {
  font-family: var(--font-text);
  letter-spacing: -0.5px;
}


.nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  position: relative;
  padding: 8px 0;
  color: var(--text-color);
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav__link:hover {
  color: var(--main-color);
}

.nav__link:hover::after {
  width: 100%;
}


.btn {
  display: inline-block;
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 12px 24px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
}

.btn--primary {
  border-color: var(--main-color);
  color: var(--secondary-bg-color);
  background: var(--main-color);
}

.btn--primary:hover {
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.2);
  color: var(--main-color);
  background: transparent;
  transform: translateY(-2px);
}

.btn--secondary {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--secondary-bg-color);
  background: transparent;
}

.btn--secondary:hover {
  border-color: var(--secondary-color);
  background: var(--secondary-color);
  color: var(--main-color);
  transform: translateY(-2px);
}


.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 30px;
  height: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.burger__line {
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: var(--main-color);
  transition: all 0.3s ease;
}

.burger.active .burger__line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active .burger__line:nth-child(2) {
  opacity: 0;
}

.burger.active .burger__line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.footer {
  margin-top: auto;
  color: var(--secondary-bg-color);
  background: var(--main-color);
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 20px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 24px;
}

.footer__logo i {
  color: var(--secondary-color);
  font-size: 28px;
}

.footer__logo-text {
  font-family: var(--font-text);
  letter-spacing: -0.5px;
}

.footer__tagline {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  font-style: italic;
  line-height: 1.6;
}

.footer__social {
  display: flex;
  gap: 16px;
}

.social-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer__title {
  margin-bottom: 16px;
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 18px;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  transition: all 0.3s ease;
}

.footer__link:hover {
  padding-left: 4px;
  color: var(--secondary-color);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  line-height: 1.5;
}

.footer__contact-item i {
  margin-top: 2px;
  color: var(--secondary-color);
}

.footer__contact-item a {
  transition: all 0.3s ease;
}

.footer__contact-item a:hover {
  color: var(--secondary-color);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.footer__legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer__legal-links {
  display: flex;
  gap: 20px;
}

.footer__legal-link {
  transition: all 0.3s ease;
}

.footer__legal-link:hover {
  color: var(--secondary-color);
}




@media (max-width: 880px) {
  .header__container {
    height: 70px;
    padding: 0 16px;
  }

  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    width: 100%;
    height: calc(100vh - 70px);
    box-shadow: 2px 0 20px rgba(139, 69, 19, 0.1);
    background: var(--secondary-bg-color);
    transition: transform 0.3s ease;
    transform: translateX(-100%);
  }

  .nav.active {
    transform: translateX(0);
  }

  .nav__list {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .nav__link {
    padding: 16px 0;
    font-size: 20px;
  }

  .nav__cta {
    margin-top: 20px;
  }

  .burger {
    display: flex;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer__links {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .footer__legal {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer__legal-links {
    justify-content: center;
  }
}


@media (max-width: 480px) {
  .header__container {
    height: 60px;
    padding: 0 12px;
  }

  .logo {
    font-size: 20px;
  }

  .logo i {
    font-size: 24px;
  }

  .nav {
    top: 60px;
    height: calc(100vh - 60px);
  }

  .footer__container {
    padding: 40px 12px 16px;
  }

  .footer__top {
    gap: 32px;
  }

  .footer__links {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer__brand {
    text-align: center;
  }

  .footer__social {
    justify-content: center;
  }

  .footer__legal-links {
    gap: 12px;
  }
}