@import url("gle-layout.css");

:root {
  --gle-bg: #f4f1ec;
  --gle-ink: #1c1917;
  --gle-muted: #57534e;
  --gle-accent: #2f6f32;
  --gle-accent-soft: #e8f5e9;
  --gle-card: #ffffff;
  --gle-border: #e7e5e4;
  --gle-brand-brown: #7c3b00;
  --gle-header-h: 64px;
  --gle-hero-fallback: linear-gradient(165deg, #3d2a1c 0%, #1a1410 55%, #0f0c0a 100%);
  /* Ширина полотна как в AI/PDF (~1920 pt) — только фоны hero */
  --gle-canvas-max: 1920px;
  --gle-canvas-pad: clamp(12px, 2.5vw, 48px);
  /* Контент страниц: текст, сетки, форма, подвал (шире прежних 1120px) */
  --gle-content-max: 1360px;
  --gle-content-pad: clamp(1rem, 2vw, 1.5rem);
  /* 100%, не 100vw — иначе на мобильных контент уезжает вправо */
  --gle-content-width: min(var(--gle-content-max), 100%);
}

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

html {
  font-size: 16px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: Arial, "Helvetica Neue", "Helvetica", sans-serif;
  color: var(--gle-ink);
  background: var(--gle-bg);
  line-height: 1.55;
}


h1, h2, h3, h4, h5, h6 {
  font-family: "Helvetica", Arial, sans-serif;
  font-weight: 700;
}

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

.gle-to-top {
  position: fixed;
  right: clamp(1rem, 2.5vw, 1.5rem);
  bottom: clamp(1rem, 2.5vw, 1.5rem);
  z-index: 80;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.9);
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.gle-to-top:hover,
.gle-to-top:focus-visible {
  color: #fff;
  background: #000;
  text-decoration: none;
}

.gle-wrap {
  max-width: var(--gle-content-max);
  margin: 0 auto;
  padding: 0 var(--gle-content-pad);
  box-sizing: border-box;
}

.gle-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--gle-brand-brown, #5c3317);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.gle-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--gle-header-h);
  gap: 1rem;
}

.gle-logo {
  font-family: "Acrom-Light", system-ui, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}
.gle-logo:hover {
  text-decoration: none;
  color: #f0d9a8;
}

.gle-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  justify-content: flex-end;
}

.gle-nav a {
  font-family: "Acrom-Light", system-ui, Arial, sans-serif;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.35rem;
}
.gle-nav a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.gle-nav a.is-active {
  color: #fff;
  font-weight: 400;
}

.gle-hero {
  background: var(--gle-hero-fallback);
  color: #fafaf9;
  padding: 3rem 0 2.5rem;
  margin-bottom: 2rem;
}

.gle-hero--photo {
  background-image: linear-gradient(180deg, rgba(12, 10, 8, 0.78) 0%, rgba(12, 10, 8, 0.5) 45%, rgba(12, 10, 8, 0.72) 100%),
    var(--gle-hero-image);
  background-size: cover;
  background-position: center;
}

.gle-hero .gle-breadcrumb {
  color: rgba(255, 255, 255, 0.72);
}

.gle-hero .gle-breadcrumb a {
  color: rgba(255, 255, 255, 0.88);
}

.gle-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
}

.gle-hero p {
  margin: 0;
  opacity: 0.9;
  max-width: 42rem;
}

.gle-breadcrumb {
  font-size: 0.85rem;
  color: var(--gle-muted);
  margin-bottom: 1rem;
}
.gle-breadcrumb a {
  color: var(--gle-muted);
}

.gle-section {
  margin-bottom: 2.5rem;
}

.gle-section h2 {
  font-size: 1.25rem;
  margin: 0 0 1rem;
  border-left: 4px solid var(--gle-accent);
  padding-left: 0.65rem;
}

.gle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.gle-card {
  background: var(--gle-card);
  border: 1px solid var(--gle-border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gle-card__ph {
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #d6d3d1, #e7e5e4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gle-muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 0.75rem;
}

.gle-card__ph--empty {
  min-height: 8rem;
}

.gle-photo {
  display: block;
  width: 100%;
  height: auto;
}

.gle-strip__cell .gle-photo {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gle-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e7e5e4;
}

.gle-card__media .gle-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gle-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.gle-strip__cell {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gle-border);
  background: var(--gle-card);
}

.gle-sources {
  font-size: 0.8rem;
  margin-top: 1rem;
}

.gle-sources a {
  color: inherit;
  text-decoration: underline;
}

.gle-card__body {
  padding: 0.85rem 1rem 1rem;
}

.gle-card__body h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.gle-card__body p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--gle-muted);
}

.gle-placeholder-block {
  background: var(--gle-card);
  border: 1px dashed var(--gle-border);
  border-radius: 10px;
  padding: 1.25rem;
  color: var(--gle-muted);
  font-size: 0.9rem;
}

.gle-list-check {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--gle-muted);
  font-size: 0.95rem;
}

.gle-footer {
  margin-top: 3rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--gle-border);
  font-size: 0.85rem;
  color: var(--gle-muted);
}

.gle-tag {
  display: inline-block;
  background: var(--gle-accent-soft);
  color: var(--gle-accent);
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}



/* ── Burger menu (mobile only) ──────────────────────────── */
.gle-burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.gle-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.9);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.gle-burger--open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.gle-burger--open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.gle-burger--open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 768px) {
  .gle-burger { display: flex; }

  .gle-nav {
    display: none;
    position: absolute;
    top: var(--gle-header-h, 64px);
    left: 0;
    right: 0;
    background: var(--gle-brand-brown, #5c3317);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1.25rem 1.25rem;
    gap: 0;
    z-index: 200;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  }
  .gle-nav--open { display: flex; }

  .gle-nav a {
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    padding: 0.6rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .gle-nav a:last-child { border-bottom: none; }

  .gle-header__inner {
    flex-direction: row;
    align-items: center;
    padding: 0;
  }
}
