/* Knowledge Tool Box Ltd — styles */

:root {
  --navy: #1B2D5C;
  --navy-dark: #0F1E40;
  --accent: #3D7FBF;
  --accent-light: #6BA3D9;
  --graphite: #2C3E50;
  --text: #1F2937;
  --text-muted: #6B7280;
  --text-soft: #9CA3AF;
  --bg: #FFFFFF;
  --bg-soft: #F9FAFB;
  --bg-tint: #F3F6FB;
  --border: #E5E7EB;
  --border-soft: #F0F2F5;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--navy); }

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--navy);
  font-size: 16px;
}

.logo img { height: 44px; width: auto; }

.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav a {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  font-family: inherit;
}

.btn-primary,
.btn-primary:visited {
  background: var(--navy);
  color: white;
}

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

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

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

/* Hero */
.hero {
  padding: 96px 0 80px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-tint) 100%);
}

.hero-inner {
  max-width: 820px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 56px;
  line-height: 1.08;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero .lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Section */
.section {
  padding: 88px 0;
}

.section-soft { background: var(--bg-soft); }

.section-header {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 17px;
  color: var(--text-muted);
}

/* Grid cards */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  padding: 32px;
  background: white;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  transition: all 0.2s;
}

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

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--bg-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.card-icon svg { width: 22px; height: 22px; }

.card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

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

/* Process */
.process-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.process-step {
  position: relative;
}

.process-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1.2px;
  margin-bottom: 12px;
}

.process-step h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

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

/* Industries */
.industry-card {
  padding: 36px 32px;
  background: var(--navy);
  color: white;
  border-radius: 10px;
}

.industry-card h3 {
  font-size: 20px;
  color: white;
  margin-bottom: 14px;
}

.industry-card p {
  color: rgba(255,255,255,0.75);
  font-size: 15px;
}

/* Work */
.work-item {
  padding: 40px;
  background: white;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  margin-bottom: 20px;
}

.work-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.work-meta span:not(:last-child)::after {
  content: '·';
  margin-left: 16px;
  color: var(--text-soft);
}

.work-item h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.work-item p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 720px;
}

.work-results {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}

.result-stat .num {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}

.result-stat .label {
  font-size: 13px;
  color: var(--text-muted);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text h2 {
  font-size: 36px;
  color: var(--navy);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.about-text p {
  font-size: 16.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.7;
}

.about-facts {
  padding: 32px;
  background: var(--bg-tint);
  border-radius: 10px;
}

.fact-item {
  padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.fact-item:last-child { border-bottom: none; }

.fact-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.fact-value {
  font-size: 15px;
  color: var(--navy);
  font-weight: 500;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-info h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 12px;
  margin-top: 28px;
}

.contact-info h3:first-of-type { margin-top: 0; }

.contact-info p, .contact-info a {
  font-size: 17px;
  color: var(--text);
  line-height: 1.5;
}

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

.contact-form {
  background: var(--bg-soft);
  padding: 36px;
  border-radius: 10px;
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-row input, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  background: white;
}

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

.form-row textarea { resize: vertical; min-height: 120px; }

/* CTA band */
.cta-band {
  background: var(--navy);
  color: white;
  padding: 72px 0;
  text-align: center;
}

.cta-band h2 {
  font-size: 36px;
  color: white;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.cta-band p {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .btn-primary,
.cta-band .btn-primary:visited {
  background: white;
  color: var(--navy);
}

.cta-band .btn-primary:hover {
  background: var(--bg-tint);
  color: var(--navy);
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: white;
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
  font-size: 14px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.6);
  max-width: 280px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}
.footer-col a:hover { color: white; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal a {
  color: rgba(255,255,255,0.6);
  margin-left: 20px;
}

.footer-legal a:hover { color: white; }

/* Article (privacy / terms) */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 0;
}

.article h1 {
  font-size: 40px;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.article .updated {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 40px;
}

.article h2 {
  font-size: 22px;
  color: var(--navy);
  margin: 36px 0 14px;
}

.article p {
  font-size: 15.5px;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 16px;
}

.article ul {
  margin: 0 0 18px 24px;
}

.article li {
  font-size: 15.5px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 8px;
}

/* Page header (simple) */
.page-header {
  padding: 80px 0 56px;
  background: var(--bg-tint);
  border-bottom: 1px solid var(--border-soft);
}

.page-header h1 {
  font-size: 44px;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}

.page-header p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 680px;
}

/* Responsive */
@media (max-width: 920px) {
  .grid-3, .grid-4, .process-row { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero h1 { font-size: 42px; }
  .section { padding: 64px 0; }
  .hero { padding: 72px 0 60px; }
}

@media (max-width: 600px) {
  .nav { display: none; }
  .grid-2, .grid-3, .grid-4, .process-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .section-header h2, .about-text h2, .cta-band h2 { font-size: 28px; }
  .work-item { padding: 28px 24px; }
  .work-results { gap: 24px; }
  .page-header h1 { font-size: 32px; }
  .article h1 { font-size: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-legal a { margin-left: 0; margin-right: 16px; }
}

/* === IMAGE INTEGRATIONS === */

/* Hero with image */
.hero-with-image .hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: var(--max);
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Atmospheric image strip — для сепаратора между секциями */
.image-band {
  padding: 0;
  background: var(--bg-soft);
}

.image-band img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.image-band-tall img { height: 560px; }

/* Case study with image */
.work-item-with-image {
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  align-items: stretch;
}

.work-item-image {
  background: var(--bg-tint);
}

.work-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 380px;
}

.work-item-content {
  padding: 44px 44px 36px;
}

.work-item-content h3 { margin-top: 8px; }

/* About with image */
.about-with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 64px;
  padding-top: 64px;
  border-top: 1px solid var(--border-soft);
}

.about-image img {
  width: 100%;
  border-radius: 12px;
}

/* Services hero with image */
.services-hero-image {
  margin-top: 48px;
  border-radius: 12px;
  overflow: hidden;
}

.services-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive */
@media (max-width: 920px) {
  .hero-with-image .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .work-item-with-image {
    grid-template-columns: 1fr;
  }
  .work-item-image img { min-height: 240px; }
  .work-item-content { padding: 32px 28px; }
  .about-with-image { grid-template-columns: 1fr; gap: 32px; }
  .image-band img { height: 320px; }
  .image-band-tall img { height: 360px; }
}

@media (max-width: 600px) {
  .work-item-content { padding: 24px 20px; }
  .image-band img { height: 220px; }
}
