/* Sweet Dreams Factory. Visual reference: mockups/landing-sdf-gradient.html. Colors per REFERENCES §6. */
/* Barlow, self-hosted (SIL OFL 1.1, see /fonts/OFL.txt): no third-party request carries the visitor's IP. */
@font-face { font-family: Barlow; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: Barlow; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/barlow-400-italic.woff2") format("woff2"); }
@font-face { font-family: Barlow; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: Barlow; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/barlow-700.woff2") format("woff2"); }
/* Barlow has no Cyrillic or Hebrew: Rubik (SIL OFL 1.1, see /fonts/OFL-Rubik.txt) fills those letters, loaded only when a page uses them.
   Each Rubik face repeats a Barlow face's exact style and weight; mismatched descriptors would stop the browser from combining them. */
@font-face { font-family: Barlow; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/rubik-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Barlow; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/rubik-hebrew.woff2") format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: Barlow; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/rubik-cyrillic-italic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Barlow; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/rubik-hebrew-italic.woff2") format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: Barlow; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/rubik-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Barlow; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/rubik-hebrew.woff2") format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: Barlow; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/rubik-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Barlow; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/rubik-hebrew.woff2") format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
:root {
  --base: #141518;
  --blue: #10314d;
  --ember: #3e140a;
  --text: #cbc5ba;
  --muted: #8b877f;
  --accent: #c09060;
  --card: rgba(10, 11, 14, 0.22);
  --border: rgba(255, 255, 255, 0.08);
  --slow: 1.2s ease;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  color: var(--text);
  font: 400 16px/1.7 Barlow, Arial, sans-serif;
  min-height: 100vh;
  background-color: var(--base);
  background-image:
    radial-gradient(ellipse 45% 55% at 100% 20%, var(--ember) 0%, transparent 75%),
    radial-gradient(ellipse 50% 50% at 5% 100%, var(--ember) 0%, transparent 75%),
    radial-gradient(ellipse 50% 60% at 72% 62%, var(--blue) 0%, transparent 75%);
  background-attachment: fixed;
  overflow-x: hidden;
}
body::after { /* film grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* The ray: the divide between reality and dream */
.bg { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.ray, .ray-glow { position: absolute; left: 50%; top: 52%; width: 90vmax; transform: translate(-50%, -50%) rotate(-42deg); }
.ray {
  height: 1px;
  background: linear-gradient(90deg, transparent 12%, rgba(190, 95, 35, 0.55) 22%, rgba(225, 160, 70, 0.75) 38%,
    rgba(205, 225, 220, 0.8) 52%, rgba(225, 170, 80, 0.7) 68%, rgba(190, 90, 35, 0.5) 80%, transparent 90%);
}
.ray-glow {
  height: 160px; margin-top: 80px; filter: blur(6px);
  background: radial-gradient(ellipse 45% 50% at 50% 0%, rgba(40, 110, 160, 0.28), transparent 70%);
}

header, main { position: relative; z-index: 1; }
header { z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; }
.logo { color: var(--text); text-decoration: none; font: 700 14px/1 Barlow, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; }
.menu nav a { color: var(--muted); text-decoration: none; margin-left: 20px; font: 500 12px/1 Barlow, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; transition: color var(--slow); }
.menu nav a:hover, .menu nav a[aria-current="page"] { color: var(--text); }
.menu-btn { display: none; background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--muted); line-height: 0; }
.menu-btn:hover, .menu-btn:focus-visible { color: var(--text); }

main { max-width: 760px; margin: 0 auto; padding: 72px 24px; text-align: center; }
h1 { font: 700 clamp(2.4rem, 8vw, 4.4rem)/1 Barlow, sans-serif; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 56px; }

/* Landing cards */
.lines { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { background: var(--card); border: 1px solid var(--border); padding: 32px 24px; backdrop-filter: blur(1.5px); -webkit-backdrop-filter: blur(1.5px); }
.card h2 { font: 500 1.1rem/1.2 Barlow, sans-serif; text-transform: uppercase; letter-spacing: 0.2em; }
.tag { font-style: italic; color: var(--accent); margin: 8px 0 16px; }
.desc { color: var(--muted); margin-bottom: 24px; }

/* Buttons */
.btn {
  display: inline-block; padding: 10px 26px; background: transparent; cursor: pointer;
  border: 1px solid var(--muted); color: var(--text); text-decoration: none;
  font: 500 12px/1 Barlow, sans-serif; text-transform: uppercase; letter-spacing: 0.16em;
  transition: border-color var(--slow), color var(--slow);
}
.btn:hover, .btn:focus-visible { border-color: var(--accent); color: var(--accent); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-primary { border-color: var(--accent); color: var(--accent); }

/* Booking steps */
.step { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.step-count { color: var(--muted); font: 500 12px/1 Barlow, sans-serif; letter-spacing: 0.2em; }
.question { font: 700 clamp(1.8rem, 6vw, 3rem)/1.1 Barlow, sans-serif; text-transform: uppercase; margin-bottom: 8px; }
.options { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 420px; }
.option {
  width: 100%; padding: 14px 18px; background: var(--card); border: 1px solid var(--border); color: var(--text);
  cursor: pointer; font: 400 16px/1.3 Barlow, sans-serif; backdrop-filter: blur(1.5px); -webkit-backdrop-filter: blur(1.5px);
  transition: border-color var(--slow), color var(--slow);
}
.option:hover, .option:focus-visible { border-color: var(--accent); color: var(--accent); }
.own, .field { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 420px; }
.own input, .field input, .field textarea {
  width: 100%; padding: 12px 14px; background: rgba(10, 11, 14, 0.45); border: 1px solid var(--border);
  color: var(--text); font: 400 16px/1.4 Barlow, sans-serif;
}
.field textarea { min-height: 96px; resize: vertical; }
.own input:focus, .field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
::placeholder { color: var(--muted); }
.hint, .why { max-width: 420px; color: var(--muted); font-size: 14px; }
.why { font-style: italic; }
.notice { min-height: 1.7em; color: var(--accent); }
.back { background: none; border: 0; color: var(--muted); cursor: pointer; font: 500 12px/1 Barlow, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; }

/* About */
.about { text-align: left; max-width: 640px; }
.about h1 { text-align: center; }
.about h2 { font: 500 1rem/1.3 Barlow, sans-serif; text-transform: uppercase; letter-spacing: 0.2em; color: var(--accent); margin: 40px 0 12px; }
.about p { color: var(--text); }
.about a { color: var(--muted); word-break: break-all; }
.about a:hover { color: var(--accent); }
.sources { padding-left: 1.2em; color: var(--muted); font-size: 14px; display: grid; gap: 10px; }
.fine { margin-top: 48px; color: var(--muted); font-size: 13px; }

/* Ticket and replies */
.lead { max-width: 520px; font-size: 18px; }
.ticket { width: 100%; max-width: 420px; border: 1px solid var(--border); }
.actions { display: flex; gap: 12px; justify-content: center; }
.thanks, .signature { color: var(--muted); }
.signature { font-style: italic; }

@media (max-width: 600px) {
  .menu-btn { display: block; }
  .menu { position: relative; }
  .menu nav { display: none; position: absolute; right: 0; top: 28px; background: #0d0e11; border: 1px solid var(--border); padding: 12px 18px; flex-direction: column; gap: 12px; min-width: 160px; text-align: right; }
  .menu.open nav { display: flex; }
  .menu nav a { margin-left: 0; }
  .logo { font-size: 12px; }
  main { padding: 48px 16px; }
  .lines { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
