:root {
  --ink: #18211f;
  --muted: #5e6965;
  --line: #dce3df;
  --soft: #f5f7f3;
  --paper: #fffdf7;
  --green: #1f6b4f;
  --green-dark: #123f31;
  --clay: #b65f2a;
  --blue: #276b93;
  --yellow: #f0b33a;
  --shadow: 0 18px 45px rgba(20, 32, 28, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--green);
  border-radius: 8px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.menu a:hover {
  color: var(--green);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.lang-switch a {
  min-width: 38px;
  padding: 8px 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.lang-switch a.active {
  color: white;
  background: var(--green);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.social-links.compact {
  flex-wrap: nowrap;
  margin: 0;
}

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.social::before {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: white;
  font-size: 10px;
  line-height: 1;
}

.social.whatsapp {
  color: white;
  border-color: #25d366;
  background: #20b85a;
}

.social.whatsapp::before {
  content: "W";
}

.social.viber {
  color: white;
  border-color: #7360a8;
  background: #665cac;
}

.social.viber::before {
  content: "V";
}

.phone {
  font-weight: 800;
  color: var(--green-dark);
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}

.btn-primary {
  color: white;
  background: var(--green);
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-secondary {
  color: var(--green-dark);
  background: white;
  border-color: var(--line);
}

.hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: white;
  background-image: linear-gradient(90deg, rgba(15, 29, 25, 0.88) 0%, rgba(15, 29, 25, 0.62) 42%, rgba(15, 29, 25, 0.22) 100%), url("hero-trench.png");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(0deg, var(--paper), rgba(255, 253, 247, 0));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  padding: 84px 0 126px;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #fbe7b6;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  margin-top: 14px;
  font-size: clamp(38px, 7vw, 72px);
  max-width: 760px;
}

.lead {
  margin: 22px 0 0;
  font-size: 19px;
  max-width: 660px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
  max-width: 680px;
}

.stat {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.stat strong {
  display: block;
  font-size: 24px;
}

.stat span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: var(--soft);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.section-head p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 1px 0 rgba(20, 32, 28, 0.02);
}

.service-card {
  min-height: 250px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card h3 {
  font-size: 22px;
}

.service-card p {
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef4ef;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.price-table th,
.price-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.price-table th {
  color: var(--green-dark);
  background: #eef4ef;
}

.price-table tr:last-child td {
  border-bottom: 0;
}

.case {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 22px;
}

.case h3 {
  font-size: 20px;
}

.case p {
  margin: 10px 0 0;
  color: var(--muted);
}

.case-price {
  min-width: 120px;
  color: var(--clay);
  font-weight: 900;
  font-size: 22px;
  text-align: right;
}

.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding: 24px 24px 24px 72px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 24px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--yellow);
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.calculator {
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.field[hidden] {
  display: none;
}

.field label {
  color: var(--green-dark);
  font-weight: 800;
  font-size: 13px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: var(--paper);
}

.estimate {
  margin: 16px 0;
  padding: 16px;
  border-radius: 8px;
  background: #eef4ef;
}

.estimate strong {
  display: block;
  font-size: 24px;
  color: var(--green-dark);
}

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.faq summary {
  cursor: pointer;
  font-weight: 900;
}

.faq p {
  margin: 12px 0 0;
  color: var(--muted);
}

.cta-band {
  padding: 48px 0;
  color: white;
  background: var(--green-dark);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.cta-inner p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.footer {
  padding: 32px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.sticky-contact {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  background: white;
}

.sticky-contact a {
  min-width: 0;
  min-height: 48px;
  display: grid;
  place-items: center;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  border-right: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.sticky-contact a:first-child {
  color: white;
  background: var(--green-dark);
}

.sticky-contact a.whatsapp {
  color: white;
  background: #20b85a;
}

.sticky-contact a.viber {
  color: white;
  background: #665cac;
}

.mini-map {
  min-height: 300px;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(31, 107, 79, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(31, 107, 79, 0.1) 1px, transparent 1px),
    #f2efe4;
  background-size: 28px 28px;
}

.media-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.media-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.media-caption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 13px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.trust-grid article {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid strong {
  color: var(--green-dark);
  font-size: 17px;
}

.trust-grid span {
  margin-top: 10px;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gallery-item {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.gallery-item img,
.case-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
}

.case-card {
  overflow: hidden;
}

.case-card > div,
.review-card,
.contact-panel {
  padding: 20px;
}

.case-card p,
.review-card p,
.contact-panel p {
  color: var(--muted);
}

.case-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.case-meta strong {
  color: var(--clay);
  font-size: 19px;
}

.review-card {
  min-height: 230px;
}

.review-card strong,
.review-card span {
  display: block;
}

.review-card span {
  color: var(--muted);
}

.stars {
  color: var(--yellow);
  font-size: 18px;
  letter-spacing: 0;
}

.contact-panel h3 {
  font-size: 24px;
}

.map-point {
  display: inline-flex;
  margin: 8px;
  padding: 9px 11px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(20, 32, 28, 0.1);
  font-weight: 800;
}

@media (max-width: 860px) {
  .menu {
    display: none;
  }

  .hero {
    min-height: 610px;
    background-position: 58% center;
  }

  .hero-stats,
  .grid-3,
  .grid-2,
  .split,
  .cta-inner,
  .trust-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 12px;
  }

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

  .case-price {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1160px);
  }

  .nav {
    min-height: 62px;
    gap: 10px;
  }

  .nav-actions {
    min-width: 0;
    gap: 6px;
  }

  .brand span:not(.brand-mark) {
    display: none;
  }

  .nav-actions > .btn {
    display: none;
  }

  .btn {
    padding-inline: 12px;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .phone {
    display: none;
  }

  .social-links.compact {
    display: none;
  }

  .sticky-contact {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body {
    padding-bottom: 52px;
  }

  .hero-content {
    padding-top: 64px;
  }

  .section {
    padding: 52px 0;
  }

  .price-table,
  .price-table tbody,
  .price-table tr,
  .price-table td,
  .price-table th {
    display: block;
  }

  .price-table thead {
    display: none;
  }

  .price-table td {
    border-bottom: 0;
  }

  .price-table tr {
    border-bottom: 1px solid var(--line);
  }
}
