:root {
  --bg: #f4efe7;
  --paper: #fffaf4;
  --text: #1e1a18;
  --muted: #6c625d;
  --accent: #9d2f23;
  --accent-dark: #6f1e16;
  --line: rgba(30, 26, 24, 0.12);
  --shadow: 0 18px 40px rgba(54, 34, 24, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7f2eb 0%, #efe7dc 100%);
  line-height: 1.55;
}

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

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

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(247, 242, 235, 0.86);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.logo {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.nav a {
  color: var(--muted);
  font-size: 0.98rem;
}

.hero,
.section {
  padding: 72px 0;
}

.hero-grid,
.story-grid,
.contacts-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 4.3rem);
  line-height: 1.05;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.12;
  margin-bottom: 16px;
}

.lead,
.section-heading p,
.story-copy p,
.contact-card p,
.record-body p {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 700;
}

.button.primary {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.button.secondary {
  background: rgba(255,255,255,0.5);
}

.button.wide {
  width: 100%;
}

.hero-points {
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
}

.card-frame,
.record-card,
.note-card,
.contact-card {
  background: var(--paper);
  border: 1px solid rgba(30, 26, 24, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-frame {
  overflow: hidden;
}

.card-frame img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.record-card {
  overflow: hidden;
}

.record-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.record-body {
  padding: 20px;
}

.record-body h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.record-body span {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
}

.alt {
  background: rgba(255, 250, 244, 0.6);
}

.stack {
  display: grid;
  gap: 18px;
}

.note-card,
.contact-card {
  padding: 24px;
}

.contacts-grid {
  align-items: stretch;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
  color: var(--muted);
}

@media (max-width: 768px) {
  .hero,
  .section {
    padding: 56px 0;
  }

  .header-inner,
  .hero-grid,
  .story-grid,
  .contacts-grid,
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 14px 0;
  }

  .nav {
    gap: 14px;
  }

  .hero-grid,
  .story-grid,
  .contacts-grid {
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .logo {
    font-size: 0.98rem;
  }
}
