/* ==========================================================================
   WolfNex — Landing page styles
   Brand tokens per WOLFNEX_BRAND.md
   ========================================================================== */

:root {
  --navy: #0a2540;
  --navy-deep: #071b33;
  --navy-secondary: #153a5b;
  --orange: #ff6a00;
  --orange-dark: #e95500;
  --white: #ffffff;
  --gray-bg: #f5f7f9;
  --gray-border: #e2e6ea;
  --text-muted: #5b6b7c;

  --font-heading: "Montserrat", sans-serif;
  --font-body: "Inter", sans-serif;

  --radius-card: 12px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--navy);
  background: var(--white);
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0;
  color: var(--navy);
  line-height: 1.2;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section--tight {
  padding: 72px 0;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 3.2vw, 40px);
  max-width: 720px;
}

.section-sub {
  margin-top: 16px;
  font-size: 17px;
  color: var(--text-muted);
  max-width: 620px;
}

.section-head {
  margin-bottom: 48px;
}

.section-head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-head--center .section-title,
.section-head--center .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--orange-dark);
}

.btn--secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn--secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.btn--secondary-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--secondary-light:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
}

.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header__logo img {
  height: 128px;
  width: auto;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 1;
  min-width: 0;
}

.nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--navy);
  white-space: nowrap;
}

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

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header__actions .btn {
  padding: 12px 22px;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--white);
  overflow: hidden;
  border-bottom: 1px solid var(--gray-border);
}

.hero__inner {
  padding: 110px 0 90px;
  max-width: 760px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-secondary);
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  display: inline-block;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.01em;
}

.hero__sub {
  margin-top: 24px;
  font-size: 19px;
  color: var(--text-muted);
  max-width: 560px;
}

.hero__actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__grid-motif {
  position: absolute;
  top: 0;
  right: -120px;
  bottom: 0;
  width: 640px;
  background-image:
    linear-gradient(var(--gray-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--gray-border) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(circle at 70% 40%, black 0%, transparent 65%);
  mask-image: radial-gradient(circle at 70% 40%, black 0%, transparent 65%);
  pointer-events: none;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--gray-border);
}

.hero__stat {
  padding: 28px 24px;
  border-right: 1px solid var(--gray-border);
}

.hero__stat:last-child {
  border-right: none;
}

.hero__stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
}

.hero__stat span {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ---------- Directions ---------- */

.directions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.direction-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-card);
  padding: 28px 28px 26px;
  transition: border-color 0.15s ease;
}

.direction-card:hover {
  border-color: var(--orange);
}

.direction-card__index {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.05em;
}

.direction-card h3 {
  font-size: 19px;
  margin-top: 12px;
  margin-bottom: 16px;
}

.direction-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.direction-card li {
  font-size: 13px;
  color: var(--navy-secondary);
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  padding: 5px 10px;
}

/* ---------- Dark section (Почему мы) ---------- */

.section--dark {
  background: var(--navy-deep);
  color: var(--white);
}

.section--dark .section-title,
.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section--dark .section-sub {
  color: rgba(255, 255, 255, 0.65);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.why-item {
  background: var(--navy-deep);
  padding: 32px 26px;
}

.why-item__num {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
}

.why-item p {
  margin-top: 14px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--white);
}

/* ---------- Client benefits ---------- */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.benefit-card {
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-card);
  padding: 26px;
}

.benefit-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 18px;
}

.benefit-card p {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--navy);
}

/* ---------- Process ---------- */

.process {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.process-step {
  border-top: 3px solid var(--orange);
  padding-top: 18px;
}

.process-step__num {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  opacity: 0.25;
}

.process-step p {
  margin-top: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
}

/* ---------- CTA / Contact ---------- */

.cta {
  background: var(--navy);
  border-radius: var(--radius-card);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta h2 {
  color: var(--white);
  font-size: clamp(24px, 3vw, 32px);
  max-width: 520px;
}

.cta__sub {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 15.5px;
}

.cta__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.contact-card {
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-card);
  padding: 22px;
}

.contact-card span {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.contact-card strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}

.lead-form {
  margin-top: 48px;
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-card);
  padding: 36px;
  max-width: 640px;
}

.lead-form h3 {
  font-size: 22px;
}

.lead-form__sub {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--text-muted);
}

.lead-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  padding: 12px 14px;
  box-sizing: border-box;
}

.lead-form textarea {
  margin-top: 12px;
  resize: vertical;
}

.lead-form input:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--orange);
}

.lead-form__footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.lead-form__status {
  font-size: 13.5px;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .lead-form__row { grid-template-columns: 1fr; }
  .lead-form { padding: 24px; }
}

/* ---------- Footer ---------- */

.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 28px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__brand {
  text-align: center;
  max-width: 320px;
}

.footer__logo {
  display: inline-flex;
}

.footer__logo img {
  height: 150px;
  margin: 0 auto 16px;
}

.footer__desc {
  font-size: 14px;
  line-height: 1.6;
}

.footer__cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer__col h4 {
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer__col li {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer__col a:hover {
  color: var(--orange);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 13px;
}

.footer__legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__legal a:hover {
  color: var(--orange);
}

/* ---------- Legal / privacy page ---------- */

.legal__inner {
  max-width: 760px;
}

.legal__updated {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.legal h2 {
  font-size: 20px;
  margin-top: 40px;
  margin-bottom: 14px;
}

.legal p {
  font-size: 15.5px;
  color: var(--navy-secondary);
  margin-bottom: 4px;
}

.legal p + p {
  margin-top: 12px;
}

.requisites-table {
  margin-top: 32px;
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.requisites-table tr:not(:last-child) th,
.requisites-table tr:not(:last-child) td {
  border-bottom: 1px solid var(--gray-border);
}

.requisites-table th,
.requisites-table td {
  text-align: left;
  padding: 16px 20px;
  font-size: 15px;
}

.requisites-table th {
  width: 40%;
  font-weight: 600;
  color: var(--navy-secondary);
  background: var(--gray-bg);
}

.requisites-table td {
  color: var(--navy);
}

.legal__note {
  margin-top: 40px;
  padding: 16px 20px;
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-card);
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------- Internal page hero ---------- */

.page-hero {
  background: var(--gray-bg);
  border-bottom: 1px solid var(--gray-border);
  padding: 56px 0 48px;
}

.page-hero__crumb {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.page-hero__crumb a {
  color: var(--navy-secondary);
  font-weight: 500;
}

.page-hero__crumb a:hover {
  color: var(--orange);
}

.page-hero h1 {
  font-size: clamp(28px, 3.6vw, 42px);
  max-width: 760px;
}

.page-hero__sub {
  margin-top: 16px;
  font-size: 16.5px;
  color: var(--text-muted);
  max-width: 620px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-secondary);
  margin-bottom: 24px;
}

.back-link:hover {
  color: var(--orange);
}

/* ---------- Index / listing grids ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.index-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-card);
  padding: 28px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.index-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}

.index-card__index {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
}

.index-card h3 {
  font-size: 19px;
  margin-top: 12px;
  margin-bottom: 10px;
}

.index-card p {
  font-size: 14.5px;
  color: var(--text-muted);
}

.index-card__tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy-secondary);
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  border-radius: 100px;
  padding: 5px 12px;
}

.index-card__arrow {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.index-card:hover .index-card__arrow {
  color: var(--orange);
}

/* ---------- Detail page body ---------- */

.detail-body {
  max-width: 760px;
}

.detail-body h2 {
  font-size: 20px;
  margin-top: 36px;
  margin-bottom: 12px;
}

.detail-body h2:first-child {
  margin-top: 0;
}

.detail-body p {
  font-size: 15.5px;
  color: var(--navy-secondary);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag-list li {
  font-size: 13px;
  color: var(--navy-secondary);
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  padding: 5px 10px;
}

.result-list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--navy-secondary);
  margin-bottom: 10px;
}

.result-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.case-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 24px 0 32px;
  padding: 18px 20px;
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-card);
}

.case-meta div span {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.case-meta div strong {
  font-size: 14.5px;
  color: var(--navy);
}

/* ---------- Partners ---------- */

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.partner-card {
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-card);
  padding: 24px;
  text-align: center;
}

.partner-card__mark {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
}

.partner-card h4 {
  font-size: 15px;
  margin-bottom: 6px;
}

.partner-card p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Cookie banner ---------- */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--navy-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 18px 24px;
}

.cookie-banner p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13.5px;
  max-width: 720px;
}

.cookie-banner a {
  color: var(--white);
  text-decoration: underline;
}

.cookie-banner .btn {
  flex-shrink: 0;
  padding: 10px 22px;
  font-size: 14px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1220px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-border);
    box-shadow: 0 12px 24px rgba(7, 27, 51, 0.08);
    padding: 8px 24px 16px;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-border);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .nav-toggle { display: block; }

  .header__logo img { height: 71px; }
}

@media (max-width: 960px) {
  .directions-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(4, 1fr); }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__grid-motif { display: none; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .header__logo img { height: 48px; }
  .directions-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta { padding: 36px 24px; flex-direction: column; align-items: flex-start; }
  .footer__cols { gap: 32px; }
  .cookie-banner__inner { flex-direction: column; align-items: flex-start; }
  .card-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: 1fr; }
  .case-meta { flex-direction: column; gap: 12px; }
}
