:root {
  --green: #128347;
  --green-dark: #0f7040;
  --ink: #07142e;
  --muted: #5f6b7c;
  --line: #e8edf2;
  --soft: #f8faf9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
}

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

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  width: min(1180px, calc(100% - 48px));
  height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0;
}

.logo span { color: var(--green); }

.nav {
  display: flex;
  gap: 42px;
  align-items: center;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}

.nav a.active,
.nav a:hover,
.footer strong { color: var(--green); }

.phone { white-space: nowrap; }

.hero {
  min-height: 620px;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 700px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.18;
  margin-bottom: 34px;
  font-weight: 900;
}

h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.12;
  margin-bottom: 32px;
  font-weight: 900;
}

h3 {
  font-size: 26px;
  line-height: 1.18;
  margin-bottom: 16px;
  font-weight: 900;
}

p {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.hero p {
  color: rgba(255,255,255,.86);
  max-width: 660px;
  margin-bottom: 54px;
}

.hero-image {
  width: min(780px, 56vw);
  max-height: 520px;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.12));
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 250px;
  min-height: 64px;
  padding: 18px 34px;
  border-radius: 8px;
  border: 2px solid var(--green);
  background: var(--green);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 22px 34px rgba(18,131,71,.18);
}

.button-light {
  background: #fff;
  border-color: #fff;
  color: #111;
}

.button.small {
  min-width: 128px;
  min-height: 54px;
  padding: 12px 22px;
  font-size: 16px;
}

.section { padding: 118px 0; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}

.two-col p { max-width: 660px; margin-bottom: 60px; }

.person {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 58px;
}

.product-card img {
  width: 100%;
  height: 310px;
  object-fit: contain;
  margin-bottom: 34px;
}

.product-card p {
  font-size: 18px;
  margin-bottom: 34px;
}

.cta {
  min-height: 250px;
  margin-bottom: 90px;
  padding: 62px 92px;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: center;
  gap: 44px;
  border-radius: 8px;
  box-shadow: 0 16px 70px rgba(7,20,46,.08);
}

.cta h2 { margin-bottom: 18px; }
.cta p { max-width: 520px; margin-bottom: 0; }

.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.lead-form input,
.lead-form textarea,
.admin-shell input,
.admin-shell textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px 16px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.lead-form textarea {
  min-height: 64px;
  resize: vertical;
}

.lead-form textarea,
.lead-form .button {
  grid-column: 1 / -1;
}

.product-layout .lead-form {
  grid-template-columns: 1fr;
  max-width: 520px;
}

.thanks {
  min-height: 55vh;
  padding: 120px 0;
}

.footer {
  min-height: 260px;
  padding: 48px 0 80px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 60px;
  color: var(--muted);
}

.footer-links {
  display: grid;
  gap: 18px;
  font-weight: 800;
  color: var(--ink);
}

.catalog-title { padding: 100px 0 56px; }

.catalog-title,
.product-layout h1 {
  font-size: clamp(40px, 4vw, 56px);
}

.catalog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.catalog-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 42px;
  min-height: 300px;
  padding: 52px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.catalog-item img {
  width: 100%;
  height: 210px;
  object-fit: contain;
}

.catalog-item p { font-size: 18px; }
.outline { background: #fff; color: var(--green); box-shadow: none; }

.product-hero {
  padding: 90px 0 130px;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}

.gallery {
  min-height: 510px;
  display: grid;
  place-items: center;
  position: relative;
}

.gallery img {
  width: 100%;
  max-height: 450px;
  object-fit: contain;
}

.dots {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 30px;
}

.dots span {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #edf0f4;
}

.dots span:first-child {
  width: 38px;
  background: var(--green);
}

.specs {
  display: grid;
  gap: 20px;
  padding: 0;
  margin: 34px 0 56px;
  list-style: none;
  font-size: 20px;
}

.specs li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 16px;
  align-items: start;
}

.specs li::before {
  content: "✓";
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
}

.related { padding-bottom: 120px; }

.related-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}

.related-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 42px;
  align-items: center;
}

.related-card img {
  width: 100%;
  height: 240px;
  object-fit: contain;
}

.about-grid {
  padding: 100px 0 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px 140px;
  align-items: center;
}

.about-photo {
  width: 100%;
  aspect-ratio: 1.5 / 1;
  object-fit: cover;
  border-radius: 2px;
}

.legal-list {
  display: grid;
  gap: 22px;
  color: var(--muted);
  font-size: 20px;
}

@media (max-width: 900px) {
  .site-header { height: auto; padding: 24px 0; align-items: flex-start; gap: 24px; }
  .nav { gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
  .hero { min-height: auto; padding: 70px 0; }
  .hero-grid, .two-col, .product-layout, .about-grid { grid-template-columns: 1fr; }
  .hero-image { width: 100%; }
  .product-grid, .catalog-grid, .related-list, .footer { grid-template-columns: 1fr; }
  .catalog-item, .related-card { grid-template-columns: 1fr; padding: 36px 0; }
  .catalog-grid { border-left: 0; }
  .catalog-item { border-right: 0; }
  .cta { grid-template-columns: 1fr; padding: 42px 28px; }
  .section { padding: 78px 0; }
}

@media (max-width: 620px) {
  .wrap, .site-header { width: min(100% - 28px, 1180px); }
  .logo { font-size: 21px; }
  .nav { font-size: 14px; justify-content: flex-start; }
  h1 { font-size: 38px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
  p { font-size: 17px; }
  .button { width: 100%; min-width: 0; }
  .lead-form { grid-template-columns: 1fr; }
}

.admin-body {
  background: #f5f7f8;
}

.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 80px;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.admin-top > div {
  display: flex;
  gap: 12px;
}

.admin-login {
  width: min(440px, calc(100% - 32px));
  margin: 12vh auto 0;
  padding: 34px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 70px rgba(7,20,46,.12);
  display: grid;
  gap: 16px;
}

.admin-login h1 {
  font-size: 36px;
  margin-bottom: 8px;
}

.admin-login input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  font: inherit;
}

.admin-panel {
  margin: 0 0 24px;
  padding: 28px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(7,20,46,.06);
  display: grid;
  gap: 16px;
}

.admin-panel h2 {
  font-size: 28px;
  margin-bottom: 6px;
}

.admin-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

.admin-shell textarea {
  min-height: 100px;
  resize: vertical;
}

.admin-panel .check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-panel .check input {
  width: auto;
}

.admin-save {
  position: sticky;
  bottom: 20px;
  z-index: 3;
  margin: 10px 0 34px;
}

.admin-success,
.admin-error {
  color: var(--green);
  font-weight: 800;
}

.admin-error {
  color: #b42318;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  overflow: auto;
  font-size: 15px;
}

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

code {
  display: inline-block;
  padding: 6px 8px;
  border-radius: 6px;
  background: #edf2f7;
}
