:root {
  --bg: #0c1210;
  --bg-2: #121a17;
  --ink: #f2f5f1;
  --muted: #a7b3aa;
  --line: rgba(242, 245, 241, 0.12);
  --accent: #c8f54a;
  --accent-ink: #10160f;
  --panel: rgba(18, 26, 23, 0.88);
  --glow: rgba(200, 245, 74, 0.18);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(200, 245, 74, 0.14), transparent 55%),
    radial-gradient(900px 600px at 100% 0%, rgba(62, 120, 98, 0.35), transparent 50%),
    linear-gradient(180deg, #0a0f0d 0%, var(--bg) 40%, #0e1613 100%);
  overflow-x: hidden;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.05;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.top,
main,
.foot,
.sheet {
  position: relative;
  z-index: 2;
}

.top {
  position: fixed;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(12, 18, 16, 0.85), rgba(12, 18, 16, 0));
  z-index: 20;
}

.brand-mark {
  font-family: var(--serif);
  font-size: 1.55rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.top-cta {
  color: var(--accent-ink);
  background: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
}

.hero {
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 7rem 1.25rem 3.5rem;
  position: relative;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 12, 10, 0.25) 0%, rgba(8, 12, 10, 0.72) 55%, rgba(8, 12, 10, 0.95) 100%),
    radial-gradient(ellipse at 70% 30%, rgba(200, 245, 74, 0.2), transparent 45%),
    url("photos/hero.svg") center / cover no-repeat,
    linear-gradient(135deg, #173028, #0c1210 55%, #1a2a22);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

.hero-inner {
  max-width: 720px;
  animation: rise 0.9s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 12vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.35rem, 3.6vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  max-width: 18ch;
}

.hero-sub {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 38ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.strip {
  padding: 1.25rem 1.25rem 0;
  display: grid;
  gap: 0.75rem;
  animation: rise 1s 0.15s ease both;
}

.strip-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.strip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.strip-list li {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(200, 245, 74, 0.08);
  box-shadow: inset 0 0 0 1px rgba(200, 245, 74, 0.28);
  font-weight: 600;
  font-size: 0.92rem;
}

.points {
  padding: 3.5rem 1.25rem 2rem;
}

.section-head {
  max-width: 560px;
  margin-bottom: 1.75rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }

  .top,
  .hero,
  .strip,
  .points,
  .contact,
  .foot {
    padding-left: clamp(1.25rem, 5vw, 4rem);
    padding-right: clamp(1.25rem, 5vw, 4rem);
  }

  .top {
    padding-top: 1.25rem;
  }
}

.card {
  appearance: none;
  border: 0;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  display: grid;
  gap: 0.9rem;
  padding: 0;
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: rise 0.8s ease both;
}

.card:nth-child(2) {
  animation-delay: 0.08s;
}
.card:nth-child(3) {
  animation-delay: 0.16s;
}
.card:nth-child(4) {
  animation-delay: 0.24s;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px rgba(200, 245, 74, 0.35), var(--shadow);
  outline: none;
}

.card-media {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(160deg, rgba(200, 245, 74, 0.18), transparent 45%),
    linear-gradient(135deg, #1c2d26, #0f1714);
  background-size: cover;
  background-position: center;
  position: relative;
}

.card-media::after {
  content: "Озон · Яндекс · Авито";
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: rgba(8, 12, 10, 0.72);
  color: var(--accent);
}

.card-body {
  padding: 0 1.1rem 1.2rem;
  display: grid;
  gap: 0.45rem;
}

.card-body h3 {
  margin: 0;
  font-size: 1.25rem;
}

.card-address {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card-meta {
  margin: 0.35rem 0 0;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.card-meta strong {
  color: var(--accent);
  font-weight: 700;
}

.contact {
  padding: 1rem 1.25rem 4rem;
}

.contact-panel {
  border-radius: calc(var(--radius) + 6px);
  padding: 1.75rem 1.35rem;
  background:
    radial-gradient(600px 220px at 10% 0%, var(--glow), transparent 55%),
    linear-gradient(160deg, #15201b, #0f1613);
  box-shadow: inset 0 0 0 1px var(--line);
}

.contact-panel h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
}

.contact-panel p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  max-width: 42ch;
  line-height: 1.5;
}

.contact-actions {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.25rem 2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.sheet {
  border: 0;
  padding: 0;
  width: min(920px, calc(100vw - 1.5rem));
  max-height: calc(100svh - 1.5rem);
  background: transparent;
  color: var(--ink);
}

.sheet::backdrop {
  background: rgba(4, 8, 6, 0.72);
  backdrop-filter: blur(6px);
}

.sheet-frame {
  background: var(--bg-2);
  border-radius: 22px;
  overflow: auto;
  max-height: calc(100svh - 1.5rem);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  position: relative;
}

.sheet-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 999px;
  background: rgba(8, 12, 10, 0.7);
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
}

.sheet-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  aspect-ratio: 16 / 10;
  background: #15201b;
}

.sheet-gallery img,
.sheet-ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: start;
}

.sheet-ph {
  display: grid;
  place-items: center;
  background:
    linear-gradient(160deg, rgba(200, 245, 74, 0.16), transparent 50%),
    linear-gradient(135deg, #1c2d26, #0f1714);
  color: var(--muted);
  font-weight: 600;
}

.sheet-body {
  padding: 1.25rem 1.25rem 1.6rem;
}

.sheet-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sheet-body h3 {
  margin: 0.35rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 400;
}

.sheet-address {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.sheet-desc {
  margin: 1rem 0 0;
  line-height: 1.55;
}

.finance {
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr 1fr;
}

.finance div {
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px var(--line);
}

.finance dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.finance dd {
  margin: 0.35rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.finance .profit dd {
  color: var(--accent);
}

.sheet-cta {
  margin-top: 1.25rem;
  width: 100%;
}

@media (max-width: 560px) {
  .finance {
    grid-template-columns: 1fr;
  }
}
