:root {
  --ink: #15242b;
  --muted: #5b6c74;
  --line: #d9e4e5;
  --paper: #f8fbfa;
  --white: #ffffff;
  --teal: #087d74;
  --teal-deep: #075651;
  --night: #112228;
  --shadow: 0 20px 55px rgba(22, 47, 55, 0.13);
  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 { display: block; max-width: 100%; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin: 0; line-height: 1.06; letter-spacing: 0; }
h1 { max-width: 740px; font-size: clamp(2.45rem, 5.2vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.4rem); }
h3 { font-size: 1.25rem; line-height: 1.2; }
p { line-height: 1.7; }

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 62px);
  background: linear-gradient(180deg, rgba(248, 251, 250, .96), rgba(248, 251, 250, .48));
  backdrop-filter: blur(12px);
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-logo { width: 38px; height: 38px; border-radius: 8px; box-shadow: 0 8px 22px rgba(8, 125, 116, .18); }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); color: rgba(21, 36, 43, .76); font-size: .875rem; }
.nav a, .header-action { transition: color .18s ease, transform .18s ease, border-color .18s ease; }
.nav a:hover, .header-action:hover { color: var(--teal); transform: translateY(-1px); }
.header-action { min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid rgba(8, 125, 116, .28); border-radius: 7px; color: var(--teal-deep); font-size: .875rem; font-weight: 800; }

.hero { position: relative; min-height: min(88vh, 820px); display: grid; align-items: end; overflow: hidden; padding: 126px clamp(20px, 5.5vw, 84px) 70px; color: var(--white); background: #0c181c; }
.hero-media { position: absolute; top: 0; right: clamp(32px, 8vw, 150px); bottom: 0; width: min(42vw, 530px); height: 100%; object-fit: contain; object-position: center; }
.hero-shade { position: absolute; inset: 0 auto 0 0; width: 58%; background: #0c181c; }
.hero-content { position: relative; width: min(790px, 100%); }
.eyebrow { margin: 0 0 14px; color: var(--teal); font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.hero .eyebrow { color: #85d8cf; }
.hero-lead { max-width: 640px; margin: 20px 0 0; color: #c6d4d6; font-size: clamp(1rem, 1.45vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border-radius: 7px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--teal); box-shadow: 0 16px 36px rgba(8, 125, 116, .24); }
.button-secondary { border: 1px solid rgba(255, 255, 255, .28); color: var(--white); background: transparent; }

.metrics { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; width: min(1180px, calc(100% - 40px)); margin: -38px auto 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); box-shadow: var(--shadow); }
.metrics div { min-height: 150px; padding: 27px 30px; background: var(--white); }
.metrics strong { display: block; margin-bottom: 10px; color: var(--teal-deep); font-size: clamp(1.85rem, 3.6vw, 2.7rem); line-height: 1; }
.metrics span { color: var(--muted); line-height: 1.55; }

.section { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 108px 0; }
.system-intro, .development { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, .9fr); align-items: center; gap: clamp(42px, 7vw, 100px); }
.section-copy p:not(.eyebrow), .app-description p, .device-copy > p:not(.eyebrow) { max-width: 680px; color: var(--muted); font-size: 1.06rem; }
.logic-flow { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.logic-flow li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 12px 32px rgba(25, 53, 60, .06); }
.logic-flow span { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid rgba(8, 125, 116, .25); border-radius: 7px; color: var(--teal); font-size: .78rem; font-weight: 900; }
.logic-flow p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }

.app-section { padding: 0 0 108px; background: var(--night); color: var(--white); overflow: hidden; }
.app-heading { display: grid; grid-template-columns: 1fr minmax(260px, .66fr); gap: clamp(38px, 6vw, 90px); padding-bottom: 48px; }
.app-heading .eyebrow { color: #8ddfd5; }
.app-description { align-self: end; }
.app-description p { margin: 0; color: #b8cbd0; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.platforms li { padding: 7px 10px; border: 1px solid rgba(141, 223, 213, .28); border-radius: 6px; color: #d4ebe7; font-size: .82rem; font-weight: 700; }
.app-showcase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3.6vw, 52px); width: min(1000px, calc(100% - 40px)); margin: 0 auto; align-items: start; }
.app-screen { display: grid; gap: 18px; margin: 0; }
.app-screen img { width: 100%; border: 1px solid rgba(175, 220, 220, .13); border-radius: 8px; box-shadow: 0 26px 52px rgba(0, 0, 0, .28); }
.screen-zones, .screen-lights { margin-top: 62px; }
.app-screen figcaption { display: grid; gap: 6px; color: #b4c6cb; font-size: .92rem; line-height: 1.5; }
.app-screen strong { color: var(--white); font-size: 1.05rem; }

.capabilities { display: grid; gap: 40px; }
.section-heading { max-width: 820px; }
.capability-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); }
.capability-grid article { min-height: 284px; padding: 28px; background: var(--white); }
.capability-grid span { display: inline-block; margin-bottom: 32px; color: var(--teal); font-size: .78rem; font-weight: 900; }
.capability-grid p, .service-list p, .steps p { color: var(--muted); line-height: 1.6; }

.home-device { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(320px, .94fr); background: #dceee9; }
.device-media { min-height: 560px; }
.device-media { padding: clamp(24px, 4vw, 58px); background: #e6efed; }
.device-media img { width: 100%; height: 100%; object-fit: contain; box-shadow: 0 18px 46px rgba(22, 47, 55, .18); }
.device-copy { align-self: center; max-width: 650px; padding: clamp(44px, 7vw, 94px); }
.clean-list { display: grid; gap: 13px; margin: 28px 0 0; padding: 0; list-style: none; }
.clean-list li { position: relative; padding-left: 26px; line-height: 1.58; }
.clean-list li::before { content: ""; position: absolute; top: .55em; left: 0; width: 10px; height: 10px; border-radius: 2px; background: var(--teal); }

.development { grid-template-columns: minmax(0, .85fr) minmax(360px, 1.15fr); }
.development { padding-top: 78px; padding-bottom: 78px; }
.development h2 { max-width: 540px; font-size: clamp(1.75rem, 2.75vw, 2.5rem); }
.service-list { display: grid; gap: 12px; }
.service-list article { padding: 24px 28px; border-bottom: 1px solid var(--line); }
.service-list article:first-child { border-top: 1px solid var(--line); }
.service-list p { margin: 9px 0 0; }

.footer { padding: 48px clamp(20px, 5.5vw, 84px) 20px; color: #b7c8c9; background: #102126; }
.footer-main { display: grid; grid-template-columns: minmax(220px, 1.2fr) minmax(130px, .7fr) minmax(130px, .7fr) minmax(190px, 1fr); gap: clamp(24px, 4vw, 68px); }
.footer-brand { display: flex; align-items: flex-start; gap: 16px; }
.footer-logo { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 7px; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand strong { color: var(--white); font-size: 1rem; }
.footer-brand span { margin-top: 4px; line-height: 1.45; font-size: .88rem; }
.footer-links, .footer-contacts { display: grid; align-content: start; gap: 9px; }
.footer-links strong, .footer-contacts strong { margin-bottom: 4px; color: #81d6cc; font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; }
.footer-links a, .footer-contacts a { color: #e6f0ef; font-size: .9rem; line-height: 1.45; }
.footer-links a:hover, .footer-contacts a:hover, .footer-bottom a:hover { color: #81d6cc; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 34px; padding-top: 16px; border-top: 1px solid rgba(221, 239, 236, .16); color: #7f999b; font-size: .78rem; }
.footer-bottom a { color: #d5e4e2; font-weight: 700; }

.page-main { min-height: calc(100vh - 220px); padding-top: 74px; }
.page-hero { padding: clamp(72px, 10vw, 130px) clamp(20px, 8vw, 140px) clamp(58px, 8vw, 100px); color: var(--white); background: #102126; }
.page-hero .eyebrow { color: #85d8cf; }
.page-hero h1 { max-width: 760px; }
.page-hero p:last-child { max-width: 580px; margin: 20px 0 0; color: #bfd0d1; font-size: 1.06rem; }
.page-section { width: min(980px, calc(100% - 40px)); margin: 0 auto; padding: clamp(64px, 9vw, 110px) 0; }
.page-section h2 { margin-bottom: 38px; font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
.requisites { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 52px; margin: 0; border-top: 1px solid var(--line); }
.requisites div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.requisites dt { margin-bottom: 7px; color: var(--muted); font-size: .82rem; font-weight: 800; }
.requisites dd { margin: 0; color: var(--ink); font-size: 1.02rem; line-height: 1.5; }
.page-note { margin: 28px 0 0; color: var(--muted); }
.contact-page { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }
.contact-page div { padding: 28px 0; border-top: 1px solid var(--line); }
.contact-page span, .contact-page a { display: block; }
.contact-page span { margin-bottom: 14px; color: var(--teal); font-size: .78rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.contact-page a { margin-top: 7px; color: var(--ink); font-size: clamp(1.12rem, 2vw, 1.45rem); font-weight: 750; }
.contact-page a:hover { color: var(--teal); }

@media (max-width: 980px) {
  .site-header { position: absolute; }
  .nav { display: none; }
  .metrics, .system-intro, .development, .app-heading, .home-device { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-contacts { grid-column: 1 / -1; grid-template-columns: auto repeat(3, max-content); align-items: center; gap: 12px 24px; }
  .capability-grid { grid-template-columns: 1fr 1fr; }
  .app-heading { gap: 18px; }
  .device-media { min-height: 430px; }
}

@media (max-width: 640px) {
  .site-header { padding: 14px 16px; }
  .brand { font-size: .9rem; }
  .header-action { display: none; }
  .hero { min-height: 800px; padding: 108px 18px 390px; align-items: start; }
  .hero-media { top: auto; right: 50%; bottom: 18px; width: min(74vw, 320px); height: 350px; transform: translateX(50%); }
  .hero-shade { display: none; }
  .hero-actions, .button { width: 100%; }
  .metrics { grid-template-columns: 1fr; width: calc(100% - 28px); }
  .metrics div { min-height: 0; }
  .section { width: calc(100% - 28px); padding: 74px 0; }
  .app-section { padding-bottom: 74px; }
  .app-heading { padding-bottom: 32px; }
  .app-showcase { grid-template-columns: 1fr; width: min(330px, calc(100% - 40px)); gap: 36px; }
  .screen-zones, .screen-lights { margin-top: 0; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid article { min-height: 0; }
  .device-media { min-height: 330px; }
  .device-copy { padding: 48px 18px; }
  .footer { padding: 36px 20px 18px; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .footer-contacts { grid-column: auto; grid-template-columns: 1fr; gap: 9px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; margin-top: 28px; }
  .page-main { padding-top: 66px; }
  .page-hero { padding: 72px 20px 60px; }
  .page-section { width: calc(100% - 40px); padding: 64px 0; }
  .requisites, .contact-page { grid-template-columns: 1fr; }
}
