﻿.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 239, 232, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(165, 150, 134, 0.15);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  object-fit: cover;
}

.brand__name {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.brand__tagline {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.brand__note {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 27, 22, 0.18);
  background: rgba(201, 122, 68, 0.12);
  color: var(--color-wood);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.brand__note svg {
  width: 16px;
  height: 16px;
}

.header-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: center;
  justify-self: center;
}

.header-contacts a {
  font-weight: 600;
  text-decoration: none;
}

.site-header .btn {
  justify-self: end;
  width: auto;
}

.site-header .btn-primary {
  padding: 0.65rem 2.4rem;
  font-size: 0.82rem;
  line-height: 1.1;
  border-radius: 999px;
  background: #3d3d40;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 25px rgba(34, 32, 30, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.site-header .btn-primary:hover {
  background: #4a4a4f;
}

.site-header .btn-primary:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.hero {
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.hero__figure {
  position: absolute;
  bottom: -25px;
  right: clamp(-20px, -5vw, 20px);
  width: clamp(280px, 34vw, 440px);
  pointer-events: none;
  opacity: 0.75;
  z-index: 0;
  filter: drop-shadow(0 18px 28px rgba(17, 10, 5, 0.25));
}

.hero__figure img {
  width: 100%;
  height: auto;
  display: block;
}

.grid-animated::before {
  content: "";
  position: absolute;
  inset: -10% -6% -18% -6%;
  background: url("../icons/blueprint-grid.svg") repeat;
  opacity: 0.12;
  pointer-events: none;
  transform: none;
  animation: none;
  z-index: 0;
}

.grid-animated::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  /* Премиальный фон: тёплый градиент + тонкий бумажный шум (SVG noise tile) */
  background-image:
    linear-gradient(180deg, rgba(199,155,114,0.06) 0%, rgba(255,255,255,0) 60%),
    url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='table' tableValues='0 0 0 0.35 0'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: auto, 280px auto;
  background-repeat: no-repeat, repeat;
  background-position: center, center;

  opacity: 0.08;
  mix-blend-mode: multiply;
  transform: none;
  animation: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(192, 147, 106, 0.15), transparent 55%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.hero__tools {
  position: absolute;
  inset: 8% 6% auto auto;
  display: none !important;
  align-items: center;
  gap: 1.5rem;
  pointer-events: none;
  z-index: 0;
}

.hero__tool {
  width: clamp(72px, 12vw, 140px);
  opacity: 0.92;
  filter: drop-shadow(0 18px 28px rgba(17, 10, 5, 0.22));
}

.hero__tool--hammer {
  animation: none;
}

.hero__tool--saw {
  animation: none;
}

.hero__title {
  font-size: clamp(2.1rem, 1.75rem + 1.4vw, 3rem);
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.hero__highlight {
  display: flex;
  justify-content: flex-start;
  margin: 0.5rem 0 0.5rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero__trust {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.trust-card {
  padding: 1.25rem 1.15rem;
  border-radius: 28px;
  border: 1px solid rgba(48, 40, 33, 0.08);
  background: linear-gradient(145deg, #ffffff, rgba(255, 253, 249, 0.9));
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: 0 18px 35px rgba(21, 13, 7, 0.08);
  min-height: 150px;
}

.trust-card svg {
  width: 40px;
  height: 40px;
  padding: 0.45rem;
  border-radius: 14px;
  background: rgba(201, 122, 68, 0.12);
  color: var(--color-wood);
  flex: 0 0 auto;
}

.trust-card strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.trust-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.trust-card__inline {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.trust-card__inline strong {
  display: inline;
  margin-bottom: 0;
}

.trust-card__inline span {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.hero__aside {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--color-cream);
  box-shadow: var(--shadow-soft);
}

.hero__b2b {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(160, 107, 61, 0.08);
  color: var(--color-moss);
  font-weight: 500;
}

.section {
  padding: 4rem 0;
}

.catalog-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.catalog-header__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.catalog-disclaimer {
  font-size: 0.95rem;
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.6);
  border-left: 3px solid var(--color-wood);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

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

.banner-stack {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.banner-phrase {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(32, 27, 21, 0.2);
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

.catalog-cta {
  margin-top: 2.5rem;
  text-align: center;
}

.cooperation {
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
}

.cooperation__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.cooperation__item {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 27, 22, 0.08);
  background: #fff;
}

.quality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.quality-card {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(80, 96, 74, 0.08);
  border: 1px solid rgba(80, 96, 74, 0.25);
  min-height: 180px;
}

.quality-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #2e2a25;
  letter-spacing: 0.01em;
}

.quality-card p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.45;
}

.form-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.form-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

details {
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 27, 22, 0.1);
  background: #fff;
  padding: 1rem 1.25rem;
}

summary {
  list-style: none;
  font-weight: 600;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

details[open] {
  border-color: var(--color-wood);
}

.site-footer {
  background: #15120f;
  color: rgba(255, 255, 255, 0.88);
  padding: 2rem 0;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
}

.footer-block {
  max-width: 320px;
}

.footer-block small {
  color: rgba(255, 255, 255, 0.6);
}

.sticky-cta {
  position: fixed;
  inset: auto 1rem 1rem auto; /* top auto, right 1rem, bottom 1rem, left auto (только справа) */
  padding: 1rem 1.5rem;
  border-radius: 999px;
  color: #fefefe;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background-color: #a36b3c;
  background-image:
    linear-gradient(130deg, rgba(255, 255, 255, 0.22), rgba(0, 0, 0, 0.25)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Crect width='160' height='160' fill='%23a36b3c'/%3E%3Cpath d='M0 18h160M0 46h160M0 74h160M0 102h160M0 130h160' stroke='%23834924' stroke-width='6' stroke-opacity='.35'/%3E%3Cpath d='M0 8h160M0 34h160M0 60h160M0 86h160M0 112h160M0 138h160' stroke='%23c78d55' stroke-width='3' stroke-opacity='.35'/%3E%3C/svg%3E");
  background-size: 100% 100%, 200px 200px;
  background-blend-mode: overlay;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  display: none;
  z-index: 30;
}

/* На больших экранах учитываем высоту фиксированной шапки */
@media (min-width: 1025px) {
  .sticky-cta {
    inset: auto 1rem 1rem auto; /* top auto, right 1rem, bottom 1rem, left auto */
  }
}

@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__tools {
    inset: 12% auto auto 6%;
  }

  .grid-animated::before {
    background: url("../icons/blueprint-grid.svg") repeat;
    opacity: 0.12;
    animation: none;
  }

  /* Keep the header static on mobile so it scrolls away */
  .site-header {
    position: static;
    top: auto;
    left: auto;
    right: auto;
  }

  .site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 72px;
    padding: 0.75rem 1rem;
  }

  /* Without a fixed header we no longer need top padding */
  body {
    padding-top: 0;
  }

  .header-contacts {
    display: none;
  }

  .form-panel {
    grid-template-columns: 1fr;
  }
}

/* Убираем компенсацию высоты для основной версии, так как шапка не фиксирована */

@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }

  .hero {
    padding-top: 3rem;
  }

  .grid-animated::before {
    inset: -10% -6% -18% -6%;
    background: url("../icons/blueprint-grid.svg") repeat;
    opacity: 0.10;
    animation: none;
  }

  .hero__tools {
    display: none;
  }

  .hero__tool {
    animation: none;
  }

  .sticky-cta {
    display: flex;
    inset: auto 1rem 1rem auto; /* top auto, right 1rem, bottom 1rem, left auto (только справа) */
  }

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

  .hero__cta .btn {
    width: 100%;
  }

  .hero__cta .btn-outline {
    display: none;
  }

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

/* Hero typography stays flexible so it wraps correctly on mobile */
.hero__content {
  max-width: 720px;
  width: 100%;
  align-items: flex-start;
  text-align: left;
}

.hero__title,
.hero__subtitle {
  margin-left: 0;
  padding-left: 0;
}

.hero__highlight {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
}

.hero__highlight .pill,
.hero__highlight .pill-tight {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.2;
  white-space: normal;
}

@media (max-width: 768px) {
  .hero__content {
    width: 100%;
  }

  .hero__highlight {
    justify-content: flex-start;
  }
}
