/* Сайт ООО «АМ ЛОДЖИК» — amlogic.ru. Обычный CSS, без сборки и зависимостей. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --surface: #ffffff;
  --header-bg: rgb(255 255 255 / 0.86);
  --text: #0f1b2d;
  --muted: #56657b;
  --line: #e2e8f0;
  --accent: #1f5bb5;
  --accent-hover: #174a94;
  --accent-soft: #e8effa;
  --on-accent: #ffffff;
  --hero-from: #0a1a31;
  --hero-to: #10294b;
  --shadow: 0 1px 2px rgb(15 27 45 / 0.04), 0 12px 32px -16px rgb(15 27 45 / 0.16);
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(56px, 8vw, 104px);
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1320;
    --bg-soft: #0e1828;
    --surface: #111d30;
    --header-bg: rgb(11 19 32 / 0.86);
    --text: #e6ebf2;
    --muted: #9aa7ba;
    --line: #1f2c42;
    --accent: #7eaaf2;
    --accent-hover: #a4c3f7;
    --accent-soft: #16263e;
    --on-accent: #0b1320;
    --hero-from: #070f1c;
    --hero-to: #0c1c35;
    --shadow: none;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
}

svg {
  display: block;
  flex: none;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: calc(1120px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
  color: var(--on-accent);
}

/* Шапка */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 32px;
  height: 32px;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
}

.nav a {
  padding-block: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

@media (max-width: 959px) {
  .nav .nav-privacy {
    display: none;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 12px;
  }

  .site-header {
    position: static;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
    padding-block: 14px 8px;
  }

  .nav {
    gap: 0 22px;
  }
}

@media (max-width: 359px) {
  .nav {
    gap: 0 14px;
  }

  .nav a {
    font-size: 0.9rem;
  }
}

/* Первый экран */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(60% 90% at 88% 0%, rgb(56 118 220 / 0.34), transparent 70%),
    linear-gradient(160deg, var(--hero-from), var(--hero-to));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.07) 1px, transparent 1px);
  background-position: right top;
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(80% 110% at 90% 10%, #000 20%, transparent 72%);
  mask-image: radial-gradient(80% 110% at 90% 10%, #000 20%, transparent 72%);
}

/* Схема справа выровнена по сетке фона: шаг 56px, отсчёт от правого верхнего угла. */
.hero-art {
  position: absolute;
  top: 0;
  right: 0;
  z-index: -1;
  display: none;
}

.hero-art .trace {
  fill: none;
  stroke: #7eaaf2;
  stroke-opacity: 0.5;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-art .node {
  fill: var(--hero-to);
  stroke: #a9c8ff;
  stroke-opacity: 0.85;
  stroke-width: 1.5;
}

.hero-art .hub {
  fill: #9cc2ff;
}

.hero-art .halo {
  fill: #7eaaf2;
  fill-opacity: 0.14;
}

.hero-art .dot {
  fill: #fff;
  fill-opacity: 0.28;
}

@media (min-width: 1080px) {
  .hero-art {
    display: block;
  }
}

.hero-inner {
  max-width: 760px;
  padding-block: clamp(72px, 11vw, 136px);
}

.hero h1 {
  font-size: clamp(2rem, 1.3rem + 3.6vw, 3.75rem);
  letter-spacing: -0.025em;
}

.lead {
  max-width: 34em;
  margin-top: 20px;
  color: #c3cfe0;
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero :focus-visible {
  outline-color: #fff;
}

/* Кнопки */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn-light {
  background: #fff;
  color: #0a1a31;
}

.btn-light:hover {
  background: #dfe8f6;
  color: #0a1a31;
}

.btn-outline {
  border-color: rgb(255 255 255 / 0.3);
  color: #fff;
}

.btn-outline:hover {
  border-color: rgb(255 255 255 / 0.65);
  background: rgb(255 255 255 / 0.06);
  color: #fff;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}

/* Секции */

.section {
  padding-block: var(--section-y);
}

.section-soft {
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
}

.section h2 {
  font-size: clamp(1.65rem, 1.2rem + 1.6vw, 2.35rem);
}

.section h2::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-bottom: 18px;
  border-radius: 2px;
  background: var(--accent);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.075rem;
}

.card {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.2rem;
}

.icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.icon svg {
  width: 24px;
  height: 24px;
}

/* О компании */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.about-text p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.075rem;
}

.about-text .about-lead {
  margin-top: 24px;
  color: var(--text);
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.3rem);
  line-height: 1.5;
}

.req-card h3 {
  margin-bottom: 8px;
}

.req {
  margin: 0;
}

.req > div {
  display: grid;
  grid-template-columns: 12.5em minmax(0, 1fr);
  gap: 2px 24px;
  align-items: baseline;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.req > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.req dt {
  color: var(--muted);
  font-size: 0.925rem;
}

.req dd {
  margin: 0;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

@media (max-width: 860px) {
  .about {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .req > div {
    grid-template-columns: 1fr;
  }
}

/* Направления деятельности */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.service-num {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.service p {
  margin-top: 10px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* Контакты */

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

.contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text);
  text-decoration: none;
}

.contact .icon {
  margin-bottom: 18px;
}

.contact-label {
  color: var(--muted);
  font-size: 0.925rem;
}

.contact-value {
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem);
  font-style: normal;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

a.contact {
  transition: border-color 0.15s;
}

a.contact:hover {
  border-color: var(--accent);
  color: var(--text);
}

a.contact .contact-value {
  color: var(--accent);
}

.note {
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .contacts {
    grid-template-columns: 1fr;
  }
}

/* Подвал */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.925rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 48px;
  padding-block: 36px;
}

.footer-org p + p {
  margin-top: 4px;
}

.footer-name {
  color: var(--text);
  font-weight: 600;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.footer-nav a {
  color: var(--muted);
}

.footer-nav a:hover {
  color: var(--text);
}

@media (min-width: 721px) {
  .footer-nav {
    align-items: flex-end;
  }
}

/* Текстовые страницы (политика конфиденциальности) */

.page-head {
  padding-block: clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.crumbs {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.crumbs a {
  color: var(--muted);
}

.crumbs a:hover {
  color: var(--text);
}

.page-head h1 {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.75rem);
}

.page-sub {
  max-width: 40em;
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.1rem;
}

.page-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.doc {
  max-width: 760px;
  padding-block: clamp(40px, 6vw, 72px) var(--section-y);
}

.doc section + section {
  margin-top: 40px;
}

.doc h2 {
  margin-bottom: 14px;
  font-size: 1.3rem;
}

.doc p + p,
.doc p + ul {
  margin-top: 12px;
}

.doc ul {
  margin: 0;
  padding-left: 1.4em;
}

.doc li {
  margin-top: 8px;
}

.doc li::marker {
  color: var(--muted);
}

/* Страница 404 */

.notfound {
  display: flex;
  align-items: center;
  padding-block: var(--section-y);
}

.nf-code {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.notfound h1 {
  margin-top: 12px;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
}

.nf-text {
  max-width: 32em;
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.075rem;
}

.notfound .btn {
  margin-top: 28px;
}

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

  * {
    transition: none !important;
  }
}

@media print {
  :root {
    --bg: #fff;
    --bg-soft: #fff;
    --surface: #fff;
    --text: #000;
    --muted: #333;
    --line: #ccc;
    --accent: #000;
    --shadow: none;
  }

  .site-header,
  .skip,
  .hero-art,
  .actions {
    display: none;
  }

  .hero {
    background: none;
    color: #000;
  }

  .hero::before {
    display: none;
  }

  .lead {
    color: #333;
  }

  .hero-inner {
    padding-block: 24px;
  }
}
