@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --color-bg: #FBF8F4;
  --color-cta: #B8673A;
  --color-cta-hover: #8B4513;
  --color-text-main: #2C1A0E;
  --color-text-muted: #7A5C4A;
  --color-card: #FFFFFF;
  --color-light-block: #F5EDE3;
  --color-border: #E8D5C4;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;
  --transition-speed: 0.3s;
  --border-radius: 8px;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; color: var(--color-cta-hover); }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-cta);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover,
a:focus {
  color: var(--color-cta-hover);
  outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--color-cta);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

section {
  padding: 5rem 0;
}

.section-light {
  background-color: var(--color-light-block);
}

.header {
  background-color: var(--color-bg);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-cta-hover);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--color-text-main);
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--color-cta);
}

.burger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.burger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-text-main);
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.burger-menu span:last-child {
  margin-bottom: 0;
}

.btn {
  display: inline-block;
  background-color: var(--color-cta);
  color: white;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  text-align: center;
  transition: background-color var(--transition-speed) ease, transform 0.2s ease;
}

.btn:hover,
.btn:focus {
  background-color: var(--color-cta-hover);
  color: white;
}

.btn:active {
  transform: translateY(2px);
}

.hero-section {
  padding: 0;
}

.hero {
  display: flex;
  align-items: center;
  padding: 4rem 0 6rem;
}

.hero-content {
  flex: 1;
  padding-right: 2rem;
}

.hero-subtitle {
  color: var(--color-text-muted);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.hero-image {
  flex: 1;
}

.hero-image img {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(44, 26, 14, 0.1);
  object-fit: cover;
  width: 100%;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  background-color: var(--color-card);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 6px rgba(44, 26, 14, 0.05);
  transition: transform var(--transition-speed) ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--color-cta-hover);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.portfolio-item img {
  border-radius: var(--border-radius);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  margin-top: 1rem;
  color: var(--color-text-muted);
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.lead-form-wrapper {
  background-color: var(--color-card);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(44, 26, 14, 0.08);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: var(--color-bg);
  transition: border-color var(--transition-speed) ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-cta);
}

.form-submit {
  width: 100%;
  font-size: 1.125rem;
  padding: 1rem;
}

.footer {
  background-color: var(--color-text-main);
  color: var(--color-bg);
  padding: 4rem 0 2rem;
}

.footer a {
  color: var(--color-light-block);
}

.footer a:hover {
  color: white;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-title {
  color: var(--color-cta);
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.requisites {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-text-main);
  color: white;
  padding: 1rem;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.5s ease;
  display: none;
}

.cookie-banner.show {
  display: block;
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-text {
  font-size: 0.875rem;
}

.cookie-text a {
  color: var(--color-cta);
  text-decoration: underline;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

@media (max-width: 992px) {
  h1 { font-size: 2rem; }
  .grid-3,
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 2rem 0;
  }
  .hero-content {
    padding-right: 0;
    margin-bottom: 2rem;
  }
  .grid-2,
  .grid-3,
  .portfolio-grid,
  .footer-top {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-bg);
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    text-align: center;
    padding: 0.5rem 0;
  }
  .burger-menu {
    display: block;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}
