:root {
  --bg: #f3f5f7;
  --paper: #ffffff;
  --ink: #0f172a;
  --muted: #5c6570;
  --line: #d7dde3;
  --line-soft: #e8ecf0;
  --accent: #1aa896;
  --accent-deep: #0f766e;
  --accent-hover: #0d5e58;
  --accent-soft: #e6f7f4;
  --sidebar: #0c1518;
  --sidebar-2: #122024;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --radius: 16px;
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-deep); }
.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-soft);
}
.header-bar {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand img { width: 36px; height: 36px; }
.brand strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.brand span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 11px;
  border-radius: 999px;
  transition: background .15s, color .15s;
}
.nav a:hover,
.nav a.is-active {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.header-cta {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 8px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  font-weight: 800;
  font-size: 13px;
  border-radius: 999px;
  padding: 11px 18px;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid {
  background: var(--accent-deep);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.22);
}
.btn-solid:hover { background: var(--accent-hover); }
.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(26, 168, 150, 0.28);
}
.btn-accent:hover { background: var(--accent-deep); }
.btn-line {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-line:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}
.btn-lg { padding: 14px 22px; font-size: 14px; }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 8px 10px;
  font-weight: 700;
}
.btn-ghost:hover { color: var(--ink); transform: none; }

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 18px;
  cursor: pointer;
  margin-left: auto;
}

/* Hero */
.hero {
  padding: 28px 0 0;
}
.hero-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 520px;
  display: grid;
  align-items: end;
  box-shadow: var(--shadow);
}
.hero-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(11, 28, 34, 0.94) 0%, rgba(18, 52, 58, 0.78) 46%, rgba(15, 118, 110, 0.22) 100%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 56px 48px;
  max-width: 640px;
  color: #fff;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7dd3c7;
  margin-bottom: 16px;
}
.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.hero-copy p {
  margin: 0 0 28px;
  font-size: 17px;
  color: #c5d0d4;
  max-width: 520px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .btn-line {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.28);
  color: #fff;
}
.hero-actions .btn-line:hover {
  background: rgba(255,255,255,0.16);
  color: #fff;
}

/* Page hero compact */
.page-hero {
  padding: 28px 0 0;
}
.page-hero .hero-frame {
  min-height: 280px;
  align-items: end;
}
.page-hero .hero-copy {
  padding: 40px 40px;
  max-width: 720px;
}
.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
}

/* Sections */
.section { padding: 72px 0; }
.section-head { margin-bottom: 28px; max-width: 640px; }
.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.03em;
}
.section-head p { margin: 0; color: var(--muted); }

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

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
a.card:hover {
  transform: translateY(-4px);
  border-color: #9fd9d0;
  box-shadow: var(--shadow);
}
.card-img {
  height: 148px;
  overflow: hidden;
  background: var(--accent-soft);
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
a.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.card-body p { margin: 0; color: var(--muted); font-size: 14px; }
.price {
  margin-top: auto;
  padding-top: 12px;
  font-weight: 800;
  font-size: 14px;
  color: var(--accent-deep);
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.panel h3 { margin: 0 0 8px; font-size: 17px; }
.panel p { margin: 0 0 10px; color: var(--muted); }
.panel p:last-child { margin-bottom: 0; }

.pill-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: -36px;
  position: relative;
  z-index: 2;
}
.pill-row .panel {
  box-shadow: var(--shadow);
}
.pill-row .tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.split-text { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.split-text .eyebrow { color: var(--accent-deep); }
.split-text h2 { margin: 0 0 12px; font-size: 28px; letter-spacing: -0.03em; }
.split-text p { margin: 0 0 20px; color: var(--muted); }
.split-media { min-height: 320px; background: var(--sidebar-2); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }

.cta {
  border-radius: 28px;
  padding: 40px;
  background: linear-gradient(135deg, #0c1518 0%, #122024 42%, #0f766e 100%);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.cta h2 { margin: 0 0 8px; font-size: 26px; }
.cta p { margin: 0; color: #b8c5c9; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cta .btn-line {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.28);
  color: #fff;
}
.cta .btn-solid,
.cta .btn-accent {
  background: var(--accent);
  box-shadow: none;
}
.cta .btn-solid:hover,
.cta .btn-accent:hover {
  background: #149987;
}

.adv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.adv li {
  background: var(--accent-soft);
  border: 1px solid #c5ebe4;
  border-radius: 16px;
  padding: 16px 18px;
  font-size: 14px;
  font-weight: 650;
}

.tech-table { width: 100%; border-collapse: collapse; }
.tech-table th, .tech-table td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.tech-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
code {
  background: var(--accent-soft);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 13px;
}

.service-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 20px;
}
.service-side .price { font-size: 20px; margin: 8px 0 12px; padding: 0; }
.gallery img {
  border-radius: 16px;
  height: 200px;
  width: 100%;
  object-fit: cover;
  margin-top: 14px;
}

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-item { margin: 0 0 18px; }
.contact-item b {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-item a, .contact-item span {
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
}

form { display: grid; gap: 12px; }
label { font-size: 13px; font-weight: 700; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid rgba(26, 168, 150, 0.35);
  border-color: var(--accent);
}
textarea { min-height: 120px; resize: vertical; }

.site-footer {
  background: var(--sidebar);
  color: #9da4ad;
  padding: 48px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}
.site-footer h3 { margin: 0 0 12px; color: #fff; font-size: 14px; }
.site-footer p { margin: 0; font-size: 14px; }
.site-footer a { color: #7dd3c7; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.copy {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #6b737c;
}

/* Auth modals */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 21, 24, 0.55);
  backdrop-filter: blur(6px);
}
.auth-overlay.is-open { display: flex; }
.auth-modal {
  width: min(440px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
  padding: 28px;
  position: relative;
  animation: auth-in .22s ease-out;
}
.auth-modal--wide { width: min(560px, 100%); }
@keyframes auth-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.auth-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: var(--bg);
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}
.auth-modal__close:hover { color: var(--ink); background: var(--line-soft); }
.auth-modal h2 {
  margin: 0 0 6px;
  font-size: 24px;
  letter-spacing: -0.03em;
}
.auth-modal .auth-lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}
.auth-error {
  display: none;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 600;
}
.auth-error.is-visible { display: block; }
.auth-form { gap: 14px; }
.auth-form label {
  display: grid;
  gap: 6px;
}
.auth-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.auth-form .phone-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
}
.auth-form .btn { width: 100%; margin-top: 4px; }
.auth-switch {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.auth-switch button {
  border: 0;
  background: none;
  color: var(--accent-deep);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
}
body.auth-open { overflow: hidden; }

@media (max-width: 960px) {
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    flex-direction: column;
    box-shadow: var(--shadow);
    z-index: 120;
  }
  .nav.is-open { display: flex; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .header-cta { margin-left: 0; }
  .grid-3, .pill-row, .footer-grid, .adv, .grid-2, .split, .service-grid, .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { width: min(1120px, calc(100% - 28px)); }
  .grid-3, .pill-row, .footer-grid, .adv, .grid-2, .service-grid, .contact-grid, .cta {
    grid-template-columns: 1fr;
  }
  .cta { flex-direction: column; align-items: flex-start; }
  .hero-copy, .page-hero .hero-copy { padding: 32px 24px; }
  .hero-frame { min-height: 460px; border-radius: 22px; }
  .header-cta .btn { padding: 10px 12px; font-size: 12px; }
  .auth-form .form-row { grid-template-columns: 1fr; }
  .auth-form .phone-row { grid-template-columns: 1fr; }
}
