/*
Theme Name: Neolink Group
Theme URI: https://neolink-group.ru/
Author: Neolink Group
Description: Лёгкая корпоративная тема для ООО «Неолинк групп».
Version: 1.2.4
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: neolink-group
*/

:root {
  --nl-red: #c1343e;
  --nl-red-dark: #9f2630;
  --nl-red-soft: #fff0f1;
  --nl-ink: #17191c;
  --nl-graphite: #373535;
  --nl-muted: #687078;
  --nl-line: #e4e7eb;
  --nl-soft: #f5f7f9;
  --nl-white: #fff;
  --nl-green: #21875a;
  --nl-blue: #245780;
  --nl-radius: 18px;
  --nl-shadow: 0 18px 48px rgba(25, 31, 38, .09);
  --nl-width: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--nl-ink);
  background: var(--nl-white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--nl-red); text-underline-offset: 3px; }
a:hover { color: var(--nl-red-dark); }
h1, h2, h3, h4 {
  margin: 0 0 .7em;
  color: var(--nl-ink);
  font-weight: 720;
  line-height: 1.13;
  letter-spacing: -.025em;
}
h1 { font-size: clamp(2.35rem, 5vw, 4.75rem); }
h2 { font-size: clamp(1.85rem, 3vw, 3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1.15em; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.nl-container { width: min(calc(100% - 40px), var(--nl-width)); margin-inline: auto; }
.nl-main { min-height: 60vh; }
.nl-section { padding: clamp(64px, 8vw, 108px) 0; }
.nl-section--soft { background: var(--nl-soft); }
.nl-section--dark { color: #e9edf1; background: var(--nl-ink); }
.nl-section--dark h2, .nl-section--dark h3 { color: #fff; }
.nl-section__head { max-width: 760px; margin-bottom: 36px; }
.nl-eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px;
  color: var(--nl-red); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.nl-eyebrow::before { width: 28px; height: 2px; content: ""; background: currentColor; }
.nl-lead { color: var(--nl-muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.nl-section--dark .nl-lead { color: #bfc6cd; }

.nl-site-header {
  position: sticky; z-index: 100; top: 0; border-bottom: 1px solid rgba(20, 24, 29, .08);
  background: rgba(255,255,255,.94); backdrop-filter: blur(14px);
}
.nl-header-inner {
  display: grid; width: min(calc(100% - 40px), 1420px); min-height: 82px;
  grid-template-columns: 205px minmax(0, 1fr) auto; align-items: center; gap: 30px;
}
.nl-brand { display: flex; flex: 0 0 auto; align-items: center; }
.nl-brand img { display: block; width: 205px; max-height: 64px; object-fit: contain; object-position: left center; }
.nl-nav { display: flex; min-width: 0; align-items: center; justify-content: center; }
.nl-nav ul { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.nl-nav a {
  display: block; padding: 10px 9px; color: #35393e; font-size: .88rem; font-weight: 650;
  line-height: 1.25; text-align: center; text-decoration: none; white-space: nowrap;
}
.nl-nav a:hover, .nl-nav .current-menu-item > a { color: var(--nl-red); }
.nl-header-cta { white-space: nowrap; }
.nl-menu-toggle {
  display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--nl-line);
  border-radius: 12px; background: #fff; cursor: pointer;
}
.nl-menu-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--nl-ink); }

.nl-button, .wp-block-button__link, button.nl-button {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border: 1px solid var(--nl-red); border-radius: 12px;
  color: #fff; background: var(--nl-red); box-shadow: none; font: inherit; font-weight: 750;
  line-height: 1.2; text-decoration: none; cursor: pointer; transition: .2s ease;
}
.nl-button:hover, .wp-block-button__link:hover { color: #fff; background: var(--nl-red-dark); border-color: var(--nl-red-dark); transform: translateY(-1px); }
.nl-button--ghost { color: var(--nl-ink); border-color: #cfd3d8; background: transparent; }
.nl-button--ghost:hover { color: var(--nl-red); border-color: var(--nl-red); background: #fff; }
.nl-button--light { color: var(--nl-ink); border-color: #fff; background: #fff; }
.nl-button--light:hover { color: var(--nl-red); background: #f4f4f4; border-color: #f4f4f4; }
.nl-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.nl-hero {
  position: relative; min-height: 670px; display: flex; align-items: center; overflow: hidden;
  color: #fff; background: #17191c;
}
.nl-hero::before {
  position: absolute; inset: 0; content: ""; opacity: .42;
  background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, #000, transparent 82%);
}
.nl-hero::after {
  position: absolute; width: 620px; height: 620px; right: -150px; top: 20px; content: "";
  border: 110px solid rgba(193,52,62,.76); border-radius: 50% 45% 55% 42%; transform: rotate(-18deg);
  box-shadow: 0 0 120px rgba(193,52,62,.24);
}
.nl-hero__inner { position: relative; z-index: 2; padding-block: 100px; }
.nl-hero__content { max-width: 780px; }
.nl-hero h1 { max-width: 900px; color: #fff; }
.nl-hero p { max-width: 710px; color: #cfd4d9; font-size: clamp(1.08rem, 2vw, 1.33rem); }
.nl-hero .nl-actions { margin-top: 30px; }
.nl-hero__note { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 46px; color: #aeb5bc; font-size: .88rem; }
.nl-hero__note span { display: inline-flex; align-items: center; gap: 8px; }
.nl-hero__note span::before { width: 7px; height: 7px; content: ""; border-radius: 50%; background: var(--nl-red); }

.nl-grid { display: grid; gap: 22px; }
.nl-grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.nl-grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.nl-grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.nl-card {
  position: relative; min-width: 0; padding: 28px; overflow: hidden;
  border: 1px solid var(--nl-line); border-radius: var(--nl-radius);
  background: #fff; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.nl-grid--4 .nl-card h3 { overflow-wrap: break-word; hyphens: auto; }
.nl-card:hover { border-color: #d5d9de; box-shadow: var(--nl-shadow); transform: translateY(-3px); }
.nl-card p:last-child { margin-bottom: 0; }
.nl-icon {
  display: inline-grid; width: 48px; height: 48px; margin-bottom: 22px; place-items: center;
  border-radius: 14px; color: var(--nl-red); background: var(--nl-red-soft); font-size: 1.35rem; font-weight: 800;
}
.nl-service-card { min-height: 330px; padding: 36px; overflow: hidden; }
.nl-service-card::after {
  position: absolute; right: -45px; bottom: -62px; width: 190px; height: 190px; content: "";
  border: 34px solid rgba(193,52,62,.12); border-radius: 50%;
}
.nl-service-card p { max-width: 520px; color: var(--nl-muted); }
.nl-service-card a { position: absolute; z-index: 1; bottom: 34px; font-weight: 750; text-decoration: none; }
.nl-card-kicker { display: block; margin-bottom: 12px; color: var(--nl-red); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.nl-spec-grid {
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); overflow: hidden;
  border: 1px solid var(--nl-line); border-radius: var(--nl-radius); background: var(--nl-ink);
}
.nl-spec-grid > div { padding: 28px; border-right: 1px solid #34383d; }
.nl-spec-grid > div:last-child { border-right: 0; }
.nl-spec-grid strong { display: block; color: #fff; font-size: 1.5rem; line-height: 1.15; }
.nl-spec-grid span { display: block; margin-top: 7px; color: #aeb5bc; font-size: .84rem; }

.nl-path {
  display: flex; align-items: stretch; gap: 12px; padding: 18px;
  border: 1px solid var(--nl-line); border-radius: var(--nl-radius); background: var(--nl-soft);
}
.nl-path > div { flex: 1; min-width: 0; padding: 22px; border-radius: 14px; background: #fff; }
.nl-path > div span { display: block; margin-bottom: 12px; color: var(--nl-red); font-size: .75rem; font-weight: 850; }
.nl-path > div strong, .nl-path > div small { display: block; }
.nl-path > div small { margin-top: 6px; color: var(--nl-muted); font-size: .78rem; }
.nl-path > b { align-self: center; color: var(--nl-red); font-size: 1.35rem; }
.nl-boundary { padding: 24px 28px; border-left: 4px solid var(--nl-red); border-radius: 0 14px 14px 0; background: var(--nl-red-soft); }
.nl-boundary strong { display: block; margin-bottom: 7px; }
.nl-boundary p { margin: 0; color: var(--nl-graphite); }
.nl-coverage { padding: clamp(30px,5vw,52px); }

.nl-stats { margin-top: -44px; position: relative; z-index: 4; }
.nl-stats__inner {
  display: grid; grid-template-columns: repeat(4,1fr); overflow: hidden;
  border: 1px solid var(--nl-line); border-radius: var(--nl-radius); background: #fff; box-shadow: var(--nl-shadow);
}
.nl-stat { padding: 28px 30px; border-right: 1px solid var(--nl-line); }
.nl-stat:last-child { border-right: 0; }
.nl-stat strong { display: block; color: var(--nl-red); font-size: 1.85rem; line-height: 1.1; }
.nl-stat span { color: var(--nl-muted); font-size: .88rem; }

.nl-tariff-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.nl-tariff {
  display: flex; min-height: 100%; flex-direction: column; padding: 28px;
  border: 1px solid var(--nl-line); border-radius: var(--nl-radius); background: #fff;
}
.nl-tariff--featured { border: 2px solid var(--nl-red); box-shadow: 0 18px 42px rgba(193,52,62,.12); }
.nl-tariff__tag { align-self: flex-start; padding: 5px 10px; border-radius: 99px; color: var(--nl-red); background: var(--nl-red-soft); font-size: .75rem; font-weight: 800; }
.nl-tariff__speed { margin: 20px 0 4px; font-size: 2.35rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.nl-tariff__speed small { color: var(--nl-muted); font-size: .85rem; font-weight: 600; letter-spacing: 0; }
.nl-tariff__offer { margin: 20px 0; padding-top: 18px; border-top: 1px solid var(--nl-line); }
.nl-tariff__offer strong { display: block; color: var(--nl-red); font-size: 1.08rem; }
.nl-tariff__offer span { display: block; margin-top: 5px; color: var(--nl-muted); font-size: .82rem; line-height: 1.45; }
.nl-tariff__desc { flex: 1; color: var(--nl-muted); font-size: .92rem; }
.nl-tariff .nl-button { width: 100%; margin-top: 18px; }
.nl-tariff-note { margin-top: 22px; color: var(--nl-muted); font-size: .9rem; }

.nl-service-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.nl-service-link {
  display: flex; min-height: 150px; flex-direction: column; justify-content: space-between; padding: 24px;
  border: 1px solid #33383e; border-radius: 16px; color: #fff; background: #202328; text-decoration: none;
}
.nl-service-link:hover { color: #fff; border-color: var(--nl-red); background: #272b30; }
.nl-service-link span { color: #aeb5bc; font-size: .85rem; }
.nl-service-link strong { font-size: 1.12rem; }
.nl-service-link b { color: var(--nl-red); font-size: 1.3rem; }

.nl-cta { padding: clamp(34px,5vw,62px); border-radius: 26px; color: #fff; background: var(--nl-red); }
.nl-cta h2, .nl-cta h3 { color: #fff; }
.nl-cta p { color: #ffe4e6; }
.nl-cta-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }

.nl-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.nl-field { display: flex; flex-direction: column; gap: 7px; }
.nl-field--wide { grid-column: 1 / -1; }
.nl-field label { font-size: .82rem; font-weight: 750; }
.nl-field input, .nl-field textarea, .nl-field select {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #cfd4d9; border-radius: 10px;
  color: var(--nl-ink); background: #fff; font: inherit; outline: none;
}
.nl-field textarea { min-height: 118px; resize: vertical; }
.nl-field input:focus, .nl-field textarea:focus, .nl-field select:focus { border-color: var(--nl-red); box-shadow: 0 0 0 3px rgba(193,52,62,.14); }
.nl-consent { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 9px; font-size: .78rem; }
.nl-consent input { width: 17px; height: 17px; margin-top: 3px; }
.nl-form .nl-button { justify-self: start; }
.nl-honeypot { position: absolute !important; left: -9999px !important; }
.nl-form-notice { margin-bottom: 18px; padding: 12px 15px; border-radius: 9px; color: #155a3b; background: #e7f7ef; }
.nl-form-notice--error { color: #86252d; background: #fff0f1; }

.nl-page-hero { padding: 78px 0 58px; border-bottom: 1px solid var(--nl-line); background: var(--nl-soft); }
.nl-page-hero h1 { max-width: 900px; font-size: clamp(2.25rem,4vw,4rem); }
.nl-content { padding: 68px 0 96px; }
.nl-content > * { max-width: var(--nl-width); margin-inline: auto; }
.nl-content > .alignwide { max-width: var(--nl-width); }
.nl-content > .alignfull { max-width: none; }
.nl-prose { max-width: 820px; }
.nl-prose ul { padding-left: 1.25em; }
.nl-checks { display: grid; gap: 12px; padding: 0; list-style: none; }
.nl-checks li { position: relative; padding-left: 30px; }
.nl-checks li::before { position: absolute; left: 0; top: .28em; content: "✓"; color: var(--nl-green); font-weight: 900; }
.nl-faq { border-top: 1px solid var(--nl-line); }
.nl-faq details { border-bottom: 1px solid var(--nl-line); }
.nl-faq summary { padding: 20px 4px; font-weight: 750; cursor: pointer; }
.nl-faq details > div { padding: 0 4px 20px; color: var(--nl-muted); }
.nl-contact-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.nl-contact-list strong { display: inline-block; min-width: 120px; }
.nl-legal { overflow-x: auto; }
.nl-legal table { width: 100%; border-collapse: collapse; }
.nl-legal td { padding: 12px 14px; border-bottom: 1px solid var(--nl-line); vertical-align: top; }
.nl-legal td:first-child { width: 34%; color: var(--nl-muted); }

.nl-site-footer { padding: 62px 0 26px; color: #aeb5bc; background: #141619; }
.nl-footer-grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: 60px; }
.nl-footer-logo { width: 190px; margin-bottom: 22px; filter: brightness(0) invert(1); opacity: .92; }
.nl-site-footer h3 { color: #fff; font-size: .95rem; letter-spacing: .02em; }
.nl-site-footer ul { margin: 0; padding: 0; list-style: none; }
.nl-site-footer li { margin: 8px 0; }
.nl-site-footer a { color: #c7cdd2; text-decoration: none; }
.nl-site-footer a:hover { color: #fff; }
.nl-footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 48px; padding-top: 22px; border-top: 1px solid #2c3035; font-size: .78rem; }

@media (max-width: 1240px) {
  .nl-header-inner { display: flex; width: min(calc(100% - 40px), var(--nl-width)); }
  .nl-menu-toggle { display: block; margin-left: auto; }
  .nl-header-cta { display: none; }
  .nl-nav {
    position: absolute; left: 0; right: 0; top: 82px; display: none; padding: 14px 20px 22px;
    border-bottom: 1px solid var(--nl-line); background: #fff; box-shadow: 0 18px 35px rgba(20,24,29,.1);
  }
  .nl-nav.is-open { display: block; }
  .nl-nav ul { display: block; }
  .nl-nav a { padding: 12px 8px; }
  .nl-grid--4, .nl-service-links { grid-template-columns: repeat(2,1fr); }
  .nl-grid--3, .nl-tariff-grid { grid-template-columns: repeat(2,1fr); }
  .nl-spec-grid { grid-template-columns: repeat(2,1fr); }
  .nl-spec-grid > div:nth-child(2) { border-right: 0; }
  .nl-spec-grid > div:nth-child(-n+2) { border-bottom: 1px solid #34383d; }
  .nl-stats__inner { grid-template-columns: repeat(2,1fr); }
  .nl-stat:nth-child(2) { border-right: 0; }
  .nl-stat:nth-child(-n+2) { border-bottom: 1px solid var(--nl-line); }
  .nl-cta-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .nl-container { width: min(calc(100% - 28px), var(--nl-width)); }
  .nl-header-inner { min-height: 72px; }
  .nl-brand img { width: 165px; }
  .nl-nav { top: 72px; }
  .nl-hero { min-height: 640px; }
  .nl-hero::after { width: 390px; height: 390px; right: -250px; top: 100px; border-width: 76px; }
  .nl-hero__inner { padding-block: 72px 110px; }
  .nl-hero .nl-button { width: 100%; }
  .nl-stats { margin-top: -58px; }
  .nl-stats__inner, .nl-grid--4, .nl-grid--3, .nl-grid--2, .nl-tariff-grid, .nl-service-links { grid-template-columns: 1fr; }
  .nl-spec-grid { grid-template-columns: 1fr; }
  .nl-spec-grid > div, .nl-spec-grid > div:nth-child(2) { border-right: 0; border-bottom: 1px solid #34383d; }
  .nl-spec-grid > div:last-child { border-bottom: 0; }
  .nl-path { flex-direction: column; }
  .nl-path > b { transform: rotate(90deg); }
  .nl-stat { border-right: 0; border-bottom: 1px solid var(--nl-line); }
  .nl-stat:last-child { border-bottom: 0; }
  .nl-service-card { min-height: 300px; padding: 28px; }
  .nl-form { grid-template-columns: 1fr; }
  .nl-field--wide, .nl-consent { grid-column: auto; }
  .nl-cta { padding: 30px 22px; }
  .nl-footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .nl-footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
