:root {
  --bg: #eef8fb;
  --surface: #ffffff;
  --soft: #dff6fb;
  --ink: #12334b;
  --muted: #7d95a9;
  --brand: #139bb1;
  --line: #cfe8ef;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f7fcfe 0%, var(--bg) 100%);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header,
.hero,
.directions,
.drive-panel,
.facts,
.news,
.request-section,
.footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  margin-right: auto;
  font-size: 18px;
  font-weight: 800;
  color: var(--brand);
}
.brand span { color: var(--ink); }
.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: #527083;
  font-size: 13px;
  font-weight: 700;
}
.main-nav a:hover { color: var(--brand); }
.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 11px;
}
.menu-button span { display: block; height: 2px; margin: 4px 0; background: var(--ink); }

.hero {
  min-height: 620px;
  padding: 90px 0 70px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(430px, .95fr);
  align-items: center;
  gap: 90px;
}
.pill {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 24px;
  padding: 9px 18px;
  border-radius: 999px;
  color: var(--brand);
  background: #d4f4fb;
  font-size: 12px;
  font-weight: 800;
}
.pill.centered { margin-inline: auto; }
.pill.light { background: #e2fbff; color: #087e94; }
.hero h1 {
  margin: 0 0 24px;
  max-width: 620px;
  font-size: 58px;
  line-height: 1.06;
  letter-spacing: 0;
}
.hero p {
  max-width: 600px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 12px; margin-top: 26px; }
.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--brand);
  font-weight: 800;
  cursor: pointer;
}
.primary-button { background: var(--brand); color: #fff; }
.ghost-button { background: #fff; color: var(--brand); }
.hero-card {
  position: relative;
  min-height: 500px;
  padding: 54px;
  border-radius: 34px;
  background: linear-gradient(145deg, #fff 0%, #dff8fc 100%);
  box-shadow: 0 38px 100px rgba(13, 118, 142, .16);
}
.hero-card img {
  width: 100%;
  height: 390px;
  object-fit: contain;
}
.hero-note {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 170px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.directions,
.medical-catalog,
.facts,
.news {
  padding: 72px 0;
  text-align: center;
}
.directions h2,
.medical-catalog h2,
.facts h2 {
  margin: 0 auto 16px;
  max-width: 780px;
  font-size: 44px;
  line-height: 1.15;
}
.section-lead {
  margin: 0 auto 48px;
  max-width: 720px;
  color: var(--muted);
}
.direction-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  text-align: left;
}
.direction-card {
  min-height: 285px;
  overflow: hidden;
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f2fdff;
}
.direction-card.space { background: #f6f3ff; }
.direction-card.servos { background: #f5f9ff; }
.direction-card.motors { background: #fbfff0; }
.direction-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 210px;
  font-size: 22px;
  line-height: 1.12;
}
.direction-card img {
  position: absolute;
  right: -8px;
  bottom: -10px;
  width: 82%;
  height: 190px;
  object-fit: contain;
}

.medical-catalog {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}
.medical-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
  text-align: left;
}
.medical-grid article {
  min-height: 330px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #eefbfe);
  box-shadow: 0 18px 50px rgba(13, 118, 142, .08);
}
.medical-grid img {
  width: 100%;
  height: 190px;
  margin-bottom: 18px;
  object-fit: contain;
}
.medical-grid h3 {
  margin: 0 0 8px;
  font-size: 21px;
}
.medical-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.drive-panel {
  margin-top: 90px;
  padding: 58px;
  min-height: 430px;
  border-radius: 30px;
  display: grid;
  grid-template-columns: 1fr .95fr;
  align-items: center;
  gap: 34px;
  color: #fff;
  background: #104d60;
}
.drive-panel h2 {
  margin: 0 0 18px;
  font-size: 43px;
  line-height: 1.12;
}
.drive-panel p { color: #bfe1ea; line-height: 1.55; }
.drive-panel ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.drive-panel li {
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,.1);
  color: #d8f5fb;
  font-weight: 700;
  font-size: 13px;
}
.drive-panel img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 28px 35px rgba(0,0,0,.28));
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 46px;
  text-align: left;
}
.facts-grid div {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.facts-grid strong {
  display: block;
  color: var(--brand);
  font-size: 36px;
  line-height: 1;
}
.facts-grid span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.section-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  text-align: left;
}
.section-row h2 { margin: 0; font-size: 38px; }
.section-row span { color: var(--muted); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.news-card {
  min-height: 260px;
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 22px;
  text-align: left;
  font: inherit;
  color: #fff;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.news-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 18%, rgba(8, 38, 54, .84)); }
.news-card time, .news-card h3 { position: relative; z-index: 1; }
.news-card time { margin-bottom: 8px; color: rgba(255,255,255,.75); font-size: 13px; }
.news-card h3 { margin: 0; font-size: 18px; line-height: 1.3; }

.request-section {
  margin-top: 72px;
  padding: 54px;
  border: 1px solid var(--line);
  border-radius: 30px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 40px;
  align-items: start;
  background: #dff7fc;
}
.request-section h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.12;
}
.request-form {
  display: grid;
  gap: 12px;
}
.request-form input,
.request-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}
.request-form label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.request-form input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--brand);
}
.form-status { margin: 0; min-height: 18px; color: var(--brand); font-weight: 800; }

.footer {
  margin-top: 72px;
  min-height: 96px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}

.news-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 24, 34, .6);
}
.news-modal.open { display: flex; }
.news-modal__panel {
  position: relative;
  width: min(720px, 100%);
  padding: 34px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
}
.news-modal__panel time { display: block; margin-bottom: 12px; color: var(--brand); font-weight: 800; }
.news-modal__panel h2 { margin: 0 0 18px; font-size: 30px; line-height: 1.2; }
.news-modal__panel p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.news-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 26px;
  cursor: pointer;
}

@media (max-width: 980px) {
  .site-header, .hero, .directions, .medical-catalog, .drive-panel, .facts, .news, .request-section, .footer {
    width: min(100% - 32px, 1180px);
  }
  .menu-button { display: block; }
  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; }
  .hero, .drive-panel, .request-section { grid-template-columns: 1fr; gap: 28px; }
  .direction-grid, .medical-grid, .facts-grid, .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { font-size: 44px; }
  .hero-card { min-height: auto; }
}

@media (max-width: 640px) {
  .hero { padding: 46px 0; }
  .hero h1, .directions h2, .medical-catalog h2, .facts h2, .drive-panel h2, .request-section h2 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-card { padding: 24px; border-radius: 24px; }
  .hero-card img { height: 260px; }
  .hero-note { position: static; width: auto; margin-bottom: 16px; }
  .direction-grid, .medical-grid, .facts-grid, .news-grid, .drive-panel ul { grid-template-columns: 1fr; }
  .drive-panel, .request-section { padding: 28px; border-radius: 24px; }
  .footer { flex-direction: column; align-items: flex-start; padding: 24px 0; }
}
