/* ===========================================================
   Experimentarium — история музея
   experimentarium.pro
   =========================================================== */

:root {
  --copper: #b87333;
  --copper-light: #d99a5b;
  --copper-deep: #8a4f24;
  --ink: #161a20;
  --ink-soft: #20252e;
  --slate: #2c333f;
  --cream: #f6f2ea;
  --cream-dim: #e7ddcd;
  --text: #2a2e36;
  --muted: #6b7280;
  --line: #e4ddd0;
  --shadow: 0 18px 50px rgba(22, 26, 32, .12);
  --radius: 18px;
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--copper);
  margin-bottom: 14px;
}

h1, h2, h3 { font-weight: 800; line-height: 1.15; color: var(--ink); letter-spacing: -.01em; }

section { padding: 92px 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 242, 234, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: conic-gradient(from 210deg, var(--copper-light), var(--copper), var(--copper-deep), var(--copper-light));
  display: grid; place-items: center;
  color: #fff; font-weight: 900; box-shadow: inset 0 0 0 2px rgba(255,255,255,.25);
}
.brand small { display: block; font-weight: 500; font-size: .68rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: .92rem; font-weight: 600; color: var(--slate); transition: color .2s; }
.nav-links a:hover { color: var(--copper); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  padding: 120px 0;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(16,18,22,.92) 0%, rgba(20,24,30,.62) 45%, rgba(20,24,30,.25) 100%),
              url("images/helix.jpg") center/cover no-repeat;
  z-index: -1;
}
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.4vw, 4rem); max-width: 14ch; }
.hero .eyebrow { color: var(--copper-light); }
.hero p { font-size: 1.18rem; max-width: 50ch; margin-top: 22px; color: rgba(255,255,255,.86); }
.hero-actions { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: .96rem; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s, background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--copper); color: #fff; }
.btn-primary:hover { background: var(--copper-light); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.hero-facts {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(16,18,22,.55);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero-facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 22px; padding-bottom: 22px; }
.fact { text-align: center; }
.fact b { display: block; font-size: 1.7rem; color: var(--copper-light); font-weight: 800; }
.fact span { font-size: .82rem; color: rgba(255,255,255,.75); }

/* ---------- Intro ---------- */
.intro .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.intro h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 22px; }
.intro p { color: #444b56; margin-bottom: 16px; }
.intro .media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.intro .media img { aspect-ratio: 4/3; object-fit: cover; }
.intro figcaption { font-size: .78rem; color: var(--muted); padding: 10px 14px; background: #fff; }

/* ---------- Timeline ---------- */
.timeline { background: var(--ink); color: #fff; }
.timeline h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.timeline .head { max-width: 60ch; margin-bottom: 56px; }
.timeline .head p { color: rgba(255,255,255,.72); margin-top: 14px; }
.tl { position: relative; }
.tl::before {
  content: ""; position: absolute; left: 90px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--copper), transparent);
}
.tl-item { display: grid; grid-template-columns: 90px 1fr; gap: 34px; padding: 22px 0; position: relative; }
.tl-year {
  text-align: right; font-weight: 800; font-size: 1.25rem; color: var(--copper-light);
  position: relative;
}
.tl-item::after {
  content: ""; position: absolute; left: 84px; top: 30px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--copper); box-shadow: 0 0 0 4px rgba(184,115,51,.25);
}
.tl-body h3 { color: #fff; font-size: 1.18rem; margin-bottom: 6px; }
.tl-body p { color: rgba(255,255,255,.72); font-size: .98rem; }

/* ---------- Famous / features ---------- */
.famous .head { text-align: center; max-width: 62ch; margin: 0 auto 56px; }
.famous h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 16px; }
.famous .head p { color: #4a515c; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: 0 8px 24px rgba(22,26,32,.05);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card .ico {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, #f6e7d6, #f0d3b3); color: var(--copper-deep);
  margin-bottom: 18px; font-size: 1.5rem;
}
.card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.card p { color: #525964; font-size: .95rem; }

/* ---------- Location ---------- */
.location { background: var(--cream-dim); }
.location .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.location h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 20px; }
.info-list { list-style: none; margin-top: 26px; }
.info-list li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-list .ic {
  flex: 0 0 44px; height: 44px; border-radius: 12px; background: #fff;
  display: grid; place-items: center; color: var(--copper); font-size: 1.2rem; box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.info-list b { display: block; color: var(--ink); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.info-list a, .info-list span { color: #3a4049; font-size: 1.05rem; font-weight: 600; }
.info-list a:hover { color: var(--copper); }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 6px solid #fff; }
.map-frame iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- Feedback ---------- */
.feedback { background: var(--ink); color: #fff; }
.feedback .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.feedback h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 18px; }
.feedback .lead { color: rgba(255,255,255,.72); margin-bottom: 26px; }
.feedback ul { list-style: none; }
.feedback ul li { padding: 10px 0 10px 30px; position: relative; color: rgba(255,255,255,.82); }
.feedback ul li::before { content: "✦"; position: absolute; left: 0; color: var(--copper-light); }

.form-card { background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); color: var(--text); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 7px; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 11px;
  font-family: inherit; font-size: .96rem; color: var(--text); background: #fbf9f5; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px rgba(184,115,51,.15); background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.field.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rating { display: flex; gap: 6px; direction: rtl; justify-content: flex-end; }
.rating input { display: none; }
.rating label { font-size: 1.7rem; color: #d8cdbb; cursor: pointer; transition: color .15s; margin: 0; }
.rating input:checked ~ label,
.rating label:hover, .rating label:hover ~ label { color: var(--copper); }
.form-note { font-size: .78rem; color: var(--muted); margin-top: 6px; }
.form-msg { display: none; padding: 14px 16px; border-radius: 11px; background: #e8f6ec; color: #1d7a3e; font-weight: 600; margin-bottom: 18px; }
.form-msg.show { display: block; }

.reviews { margin-top: 40px; }
.reviews h3 { color: #fff; font-size: 1.15rem; margin-bottom: 18px; }
.review-list { display: grid; gap: 14px; }
.review {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 13px; padding: 16px 18px;
}
.review .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.review .who { font-weight: 700; color: #fff; }
.review .stars { color: var(--copper-light); font-size: .9rem; }
.review p { color: rgba(255,255,255,.78); font-size: .94rem; }
.review .date { font-size: .74rem; color: rgba(255,255,255,.45); }
.reviews .empty { color: rgba(255,255,255,.5); font-size: .92rem; }

/* ---------- Footer ---------- */
.site-footer { background: #0f1217; color: rgba(255,255,255,.7); padding: 56px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.foot-grid h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.foot-grid a { display: block; padding: 5px 0; color: rgba(255,255,255,.65); font-size: .94rem; }
.foot-grid a:hover { color: var(--copper-light); }
.foot-grid p { font-size: .94rem; margin-bottom: 8px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: .82rem; flex-wrap: wrap; gap: 12px; }
.foot-bottom a { color: rgba(255,255,255,.65); }
.foot-bottom a:hover { color: var(--copper-light); }
.disclaimer { font-size: .76rem; color: rgba(255,255,255,.38); margin-top: 14px; line-height: 1.6; }

/* ---------- Cookie banner ---------- */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100;
  max-width: 760px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  padding: 22px 24px;
  display: none;
  grid-template-columns: 1fr auto; gap: 22px; align-items: center;
}
.cookie-bar.show { display: grid; }
.cookie-bar h5 { font-size: 1rem; color: var(--ink); margin-bottom: 6px; }
.cookie-bar p { font-size: .88rem; color: #555c66; }
.cookie-bar p a { color: var(--copper); font-weight: 600; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 11px 20px; font-size: .88rem; }
.btn-mini-ghost { background: transparent; border: 2px solid var(--line); color: var(--slate); }
.btn-mini-ghost:hover { border-color: var(--copper); color: var(--copper); }

/* ---------- Legal page ---------- */
.legal { padding-top: 60px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 10px; }
.legal .updated { color: var(--muted); font-size: .9rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.4rem; margin: 36px 0 12px; }
.legal h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.legal p, .legal li { color: #3f454e; margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 16px; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .92rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.legal th { background: var(--cream-dim); }
.legal .back { display: inline-flex; align-items: center; gap: 8px; color: var(--copper); font-weight: 600; margin-bottom: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  section { padding: 64px 0; }
  .nav-links {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 10px 24px 20px;
    transform: translateY(-130%); transition: transform .3s; box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .intro .wrap, .location .wrap, .feedback .wrap { grid-template-columns: 1fr; gap: 36px; }
  .cards { grid-template-columns: 1fr; }
  .hero-facts .wrap { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .tl::before { left: 60px; }
  .tl-item { grid-template-columns: 60px 1fr; gap: 22px; }
  .tl-item::after { left: 54px; }
  .cookie-bar { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .field.row { grid-template-columns: 1fr; }
  .hero-facts .wrap { grid-template-columns: 1fr 1fr; }
}
