:root {
  --bg: #0a0a0a;
  --bg-2: #121212;
  --surface: #1a1a1a;
  --surface-2: #2b2b2b;
  --text: #f2f2f2;
  --muted: #9c9c9c;
  --accent: #ffffff;
  --accent-2: #8a8a8a;
  --accent-grad: linear-gradient(135deg, #ffffff, #737373);
  --danger: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 45px rgba(0, 0, 0, .6);
  --container: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 10, .82);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.logo { display: flex; align-items: center; gap: 12px; }

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-grad);
  color: #0a0a0a;
  font-weight: 800;
  font-size: 22px;
  box-shadow: 0 8px 20px rgba(255, 255, 255, .18);
  flex: none;
}

.logo-img {
  height: 42px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  flex: none;
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  font-size: 19px;
  line-height: 1.1;
}

.logo-text small {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; gap: 26px; flex-wrap: wrap; }
.nav a { color: var(--muted); font-weight: 500; transition: color .2s; }
.nav a:hover { color: var(--text); }

.phone-btn {
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .55);
  color: var(--text);
  transition: .2s;
  white-space: nowrap;
}
.phone-btn:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:disabled { opacity: .55; cursor: default; }

.btn-primary { background: var(--accent-grad); color: #0a0a0a; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 255, 255, .22); }

.btn-ghost { background: transparent; color: var(--text); border: 1px solid rgba(255, 255, 255, .25); }
.btn-ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, .06); }

.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 80px;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(255, 255, 255, .08), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(255, 255, 255, .05), transparent 60%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 50px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .45);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 22px;
}

.hero h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.hero p { color: var(--muted); font-size: 17px; margin-top: 20px; max-width: 540px; }

.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero-stats {
  list-style: none;
  display: flex;
  gap: 34px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.hero-stats li strong { display: block; font-size: 26px; font-weight: 800; color: var(--text); }
.hero-stats li span { color: var(--muted); font-size: 14px; }

.hero-card {
  position: relative;
  border-radius: 26px;
  padding: 2px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .12));
  box-shadow: var(--shadow);
}
.hero-card-content {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border-radius: 24px;
  padding: 46px 34px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-card-glow {
  position: absolute;
  inset: -40px -20px auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}
.hc-label { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.hero-card h3 { font-size: 26px; font-weight: 800; }
.hero-card p { font-size: 30px; font-weight: 800; color: var(--text); margin-top: 10px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-2); }

.section-head { text-align: center; margin-bottom: 46px; }
.section-head.left { text-align: left; }
.section-head h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -.01em; }
.section-head p { color: var(--muted); margin-top: 10px; }
.section-head .badge { margin-bottom: 14px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.grid-services { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-suppliers { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* Suppliers */
.supplier-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.supplier-card:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, .55); box-shadow: var(--shadow); }

.supplier-logo {
  height: 150px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f5f5f5, #d9d9d9);
  overflow: hidden;
  padding: 24px;
}
.supplier-logo img {
  max-width: 100%;
  max-height: 90px;
  object-fit: contain;
  filter: grayscale(40%);
  transition: filter .2s;
}
.supplier-card:hover .supplier-logo img { filter: grayscale(0%); }
.supplier-fallback { font-size: 46px; font-weight: 800; color: #0a0a0a; }

.supplier-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.supplier-body h3 { font-size: 18px; font-weight: 700; }
.supplier-body p { color: var(--muted); font-size: 14px; flex: 1; }

.supplier-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  padding: 8px 16px;
  transition: .2s;
}
.supplier-link:hover { background: rgba(255, 255, 255, .1); }

/* Services */
.service-card { background: var(--surface); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 28px 24px; transition: .2s; }
.service-card:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, .55); }
.service-icon { font-size: 34px; margin-bottom: 14px; }
.service-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 14px; }

/* About */
.about-inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 46px; align-items: center; }
.about-inner p { color: var(--muted); margin-top: 6px; }

.check-list { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.about-card {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: var(--shadow);
}
.advantage { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.advantage:last-child { border-bottom: none; }
.advantage strong { font-size: 30px; font-weight: 800; color: var(--text); min-width: 110px; }
.advantage span { color: var(--muted); }

/* Info block */
.info-text { color: var(--muted); max-width: 780px; margin: 0 auto; text-align: center; font-size: 17px; }
.info-list { max-width: 620px; margin: 24px auto 0; }
.info-actions { text-align: center; margin-top: 28px; }

/* Contacts */
.contacts-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 42px; }
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
.contact-card, .contact-form {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-card h4, .contact-form h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--text); margin: 16px 0 4px; }
.contact-card h4:first-child { margin-top: 0; }
.contact-card p { color: var(--muted); }
.contact-card a:hover { color: var(--text); }

.contact-form { display: flex; flex-direction: column; gap: 12px; }
.contact-form h4 { margin-bottom: 6px; }

input, textarea, select {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: #0e0e0e;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .14);
}
textarea { resize: vertical; }

.form-note { font-size: 14px; color: var(--muted); min-height: 20px; }
.form-note.success { color: var(--text); }
.form-note.error { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { background: #060606; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 20px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding: 56px 0 40px;
}
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col p { color: var(--muted); font-size: 14px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--text); margin-bottom: 8px; }
.footer-col > a, #footerNav a { color: var(--muted); font-size: 14px; transition: color .2s; }
.footer-col > a:hover, #footerNav a:hover { color: var(--text); }
#footerNav { display: flex; flex-direction: column; gap: 8px; }

.admin-col { align-items: flex-start; }
.admin-hint { font-size: 13px; margin-bottom: 4px; }
.admin-col .btn { width: auto; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; }
.footer-bottom span { color: var(--muted); font-size: 13px; }

/* ---------- Modal (login) ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }

.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .78); backdrop-filter: blur(4px); }

.modal-box {
  position: relative;
  width: min(100%, 420px);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  animation: pop .22s ease;
}

@keyframes pop { from { transform: translateY(16px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }

.modal-box h3 { font-size: 22px; font-weight: 800; margin-bottom: 20px; }

.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  width: 34px; height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: .2s;
}
.modal-close:hover { background: rgba(255, 255, 255, .14); }

.modal-box form { display: flex; flex-direction: column; gap: 14px; }
.modal-box label { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 600; color: var(--muted); }
.modal-box label input { color: var(--text); font-weight: 400; }

/* ---------- Admin constructor ---------- */
.admin-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  padding: 24px;
  background: rgba(4, 4, 4, .82);
  backdrop-filter: blur(6px);
}
.admin-overlay.open { display: flex; }

.admin-shell {
  margin: auto;
  width: min(100%, 1120px);
  height: min(100%, 780px);
  display: grid;
  grid-template-columns: 320px 1fr;
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: pop .22s ease;
}

.admin-side {
  background: #0d0d0d;
  border-right: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  flex-direction: column;
  padding: 18px;
  gap: 14px;
  min-height: 0;
}
.admin-side-head { display: flex; align-items: center; gap: 12px; }
.admin-side-head strong { display: block; font-size: 16px; }
.admin-side-sub { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.admin-side-scroll { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; min-height: 0; }

.side-item {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 8px 8px 8px 12px;
}
.side-item:hover { background: rgba(255, 255, 255, .05); }
.side-item.active { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); }
.side-item.hidden-item { opacity: .45; }
.side-item.dragging { opacity: .35; }
.side-item.drag-over { border-color: var(--text); background: rgba(255, 255, 255, .08); }
.side-handle { display: grid; place-items: center; color: var(--muted); font-size: 12px; cursor: grab; letter-spacing: -2px; }
.side-handle:active { cursor: grabbing; }
.side-item-main { flex: 1; min-width: 0; cursor: pointer; display: flex; flex-direction: column; }
.side-type { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.side-label { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-ctrls { display: flex; gap: 2px; }
.side-btn {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}
.side-btn:hover { background: rgba(255, 255, 255, .14); color: var(--text); }
.side-btn.danger:hover { color: #fff; background: rgba(255, 255, 255, .28); }
.side-divider { height: 1px; background: rgba(255, 255, 255, .1); margin: 8px 0; }

.admin-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.admin-top h3 { margin: 0; font-size: 19px; }
.admin-top-left { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.server-status { font-size: 11.5px; font-weight: 600; cursor: pointer; }
.server-status:hover { text-decoration: underline; }
.server-status.ok { color: #8ef5b0; }
.server-status.warn { color: #f5d98e; }
.admin-top-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-close {
  width: 34px; height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.admin-close:hover { background: rgba(255, 255, 255, .14); }

#adminNote { margin: 12px 22px 0; }

.admin-form { flex: 1; overflow-y: auto; padding: 18px 22px 32px; display: flex; flex-direction: column; gap: 14px; min-height: 0; }

.af-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.af-field input, .af-field textarea { color: var(--text); font-weight: 400; }

.af-block { border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: rgba(255, 255, 255, .02); }
.af-block-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text); font-weight: 700; }
.af-list { display: flex; flex-direction: column; gap: 10px; }
.af-list-row { display: flex; gap: 8px; align-items: center; }
.af-card { border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: #111; }
.af-card-head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 700; }
.af-add {
  align-self: flex-start;
  border: 1px dashed rgba(255, 255, 255, .3);
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  padding: 7px 12px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}
.af-add:hover { border-color: var(--text); background: rgba(255, 255, 255, .06); }
.af-remove {
  border: none;
  background: rgba(255, 255, 255, .1);
  color: var(--text);
  border-radius: 8px;
  height: 30px;
  padding: 0 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  line-height: 1;
}
.af-remove:hover { background: rgba(255, 255, 255, .22); }
.af-hint { font-size: 12px; color: var(--muted); line-height: 1.5; }
.af-hint.ok-text { color: #8ef5b0; }
.af-hint.warn-text { color: #f5d98e; }
.af-hint.err-text { color: #ff9d9d; }

.af-upload { display: flex; flex-direction: column; gap: 6px; margin-top: -2px; }
.af-upload input[type="file"] {
  font-size: 12px;
  padding: 8px 10px;
  color: var(--muted);
  background: #0e0e0e;
}
.af-upload input[type="file"]::file-selector-button {
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  margin-right: 10px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.af-upload input[type="file"]::file-selector-button:hover { background: rgba(255, 255, 255, .1); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner, .about-inner, .contacts-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 460px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { max-height: 40%; }
}

@media (max-width: 620px) {
  .header-inner { flex-wrap: wrap; }
  .contacts-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding: 60px 0; }
  .section { padding: 60px 0; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .admin-overlay { padding: 0; }
  .admin-shell { border-radius: 0; height: 100%; }
  .admin-top { flex-wrap: wrap; }
  .admin-top-actions { flex-wrap: wrap; }
}
