:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #212b35;
  --muted: #546372;
  --line: #e0e5ea;
  --link: #406087;
  --action: #4d709c;
  --action-hover: #406087;
  font-family: var(--font-family);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html.theme-dark {
  color-scheme: dark;
  --paper: #1e2329;
  --ink: #edf0f3;
  --muted: #b1bcc7;
  --line: #343c45;
  --link: #b2cce5;
}
.theme-dark .brand-type { filter: brightness(0) invert(1); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: var(--link); }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; border-radius: 2px; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.65rem 0.85rem;
  background: var(--paper);
  z-index: 2;
}
.skip-link:focus { top: 0.5rem; }

.page { width: min(100% - 3rem, 1120px); margin: 0 auto; }
.site-header, .site-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-header { min-height: 88px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--ink); font-size: 1.06rem; font-weight: 700; letter-spacing: -0.025em; text-decoration: none; }
.brand img { display: block; }
.header-link, .site-footer a { font-size: 0.88rem; font-weight: 600; text-decoration: none; }
.header-link:hover, .site-footer a:hover, .sections a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

.hero { max-width: 760px; padding: clamp(4rem, 9vw, 7.25rem) 0 clamp(4rem, 8vw, 6rem); }
.eyebrow { margin: 0 0 1.45rem; color: var(--link); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.01em; }
h1 { margin: 0; font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; }
h1 span { color: var(--link); }
.lead { max-width: 650px; margin: 1.75rem 0 0; color: var(--muted); font-size: clamp(1.03rem, 2vw, 1.18rem); line-height: 1.65; }

.content-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: clamp(2.5rem, 7vw, 7rem); border-top: 1px solid var(--line); }
.contents { position: sticky; top: 2rem; align-self: start; display: flex; flex-direction: column; gap: 0.8rem; padding-top: 3rem; }
.contents p { margin: 0 0 0.35rem; color: var(--muted); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.035em; }
.contents a { width: fit-content; color: var(--ink); font-size: 0.88rem; text-decoration: none; }
.contents a:hover { color: var(--link); }
.sections section { position: relative; padding: 3.1rem 0 3.45rem; border-bottom: 1px solid var(--line); scroll-margin-top: 1.25rem; }
.section-number { color: var(--link); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.07em; }
h2 { margin: 0.8rem 0 1.4rem; font-size: clamp(1.75rem, 3vw, 2.15rem); line-height: 1.2; letter-spacing: -0.035em; }
.sections p { max-width: 690px; margin: 0 0 1rem; color: var(--ink); font-size: 1rem; line-height: 1.72; }
.sections p:last-child { margin-bottom: 0; }
.sections .detail { color: var(--muted); font-size: 0.94rem; }
.sections a { font-weight: 600; text-underline-offset: 0.2em; }
.site-footer { min-height: 110px; color: var(--muted); font-size: 0.83rem; }

/* ─── Открытая главная (landing.html): что такое Evorline и куда нажать ─── */
.landing-hero { padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.landing-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  border-radius: 0.875rem;
  border: 1px solid var(--line);
  color: var(--link);
  background: var(--paper);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}
.landing-btn.primary { border-color: var(--action); background: var(--action); color: #fff; }
.landing-btn:hover { border-color: var(--link); }
.landing-btn.primary:hover { background: var(--action-hover); }
.landing-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.feature { padding: 2.25rem 2rem 2.5rem 0; border-bottom: 1px solid var(--line); }
.feature h2 { margin: 0 0 0.75rem; font-size: 1.2rem; letter-spacing: -0.02em; }
.feature p { margin: 0; color: var(--ink); font-size: 0.98rem; line-height: 1.65; }
.feature a { font-weight: 600; text-underline-offset: 0.2em; }
.footer-links { display: flex; gap: 1.25rem; }

@media (max-width: 700px) {
  .page { width: min(100% - 2.25rem, 560px); }
  .site-header { min-height: 72px; }
  .brand img { width: 32px; height: 32px; }
  .header-link { max-width: 8.5rem; text-align: right; line-height: 1.3; }
  .hero { padding: 4.3rem 0 3.75rem; }
  h1 { font-size: clamp(2.5rem, 10vw, 3.65rem); }
  h1 br { display: none; }
  .lead { margin-top: 1.35rem; }
  .content-layout { display: block; }
  .contents { position: static; flex-direction: row; flex-wrap: wrap; gap: 0.5rem 0.9rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
  .contents p { flex: 0 0 100%; margin-bottom: 0.15rem; }
  .contents a { color: var(--link); font-size: 0.84rem; }
  .sections section { padding: 2.6rem 0 2.8rem; }
  .site-footer { min-height: 95px; }
  .landing-features { grid-template-columns: minmax(0, 1fr); }
  .feature { padding: 1.75rem 0 2rem; }
  .landing-actions { flex-direction: column; }
  .landing-btn { width: 100%; }
}

@media (min-width: 701px) and (max-width: 960px) {
  .landing-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.brand-type,.brand .brand-type {display:block;height:1.6rem;width:auto;max-width:9rem;border-radius:0;object-fit:contain;}
