:root {
  --bg: #ffffff;
  --ink: #14213d;
  --muted: #5d6b82;
  --line: #dce3ec;
  --soft: #f4f7fa;
  --soft-2: #e9f6f4;
  --accent: #0f766e;
  --accent-dark: #0b4f4a;
  --navy: #10243f;
  --shadow: 0 22px 60px rgba(16, 36, 63, .12);
  --radius: 8px;
}

* { box-sizing: border-box; }

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  max-width: 100%;
  overflow-x: hidden;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--navy);
  white-space: nowrap;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.05;
}

.brand-name {
  font-size: 16px;
}

.brand-tagline {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}

.brand-logo {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.main-nav a:hover,
.nav-dropdown summary:hover { color: var(--accent-dark); }

.nav-dropdown {
  position: relative;
  padding-block: 8px;
  margin-block: -8px;
}

.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
  color: var(--muted);
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 170px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(16, 36, 63, .14);
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  z-index: 20;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown[open] .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: var(--soft);
}

.header-action {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 0;
  color: #128c7e;
  background: transparent;
}

.header-action svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.hero,
.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: center;
  min-height: auto;
  padding: clamp(36px, 5vw, 58px) clamp(20px, 5vw, 72px);
}

.hero h1,
.project-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: normal;
}

.hero p,
.project-hero p {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
}

.btn.primary { color: #fff; background: var(--accent); }
.btn.secondary { color: var(--navy); background: var(--soft); border-color: var(--line); }
.btn.ghost { color: var(--accent-dark); background: #fff; border-color: #a8d8d2; }

.hero-visual {
  position: relative;
  min-height: 360px;
  border-radius: 8px;
  background: var(--soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.visual-panel {
  position: absolute;
  border: 1px solid rgba(220, 227, 236, .9);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(16, 36, 63, .10);
}

.training-steps span {
  padding: 16px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--navy);
  font-weight: 800;
}

.mini-panel {
  right: 22px;
  bottom: 22px;
  width: min(280px, 58%);
  padding: 22px;
}

.mini-panel strong,
.mini-panel span {
  display: block;
}

.mini-panel span {
  margin-top: 10px;
  color: var(--muted);
}

.section {
  padding: clamp(64px, 8vw, 108px) clamp(20px, 5vw, 72px);
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-lead,
.section-head p,
.contact-section p {
  color: var(--muted);
  font-size: 17px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-list article,
.project-card,
.detail-grid article,
.feature-columns article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.service-list article { padding: 24px; }

.service-list h3,
.project-body h3,
.feature-columns h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.service-list p,
.project-body p,
.feature-columns p,
.detail-grid p {
  margin: 0;
  color: var(--muted);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 34px;
}

.section-head p { max-width: 560px; margin: 0; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(16, 36, 63, .08);
}

.project-media {
  min-height: 220px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}

.project-media span { font-weight: 800; opacity: .84; }
.project-media strong { max-width: 360px; font-size: 28px; line-height: 1.18; }
.catalog-media { background: linear-gradient(135deg, #0f766e, #10243f); }
.contacts-media { background: linear-gradient(135deg, #2563eb, #0f766e); }
.ecommerce-media { background: linear-gradient(135deg, #0f766e, #2f6f3e); }

.project-body { padding: 26px; }
.project-body ul { padding-left: 20px; color: var(--muted); }
.text-link { color: var(--accent-dark); font-weight: 800; }

.project-body .text-link {
  display: block;
  text-align: right;
}

.training {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(280px, .65fr);
  gap: 48px;
  background: var(--navy);
  color: #fff;
}

.training .section-lead { color: rgba(255, 255, 255, .74); }

.training-steps {
  display: grid;
  gap: 12px;
}

.training-steps span {
  background: rgba(255, 255, 255, .09);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
}

.contact-section p { max-width: 720px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.back-link {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--accent-dark);
  font-weight: 800;
}

.product-shot {
  min-height: 470px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  box-shadow: var(--shadow);
}

.shot-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.shot-toolbar span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #9ca3af;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  height: 360px;
}

.catalog-layout aside {
  padding: 18px;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
  font-weight: 700;
}

.catalog-layout section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.catalog-layout section div {
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #dcefe9);
  border: 1px solid #cbd5e1;
}

.contacts-shot {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eef6ff, #e9f6f4);
}

.ecommerce-shot {
  display: grid;
  grid-template-columns: .72fr 1fr;
  gap: 18px;
  background: linear-gradient(135deg, #eef8f1, #f7fbff);
}

.shop-sidebar,
.shop-panel,
.shop-card-mini {
  border-radius: 8px;
  border: 1px solid #d4e4dc;
}

.shop-sidebar {
  padding: 18px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
}

.shop-sidebar span {
  display: block;
  margin-top: 14px;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
}

.shop-panel {
  padding: 18px;
  background: #fff;
}

.shop-grid-mini {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.shop-card-mini {
  min-height: 92px;
  background: linear-gradient(135deg, #f8fafc, #e6f4ed);
}

.shop-checkout-mini {
  padding: 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.phone-shell {
  width: min(290px, 100%);
  min-height: 410px;
  padding: 20px;
  border-radius: 28px;
  background: #10243f;
  color: #fff;
  box-shadow: 0 24px 60px rgba(16, 36, 63, .24);
}

.phone-head { font-size: 22px; font-weight: 800; margin-bottom: 20px; }
.person-row-mini { height: 62px; margin-bottom: 12px; border-radius: 8px; background: rgba(255, 255, 255, .12); }
.phone-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 52px; }
.phone-tabs span { height: 34px; border-radius: 8px; background: rgba(255, 255, 255, .14); }

.detail-grid,
.feature-columns > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.detail-grid article,
.feature-columns article {
  padding: 26px;
}

.feature-columns h2 { margin-bottom: 28px; }

@media (max-width: 920px) {
  .site-header { align-items: flex-start; flex-wrap: wrap; }
  .main-nav { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 2px; }
  .nav-dropdown-menu {
    left: 0;
    transform: none;
  }
  .hero,
  .project-hero,
  .split-band,
  .training,
  .contact-section {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; }
  .hero-visual,
  .hero-visual img { min-height: 320px; }
  .section-head { display: block; }
  .project-grid,
  .service-list,
  .detail-grid,
  .feature-columns > div {
    grid-template-columns: 1fr;
  }
  .contact-actions { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .site-header { padding: 14px 16px; }
  .header-action { display: none; }
  .main-nav { gap: 16px; font-size: 13px; }
  .hero,
  .project-hero,
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero h1,
  .project-hero h1 {
    font-size: 28px;
    line-height: 1.12;
    overflow-wrap: anywhere;
  }
  .hero p,
  .project-hero p {
    font-size: 16px;
  }
  .btn { width: 100%; }
  .mini-panel { width: auto; left: 18px; right: 18px; bottom: 22px; }
  .catalog-layout { grid-template-columns: 1fr; height: auto; }
  .ecommerce-shot { grid-template-columns: 1fr; }
  .catalog-layout aside { min-height: 90px; }
  .catalog-layout section { min-height: 220px; }
  .site-footer { flex-direction: column; }
}
