:root {
  --bg: #ffffff;
  --text: #0b0b0b;
  --muted: #4b5563;
  --line: #e5e7eb;
  --panel: #f7f7f9;
  --brand: #ff2020;
  --brand-soft: #e04444;
}

/* Global reset */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* Layout container */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header and navigation */
.site-header {
  position: sticky;
  top: 0;
  background: #fffffff2;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
}

.logo-svg {
  display: block;
}

.brand-text strong {
  display: block;
  letter-spacing: 0.6px;
}

.brand-text span {
  font-size: 12px;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
}

.nav a {
  color: #1f2937;
  text-decoration: none;
  margin-left: 18px;
  font-size: 14px;
  line-height: 1.1;
}

.nav a:hover {
  color: var(--brand-soft);
}

.nav .btn {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

/* Hero section */
.hero {
  background: linear-gradient(180deg, #fff 0%, #fbfbfb 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
  padding: 56px 0;
}

.hero-text {
  max-width: 520px; /* keeps layout stable */
}

.hero h1 {
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 12px;
}

.hero p {
  color: var(--muted);
  margin: 0 0 16px;
}

/* Hero trust badges */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #6b7280;
  padding: 0;
  margin: 14px 0 0;
}

.trust li {
  list-style: none;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
}

/* Hero buttons */
.hero-cta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-cta .btn {
  min-width: 220px;
  text-align: center;
}

/* Hero image */
.hero-art img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

/* Top / section laser line */
.laser-top,
.laser-line {
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0,
    var(--brand-soft) 20%,
    var(--brand-soft) 80%,
    transparent 100%
  );
  position: relative;
  overflow: hidden;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--text);
  background: #fff;
  min-height: 44px;
  font-size: 14px;
}

.btn-primary {
  background: var(--brand-soft);
  border-color: var(--brand-soft);
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-outline {
  background: transparent;
}

.btn-outline:hover {
  background: #fff;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section.alt {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

h2 {
  margin: 0 0 20px;
}

/* Cards and grids */
.grid {
  display: grid;
  gap: 16px;
}

.cards {
  grid-template-columns: repeat(4, 1fr);
}

.card{
  background:#fff;
  border:1px solid var(--brand-soft);
  border-radius:16px;
  padding:16px;
}

.card h3 {
  margin: 0.2rem 0 8px;
  font-size: 16px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card.highlight{
  box-shadow:0 10px 24px rgba(224,68,68,0.10);
}

/* Advantages */
.adv {
  grid-template-columns: repeat(3, 1fr);
}

.adv-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.adv-ico {
  font-size: 22px;
  line-height: 1.1;
}

/* Calculator */
.calc-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 12px;
  margin-bottom: 10px;
  align-items: center;
}

.form-row label {
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 14px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand-soft);
  box-shadow: 0 0 0 1px rgba(224, 68, 68, 0.12);
}

.result {
  margin: 10px 0 6px;
  padding: 12px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-weight: 600;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-actions .btn {
  min-width: 200px;
  text-align: center;
}

.mini {
  color: #6b7280;
  font-size: 12px;
}

/* Gallery */
.gallery {
  grid-template-columns: repeat(4, 1fr);
}

.gallery img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
}

/* Steps */
.steps {
  display: grid;
  gap: 10px;
  color: #111827;
  padding-left: 20px;
  font-size: 14px;
}

/* Contacts */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: flex-start;
}

.cta-row {
  display: flex;
  gap: 10px;
  margin: 12px 0;
}

.cta-row .btn {
  min-width: 160px;
  text-align: center;
}

.contact-form {
  margin-top: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
}

.file span {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--muted);
}

/* Map placeholder */
.map-wrap iframe {
  width: 100%;
  height: 280px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: #6b7280;
  font-size: 13px;
}

.link {
  color: var(--brand-soft);
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

/* Honeypot input */
.hp {
  display: none;
}

/* Burger button */
.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #111;
}

/* Responsive tweaks */

/* Slightly narrower screens */
@media (max-width: 1080px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .adv {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet / small laptop */
@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(80vw, 360px);
    background: #fff;
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 12px;
    z-index: 20;
  }

  .nav a {
    margin: 0;
    padding: 12px 10px;
    border-radius: 10px;
    border: 1px solid var(--line);
  }

  .nav.open {
    transform: translateX(0);
  }

  body.menu-open {
    overflow: hidden;
  }

  .header-inner {
    gap: 12px;
  }
}

/* Mobile */
@media (max-width: 800px) {
  .container {
    padding: 0 16px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 0;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-cta .btn {
    width: 100%;
  }

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

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

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

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

  .form-row {
    grid-template-columns: 1fr;
  }

  input,
  select,
  textarea {
    font-size: 16px; /* better for mobile keyboards */
  }
}

/* Smallest screens */
@media (max-width: 380px) {
  .gallery {
    grid-template-columns: 1fr;
  }
  .adv-item{
  transition:background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease, color .2s ease;
}

.adv-item strong{
  transition:color .2s ease;
}

.adv-item:hover{
  background:#fff5f5;              /* мягкий красный фон */
  border-color:var(--brand-soft);  /* красная рамка */
  box-shadow:0 10px 24px rgba(224,68,68,0.12);
  transform:translateY(-2px);
}

.adv-item:hover strong{
  color:var(--brand-soft);
}
}
