/* ==============================================
   Часовой дом «Хуякофф» — warm, serif, luxury
   ============================================== */

:root {
  /* warm brand tokens */
  --brand: #7A3E12;
  --brand-2: #9E6530;
  --accent: #C4833B;
  --grad: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);

  /* neutral palette */
  --bg: #FBF6F0;
  --surface: #FFFFFF;
  --surface-2: #F7F1E9;
  --text: #2A1B12;
  --muted: #6B5344;

  /* radius & shadow */
  --radius-3: 20px;
  --shadow-2: 0 2px 8px rgba(42,27,18,.06), 0 12px 40px rgba(42,27,18,.08);
  --shadow-3: 0 4px 12px rgba(42,27,18,.06), 0 24px 56px rgba(42,27,18,.10);

  /* fonts */
  --font-display: Georgia, 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; object-fit: cover; }
a { color: inherit; }

/* ----- button ----- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border: none;
  border-radius: var(--radius-pill);
  font-size: .95rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: .2s;
}
.btn-ghost { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 8px 18px; font-size: .85rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-rail { background: var(--grad); color: #fff; box-shadow: var(--shadow-2); }
.btn-rail:hover { transform: translateY(-1px); box-shadow: var(--shadow-3); }

/* ----- eyebrow ----- */
.eyebrow {
  display: block; margin-bottom: 12px;
  font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .13em;
  color: var(--accent);
}

/* ----- muted ----- */
.muted { color: var(--muted); }

/* ----- shell (centered layout) ----- */
.shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ----- hero ----- */
.hero {
  position: relative;
  margin: 40px 0 80px;
  border-radius: var(--radius-3);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-2);
}
.hero-img { width: 100%; height: 520px; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(42,27,18,.65) 0%, rgba(42,27,18,.3) 60%, transparent 100%);
}
.hero-body {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 60px 72px;
  color: #fff;
}
.hero-body .eyebrow { color: rgba(255,255,255,.7); }
.hero-body h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 400; line-height: 1.15;
  margin-bottom: 16px;
  max-width: 600px;
}
.hero-lead { font-size: 1.05rem; line-height: 1.6; max-width: 520px; color: rgba(255,255,255,.85); margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; }
.hero-cta .btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.hero-cta .btn-ghost:hover { border-color: #fff; color: #fff; }

/* ----- section ----- */
.section { padding: 80px 0; }
.sec-head { max-width: 640px; margin-bottom: 48px; }
.sec-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400; line-height: 1.2;
  margin-bottom: 12px;
}

/* ----- filters ----- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
  padding: 8px 20px; border: 1.5px solid var(--border);
  border-radius: var(--radius-pill); background: transparent;
  font-size: .88rem; font-weight: 500; cursor: pointer;
  transition: .2s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ----- watch card ----- */
.grid-watches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.watch-card {
  background: var(--surface);
  border-radius: var(--radius-3);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.watch-card:hover { box-shadow: var(--shadow-2); transform: translateY(-4px); }
.watch-media {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--surface-2);
}
.watch-media img { width: 100%; height: 100%; }
.watch-line {
  position: absolute; bottom: 12px; left: 12px;
  padding: 4px 12px; border-radius: var(--radius-pill);
  font-size: .72rem; font-weight: 600;
  background: rgba(255,255,255,.9); backdrop-filter: blur(6px);
}
.watch-body { padding: 24px; }
.watch-body h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; margin-bottom: 6px; }
.watch-desc { font-size: .92rem; margin-bottom: 16px; }
.watch-spec { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin-bottom: 20px; }
.watch-spec dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.watch-spec dd { font-size: .85rem; margin-bottom: 4px; }
.watch-foot { display: flex; align-items: center; justify-content: space-between; }
.price { font-weight: 700; font-size: 1.05rem; }

/* ----- atelier ----- */
.atelier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.atelier-media {
  position: relative;
  border-radius: var(--radius-3);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.atelier-media img { width: 100%; aspect-ratio: 3/4; }
.frame-deco {
  position: absolute; inset: 16px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius-3);
  pointer-events: none;
}
.atelier-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 400; line-height: 1.25;
  margin-bottom: 16px;
}
.atelier-text p { margin-bottom: 20px; }
.feature-list { list-style: none; margin-bottom: 28px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0; font-size: .95rem;
  border-bottom: 1px solid var(--border);
}
.feature-list svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }

/* ----- configurator ----- */
.config {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
.config-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: .82rem; font-weight: 600; color: var(--muted); }
.field select, .field textarea, .field input[type="text"], .field input[type="email"], .field input[type="tel"] {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  font-size: .95rem; font-family: inherit;
  transition: .15s;
}
.field select:focus, .field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(122,62,18,.1);
}
.field textarea { resize: vertical; }
.field-check {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px; cursor: pointer;
  transition: .15s;
}
.field-check:hover { border-color: var(--brand); }
.field-check input { accent-color: var(--brand); }

.config-total {
  background: var(--surface);
  border-radius: var(--radius-3);
  border: 1px solid var(--border);
  padding: 32px 28px;
  box-shadow: var(--shadow-1);
  text-align: center;
  position: sticky; top: 32px;
}
.config-total .eyebrow { text-align: left; }
.total-num {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 400;
  color: var(--brand);
  margin: 12px 0 16px;
}
.total-note { font-size: .88rem; margin-bottom: 20px; }

/* ----- numbers ----- */
.numbers {
  background: var(--surface);
  border-radius: var(--radius-3);
  padding: 64px 40px;
  box-shadow: var(--shadow-1);
}
.num-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px; text-align: center;
}
.num { display: flex; flex-direction: column; gap: 4px; }
.num b {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400; color: var(--brand);
}

/* ----- contact ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 400; line-height: 1.25;
  margin-bottom: 12px;
}
.contact-text p { margin-bottom: 28px; }
.contact-info { list-style: none; }
.contact-info li {
  display: flex; align-items: baseline; gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
}
.contact-info li b { min-width: 90px; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.contact-info a { text-decoration: underline; text-decoration-color: var(--border); }

/* ----- notices ----- */
.notice { padding: 20px; border-radius: 12px; margin-bottom: 20px; }
.notice.ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.notice.err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* ----- form fine print ----- */
.form-fine { font-size: .78rem; color: var(--muted); margin-top: 12px; text-align: center; }

/* ----- footer ----- */
.footer {
  margin-top: 80px; padding: 48px 0;
  border-top: 1px solid var(--border);
}
.foot-brand { margin-bottom: 12px; }
.foot-brand b { font-size: 1.1rem; }

/* ----- responsive ----- */
@media (max-width: 1024px) {
  .atelier-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .config { grid-template-columns: 1fr; }
  .config-total { position: static; }
}

@media (max-width: 768px) {
  .shell { padding: 0 20px; }
  .hero-img { height: 320px; }
  .hero-body { padding: 32px 28px; }
  .hero-body h1 { font-size: 1.8rem; }
  .hero-lead { font-size: .95rem; }
  .hero-cta { flex-direction: column; }

  .section { padding: 48px 0; }
  .num-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-watches { grid-template-columns: 1fr; }
  .config-form { grid-template-columns: 1fr; }
}

@media (min-width: 1440px) {
  .shell { max-width: 1320px; }
}