:root{
  --bg: #f7f6f3;
  --card: rgba(255,255,255,0.78);
  --text: #1f2328;
  --muted: rgba(31,35,40,0.66);
  --line: rgba(31,35,40,0.10);
  --accent: #1f2328;
  --shadow: 0 14px 38px rgba(0,0,0,0.12);
  --radius: 18px;
}

.loader{
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #0f1113;
  z-index: 10000;
  transition: opacity 260ms ease;
}

.loader.is-hidden{
  opacity: 0;
  pointer-events: none;
}

.spinner{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 4px solid rgba(255,255,255,0.22);
  border-top-color: rgba(255,255,255,0.92);
  animation: spin 900ms linear infinite;
}

@keyframes spin{
  to { transform: rotate(360deg); }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

.page{
  max-width: 520px;
  margin: 0 auto;
  padding: 18px 14px 28px;
}

.hero{
  position: relative;
  height: 80vh;
  min-height: 520px;
  display: grid;
  place-items: end center;
  overflow: hidden;
  background: #111;
}

.hero-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.18), rgba(0,0,0,0.62));
}

.hero-content{
  position: relative;
  width: min(520px, 100%);
  padding: 18px 16px 22px;
  color: #fff;
  text-align: center;
}

.hero-content{
  position: relative;
  width: min(520px, 100%);
  padding: 18px 16px 22px;
  color: #fff;
  text-align: center;
}

.badge{
  display: inline-block;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  font-size: 14px;
}

.title{
  margin: 14px 0 6px;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.subtitle{
  margin: 0 0 14px;
  font-size: 16px;
  color: rgba(255,255,255,0.88);
}

.timer{
  margin: 14px auto 16px;
  padding: 14px 14px 12px;
  width: min(440px, 100%);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
}

.timer-title{
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  margin-bottom: 10px;
}

.timer-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.t-item{
  padding: 10px 6px;
  border-radius: 14px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.12);
}

.t-num{
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.t-lbl{
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255,255,255,0.78);
}

.cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: #15171a;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}

.card{
  margin: 14px 0;
  padding: 18px 16px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.h2{
  margin: 0 0 12px;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.p{
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.small-note{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(31,35,40,0.06);
  border: 1px solid var(--line);
  color: rgba(31,35,40,0.78);
  font-size: 14px;
}

.info-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.info{
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.60);
}

.info-k{
  font-size: 12px;
  color: var(--muted);
}

.info-v{
  margin-top: 6px;
  font-weight: 700;
}

.linkbtn{
  margin-top: 12px;
  display: inline-flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.65);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.form{
  display: grid;
  gap: 12px;
}

.field{
  display: grid;
  gap: 8px;
}

.field-label{
  font-size: 13px;
  color: var(--muted);
}

.input{
  height: 48px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.80);
  outline: none;
  font-size: 16px;
}

.btn{
  height: 50px;
  border-radius: 16px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
}

.form-status{
  min-height: 20px;
  font-size: 14px;
  color: rgba(31,35,40,0.78);
}

.contacts{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.contacts-title{
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
  margin-top: 10px;
}

.contacts-phone{
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}

.footer{
  padding: 10px 14px 26px;
  text-align: center;
  color: rgba(31,35,40,0.65);
}

.footer-line{
  font-weight: 800;
  margin-bottom: 6px;
}

.footer-sub{
  font-size: 13px;
}

/* Только портрет: в альбомной ориентации показываем оверлей */
.rotate-overlay{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15,16,18,0.92);
  z-index: 9999;
}

.rotate-card{
  width: min(360px, 100%);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  text-align: center;
  backdrop-filter: blur(10px);
}

.rotate-emoji{ font-size: 34px; margin-bottom: 8px; }
.rotate-title{ font-weight: 900; font-size: 18px; }
.rotate-subtitle{ margin-top: 6px; color: rgba(255,255,255,0.78); font-size: 14px; }

@media screen and (orientation: landscape){
  .rotate-overlay{ display: flex; }
  body{ overflow: hidden; }
}