@font-face {
  font-family: Circe;
  font-display: swap;
  font-weight: 300;
  src: url("/templates/gridbox/library/fonts/Circe/circe-light.ttf");
}
@font-face {
  font-family: Circe;
  font-display: swap;
  font-weight: 400;
  src: url("/templates/gridbox/library/fonts/Circe/circe-regular.ttf");
}
@font-face {
  font-family: Circe;
  font-display: swap;
  font-weight: 700;
  src: url("/templates/gridbox/library/fonts/Circe/circe-bold.ttf");
}

:root {
  --primary: #fc363f;
  --secondary: #ac195b;
  --accent: #fe0857;
  --title: #343434;
  --subtitle: #464c54;
  --text: #1b1b1d;
  --title-inverse: #fff9f8;
  --text-inverse: rgba(255, 255, 255, 0.4);
  --bg-primary: #fff;
  --bg-secondary: #fff9f8;
  --bg-dark: #010001;
  --bg-dark-accent: #20364c;
  --border: #eee;
  --shadow: rgba(173, 26, 90, 0.4);
  --cta: linear-gradient(264deg, #fe0857 40.29%, #ac195b 92.87%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Circe, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg-dark);
  line-height: 1.55;
  font-size: 17px;
  font-weight: 300;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}
.logo { height: 48px; width: auto; }
.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 400;
}
.phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--title-inverse);
  white-space: nowrap;
}
.phone:hover { opacity: .85; }
.max-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  color: #fff;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 50px;
  background:
    linear-gradient(#010001, #010001) padding-box,
    linear-gradient(105deg, #00BFFF 0%, #471AFF 48%, #9500FF 100%) border-box;
  font-size: 14px;
  font-weight: 400;
}
.max-btn:hover {
  background:
    linear-gradient(#1a1a1c, #1a1a1c) padding-box,
    linear-gradient(105deg, #33CFFF 0%, #6E1AFF 48%, #A733FF 100%) border-box;
}

.hero {
  padding: 28px 0 56px;
  color: var(--title-inverse);
}
.eyebrow {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  font-weight: 300;
  color: rgba(255, 249, 248, 0.7);
}
.hero h1, .page h1 {
  font-size: clamp(32px, 5.4vw, 56px);
  line-height: 1.12;
  margin: 0 0 18px;
  font-weight: 300;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}
.hero h1 em, .page h1 em, .mark {
  font-style: normal;
  color: var(--primary);
}
.lead {
  font-size: 20px;
  max-width: 38em;
  margin: 0 0 28px;
  color: rgba(255, 249, 248, 0.86);
  font-weight: 300;
}
.hero .prices-jump { margin: 0 0 8px; }

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  background: var(--cta);
  color: var(--title-inverse);
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  border: 0;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 10px 20px var(--shadow);
}
.cta:hover { filter: brightness(1.06); }
.cta.wide { width: 100%; }
.cta.ghost {
  background: transparent;
  box-shadow: none;
  border: 1px solid var(--accent);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 0 0 72px;
}
.cards .form-box {
  margin: 0;
  max-width: none;
  position: static;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
}
.cards .form-box h2 { font-size: 22px; }
.cards .form-box form { display: flex; flex-direction: column; flex: 1; }
.cards .form-box .cta { margin-top: auto; }
.cards .form-box .err { margin: 0; }
.cards .form-box .err:empty { display: none; }
@media (min-width: 801px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--bg-primary);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 20px;
}
.card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.card-body { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body .cta { margin-top: auto; }
.card h2 { margin: 0; font-size: 22px; font-weight: 400; }
.meta { color: var(--subtitle); font-size: 14px; }
.ghost {
  border: 1px dashed rgba(255, 249, 248, 0.28);
  background: transparent;
  color: var(--text-inverse);
  min-height: 280px;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.ghost strong { display: block; color: var(--title-inverse); font-size: 20px; margin-bottom: 6px; font-weight: 400; }

.band { background: var(--bg-secondary); color: var(--text); padding: 56px 0; }
.band.dark { background: var(--bg-dark); color: var(--title-inverse); }
.band.dark .lead { color: rgba(255, 249, 248, 0.86); }
.band.dark .tile { background: rgba(255, 249, 248, 0.06); color: var(--title-inverse); }
.band.dark .tile p { color: rgba(255, 249, 248, 0.7); }
.band h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}
.prose p { margin: 0 0 14px; max-width: 46em; }
.prose p:last-child { margin-bottom: 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0 8px;
}
.stat {
  background: var(--bg-primary);
  border-radius: 20px;
  padding: 22px 20px;
}
.stat b {
  display: block;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 8px;
}
.stat span { color: var(--subtitle); font-size: 15px; }

.grid-4, .grid-2, .infra {
  display: grid;
  gap: 16px;
}
.grid-4 { grid-template-columns: repeat(2, 1fr); }
.infra { grid-template-columns: repeat(2, 1fr); }
.tile {
  background: var(--bg-primary);
  border-radius: 20px;
  padding: 22px;
}
.tile h3 { margin: 0 0 8px; font-size: 18px; font-weight: 400; }
.tile p { margin: 0; color: var(--subtitle); font-size: 15px; }

.page { color: var(--title-inverse); padding-bottom: 24px; }
.crumb { font-size: 16px; margin: 8px 0 0; max-width: 38em; line-height: 1.4; }
.crumb a { color: rgba(255, 249, 248, 0.85); text-decoration: none; }
.crumb a:hover { color: var(--title-inverse); }
.hero-photo {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 20px;
  margin: 8px 0 0;
}

.slider { margin: 20px 0 8px; }
.slider-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
}
.slider-tabs button {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 50px;
  border: 1px solid rgba(255, 249, 248, 0.28);
  background: transparent;
  color: var(--title-inverse);
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
}
.slider-tabs button.is-on {
  background: var(--cta);
  border-color: transparent;
}
.slider-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #12080e;
}
.slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track figure[hidden] { display: none; }
.slider-track figure {
  margin: 0;
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 16/9;
  background: #12080e;
}
.slider-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slider-track figure[data-kind="plan"] {
  background: var(--bg-secondary);
}
.slider-track figure[data-kind="plan"] img {
  object-fit: contain;
}
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(1, 0, 1, 0.55);
  color: var(--title-inverse);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.slider-nav.prev { left: 10px; }
.slider-nav.next { right: 10px; }
.slider-nav:hover { background: var(--accent); }
.slider-meta {
  margin: 10px 0 0;
  font-size: 14px;
  color: rgba(255, 249, 248, 0.7);
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: start;
}
.form-box {
  background: var(--bg-primary);
  color: var(--text);
  padding: 24px;
  border-radius: 20px;
  position: sticky;
  top: 16px;
}
.form-box h2 { margin: 0 0 8px; font-size: 26px; font-weight: 400; text-transform: none; }
.form-box p { margin: 0 0 16px; color: var(--subtitle); font-size: 16px; }
label { display: block; font-size: 13px; margin: 0 0 6px; }
input {
  width: 100%;
  min-height: 48px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 16px;
  font-family: inherit;
  border-radius: 8px;
}
.note { font-size: 13px; color: var(--subtitle); }
.ok { display: none; padding: 16px 0; }
.hp { position: absolute; left: -9999px; }
.consent { font-size: 13px; color: var(--subtitle); margin: 0 0 14px; }
.consent label { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 13px; }
.consent input { width: auto; min-height: 0; margin: 3px 0 0; padding: 0; }
.consent a { color: inherit; }
.foot a { color: inherit; }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 8px 0 0;
}
.gallery img, .plans img { width: 100%; border-radius: 16px; }
.gallery img { aspect-ratio: 3/2; object-fit: cover; }
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.foot {
  padding: 28px 0 40px;
  color: var(--text-inverse);
  font-size: 14px;
}

@media (max-width: 800px) {
  .split, .gallery, .plans, .stats, .grid-4, .infra { grid-template-columns: 1fr; }
  .form-box { position: static; }
  .top-actions { flex-wrap: nowrap; justify-content: flex-end; gap: 10px; }
  .logo { height: 40px; }
  .phone {
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
    font-size: 0;
    color: transparent;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E") center / 17px no-repeat;
  }
}
@media (min-width: 901px) {
  .infra { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
