/* ============================================
   GEOTOP.AGENCY — Design System
   Палитра: Кремовый + Антрацит + Золото
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500&family=Onest:wght@300;400;500&display=swap');

:root {
  --cream:        #F7F5F0;
  --cream-dark:   #EEEAE2;
  --cream-border: #E0DBD0;
  --anthracite:   #1C1C1C;
  --anthracite-2: #2A2A2A;
  --anthracite-3: #3A3A3A;
  --gold:         #C8A96E;
  --gold-light:   #E8D5A8;
  --gold-dark:    #9A7A45;
  --muted:        #8A8880;
  --muted-light:  #B8B4AC;
  --white:        #FFFFFF;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Onest', system-ui, sans-serif;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  20px;

  --max-width:  1160px;
  --section-v:  96px;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--anthracite);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.25;
  color: var(--anthracite);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { color: var(--anthracite); }

.text-muted   { color: var(--muted); }
.text-gold    { color: var(--gold); }
.text-small   { font-size: 0.875rem; }
.text-large   { font-size: 1.125rem; }
.text-label   { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; }
.text-center  { text-align: center; }

/* ============================================
   LAYOUT
   ============================================ */

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

.section { padding: var(--section-v) 0; }
.section-sm { padding: 64px 0; }
.section-lg { padding: 120px 0; }

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

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream-border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--anthracite);
}

.nav-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--anthracite);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-mark span {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.nav-links a:hover { color: var(--anthracite); }
.nav-links a.active { color: var(--anthracite); }

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

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--anthracite);
  transition: all 0.3s;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--anthracite);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--anthracite-2);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: var(--anthracite);
}
.btn-gold:hover {
  background: var(--gold-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--anthracite);
  border: 1px solid var(--cream-border);
}
.btn-outline:hover {
  border-color: var(--anthracite);
  background: var(--anthracite);
  color: var(--cream);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 12px 0;
}
.btn-ghost:hover { color: var(--anthracite); }

.btn-sm { padding: 8px 16px; font-size: 0.8125rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* ============================================
   CARDS
   ============================================ */

.card {
  background: var(--white);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.card-cream {
  background: var(--cream-dark);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.card-dark {
  background: var(--anthracite);
  border: 1px solid var(--anthracite-3);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: var(--cream);
}

.card-dark h3, .card-dark h4 { color: var(--cream); }
.card-dark p { color: var(--muted-light); }

/* ============================================
   TAGS & BADGES
   ============================================ */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.tag-gold {
  background: rgba(200, 169, 110, 0.12);
  color: var(--gold-dark);
  border: 1px solid rgba(200, 169, 110, 0.3);
}

.tag-dark {
  background: var(--anthracite);
  color: var(--gold);
}

.tag-cream {
  background: var(--cream-dark);
  color: var(--muted);
  border: 1px solid var(--cream-border);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,169,110,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-eyebrow-line {
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.hero-title { margin-bottom: 24px; }

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--cream-border);
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--anthracite);
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stat-num span { color: var(--gold); }

.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--muted);
  max-width: 120px;
  line-height: 1.4;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header { margin-bottom: 56px; }
.section-header.centered { text-align: center; }

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-eyebrow.centered {
  justify-content: center;
}

.section-eyebrow-line {
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.section-title { margin-bottom: 16px; }

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.7;
}

.section-subtitle.centered { margin: 0 auto; }

/* ============================================
   DIVIDERS
   ============================================ */

.divider {
  border: none;
  border-top: 1px solid var(--cream-border);
  margin: 0;
}

/* ============================================
   DEFINITION BLOCKS (citation bait)
   ============================================ */

.definition-block {
  border-left: 3px solid var(--gold);
  padding: 20px 24px;
  background: var(--white);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 24px 0;
}

.definition-block .definition-term {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.definition-block p { color: var(--muted); font-size: 0.9375rem; }

/* ============================================
   FAQ ACCORDION
   ============================================ */

.faq-item {
  border-bottom: 1px solid var(--cream-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--anthracite);
  gap: 16px;
}

.faq-icon {
  width: 24px;
  height: 24px;
  border: 1px solid var(--cream-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
}

.faq-item.open .faq-icon {
  background: var(--anthracite);
  color: var(--gold);
  border-color: var(--anthracite);
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 0 20px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 720px;
}

.faq-item.open .faq-answer { display: block; }

/* ============================================
   TABLE
   ============================================ */

.table-wrap { overflow-x: auto; margin: 24px 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--cream-border);
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--cream-border);
  color: var(--anthracite);
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--cream); }

/* ============================================
   BREADCRUMBS
   ============================================ */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 32px;
}

.breadcrumb a:hover { color: var(--anthracite); }

.breadcrumb-sep { color: var(--muted-light); }

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--anthracite);
  color: var(--cream);
  padding: 64px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand-name .logo-mark {
  width: 28px;
  height: 28px;
  background: var(--gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand-name .logo-mark span {
  color: var(--anthracite);
  font-size: 0.8rem;
  font-weight: 500;
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 280px;
}

.footer-col-title {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 500;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(247,245,240,0.6);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--cream); }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--anthracite-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 0.8125rem;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-bottom-links a:hover { color: var(--cream); }

/* ============================================
   UTILITY
   ============================================ */

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }

.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8   { gap: 8px; }
.gap-12  { gap: 12px; }
.gap-16  { gap: 16px; }
.gap-24  { gap: 24px; }
.gap-32  { gap: 32px; }

/* ============================================
   HERO AI VISUAL
   ============================================ */

.hero-ai-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ai-card {
  background: var(--white);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 8px 40px rgba(28,28,28,0.08);
}

.ai-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.ai-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cream-border);
}

.ai-card-title {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: 6px;
  letter-spacing: 0.02em;
}

.ai-query {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 16px;
  padding: 10px 14px;
  background: var(--cream);
  border-radius: var(--radius-md);
  line-height: 1.5;
  border: 1px solid var(--cream-border);
}

.ai-answer {
  margin-bottom: 16px;
}

.ai-answer p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.5;
}

.ai-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  margin-bottom: 6px;
  border: 1px solid var(--cream-border);
  font-size: 0.875rem;
  color: var(--muted);
  transition: all 0.3s;
}

.ai-result--active {
  border-color: var(--gold);
  background: rgba(200,169,110,0.06);
  color: var(--anthracite);
}

.ai-result--active strong {
  color: var(--anthracite);
  font-weight: 500;
}

.ai-result-num {
  font-size: 0.75rem;
  color: var(--muted-light);
  min-width: 14px;
}

.ai-result-icon {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--white);
  flex-shrink: 0;
}

.ai-input-row {
  border-top: 1px solid var(--cream-border);
  padding-top: 14px;
}

.ai-input-field {
  background: var(--cream);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--muted);
  min-height: 40px;
  display: flex;
  align-items: center;
}

.ai-cursor {
  color: var(--gold);
  font-weight: 300;
  font-size: 1.1rem;
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@media (max-width: 900px) {
  .hero-ai-visual { display: none; }
  .hero section .container > div {
    grid-template-columns: 1fr !important;
  }
}



@media (max-width: 1024px) {
  :root { --section-v: 72px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  :root { --section-v: 56px; }

  .nav-links { display: none; }
  .nav-burger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--cream-border);
    padding: 20px 24px;
    gap: 16px;
    z-index: 99;
  }

  .hero { padding: 64px 0 48px; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: 24px; }
  .nav-cta .btn { display: none; }
}
