/* =========================================================
   АНО «Центр интеграции и развития креативных индустрий»
   Тёплая культурная палитра · строгий лаконичный стиль
   ========================================================= */

:root {
  --bg: #faf6ef;          /* тёплый кремовый фон */
  --bg-alt: #f2ebdd;      /* фон чередующихся секций */
  --surface: #fffdf8;     /* карточки */
  --ink: #2a2520;         /* основной текст */
  --ink-soft: #6b6258;    /* вторичный текст */
  --accent: #b4532a;      /* терракота */
  --accent-dark: #8f3f1f; /* hover */
  --line: #e3d9c8;        /* тонкие линии */
  --line-strong: #d6c8b1;
  --maxw: 1080px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(42, 37, 32, .04), 0 8px 24px rgba(42, 37, 32, .05);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: 'PT Serif', Georgia, 'Times New Roman', serif; font-weight: 700; }

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

p { margin: 0 0 1rem; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, .92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }

.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; flex: none;
  background: var(--accent); color: #fff;
  border-radius: 8px;
}
.brand-mark svg { width: 32px; height: 32px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-title { font-family: 'PT Serif', serif; font-weight: 700; font-size: 15px; white-space: nowrap; }
.brand-sub { font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; letter-spacing: .2px; }

.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { color: var(--ink); font-size: 15px; font-weight: 500; white-space: nowrap; }
.site-nav a:hover { color: var(--accent); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-strong);
  background: var(--surface); border-radius: 8px; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 0 auto; transition: .25s; }
.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 { padding: 88px 0 72px; border-bottom: 1px solid var(--line); }
.hero-eyebrow {
  text-transform: uppercase; letter-spacing: 2px; font-size: 12.5px;
  color: var(--accent); font-weight: 600; margin-bottom: 22px;
}
.hero-title { font-size: clamp(34px, 6vw, 60px); line-height: 1.08; margin: 0 0 24px; max-width: 16ch; }
.hero-lead { font-size: clamp(17px, 2.2vw, 21px); color: var(--ink-soft); max-width: 62ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 8px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; transition: .2s; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; border-bottom: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); }
.section-eyebrow {
  text-transform: uppercase; letter-spacing: 2px; font-size: 12.5px;
  color: var(--accent); font-weight: 600; margin-bottom: 14px;
}
.section-title { font-size: clamp(26px, 4vw, 38px); line-height: 1.15; margin: 0 0 26px; }
.section-text { font-size: 18px; color: var(--ink-soft); max-width: 70ch; }
.subsection-title { font-size: 21px; margin: 48px 0 22px; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 22px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.card h3 { font-size: 19px; margin: 0 0 10px; }
.card p { color: var(--ink-soft); margin: 0; font-size: 15.5px; }
.card p + p { margin-top: 10px; }
.card-num {
  display: inline-block; font-family: 'PT Serif', serif; font-size: 26px;
  font-weight: 700; color: var(--accent); margin-bottom: 12px;
}
.card-icon { border-top: 3px solid var(--accent); }
.card-meta { margin-top: 14px !important; font-weight: 600; color: var(--ink) !important; font-size: 15px !important; }

/* ---------- Founder ---------- */
.founder-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 36px; align-items: start; }
.founder-text p { font-size: 18px; color: var(--ink-soft); }
.founder-text strong { color: var(--ink); }
.founder-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.founder-list h3 { font-size: 17px; margin: 0 0 16px; }
.founder-list ul { list-style: none; margin: 0; padding: 0; }
.founder-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.founder-list li:last-child { border-bottom: 0; }
.founder-list li span { display: block; font-weight: 400; font-size: 13.5px; color: var(--ink-soft); margin-top: 3px; }

/* ---------- Documents ---------- */
.doc-list { list-style: none; margin: 0 0 40px; padding: 0; }
.doc-item a {
  display: flex; align-items: center; gap: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; color: var(--ink); transition: .2s; box-shadow: var(--shadow);
}
.doc-item a:hover { border-color: var(--accent); color: var(--ink); }
.doc-icon {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 8px;
  background: rgba(180, 83, 42, .1); color: var(--accent);
  font-size: 12px; font-weight: 700; letter-spacing: .5px;
}
.doc-body { flex: 1; }
.doc-name { display: block; font-weight: 600; font-size: 16.5px; }
.doc-desc { display: block; color: var(--ink-soft); font-size: 14px; margin-top: 3px; }
.doc-action { flex: none; color: var(--accent); font-weight: 600; font-size: 14.5px; }

/* ---------- Income (details) ---------- */
.income { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.income summary {
  cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 16.5px; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.income summary::-webkit-details-marker { display: none; }
.income summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.income[open] summary::after { content: "–"; }
.income-body { padding: 4px 24px 24px; }
.income-body ul { color: var(--ink-soft); padding-left: 20px; margin: 12px 0; }
.income-body li { margin-bottom: 8px; }
.income-note { font-size: 14.5px; color: var(--ink-soft); font-style: italic; margin: 0; }

/* ---------- Contacts ---------- */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.contact-block h3 { font-size: 18px; margin: 0 0 18px; }
.contact-person { font-weight: 600; font-size: 16.5px; margin-bottom: 18px; }
.contact-person span { font-weight: 400; color: var(--ink-soft); font-size: 14px; }
.contact-line { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 0; border-top: 1px solid var(--line); margin: 0; }
.contact-label { flex: none; width: 84px; color: var(--ink-soft); font-size: 14px; }

.requisites { margin: 0; }
.requisites > div { padding: 11px 0; border-top: 1px solid var(--line); }
.requisites > div:first-child { border-top: 0; padding-top: 0; }
.requisites dt { color: var(--ink-soft); font-size: 13.5px; margin-bottom: 3px; }
.requisites dd { margin: 0; font-weight: 500; font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d9d1c6; padding: 48px 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer-name { font-family: 'PT Serif', serif; font-size: 17px; color: #fff; margin-bottom: 8px; }
.footer-meta { font-size: 14px; color: #a59c8f; margin: 0; }
.footer-side { text-align: right; max-width: 420px; }
.footer-note { font-size: 13.5px; color: #a59c8f; margin-bottom: 12px; }
.footer-copy { font-size: 13.5px; margin: 0 0 10px; }
.footer-top { color: #fff; font-size: 14px; font-weight: 600; }
.footer-top:hover { color: var(--accent); }

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

/* Навигация сворачивается в бургер раньше, чтобы шапка не теснилась */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px; box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 0; border-top: 1px solid var(--line); font-size: 16px; }
  .site-nav a:first-child { border-top: 0; }
}

@media (max-width: 860px) {
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .founder-grid, .contacts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .brand-title { font-size: 13.5px; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 56px 0; }
  .footer-inner { flex-direction: column; }
  .footer-side { text-align: left; }
}

@media (max-width: 420px) {
  .brand-sub { display: none; }
  .contact-line { flex-direction: column; gap: 2px; }
}

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