/* =========================================================
   KORYO — базовые стили статического сайта
   Цвета и шрифты вынесены в переменные ниже — меняйте здесь.
   ========================================================= */

:root {
  /* PLACEHOLDER: фирменные цвета — замените на свои */
  --color-bg: #ffffff;
  --color-surface: #f6f7f9;
  --color-text: #1a1d21;
  --color-muted: #5b6472;
  --color-primary: #2b6cb0;
  --color-primary-dark: #1e4e82;
  --color-border: #e4e7ec;
  --color-white: #ffffff;

  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PT Sans", sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.08), 0 4px 16px rgba(16, 24, 40, 0.06);
  --container: 1140px;
  --space: 1rem;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.05s;
  text-align: center;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
}
.btn-ghost:hover { border-color: var(--color-primary); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}
.brand-mark {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  color: var(--color-text);
}
.brand:hover { text-decoration: none; }

.nav-list {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  color: var(--color-text);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}
.nav-list a:hover { color: var(--color-primary); text-decoration: none; }
.nav-list a.is-active { color: var(--color-primary); }
.nav-list a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--color-primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--color-text);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(4rem, 10vw, 7rem) 0;
  color: #fff;
  background-image:
    linear-gradient(rgba(12, 20, 38, 0.78), rgba(12, 20, 38, 0.86)),
    url("../assets/flags-hero.svg");
  background-size: cover;
  background-position: center;
}
.hero h1 { color: #fff; }
.hero-content { max-width: 640px; }
.lead {
  font-size: 1.2rem;
  color: var(--color-muted);
}
.hero .lead { color: rgba(255, 255, 255, 0.92); }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.hero .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.12); }
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--color-surface);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-bottom: 1px solid var(--color-border);
}

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-sub { color: var(--color-muted); }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(16,24,40,0.10); }
.card-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--color-surface);
  color: var(--color-primary);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.service-card { display: flex; flex-direction: column; }
.link-arrow { margin-top: auto; font-weight: 600; padding-top: 0.75rem; }

/* ---------- Prose / lists ---------- */
.prose { max-width: 760px; }
.check-list { list-style: none; padding: 0; }
.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* ---------- Stats ---------- */
.stats { background: var(--color-surface); }
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  color: var(--color-primary);
}
.stat-label { color: var(--color-muted); }

/* ---------- CTA ---------- */
.cta { background: var(--color-primary); color: #fff; text-align: center; }
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,0.85); }
.cta .btn-primary { background: #fff; color: var(--color-primary); }
.cta .btn-primary:hover { background: var(--color-surface); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2.5rem;
}
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { margin-bottom: 1.25rem; }
.contact-label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  margin-bottom: 0.15rem;
}
.contact-form .field { margin-bottom: 1.1rem; }
.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--color-text);
  background: #fff;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-primary);
  outline: none;
}
.map-placeholder {
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  min-height: 300px;
  display: grid;
  place-items: center;
  color: var(--color-muted);
  text-align: center;
  padding: 1rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #14171c;
  color: #c7ccd4;
  padding-top: 3rem;
  margin-top: 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}
.site-footer .brand-mark { color: #fff; }
.site-footer h4 { color: #fff; margin-bottom: 0.75rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.site-footer a { color: #c7ccd4; }
.site-footer a:hover { color: #fff; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0 0.75rem;
  font-size: 0.85rem;
  color: #8a919c;
  line-height: 1.5;
}
.footer-legal h4 { color: #fff; margin-bottom: 0.6rem; }
.footer-legal p { margin-bottom: 1rem; max-width: 70ch; }
.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 2rem;
  margin: 0;
}
.legal-grid > div { display: flex; gap: 0.5rem; }
.legal-grid dt { color: #c7ccd4; font-weight: 600; white-space: nowrap; margin: 0; }
.legal-grid dd { margin: 0; }
.legal-full { grid-column: 1 / -1; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
  font-size: 0.9rem;
  color: #8a919c;
}
@media (max-width: 860px) {
  .legal-grid { grid-template-columns: 1fr; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-120%);
    transition: transform 0.25s ease;
    box-shadow: var(--shadow);
  }
  .nav.is-open { transform: translateY(0); }
  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
  }
  .nav-list li { border-bottom: 1px solid var(--color-border); }
  .nav-list li:last-child { border-bottom: 0; }
  .nav-list a { display: block; padding: 0.9rem 0; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
