:root {
  --ink: #172022;
  --muted: #5e6b70;
  --line: #dce4e2;
  --paper: #f7f8f5;
  --white: #fff;
  --green: #00a878;
  --green-dark: #05745b;
  --blue: #1467c8;
  --amber: #f3b23c;
  --shadow: 0 18px 50px rgba(22, 34, 39, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(220, 228, 226, 0.82);
  background: rgba(247, 248, 245, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: white;
  background: linear-gradient(135deg, var(--green), var(--blue));
  border-radius: 8px;
  font-weight: 900;
}
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 12px; margin-top: 2px; }

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav a, .admin-open {
  border: 0;
  background: transparent;
  color: #314044;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.nav a:hover, .admin-open:hover, .nav a.active { background: #eaf0ed; }
.nav-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px; background: var(--ink); }

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #12201f;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 26, 27, 0.88), rgba(11, 26, 27, 0.42), rgba(11, 26, 27, 0.16)),
    linear-gradient(0deg, rgba(11, 26, 27, 0.92), rgba(11, 26, 27, 0.08) 45%);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(780px, calc(100% - 36px));
  margin: 0 clamp(18px, 6vw, 80px) 112px;
  color: white;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 800;
}
.hero h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: 0;
}
.hero p:not(.eyebrow) {
  width: min(680px, 100%);
  margin: 22px 0 0;
  font-size: clamp(17px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.86);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}
.btn.primary {
  color: white;
  background: var(--green);
  box-shadow: 0 12px 30px rgba(0, 168, 120, 0.28);
}
.btn.primary:hover { background: var(--green-dark); }
.btn.secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}
.btn.danger {
  color: white;
  background: #b42318;
}
.hero .btn.secondary { color: white; background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.24); }
.hero-strip {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  color: white;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(12, 24, 25, 0.78);
  backdrop-filter: blur(12px);
}
.hero-strip span { padding: 20px clamp(18px, 4vw, 56px); border-right: 1px solid rgba(255,255,255,.16); font-weight: 700; }

.section {
  padding: 84px clamp(18px, 4vw, 56px);
}
.page-hero {
  padding: 94px clamp(18px, 4vw, 56px) 54px;
  color: white;
  background:
    linear-gradient(90deg, rgba(18, 32, 31, 0.94), rgba(18, 32, 31, 0.74)),
    url("assets/company/page-hero.jpeg") center / cover;
}
.page-hero h1 {
  width: min(900px, 100%);
  margin: 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}
.page-hero p:not(.eyebrow) {
  width: min(700px, 100%);
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
  line-height: 1.55;
}
.quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.feature-link {
  display: grid;
  align-content: space-between;
  min-height: 280px;
  padding: 24px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(22, 34, 39, 0.05);
}
.feature-link span {
  color: var(--green-dark);
  font-weight: 900;
}
.feature-link h2 {
  margin-top: 34px;
  font-size: clamp(28px, 3vw, 40px);
}
.feature-link p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.55;
}
.feature-link:hover {
  border-color: rgba(0, 168, 120, 0.55);
  transform: translateY(-2px);
}
.report-summary {
  display: grid;
  grid-template-columns: 1.35fr 0.82fr 0.82fr;
  gap: 16px;
  background: var(--white);
}
.summary-card,
.matrix article,
.choice-list div,
.check-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(22, 34, 39, 0.05);
}
.summary-card {
  padding: 24px;
}
.summary-card.strong {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}
.summary-card.strong .eyebrow { color: var(--green); }
.summary-card.strong p { color: rgba(255, 255, 255, 0.82); }
.summary-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}
.summary-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.matrix article {
  min-height: 230px;
  padding: 20px;
}
.matrix span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 9px;
  border-radius: 8px;
  color: var(--green-dark);
  background: #dcf5ec;
  font-weight: 900;
  font-size: 12px;
}
.matrix h3,
.choice-list strong {
  display: block;
  margin: 14px 0 8px;
  font-size: 22px;
  line-height: 1.15;
}
.matrix p,
.choice-list p,
.check-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.choose-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(320px, 1.25fr);
  gap: 34px;
  background: var(--white);
}
.choice-list {
  display: grid;
  gap: 10px;
}
.choice-list div {
  padding: 18px;
}
.choice-list strong {
  margin: 0 0 6px;
}
.check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.check-grid div {
  min-height: 150px;
  padding: 18px;
}
.check-grid span {
  color: var(--green-dark);
  font-weight: 900;
}
.docs-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(320px, 1.25fr);
  gap: 34px;
  background: var(--white);
}
.doc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.doc-list li {
  padding: 16px 18px;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: #f2f6f4;
  color: #354549;
  line-height: 1.5;
}
.guide-strip {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(320px, 1fr) auto;
  gap: 24px;
  align-items: center;
  background: var(--ink);
  color: white;
}
.guide-strip p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.55;
}
.guide-strip .btn {
  white-space: nowrap;
}
.product-detail-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1.05fr);
  gap: 34px;
  align-items: center;
  padding: 72px clamp(18px, 4vw, 56px);
  background: var(--white);
}
.detail-copy h1 {
  margin: 14px 0 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}
.detail-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}
.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--green-dark);
  font-weight: 900;
}
.detail-media {
  display: grid;
  place-items: center;
  min-height: 460px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef3f0;
  box-shadow: var(--shadow);
}
.detail-media img {
  width: auto;
  max-width: 88%;
  height: auto;
  max-height: 410px;
  object-fit: contain;
}
.product-detail-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.detail-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.detail-panel p {
  color: var(--muted);
  line-height: 1.6;
}
.detail-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.detail-specs span {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f2f6f4;
  font-weight: 800;
}
.product-gallery-section {
  background: var(--white);
}
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.detail-gallery img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef3f0;
}
.intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.1fr);
  gap: 52px;
  align-items: end;
  background: var(--white);
}
h2 {
  margin: 0;
  font-size: clamp(30px, 4.8vw, 56px);
  line-height: 1.05;
  letter-spacing: 0;
}
.intro p:last-child, .company-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tab {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}
.tab.active { color: white; background: var(--ink); border-color: var(--ink); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.product-card, .service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(22, 34, 39, 0.05);
}
.product-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  color: var(--ink);
  min-height: 190px;
}
.product-card:hover {
  border-color: rgba(0, 168, 120, 0.5);
  transform: translateY(-2px);
}
.product-image {
  display: grid;
  place-items: center;
  min-height: 100%;
  background: #eef3f0;
}
.product-image img {
  width: auto;
  max-width: 86px;
  height: auto;
  max-height: 138px;
  object-fit: contain;
}
.product-body { padding: 14px; }
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  color: var(--green-dark);
  background: #dcf5ec;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}
.product-body h3, .service-card h3, .contact-info h3, .messages h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.15;
}
.product-body p, .service-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.product-body p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  min-height: 66px;
}
.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.specs span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  color: #354549;
  font-size: 12px;
  font-weight: 700;
}
.services { background: var(--white); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.service-card { padding: 22px; min-height: 190px; }
.service-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--blue);
  font-weight: 900;
}
.text-link { color: var(--green-dark); font-weight: 900; }

.company {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(320px, 1.08fr);
  gap: 44px;
  align-items: center;
}
.company-copy p { margin-top: 18px; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 28px;
}
.stats span {
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--muted);
}
.stats strong { display: block; color: var(--ink); font-size: 22px; }
.gallery {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 12px;
}
.gallery img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.gallery img:first-child { grid-row: span 2; min-height: 460px; }

.contact {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(300px, 440px);
  gap: 24px;
  background: #e9efec;
}
.contact-card, .contact-info {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 3vw, 34px);
}
form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
label {
  display: grid;
  gap: 7px;
  color: #334346;
  font-weight: 800;
}
label.full, label.wide { grid-column: 1 / -1; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfb;
  color: var(--ink);
}
textarea { resize: vertical; }
.form-note { grid-column: 1 / -1; margin: 0; color: var(--green-dark); font-weight: 800; }
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-info p { color: var(--muted); line-height: 1.55; }
.contact-info iframe {
  width: 100%;
  min-height: 260px;
  border: 0;
  border-radius: 8px;
  background: #eef3f0;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: white;
  background: var(--ink);
}

.admin-dialog {
  width: min(980px, calc(100% - 24px));
  max-height: 92vh;
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}
.admin-dialog::backdrop { background: rgba(16, 24, 27, 0.58); }
.admin-shell { padding: 24px; background: var(--paper); }
.admin-head, .admin-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}
.login-panel { grid-template-columns: 1fr auto; align-items: end; }
.admin-panel { display: none; }
.admin-panel.is-open { display: block; }
.login-panel.is-hidden { display: none; }
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.admin-products,
.messages { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 18px; }
.admin-product-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(320px, 1fr);
  gap: 16px;
}
.admin-product-list {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: 560px;
  overflow: auto;
}
.admin-product-list button {
  display: grid;
  gap: 4px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 12px;
  cursor: pointer;
}
.admin-product-list button:hover {
  border-color: rgba(0, 168, 120, 0.55);
}
.admin-product-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.product-admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.check-label input {
  width: auto;
}
.upload-zone {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 150px;
  padding: 18px;
  border: 2px dashed #b8c9c4;
  border-radius: 8px;
  background: #f2f6f4;
  text-align: center;
}
.upload-zone.is-dragging {
  border-color: var(--green);
  background: #dcf5ec;
}
.upload-zone span {
  color: var(--muted);
  font-size: 14px;
}
.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.image-preview-grid figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}
.image-preview-grid button {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: rgba(180, 35, 24, 0.92);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.image-preview-grid button:hover {
  background: #8f1f17;
}
.image-preview-grid img {
  width: 100%;
  height: 110px;
  object-fit: contain;
  padding: 10px;
  background: #eef3f0;
}
.image-preview-grid figcaption {
  padding: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.image-preview-grid p {
  margin: 0;
  color: var(--muted);
}
.message-item {
  padding: 14px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.message-item p { margin: 6px 0 0; color: var(--muted); }

@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid, .quick-links, .matrix, .check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro, .company, .contact, .report-summary, .choose-section, .docs-section, .guide-strip, .product-detail-hero, .product-detail-section, .admin-product-layout { grid-template-columns: 1fr; }
  .hero-strip { grid-template-columns: 1fr; position: relative; }
  .hero-strip span { padding: 14px 18px; }
  .hero-content { margin-bottom: 40px; }
  .gallery img:first-child { min-height: 320px; }
}

@media (max-width: 720px) {
  .site-header { min-height: 68px; }
  .brand { min-width: 0; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .section { padding: 58px 18px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .tabs { justify-content: flex-start; }
  .hero { min-height: auto; }
  .hero-content { width: calc(100% - 36px); margin: 120px 18px 34px; }
  .hero h1 { font-size: 42px; }
  .product-grid { grid-template-columns: 1fr; }
  .service-grid, .quick-links, .matrix, .check-grid, .detail-gallery, form, .admin-grid, .product-admin-form, .image-preview-grid, .stats { grid-template-columns: 1fr; }
  .detail-media { min-height: 320px; }
  .detail-media img { max-height: 280px; }
  .product-card { grid-template-columns: 118px minmax(0, 1fr); min-height: 178px; }
  .product-image img { max-width: 88px; max-height: 128px; }
  .product-body { padding: 14px; }
  .product-body h3 { font-size: 20px; }
  .product-body p { min-height: auto; font-size: 15px; -webkit-line-clamp: 3; }
  .pill, .specs span { font-size: 12px; }
  .specs { gap: 4px; margin-top: 10px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img, .gallery img:first-child { min-height: 240px; }
  .login-panel, footer { flex-direction: column; grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-card { grid-template-columns: 108px minmax(0, 1fr); min-height: 170px; }
  .product-image img { max-width: 82px; max-height: 122px; }
  .product-body { padding: 16px; }
  .product-body h3 { font-size: 20px; }
  .product-body p { min-height: auto; font-size: 16px; }
  .pill, .specs span { font-size: 12px; }
}
