:root {
  --green: #43a047;
  --green-dark: #16821f;
  --green-deep: #0f5f17;
  --green-soft: #eaf6e9;
  --text: #111827;
  --muted: #4b5563;
  --line: rgba(17, 24, 39, 0.12);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.55;
}
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.header-inner {
  max-width: 1480px;
  margin: auto;
  min-height: 82px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.logo { text-decoration: none; line-height: 0.9; min-width: 125px; }
.logo-main { display: block; font-size: 47px; font-weight: 900; letter-spacing: -3px; color: var(--green); }
.logo-sub { display: block; font-size: 21px; font-weight: 800; letter-spacing: 9px; color: #4b4b4b; }
.tagline { font-size: 14px; line-height: 1.4; min-width: 205px; }
.menu-toggle { display: none; margin-left: auto; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 12px; font-size: 22px; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 24px; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.main-nav a { text-decoration: none; white-space: nowrap; }
.main-nav a:hover, .main-nav .active { color: var(--green-dark); }
.main-nav .active { border-bottom: 3px solid var(--green); padding-bottom: 12px; }
.group-btn { background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff !important; padding: 13px 18px; border-radius: 8px; box-shadow: 0 10px 22px rgba(22, 130, 31, 0.22); }

.hero {
  position: relative;
  min-height: calc(100svh - 82px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero-tech.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1.4s ease, transform 8s ease;
  z-index: -3;
}
.hero-bg-a { opacity: 1; }
.hero-bg.is-active { opacity: 1; transform: scale(1.06); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 25%, rgba(255,255,255,0.72), transparent 34%),
    linear-gradient(90deg, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.62) 38%, rgba(255,255,255,0.22) 65%, rgba(255,255,255,0.04) 100%);
  z-index: -1;
}
.hero-inner {
  width: min(1500px, 100%);
  margin: auto;
  padding: 72px 42px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 40px;
  align-items: center;
}
.glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px) saturate(135%);
}
.hero-text {
  width: 100%;
  max-width: none;
  padding: clamp(24px, 4vw, 46px);
  border-radius: var(--radius);
}
.eyebrow {
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 900;
  margin: 0 0 12px;
}
.hero h1 {
  font-size: clamp(42px, 5.4vw, 84px);
  line-height: 0.98;
  margin: 0 0 24px;
  letter-spacing: -3px;
}
.hero h1 span { color: var(--green); }
.hero p { font-size: clamp(16px, 1.25vw, 19px); max-width: 760px; margin: 0 0 14px; }
.lead { font-size: clamp(18px, 1.5vw, 23px) !important; color: #1f2937; }
.strong-line { font-weight: 900; color: var(--green-deep); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 22px; border-radius: 9px; font-weight: 900; text-decoration: none; text-transform: uppercase; font-size: 13px; border: 1px solid var(--green); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(22, 130, 31, 0.16); }
.btn-primary { background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff; box-shadow: 0 12px 24px rgba(22, 130, 31, 0.2); }
.btn-secondary { background: rgba(255, 255, 255, 0.72); color: var(--green-dark); }

.trust-strip {
  max-width: 1440px;
  margin: -38px auto 0;
  position: relative;
  z-index: 5;
  padding: 0 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.trust-item {
  background: rgba(255,255,255,0.84);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 18px 42px rgba(0,0,0,.08);
}
.trust-item strong { display: block; color: var(--green-dark); font-size: 20px; }
.trust-item span { color: var(--muted); font-size: 14px; }

.section { padding: 76px 30px; }
.section-head { max-width: 860px; margin: 0 auto 34px; text-align: center; }
.section-head h2, .details-wrap h2, .contact-grid h2 { font-size: clamp(32px, 4vw, 54px); line-height: 1.05; margin: 0 0 16px; letter-spacing: -1.4px; }
.section-head p, .details-wrap p, .contact-grid p { color: var(--muted); }
.competence-strip { background: #fff; text-align: center; }
.competence-row { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: repeat(11, 1fr); gap: 10px; }
.skill { min-height: 126px; padding: 18px 10px; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: linear-gradient(180deg, #fff, #fbfdfb); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.skill:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(0,0,0,.08); border-color: rgba(22,130,31,.35); }
.skill span { font-size: 34px; line-height: 1; color: var(--green-dark); }
.skill strong { font-size: 13px; }
.skill small { color: var(--muted); font-size: 12px; }

.cards-section { padding: 0 30px 70px; background: linear-gradient(180deg, #fff, #f7fbf6); }
.cards { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: rgba(255,255,255,0.92); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; min-height: 260px; box-shadow: 0 16px 45px rgba(0,0,0,.06); }
.card-icon { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green-dark); font-size: 30px; font-weight: 900; margin-bottom: 18px; }
.card h3 { margin: 0 0 15px; color: var(--green-dark); font-size: 23px; }
.card ul, .card ol { margin: 0; padding-left: 20px; }
.card li { margin: 8px 0; }
.card p { margin: 0 0 20px; color: var(--muted); }
.cta-card { background: linear-gradient(135deg, #fff, var(--green-soft)); }

.details-section { background: #f7fbf6; border-top: 1px solid var(--line); }
.details-wrap { max-width: 1180px; margin: auto; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.accordion-list { display: grid; gap: 12px; }
.accordion-list details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; box-shadow: 0 8px 25px rgba(0,0,0,.04); }
.accordion-list summary { cursor: pointer; font-weight: 900; padding: 20px 0; color: var(--green-dark); }
.accordion-list p { margin: 0 0 20px; }

.contact-section { background: #fff; }
.contact-grid { max-width: 1120px; margin: auto; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 42px; align-items: start; }
.small { font-size: 14px; color: var(--muted); }
.contact-form { display: grid; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.contact-form label { display: grid; gap: 6px; font-weight: 900; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; font: inherit; border: 1px solid var(--line); border-radius: 10px; padding: 13px 12px; background: #fff; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 3px solid rgba(67,160,71,.18); border-color: var(--green); }
.hidden-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.captcha-row input { max-width: 160px; }
.form-message { padding: 13px 15px; border-radius: 10px; font-weight: 900; }
.form-message.success { background: #eaf7ee; color: #195f2d; border: 1px solid rgba(25, 95, 45, 0.18); }
.form-message.error { background: #fff0ed; color: #8a2316; border: 1px solid rgba(138, 35, 22, 0.2); }

.site-footer { background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff; padding: 24px 32px 18px; }
.footer-inner { max-width: 1440px; margin: auto; display: flex; align-items: center; gap: 30px; }
.footer-logo { line-height: 0.9; min-width: 120px; }
.footer-logo strong { display: block; font-size: 39px; }
.footer-logo span { font-weight: 800; letter-spacing: 8px; }
.site-footer p { margin: 0; color: rgba(255,255,255,.92); }
.site-footer nav { margin-left: auto; display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.site-footer a { text-decoration: none; color: #fff; }
.copyright { text-align: center; margin-top: 16px; font-size: 13px; color: rgba(255,255,255,.9); }

.admin-login { max-width: 560px; margin: 40px auto; }
.admin-list { display: grid; gap: 22px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 26px; }
.admin-card-head { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; }
.admin-card-head h2 { font-size: 26px; margin: 0; }
.admin-card-head span { color: var(--muted); font-weight: 800; }
.admin-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.admin-meta p { margin: 0; color: var(--muted); }
.admin-message { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.admin-message p { white-space: normal; color: var(--muted); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero-bg, .btn, .skill { transition: none; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1180px) {
  .header-inner { flex-wrap: wrap; padding: 14px 22px; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 10px; }
  .hero-inner { grid-template-columns: 1fr; padding: 54px 24px; }
  .hero-overlay { background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.62)); }
  .trust-strip { grid-template-columns: repeat(2, 1fr); margin-top: 18px; }
  .competence-row { grid-template-columns: repeat(4, 1fr); }
  .cards, .details-wrap, .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .site-footer nav { margin-left: 0; }
}

@media (max-width: 720px) {
  .header-inner { align-items: center; }
  .tagline { display: none; }
  .menu-toggle { display: block; }
  .main-nav { display: none; order: 4; flex-direction: column; align-items: stretch; gap: 10px; overflow: visible; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); padding: 14px 0 4px; }
  .main-nav.open { display: flex; }
  .main-nav .active { border-bottom: 0; padding-bottom: 0; }
  .group-btn { text-align: center; }
  .hero { min-height: auto; }
  .hero-bg { background-position: 60% center; }
  .hero-inner { padding: 32px 14px; }
  .glass-panel { background: rgba(255,255,255,.74); backdrop-filter: blur(10px); }
  .hero h1 { font-size: 38px; letter-spacing: -1.5px; }
  .hero p { font-size: 15px; }
  .hero-actions { gap: 10px; }
  .btn { width: 100%; }
  .trust-strip { grid-template-columns: 1fr; padding: 0 14px; }
  .section { padding: 56px 18px; }
  .competence-row { grid-template-columns: repeat(2, 1fr); }
  .cards-section { padding: 0 18px 56px; }
  .cards { grid-template-columns: 1fr; }
  .card { padding: 24px 20px; }
  .contact-form { padding: 22px 18px; }
  .admin-meta { grid-template-columns: 1fr; }
}
