/* Глобальні стилі */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --forest: #324A2C;
  --gold: #C89F63;
  --coal: #222222;
  --snow: #F9F9F9;
  --stone: #7A7A7A;
  --line: #DEDEDE;
  --lift: 0 6px 24px rgba(0,0,0,0.1);
  --curve: 16px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--coal);
  background: var(--snow);
  line-height: 1.7;
}

.content-area {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Хедер */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(249, 249, 249, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
  z-index: 100;
  transition: all 0.3s;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-mark {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-name {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--forest);
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 0.875rem;
  color: var(--stone);
  font-weight: 300;
}

.main-nav {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  text-decoration: none;
  color: var(--coal);
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-trigger {
  display: none;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
}

.trigger-line {
  width: 24px;
  height: 2px;
  background: var(--coal);
  display: block;
  position: relative;
  transition: 0.3s;
}

.trigger-line::before,
.trigger-line::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--coal);
  transition: 0.3s;
}

.trigger-line::before { top: -7px; }
.trigger-line::after { bottom: -7px; }

.mobile-panel {
  position: fixed;
  top: 0;
  left: -100%;
  width: 300px;
  height: 100vh;
  background: white;
  box-shadow: 2px 0 12px rgba(0,0,0,0.1);
  padding: 6rem 2.5rem;
  transition: left 0.3s;
  z-index: 99;
}

.mobile-panel.active {
  left: 0;
}

.mobile-links {
  display: flex;
  flex-direction: column;
}

.mobile-links a {
  padding: 1.25rem 0;
  color: var(--coal);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.125rem;
  border-bottom: 1px solid var(--line);
}

/* Інтро секція */
.intro-block {
  padding: 10rem 0 5rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(170deg, var(--snow) 0%, #EFEFEF 100%);
}

.intro-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.main-headline {
  font-family: 'Merriweather', serif;
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.75rem;
}

.highlight {
  color: var(--gold);
  font-style: normal;
  position: relative;
}

.intro-description {
  font-size: 1.375rem;
  color: var(--stone);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.intro-buttons {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--forest);
  color: white;
  padding: 1.125rem 2.5rem;
  border-radius: var(--curve);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
}

.btn-primary:hover {
  background: #263B20;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(50, 74, 44, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--forest);
  padding: 1.125rem 2.5rem;
  border: 2px solid var(--forest);
  border-radius: var(--curve);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
}

.btn-outline:hover {
  background: var(--forest);
  color: white;
}

.intro-stats {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
}

.stat-card {
  background: white;
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  text-align: center;
  animation: bob 4s ease-in-out infinite;
}

.stat-card:nth-child(2) {
  animation-delay: 2s;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.stat-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--forest);
  line-height: 1;
}

.stat-info {
  color: var(--stone);
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

/* Студія */
.studio-block {
  padding: 6rem 0;
  background: white;
}

.studio-layout {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 5rem;
  align-items: center;
}

.studio-visual {
  position: relative;
}

.studio-visual img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.12);
}

.visual-label {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--gold);
  color: white;
  padding: 0.875rem 1.75rem;
  border-radius: 32px;
  font-weight: 600;
  font-size: 0.95rem;
}

.block-title {
  font-family: 'Merriweather', serif;
  font-size: 2.75rem;
  font-weight: 900;
  margin-bottom: 1.75rem;
  color: var(--forest);
}

.block-title.centered {
  text-align: center;
}

.studio-description {
  font-size: 1.2rem;
  color: var(--stone);
  margin-bottom: 2.5rem;
  line-height: 1.9;
}

.benefits-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  list-style: none;
}

.benefit {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.benefit-icon {
  color: var(--gold);
  font-size: 1.5rem;
  line-height: 1;
}

.benefit-content strong {
  display: block;
  font-size: 1.125rem;
  margin-bottom: 0.375rem;
}

.benefit-content small {
  color: var(--stone);
  font-size: 0.925rem;
}

/* Портфоліо */
.portfolio-block {
  padding: 6rem 0;
  background: #F5F5F5;
}

.block-header {
  text-align: center;
  margin-bottom: 4rem;
}

.block-intro {
  color: var(--stone);
  font-size: 1.25rem;
  margin-top: 0.75rem;
  font-weight: 300;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  grid-auto-flow: dense;
}

.work-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: white;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transition: all 0.4s;
  cursor: pointer;
}

.work-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}

.work-card.wide {
  grid-column: span 2;
}

.work-card.tall {
  grid-row: span 2;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: white;
  padding: 2.5rem 2rem 2rem;
  transform: translateY(calc(100% - 4rem));
  transition: transform 0.4s;
}

.work-card:hover .work-info {
  transform: translateY(0);
}

.work-info h3 {
  font-size: 1.375rem;
  margin-bottom: 0.625rem;
  font-weight: 700;
}

.work-info span {
  font-size: 0.95rem;
  opacity: 0.85;
  font-weight: 300;
}

/* Породи */
.wood-types {
  padding: 3.5rem 0;
  background: white;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-subtitle {
  text-align: center;
  font-size: 1.625rem;
  color: var(--forest);
  margin-bottom: 2.5rem;
  font-weight: 600;
}

.wood-gallery {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.wood-gallery img {
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.wood-gallery img:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Процес */
.workflow-block {
  padding: 6rem 0;
  background: white;
}

.process-steps {
  max-width: 900px;
  margin: 4rem auto 0;
  list-style: none;
}

.step {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
  padding-left: 2rem;
  position: relative;
}

.step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: -3.5rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

.step:last-child::before {
  display: none;
}

.step-number {
  width: 64px;
  height: 64px;
  background: var(--gold);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.step-details {
  padding-top: 0.75rem;
}

.step-details h3 {
  font-size: 1.375rem;
  margin-bottom: 0.625rem;
  color: var(--forest);
  font-weight: 600;
}

.step-details p {
  color: var(--stone);
  line-height: 1.8;
  font-size: 1.05rem;
}

/* Контакти */
.connect-block {
  padding: 6rem 0;
  background: linear-gradient(175deg, #F5F5F5 0%, #E8E8E8 100%);
}

.connect-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.connect-intro p {
  color: var(--stone);
  font-size: 1.2rem;
  margin: 1.25rem 0 2.5rem;
  line-height: 1.9;
}

.contact-info {
  background: white;
  padding: 2.25rem;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  font-style: normal;
}

.info-row {
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-row strong {
  display: block;
  color: var(--forest);
  margin-bottom: 0.625rem;
  font-weight: 600;
}

.request-form {
  background: white;
  padding: 3rem;
  border-radius: 24px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.request-form input,
.request-form textarea {
  padding: 1.125rem;
  border: 2px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1.05rem;
  transition: all 0.3s;
}

.request-form input:focus,
.request-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 159, 99, 0.1);
}

.form-submit {
  background: var(--forest);
  color: white;
  padding: 1.375rem;
  border: none;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.form-submit:hover {
  background: #263B20;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(50, 74, 44, 0.3);
}

/* Футер */
.site-footer {
  background: var(--coal);
  color: white;
  padding: 2.5rem 0;
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand strong {
  font-size: 1.375rem;
  display: block;
  margin-bottom: 0.625rem;
}

.footer-brand small {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
}

.footer-nav {
  display: flex;
  gap: 2.5rem;
}

.footer-nav a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: white;
}

/* Респонсив */
@media (max-width: 968px) {
  .main-nav {
    display: none;
  }
  
  .nav-trigger {
    display: block;
  }
  
  .intro-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .intro-stats {
    flex-direction: column;
  }
  
  .studio-layout {
    grid-template-columns: 1fr;
  }
  
  .work-card.wide {
    grid-column: span 1;
  }
  
  .connect-layout {
    grid-template-columns: 1fr;
  }
  
  .benefits-list {
    grid-template-columns: 1fr;
  }
  
  .footer-layout {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .footer-nav {
    flex-direction: column;
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  .main-headline {
    font-size: 2.25rem;
  }
  
  .block-title {
    font-size: 2rem;
  }
  
  .intro-buttons {
    flex-direction: column;
  }
  
  .btn-primary,
  .btn-outline {
    width: 100%;
    text-align: center;
  }
  
  .wood-gallery {
    flex-direction: column;
    align-items: center;
  }
}