/* dushkat.com — warm editorial theme */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Скрапбук — по референсу журнала */
  --paper: #f9f4e8;
  --paper-warm: #f3ead8;
  --paper-deep: #e8dcc8;
  --cream: #f9f4e8;
  --warm: #efe4d0;
  --kraft: #d4b896;
  --wood: #c4a574;
  --wood-dark: #a8845a;
  --leather: #5d3a24;
  --leather-deep: #4a2e1c;
  --peach: #f0a878;
  --mint: #7fb198;
  --clip-blue: #4a90e2;
  --clip-teal: #7fb198;
  --lavender: #b8a0d8;
  --sky: #5b9bd5;
  --title-green: #5a9e5a;
  --title-orange: #e88a40;
  --coral: #e88a6a;
  --terra: #d97850;
  --sienna: #b85a32;
  --sage: #6b9a7a;
  --ink: #3d3429;
  --dark: #5d3a24;
  --muted: #7a6a58;
  --card: #fffef9;
  --border: #ddd0bc;
  --error: #c45a5a;
  --tape-mint: rgba(127, 177, 152, 0.82);
  --tape-peach: rgba(240, 168, 120, 0.85);
  --tape-lilac: rgba(184, 160, 216, 0.8);
  --tape-grid: rgba(255, 255, 255, 0.55);
  --shadow-soft: 0 12px 32px rgba(93, 58, 36, 0.12);
  --shadow-lift: 0 24px 52px rgba(93, 58, 36, 0.2);
  --shadow-sticker: 0 6px 0 rgba(93, 58, 36, 0.07), 0 16px 36px rgba(93, 58, 36, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Jost", sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  min-height: 100vh;
}

/* —— Dark home header —— */
.site-top-dark {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav--dark {
  border-bottom: none;
  background: transparent;
  position: static;
}

.nav-logo--light {
  color: var(--cream);
}

.nav-links--light a {
  color: rgba(244, 237, 227, 0.55);
}

.nav-links--light a:hover {
  color: var(--cream);
}

.palette-bar {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  padding: 0 clamp(20px, 5vw, 48px) 28px;
  flex-wrap: wrap;
}

.palette-bar-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 17px;
  color: rgba(244, 237, 227, 0.5);
  font-style: italic;
  white-space: nowrap;
  flex-shrink: 0;
}

.swatches {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.swatch-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.swatch {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.swatch-name {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(244, 237, 227, 0.4);
  text-transform: uppercase;
}

.page-home .section-cards {
  padding-top: clamp(56px, 8vw, 88px);
}

.cards-featured {
  grid-template-columns: repeat(3, 1fr);
}

.card-active {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(42, 30, 20, 0.06);
}

.cards-featured .card-soon {
  background: var(--warm);
  border-radius: 16px;
  opacity: 0.9;
}

.section-label--light {
  color: rgba(193, 125, 77, 0.85);
}

.facts-section .section-label--light {
  color: rgba(193, 125, 77, 0.75);
}

.site-footer--dark {
  background: var(--dark);
  border-top: none;
  color: rgba(244, 237, 227, 0.45);
}

.site-footer--dark p {
  color: rgba(244, 237, 227, 0.45);
}

.footer-logo--light {
  color: var(--cream);
}

.footer-logo--light span {
  color: var(--terra);
}

/* —— Nav —— */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 48px);
  border-bottom: 1px solid var(--border);
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--dark);
  text-decoration: none;
}

.nav-logo span {
  color: var(--terra);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: clamp(16px, 4vw, 36px);
}

.nav-links a {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--terra);
}

/* —— Hero (home) —— */
.page-home .hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(86vh, 720px);
  padding: 0 clamp(20px, 5vw, 48px);
  align-items: center;
  position: relative;
  overflow: hidden;
}

.page-home .hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #d4a882 0%, transparent 70%);
  opacity: 0.22;
  pointer-events: none;
}

.hero-text {
  padding: 60px 0;
  animation: fadeUp 0.8s ease both;
}

.hero-eyebrow,
.section-label {
  font-family: "Caveat", cursive;
  font-size: 20px;
  color: var(--terra);
  margin-bottom: 14px;
  display: block;
}

.section-label {
  font-size: 18px;
  margin-bottom: 8px;
}

.hero-title,
.section-title,
.page-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-title {
  font-size: clamp(48px, 7vw, 88px);
  margin-bottom: 24px;
}

.hero-title em,
.section-title em {
  font-style: italic;
  color: var(--terra);
}

.hero-sub {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 360px;
  margin-bottom: 40px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn-primary,
.btn {
  background: var(--terra);
  color: #fff;
  border: none;
  padding: 14px 32px;
  font-family: "Jost", sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  display: inline-block;
  font-weight: 400;
}

.btn-primary:hover,
.btn:hover {
  background: var(--sienna);
  transform: translateY(-2px);
  color: #fff;
}

.btn-ghost,
.btn-secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 13px 28px;
  font-family: "Jost", sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-ghost:hover,
.btn-secondary:hover {
  border-color: var(--terra);
  color: var(--terra);
  background: transparent;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  animation: fadeIn 1s ease 0.3s both;
}

.capy-frame {
  width: min(320px, 70vw);
  height: min(320px, 70vw);
  border-radius: 50% 40% 55% 45% / 45% 55% 40% 50%;
  background: var(--warm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 24px 60px rgba(193, 125, 77, 0.18);
  animation: floatBob 4s ease-in-out infinite;
}

.capy-emoji {
  font-size: clamp(80px, 18vw, 120px);
  line-height: 1;
  user-select: none;
}

/* —— Sections —— */
.section {
  padding: clamp(48px, 10vw, 88px) clamp(20px, 5vw, 48px);
}

.section-title {
  font-size: clamp(34px, 4.5vw, 50px);
  margin-bottom: 48px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px 28px;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--terra), var(--sage));
  opacity: 0;
  transition: opacity 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.card:hover::before {
  opacity: 1;
}

.badge {
  display: inline-block;
  background: var(--sage);
  color: #fff;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.badge.soon {
  background: var(--muted);
}

.card-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

.card-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}

.card-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 22px;
}

.card-link {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terra);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-link::after {
  content: "→";
  transition: transform 0.2s;
}

.card-link:hover::after {
  transform: translateX(4px);
}

.card-soon {
  background: var(--warm);
  opacity: 0.85;
}

/* —— Facts —— */
.facts-section {
  background: var(--dark);
  padding: clamp(48px, 10vw, 88px) clamp(20px, 5vw, 48px);
}

.facts-section .section-title {
  color: var(--cream);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  max-width: 720px;
}

.fact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 4px;
}

.fact-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terra);
  flex-shrink: 0;
  margin-top: 7px;
}

.fact-text {
  font-size: 13px;
  color: rgba(244, 237, 227, 0.7);
  line-height: 1.65;
}

/* —— Tagline —— */
.tagline-section {
  padding: clamp(48px, 8vw, 80px) clamp(20px, 5vw, 48px);
  background: var(--warm);
  text-align: center;
}

.tagline-display {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(40px, 8vw, 60px);
  font-weight: 300;
  line-height: 1;
}

.tagline-display em {
  font-style: italic;
  color: var(--terra);
}

.tagline-hand {
  font-family: "Caveat", cursive;
  font-size: 26px;
  color: var(--muted);
  margin-top: 12px;
}

/* —— Footer —— */
.site-footer {
  padding: 36px clamp(20px, 5vw, 48px);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--cream);
}

.site-footer p {
  font-size: 12px;
  color: var(--muted);
}

.footer-logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  color: var(--dark);
}

.footer-logo span {
  color: var(--terra);
}

.footer-note {
  width: 100%;
  text-align: right;
}

@media (min-width: 640px) {
  .footer-note {
    width: auto;
  }
}

/* —— Inner pages —— */
.page-inner {
  padding: clamp(32px, 6vw, 56px) clamp(20px, 5vw, 48px) 80px;
}

.inner-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: clamp(28px, 5vw, 40px);
  box-shadow: 0 12px 32px rgba(42, 30, 20, 0.06);
}

.page-eyebrow {
  font-family: "Caveat", cursive;
  font-size: 18px;
  color: var(--terra);
  margin-bottom: 8px;
  display: block;
}

.page-title {
  font-size: clamp(32px, 5vw, 44px);
  margin-bottom: 16px;
}

.lead,
.story {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.story {
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.story-progress {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: -8px 0 16px;
}

.story-wait {
  font-family: "Caveat", cursive;
  font-size: 18px;
  color: var(--terra);
  margin: 0 0 1rem;
}

.story-wait[hidden] {
  display: none;
}

.btn-choice:disabled,
.setup-form button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.story-ending-art {
  margin: 0 0 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(42, 30, 20, 0.1);
}

.story-ending-art img {
  display: block;
  width: 100%;
  height: auto;
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-choice {
  width: 100%;
  text-align: center;
}

.ask-form,
.feedback-form,
.setup-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
}

.ask-form label,
.setup-form label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.ask-form textarea,
.ask-form input[type="text"],
.setup-form input[type="text"],
.setup-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--cream);
  color: var(--dark);
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
}

.ask-form textarea:focus,
.setup-form input:focus,
.setup-form select:focus {
  outline: 2px solid rgba(193, 125, 77, 0.35);
  border-color: var(--terra);
}

.difficulty-field {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px 16px;
  margin: 0;
}

.difficulty-field legend {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 4px;
}

.radio-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  cursor: pointer;
  font-size: 14px;
}

.answer-box,
.feedback-box {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.answer-box h2,
.feedback-box h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}

.error {
  color: var(--error);
  font-size: 14px;
}

.hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 0.5rem;
}

.rating-row {
  display: flex;
  gap: 12px;
}

.rate-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rate-label input:checked + .btn-rate {
  outline: 2px solid var(--terra);
  outline-offset: 2px;
}

.btn-rate {
  display: inline-block;
  min-width: 3.5rem;
  text-align: center;
  font-size: 1.35rem;
  padding: 10px 16px;
  background: var(--warm);
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid var(--border);
}

.btn-secondary {
  margin-top: 1rem;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes floatBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 900px) {
  .cards-featured {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-home .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .hero-text {
    padding: 24px 0 0;
    text-align: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .btn-row {
    justify-content: center;
  }

  .hero-visual {
    padding: 24px 0 8px;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 10px;
  }
}
