/* Atlasmed: one-page site (UA: /, EN: /en/). Brand colours from the logo. */
:root {
  --red: #e8384d;
  --red-dark: #c9283c;
  --green: #0aa51c;
  --ink: #14212b;
  --muted: #56636e;
  --line: #e3e9ee;
  --bg-soft: #f4f7f9;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 33, 43, .08);
  --wrap: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  text-decoration: none; font-size: 15px; font-weight: 600; color: var(--muted);
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--red); }
.lang { display: flex; gap: 2px; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.lang a, .lang span { padding: 5px 9px; border-radius: 6px; text-decoration: none; }
.lang a { color: var(--muted); }
.lang a:hover { background: var(--bg-soft); color: var(--ink); }
.lang span { background: var(--ink); color: var(--white); }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none; letter-spacing: .01em;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--red-dark); color: var(--white); }
.btn-primary:hover { background: #ad1f31; }
.btn-ghost { border: 2px solid var(--ink); color: var(--ink); padding: 12px 24px; }
.btn-ghost:hover { background: var(--ink); color: var(--white); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(10, 165, 28, .08), transparent 60%),
    radial-gradient(700px 380px at 0% 100%, rgba(232, 56, 77, .06), transparent 60%),
    var(--bg-soft);
  padding: 96px 0 88px;
}
.hero::after {
  /* Large faint cross from the logo */
  content: ""; position: absolute; right: -60px; top: 50%; width: 420px; height: 420px;
  transform: translateY(-50%);
  background:
    linear-gradient(var(--green), var(--green)) center / 34% 100% no-repeat,
    linear-gradient(var(--green), var(--green)) center / 100% 34% no-repeat;
  opacity: .07; border-radius: 24px; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green); margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(34px, 5.2vw, 58px); line-height: 1.1; letter-spacing: -.02em;
  margin: 0 0 22px; max-width: 760px;
}
.hero .lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 620px; margin: 0 0 34px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.brands {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; margin-top: 56px;
  font-size: 14px; color: var(--muted);
}
.brands strong { font-size: 18px; color: var(--ink); letter-spacing: .02em; }

/* Sections */
.section { padding: 92px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red-dark);
  margin: 0 0 10px;
}
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 14px; }
h3 { font-size: 20px; line-height: 1.3; margin: 0 0 10px; }
.section-head p:not(.kicker) { color: var(--muted); margin: 0; font-size: 18px; }

/* About */
.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.about p { margin: 0; }
.mission {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--green);
  border-radius: var(--radius); padding: 30px 32px; box-shadow: var(--shadow);
}
.mission p { color: var(--muted); }

/* Products */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.product img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; height: auto; }
.product div { padding: 24px 26px 28px; }
.product h3 { font-size: 22px; margin-bottom: 6px; }
.product p { margin: 0; color: var(--muted); }

/* Advantages */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature { padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.feature p { margin: 0; color: var(--muted); }
.icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: rgba(10, 165, 28, .1); color: var(--green);
}
.icon svg { width: 26px; height: 26px; }
svg.i { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Contacts */
.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.contact {
  display: flex; gap: 16px; align-items: flex-start; padding: 26px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
a.contact:hover { border-color: var(--red); box-shadow: var(--shadow); }
.contact .icon { margin: 0; flex: none; background: rgba(232, 56, 77, .1); color: var(--red-dark); }
.contact span { display: block; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact strong { display: block; font-size: 17px; margin-top: 4px; overflow-wrap: anywhere; }

/* Footer */
.footer { background: var(--ink); color: #b9c3cb; padding: 34px 0; font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.footer a { color: var(--white); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; background: var(--bg-soft); }
.notfound .code { font-size: 96px; font-weight: 800; line-height: 1; color: var(--red); margin: 0 0 8px; }
.notfound h1 { font-size: 26px; margin: 0 0 6px; }
.notfound p { color: var(--muted); margin: 0 0 4px; }
.notfound .actions { justify-content: center; margin-top: 30px; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

@media (max-width: 960px) {
  .about { grid-template-columns: 1fr; gap: 32px; }
  .products, .features, .contacts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .header .wrap { flex-wrap: wrap; gap: 4px 16px; min-height: 64px; padding-top: 10px; padding-bottom: 6px; }
  .brand img { height: 36px; }
  .lang { margin-left: auto; }
  .nav { order: 3; width: 100%; margin: 0; gap: 18px; overflow-x: auto; }
  .nav a { font-size: 14px; white-space: nowrap; }
  html { scroll-padding-top: 110px; }
  .hero { padding: 64px 0 60px; }
  .hero::after { width: 260px; height: 260px; right: -90px; top: 30%; }
  .brands { margin-top: 40px; }
  .section { padding: 64px 0; }
  .products, .features, .contacts { grid-template-columns: 1fr; }
}
