/* ===== Variables ===== */
:root {
  --bg: #F7F4EF;
  --bg-soft: #EFE9E0;
  --text: #2A221A;
  --text-muted: #6B5E52;
  --accent: #8B5E3C;
  --accent-hover: #734C2F;
  --dark: #1F1812;
  --white: #FFFFFF;
  --border: rgba(42, 34, 26, 0.08);
  --radius: 10px;
  --container: 1180px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}
.section-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}
.btn--primary {
  background: var(--accent);
  color: var(--white);
}
.btn--primary:hover { background: var(--accent-hover); }
.btn--dark {
  background: var(--dark);
  color: var(--white);
  padding: 12px 22px;
  font-size: 0.9rem;
}
.btn--dark:hover { background: #000; }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn--ghost:hover {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}
.btn--ghost-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn--ghost-light:hover {
  background: rgba(255,255,255,0.1);
}
.btn--full { width: 100%; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247, 244, 239, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo__main {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--dark);
  letter-spacing: -0.02em;
}
.logo__sub {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 500;
}
.nav {
  display: flex;
  gap: 28px;
}
.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav a:hover { color: var(--dark); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}
.hero__content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 640px;
}
.hero__label {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.85;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.hero__text {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.55;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== Two Lines ===== */
.lines {
  padding: 90px 0;
  background: var(--bg);
}
.lines__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.line-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.line-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(31,24,18,0.1);
}
.line-card--accent {
  border-color: rgba(139,94,60,0.25);
}
.line-card__image {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.line-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.line-card:hover .line-card__image img {
  transform: scale(1.03);
}
.line-card__body {
  padding: 28px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.line-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 8px;
}
.line-card__body h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.line-card__body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}
.line-card__link {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.95rem;
}

/* ===== Products ===== */
.products {
  padding: 90px 0;
  background: var(--bg-soft);
}
.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.products__grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.product {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(31, 24, 18, 0.08);
}
.product__image {
  aspect-ratio: 1/1;
  overflow: hidden;
}
.product__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product:hover .product__image img {
  transform: scale(1.04);
}
.product__body {
  padding: 22px;
}
.product__body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
}
.product__body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}
.product__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.price {
  font-weight: 700;
  color: var(--dark);
  font-size: 1rem;
}
.link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
}
.link:hover { text-decoration: underline; }

/* ===== InnoBlok section ===== */
.innoblok {
  padding: 100px 0;
  background: var(--bg);
}
.innoblok__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
.feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}
.feature strong {
  display: block;
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 6px;
}
.feature span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Constructor inside InnoBlok */
.constructor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}
.constructor__content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.constructor__text {
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.55;
}
.constructor__form {
  max-width: 420px;
}
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B5E52' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.constructor__result {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.result-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.result-price span {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.result-price strong {
  font-size: 1.35rem;
  color: var(--dark);
}
.constructor__visual {
  border-radius: 12px;
  overflow: hidden;
}
.constructor__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}

.starter-kits__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 28px;
  text-align: center;
}

/* ===== Build ===== */
.build {
  padding: 90px 0;
  background: var(--bg-soft);
}
.build__main {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.video-placeholder {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16/10;
}
.video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}
.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
}
.video-play span {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.95);
  color: var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.video-play p {
  font-weight: 600;
  font-size: 1rem;
}
.video-play small {
  font-weight: 400;
  opacity: 0.8;
  font-size: 0.85rem;
}
.build-step {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}
.build-step:last-child { margin-bottom: 0; }
.build-step__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--dark);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.build-step h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--dark);
}
.build-step p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== Portfolio ===== */
.portfolio {
  padding: 90px 0;
  background: var(--bg);
}
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.portfolio__item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.portfolio__item.large {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}
.portfolio__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.portfolio__item:hover img {
  transform: scale(1.03);
}

/* ===== Material ===== */
.material {
  padding: 100px 0;
  background: var(--bg-soft);
}
.material__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.material__image {
  border-radius: 14px;
  overflow: hidden;
}
.material__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}
.material__content h2 {
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.material__content > p {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.65;
}
.material__content ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--text);
}
.material__content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* ===== CTA ===== */
.cta {
  padding: 100px 0;
  background: var(--dark);
  color: var(--white);
  text-align: center;
}
.cta h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.3rem);
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.cta p {
  opacity: 0.8;
  max-width: 480px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ===== Footer ===== */
.footer {
  background: #16110D;
  color: rgba(255,255,255,0.55);
  padding: 36px 0;
  font-size: 0.9rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer .logo__main { color: var(--white); }
.footer .logo__sub { color: var(--accent); }
.footer__links {
  display: flex;
  gap: 28px;
}
.footer__links a:hover { color: var(--white); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .lines__grid { grid-template-columns: 1fr; }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .products__grid--3 { grid-template-columns: repeat(2, 1fr); }
  .innoblok__features { grid-template-columns: 1fr; }
  .constructor,
  .build__main,
  .material__inner { grid-template-columns: 1fr; gap: 32px; }
  .constructor__visual img { min-height: 280px; }
  .portfolio__item.large { grid-column: span 3; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .header__inner .btn--dark { display: none; }
  .products__grid,
  .products__grid--3 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .portfolio__grid { grid-template-columns: 1fr; }
  .portfolio__item.large { grid-column: span 1; }
  .hero { min-height: 85vh; padding: 100px 0 60px; }
  .hero h1 { font-size: 2.1rem; }
  .constructor { padding: 24px; }
}

/* ===== Blocks info ===== */
.blocks-info {
  margin-bottom: 64px;
  text-align: center;
}
.blocks-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 24px;
}
.blocks-info__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}
.block-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 16px;
}
.block-item__size {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.block-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Result blocks in constructor */
.result-blocks {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.result-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text-muted);
}
.result-line strong {
  color: var(--dark);
  font-weight: 600;
}

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