/* ════════════════════════════════════════════════════════
   LIMIK INTERNATIONAL — Shared Design System v1.0
   Source of truth: index.html
   All inner pages must link this file.
════════════════════════════════════════════════════════ */

/* ── Google Fonts are loaded per-page via <link> ── */

/* ════════════════════════════════
   TOKENS
════════════════════════════════ */
:root {
  --navy-dark:  #09193B;
  --navy-mid:   #0F2656;
  --blue:       #206CB9;
  --blue-lt:    #4A8FD4;
  --gold:       #FFCF0B;
  --gold-hover: #DDB800;
  --white:      #FFFFFF;
  --off-white:  #F4F6FA;
  --text-1:     #C4D4E8;
  --text-2:     #7090B0;
  --border-d:   rgba(255,255,255,0.12);
  --border-l:   rgba(9,25,59,0.14);
  --font:       'REM', sans-serif;
}

/* ════════════════════════════════
   RESET
════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--navy-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ════════════════════════════════
   CONTAINER
════════════════════════════════ */
.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 768px) { .container { padding: 0 24px; } }
@media (max-width: 479px) { .container { padding: 0 24px; } }

/* ════════════════════════════════
   BG HELPERS
════════════════════════════════ */
.bg-dark     { background: var(--navy-dark); color: var(--white); }
.bg-mid      { background: var(--navy-mid);  color: var(--white); }
.bg-white    { background: var(--white);      color: var(--navy-dark); }
.bg-offwhite { background: var(--off-white);  color: var(--navy-dark); }

/* ════════════════════════════════
   SECTION PADDING
════════════════════════════════ */
.section    { padding: 120px 0; }
.section-lg { padding: 160px 0; }
.section-sm { padding: 64px 0; }

@media (max-width: 991px) {
  .section    { padding: 80px 0; }
  .section-lg { padding: 100px 0; }
  .section-sm { padding: 48px 0; }
  .sec-header { margin-bottom: 40px; }
}
@media (max-width: 768px) {
  h2 { font-size: 36px; }
  .section    { padding: 60px 0; }
  .section-lg { padding: 72px 0; }
  .section-sm { padding: 40px 0; }
  .eyebrow    { margin-bottom: 20px; }
}
@media (max-width: 479px) {
  .section    { padding: 64px 0; }
  .section-lg { padding: 72px 0; }
}

.clip-tl { clip-path: polygon(64px 0%, 100% 0%, 100% 100%, 0% 100%, 0% 64px); }
.clip-tr { clip-path: polygon(0% 0%, calc(100% - 64px) 0%, 100% 64px, 100% 100%, 0% 100%); }

/* ════════════════════════════════
   TYPOGRAPHY SCALE
   Базовые размеры для всего сайта.
   Более специфичные правила компонентов
   могут переопределять их.
════════════════════════════════ */
h1 {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800; line-height: 0.92; letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700; line-height: 1.0; letter-spacing: -0.02em;
}
h3 {
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.01em;
}
h4 {
  font-size: 16px;
  font-weight: 700; line-height: 1.3; letter-spacing: 0;
}

/* ════════════════════════════════
   EYEBROW
════════════════════════════════ */
.eyebrow {
  font-size: 13px; font-weight: 800; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 32px;
}

/* ════════════════════════════════
   TAGS
════════════════════════════════ */
.tag {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid;
}
/* context-aware tag (used on bg-dark / bg-mid / bg-white sections) */
.bg-dark .tag-accent,
.bg-mid  .tag-accent { color: var(--gold); border-color: rgba(255,207,11,0.4); background: rgba(255,207,11,0.08); }
.bg-white .tag-accent,
.bg-offwhite .tag-accent { color: var(--blue); border-color: rgba(32,108,185,0.4); background: rgba(32,108,185,0.08); }
/* explicit colour tags */
.tag-gold { color: var(--gold); border-color: rgba(255,207,11,0.4); background: rgba(255,207,11,0.08); }
.tag-blue { color: var(--blue); border-color: rgba(32,108,185,0.4); background: rgba(32,108,185,0.08); }
/* timeline tags */
.tag-done { color: var(--gold); border-color: rgba(255,207,11,0.5); background: rgba(255,207,11,0.08); }
.tag-now  { color: var(--blue); border-color: rgba(32,108,185,0.5); background: rgba(32,108,185,0.08); }
.tag-plan { color: var(--text-2); border-color: var(--border-l); background: transparent; }

/* ════════════════════════════════
   BUTTONS
════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-weight: 700;
  font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 15px 32px;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer; transition: all 0.18s; line-height: 1;
}
.btn-gold { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); }

.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }

.btn-outline-dark { background: transparent; color: var(--navy-dark); border-color: rgba(9,25,59,0.45); }
.btn-outline-dark:hover { border-color: var(--navy-dark); background: var(--navy-dark); color: var(--white); }

.btn-lg { padding: 15px 40px; }

/* ── Icon-link (золотой квадрат + стрелка) ── */
.co-intro-link {
  display: inline-flex; align-items: center; gap: 16px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--white);
  text-decoration: none;
}
.co-intro-link-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; flex-shrink: 0;
  background: var(--gold); color: var(--navy-dark); border-radius: 2px;
}
.co-intro-link-icon svg { transition: transform 0.1s ease; }
.co-intro-link:hover .co-intro-link-icon svg { transform: rotate(-45deg); }

/* ════════════════════════════════
   SECTION HEADER
════════════════════════════════ */
.sec-header { margin-bottom: 56px; }
.sec-header h2 {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700; line-height: 0.95;
  letter-spacing: -0.02em;
  margin-top: 16px; margin-bottom: 16px;
}
.sec-header p { font-size: 16px; line-height: 1.6; max-width: 520px; }
.bg-dark .sec-header p,
.bg-mid  .sec-header p  { color: var(--text-1); }
.bg-white .sec-header p,
.bg-offwhite .sec-header p { color: #3A5570; }
.bg-dark .sec-header h2,
.bg-mid  .sec-header h2  { color: var(--white); }
.bg-white .sec-header h2,
.bg-offwhite .sec-header h2 { color: var(--navy-dark); }

/* ════════════════════════════════
   ICON PLACEHOLDERS
════════════════════════════════ */
.icon-sq    { width: 48px; height: 48px; background: #B0B8C8; border-radius: 4px; flex-shrink: 0; }
.icon-sq-sm { width: 36px; height: 36px; background: #B0B8C8; border-radius: 4px; flex-shrink: 0; }
.icon-sq-lg { width: 64px; height: 64px; background: #B0B8C8; border-radius: 4px; flex-shrink: 0; }
.bg-dark .icon-sq,
.bg-dark .icon-sq-sm,
.bg-dark .icon-sq-lg { background: #3A5570; }

/* ════════════════════════════════
   CTA BAND
════════════════════════════════ */
.cta-band {
  background: var(--white);
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  left: max(calc((100% - 1360px) / 2 + 40px), 40px);
  background: var(--blue); z-index: 0;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 48px;
  padding: 88px 0 88px 72px;
}
.cta-band h2 {
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 700; letter-spacing: -0.01em; line-height: 1.05;
  color: var(--white); margin: 0;
}
.cta-band p {
  font-size: 16px; font-weight: 300;
  line-height: 1.75; color: rgba(255,255,255,0.72); margin: 0;
}
@media (max-width: 991px) {
  .cta-band-inner { padding: 72px 0 72px 48px; }
}
@media (max-width: 768px) {
  .cta-band::before { left: 24px; }
  .cta-band-inner {
    flex-direction: column; align-items: flex-start;
    padding: 64px 0 64px 28px; gap: 32px;
  }
  .cta-band h2 { font-size: 36px; margin-bottom: 0; }
  .cta-band-inner .btn { width: 100%; justify-content: center; }
}

/* Nav стили перенесены в assets/css/nav.css */

/* ════════════════════════════════
   FOOTER (T3 style)
   Row 1: [58% dark brand] [42% photo]
   Row 2: [25% dark spacer] [75% off-white nav]
════════════════════════════════ */
.footer-t3 { display: flex; flex-wrap: wrap; background: var(--navy-dark); }

/* Row 1 — left dark panel */
.footer-left {
  flex: 0 0 58.33%; height: 364px;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 72px 60px; gap: 40px;
  background: var(--navy-dark);
}
.footer-brand-col { display: flex; flex-direction: column; gap: 16px; }
.footer-logo { height: 44px; width: auto; align-self: flex-start; }
.footer-contacts { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.footer-tagline { font-size: 16px; color: var(--text-1); line-height: 1.7; font-weight: 400; }
.footer-contact-link {
  display: flex; align-items: center; gap: 9px;
  font-size: 24px; color: var(--white); font-weight: 400; transition: opacity 0.15s;
}
.footer-contact-link svg { color: var(--blue-lt); flex-shrink: 0; }
.footer-contact-link:hover { opacity: 0.75; }
.footer-copy { font-size: 14px; color: var(--text-2); font-weight: 400; line-height: 1.4; }

/* social column */
.footer-social-col {
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 14px;
  padding-top: 4px; flex-shrink: 0;
}
.footer-social-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2);
}
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid var(--border-d);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--text-1);
  transition: border-color 0.15s, color 0.15s;
}
.footer-social a:hover { border-color: var(--white); color: var(--white); }

/* Row 1 — right photo */
.footer-photo { flex: 0 0 41.67%; height: 364px; position: relative; overflow: hidden; }
.footer-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%; display: block;
}
.footer-photo video {
  position: absolute;
  height: 130%; width: auto;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.footer-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(9,25,59,0) 60%, rgba(9,25,59,0.4) 100%);
}

/* Row 2 — dark spacer with copyright */
.footer-spacer {
  flex: 0 0 25%; background: var(--navy-dark);
  display: flex; align-items: flex-end;
  padding: 0 0 24px 60px;
}

/* Row 2 — off-white nav links */
.footer-right {
  flex: 0 0 75%;
  background: var(--off-white);
  padding: 56px 60px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.footer-col {
  padding: 0 40px;
  border-right: 1px solid rgba(9,25,59,0.10);
}
.footer-col:first-child { padding-left: 0; }
.footer-col:last-child  { padding-right: 0; border-right: none; }
.footer-col h4 {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy-dark); margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 14px; color: #3A5570;
  margin-bottom: 12px; transition: color 0.15s; font-weight: 400;
}
.footer-col a:hover { color: var(--navy-dark); }
.footer-certifications {
  display: flex; gap: 16px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--border-l); margin-top: 32px;
}
.footer-certifications span {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2);
}

/* footer responsive */
@media (max-width: 1024px) {
  .footer-left   { flex: 0 0 55%; padding: 48px 36px; }
  .footer-photo  { flex: 0 0 45%; }
  .footer-spacer { flex: 0 0 20%; }
  .footer-right  { flex: 0 0 80%; padding: 48px 40px; }
  .footer-cols   { grid-template-columns: 1fr 1fr; gap: 0; }
  .footer-col    { padding: 0 20px; border-right: 1px solid rgba(9,25,59,0.10); }
  .footer-col:first-child { padding-left: 0; }
  .footer-col:last-child  { padding-right: 0; border-right: none; }
}
@media (max-width: 768px) {
  .footer-left   { flex: 0 0 100%; height: auto; min-height: 0; padding: 48px 24px; flex-direction: column; gap: 32px; }
  .footer-photo  { flex: 0 0 100%; height: 220px; }
  .footer-spacer { display: none; }
  .footer-right  { flex: 0 0 100%; padding: 40px 24px; }
  .footer-contact-link { font-size: 18px; }
}
@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr 1fr; column-gap: 0; row-gap: 24px; }
}

/* ════════════════════════════════
   WHY-BLOCK — универсальный блок преимуществ
════════════════════════════════ */
.why-cols {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; outline: 1px solid var(--border-l);
}
.why-col {
  padding: 52px 48px;
  border-right: 1px solid var(--border-l);
}
.why-col:last-child { border-right: none; }
.why-col-icon {
  width: 40px; height: 40px;
  color: var(--blue); display: block;
  margin-bottom: 32px;
}
.why-col h3 {
  font-size: 20px; font-weight: 700;
  color: var(--navy-dark); margin-bottom: 16px;
  line-height: 1.2;
}
.why-col p {
  font-size: 16px; color: #3A5570;
  line-height: 1.75; font-weight: 400;
}
@media (max-width: 900px) {
  .why-cols { grid-template-columns: 1fr; }
  .why-col { border-right: none; border-bottom: 1px solid var(--border-l); }
  .why-col:last-child { border-bottom: none; }
  .why-col { padding: 44px 32px; }
  .why-col-icon { margin-bottom: 18px; }
}
