/* ============================================================
   DIAMAND LADY — Quiet Luxury Design System
   Warm ivory + charcoal + pink accent rgb(255,209,245)
   Playfair Display + Montserrat | border-radius: 0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --bg: hsl(30,20%,98%);
  --bg-alt: hsl(30,15%,95%);
  --fg: hsl(220,10%,10%);
  --fg-muted: hsl(210,5%,40%);
  --fg-light: hsl(210,5%,60%);
  --accent: rgb(255,209,245);
  --accent-dark: rgb(220,170,210);
  --accent-glow: rgba(255,209,245,0.25);
  --border: hsl(30,10%,88%);
  --border-light: hsl(30,10%,92%);
  --white: #ffffff;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: all 0.4s cubic-bezier(0.25,0.1,0.25,1);
  --transition-slow: all 0.7s cubic-bezier(0.25,0.1,0.25,1);
  --max-width: 1400px;
  --nav-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background:var(--bg);
  color:var(--fg);
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  padding-top: 80px; /* Отступ для фиксированной шапки */
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

/* ===== NAVBAR ===== */
.nav-wrapper {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; transition: var(--transition);
  background: transparent;
}
.nav-wrapper.scrolled {
  background: rgba(253,251,248,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-width); margin: 0 auto; padding: 0 40px;
  height: var(--nav-height);
  transition: var(--transition-slow);
}
.nav-wrapper.scrolled .nav {
  height: 64px;
}

.nav-logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-logo-icon { font-size: 20px; opacity: 0.7; }
.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 20px; font-weight: 400; font-style: italic;
  color: var(--fg); letter-spacing: 1px;
}
/* On hero (transparent bg) use gray tone */
.nav-wrapper:not(.scrolled) .nav-logo-text,
.nav-wrapper:not(.scrolled) .nav-link,
.nav-wrapper:not(.scrolled) .nav-btn,
.nav-wrapper:not(.scrolled) .nav-auth-btn,
.nav-wrapper:not(.scrolled) .nav-burger span { color: #686d72; }
.nav-wrapper:not(.scrolled) .nav-burger span { background: #686d72; }

.nav-links { display: flex; align-items: center; gap: 0; }
.nav-link {
  padding: 8px 18px; color: var(--fg-muted);
  font-size: 11px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  transition: var(--transition); white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--fg); }

.nav-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.nav-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: none; background: transparent;
  color: var(--fg-muted); transition: var(--transition);
}
.nav-btn:hover { color: var(--fg); }
.nav-badge {
  position: absolute; top: 4px; right: 2px;
  min-width: 16px; height: 16px; display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--fg); font-size: 10px; font-weight: 700;
  border-radius: 8px; padding: 0 4px;
  opacity: 0; transform: scale(0.5); transition: var(--transition);
}
.nav-badge.visible { opacity: 1; transform: scale(1); }

.nav-auth-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 16px; border: 1px solid var(--border);
  background: transparent; color: var(--fg-muted);
  font-size: 11px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase;
  transition: var(--transition);
}
.nav-wrapper:not(.scrolled) .nav-auth-btn { border-color: rgba(104,109,114,0.4); }
.nav-auth-btn:hover { border-color: var(--fg); color: var(--fg); }

.nav-burger {
  display: none; flex-direction: column; justify-content: center;
  width: 40px; height: 40px; gap: 5px; border: none; background: transparent; padding: 10px;
}
.nav-burger span {
  display: block; height: 1px; width: 100%; background: var(--fg); transition: var(--transition);
}
.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); }

/* ===== DESKTOP NAV DROPDOWN ===== */
.nav-dropdown-wrap { position: relative; display: flex; align-items: center; }
.nav-dropdown-menu {
  display: none;
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  background: var(--white); border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  min-width: 290px; z-index: 9998; padding: 12px 0 6px;
}
.nav-dropdown-wrap:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; padding: 11px 20px;
  color: var(--fg); text-decoration: none;
  font-size: 13px; line-height: 1.4;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.2s, color 0.2s;
}
.nav-dropdown-menu a:last-child { border-bottom: none; }
.nav-dropdown-menu a:hover { background: var(--bg-alt); color: var(--accent-dark); }
.nav-link-dropdown { cursor: default; user-select: none; }
.nav-link-dropdown::after { content: ' ▾'; font-size: 10px; opacity: 0.55; }

/* ===== LANGUAGE SWITCHER ===== */
.nav-lang-wrap { position: relative; display: flex; align-items: center; }
.nav-lang-btn {
  display: flex; align-items: center; gap: 5px;
  height: 36px; padding: 0 10px;
  border: 1px solid var(--border); background: transparent;
  color: var(--fg-muted); font-family: var(--font-body);
  font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  cursor: pointer; transition: var(--transition);
}
.nav-lang-btn:hover { border-color: var(--fg); color: var(--fg); }
.nav-wrapper:not(.scrolled) .nav-lang-btn { border-color: rgba(104,109,114,0.4); color: #686d72; }
.nav-lang-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--white); border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12); z-index: 9999; min-width: 160px;
}
.nav-lang-dropdown.open { display: block; }
.lang-opt {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 11px 16px;
  border: none; background: transparent; text-align: left; cursor: pointer;
  font-family: var(--font-body); transition: background 0.2s;
}
.lang-opt:hover { background: var(--bg-alt); }
.lang-opt.active { background: var(--accent); }
.lang-opt-label { font-weight: 700; font-size: 12px; color: var(--fg); min-width: 24px; }
.lang-opt-name { font-size: 13px; color: var(--fg-muted); }

/* RTL overrides */
[dir="rtl"] .nav-lang-dropdown { right: auto; left: 0; }
[dir="rtl"] .mob-drawer { right: auto; left: 0; transform: translateX(-100%); }
[dir="rtl"] .mob-drawer.open { transform: translateX(0); }
[dir="rtl"] .mob-level { transform: translateX(-100%); }
[dir="rtl"] .mob-level.active { transform: translateX(0); }
[dir="rtl"] .mob-level.leaving { transform: translateX(25%); }
[dir="rtl"] .back-arrow { transform: scaleX(-1); display: inline-block; }

/* ===== LANGUAGE PRELOADER OVERLAY ===== */
#dl-lang-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 999999;
  flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  opacity: 0; transition: opacity 0.25s;
}
#dl-lang-overlay.active { opacity: 1; }
.dl-lang-spin {
  width: 36px; height: 36px;
  border: 2px solid var(--border);
  border-top-color: var(--accent-dark);
  border-radius: 50%;
  animation: dlSpin 0.7s linear infinite;
}
@keyframes dlSpin { to { transform: rotate(360deg); } }
.dl-lang-overlay-text {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 500; letter-spacing: 1px;
  color: var(--fg-muted); text-transform: uppercase;
}

/* ===== MOBILE DRAWER ===== */
.mob-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.45); z-index: 1050;
  opacity: 0; transition: opacity 0.35s;
}
.mob-overlay.open { opacity: 1; }

.mob-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 320px; max-width: 88vw;
  background: var(--white); z-index: 1100;
  transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.25,0.1,0.25,1);
  display: flex; flex-direction: column; box-shadow: -4px 0 30px rgba(0,0,0,0.12);
}
.mob-drawer.open { transform: translateX(0); }

.mob-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 60px;
  border-bottom: 1px solid var(--border-light); flex-shrink: 0;
}
.mob-drawer-logo {
  font-family: var(--font-heading); font-size: 18px; font-weight: 400;
  font-style: italic; color: var(--fg); letter-spacing: 0.5px;
}
.mob-drawer-close {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border: none; background: transparent; color: var(--fg-muted); font-size: 20px;
  transition: color 0.2s; cursor: pointer;
}
.mob-drawer-close:hover { color: var(--fg); }

.mob-drawer-slider { flex: 1; position: relative; overflow: hidden; }

.mob-level {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.25,0.1,0.25,1);
  display: flex; flex-direction: column; background: var(--white);
}
.mob-level.active { transform: translateX(0); }
.mob-level.leaving { transform: translateX(-25%); }

.mob-level-back {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-bottom: 1px solid var(--border-light);
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--fg-muted); cursor: pointer; flex-shrink: 0; transition: color 0.2s;
}
.mob-level-back:hover { color: var(--fg); }
.mob-level-title {
  padding: 20px 20px 4px; flex-shrink: 0;
  font-family: var(--font-heading); font-size: 22px; font-weight: 400;
  font-style: italic; color: var(--fg);
}

.mob-nav-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 20px; border-bottom: 1px solid var(--border-light);
  font-size: 13px; font-weight: 500; color: var(--fg); cursor: pointer;
  text-decoration: none; transition: background 0.2s; flex-shrink: 0;
}
.mob-nav-item:hover { background: var(--bg-alt); }
.mob-nav-arrow { font-size: 18px; color: var(--fg-muted); line-height: 1; }
.mob-nav-accent { color: var(--accent-dark); }

.mob-drawer-footer {
  flex-shrink: 0; border-top: 1px solid var(--border-light);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.mob-footer-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; padding: 14px 8px; border: none; background: transparent;
  color: var(--fg-muted); font-size: 9px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; text-decoration: none; position: relative; cursor: pointer;
  border-right: 1px solid var(--border-light); transition: background 0.2s, color 0.2s;
}
.mob-footer-btn:last-child { border-right: none; }
.mob-footer-btn:hover { background: var(--bg-alt); color: var(--fg); }
.mob-footer-badge {
  position: absolute; top: 8px; right: calc(50% - 22px);
  min-width: 15px; height: 15px;
  background: var(--accent); color: var(--fg); font-size: 9px; font-weight: 700;
  border-radius: 8px; padding: 0 3px;
  display: none; align-items: center; justify-content: center;
}
.mob-footer-badge.visible { display: flex; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav { padding: 0 20px; }
  .nav-auth-btn { display: none; }
}
@media (max-width: 600px) {
  .nav-btn-fav { display: none; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 40px; border: none;
  font-size: 11px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  transition: var(--transition); position: relative; overflow: hidden;
}
.btn-primary {
  background: var(--fg); color: var(--white);
}
.btn-primary:hover { background: hsl(220,10%,20%); }
.btn-ghost {
  background: transparent; border: 1px solid var(--fg); color: var(--fg);
}
.btn-ghost:hover { background: var(--fg); color: var(--white); }
.btn-accent {
  background: var(--accent); color: var(--fg);
}
.btn-accent:hover { background: var(--accent-dark); }
/* Hero buttons — white on transparent */
.hero .btn-primary { background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); color: var(--white); border: 1px solid rgba(255,255,255,0.3); }
.hero .btn-primary:hover { background: rgba(255,255,255,0.25); }
.hero .btn-ghost { border-color: rgba(255,255,255,0.3); color: var(--white); }
.hero .btn-ghost:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.5); }

/* ===== HERO ===== */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center top;
  transition: transform 8s ease-out;
}
.hero:hover .hero-bg { transform: scale(1.03); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
}
.hero-content {
  position: relative; z-index: 2; color: var(--white); max-width: 800px; padding: 0 40px;
}
.hero h1 {
  font-family: var(--font-heading); font-size: clamp(48px, 7vw, 80px);
  font-weight: 400; font-style: italic; line-height: 1.1;
  margin-bottom: 28px;
}
.hero h1 span { color: var(--accent); }
.hero-desc {
  font-size: 15px; font-weight: 300; line-height: 1.8;
  max-width: 600px; margin: 0 auto 40px;
  opacity: 0.85; font-style: italic;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 768px) {
  .hero { min-height: 500px; }
  .hero-desc { font-size: 13px; }
  .btn { padding: 14px 28px; font-size: 10px; }
}

/* ===== SECTIONS ===== */
.section { padding: 100px 0; }
.section-title {
  font-family: var(--font-heading); font-size: 36px; font-weight: 400;
  text-align: center; margin-bottom: 12px; color: var(--fg);
}
.section-sub {
  text-align: center; color: var(--fg-muted); font-size: 13px;
  font-weight: 400; letter-spacing: 1px; margin-bottom: 60px;
}

/* ===== FEATURES ===== */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: none;
}
.feature-card {
  padding: 48px 36px; background: var(--bg); text-align: center;
  transition: var(--transition);
}
.feature-card:hover { background: var(--bg-alt); }
.feature-icon { font-size: 28px; margin-bottom: 20px; }
.feature-card h3 {
  font-family: var(--font-heading); font-size: 18px; font-weight: 400;
  margin-bottom: 12px; color: var(--fg);
}
.feature-card p { font-size: 13px; color: var(--fg-muted); line-height: 1.7; }

@media (max-width: 900px) { .features-grid { grid-template-columns: 1fr; } }

/* ===== FOOTER ===== */
.footer {
  background: var(--fg); color: rgba(255,255,255,0.6);
  padding: 72px 0 0; margin-top: 0;
}
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr 1.3fr; gap: 36px; }
.footer-col h4 {
  font-family: var(--font-heading); color: var(--white); font-size: 13px;
  font-weight: 400; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 20px;
}
.footer-logo {
  font-family: var(--font-heading); font-size: 22px; font-weight: 400;
  font-style: italic; color: var(--white); margin-bottom: 12px;
}
.footer-desc { font-size: 12px; line-height: 1.8; margin-bottom: 20px; }
.footer-social { display: flex; gap: 8px; margin-top: 4px; }
.footer-social-link {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.5);
  font-size: 11px; font-weight: 700; letter-spacing: 0; transition: all 0.3s;
}
.footer-social-link:hover { border-color: var(--accent); color: var(--accent); }
.footer-links li { margin-bottom: 9px; }
.footer-links a { font-size: 12px; color: rgba(255,255,255,0.6); transition: color 0.3s; }
.footer-links a:hover { color: var(--accent); }
.footer-contact { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 12px; }
.footer-contact svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }
.footer-contact a { color: rgba(255,255,255,0.8); transition: color 0.3s; }
.footer-contact a:hover { color: var(--accent); }
.footer-contact span { color: rgba(255,255,255,0.6); }
.footer-bottom {
  margin-top: 48px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: rgba(255,255,255,0.3); gap: 16px; flex-wrap: wrap;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,0.3); transition: color 0.3s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}


/* ===== Mobile footer: contacts first, brand last, no catalog ===== */
@media (max-width: 768px) {
  .footer-grid { display: flex; flex-wrap: wrap; flex-direction: column; }
  .footer-col-contacts { order: -1; }
  .footer-col-catalog  { display: none; }
  .footer-col-brand    { order: 10; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; margin-top: 12px; }
}

/* ===== Footer social with labels ===== */
.footer-social-labeled { flex-direction: column; gap: 8px; align-items: flex-start; margin-top: 12px; }
.footer-social-labeled .footer-social-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 8px;
  background: rgba(255,255,255,0.06); width: 100%; box-sizing: border-box;
  font-size: 14px; color: rgba(255,255,255,0.8);
  transition: background 0.2s, color 0.2s; text-decoration: none;
}
.footer-social-labeled .footer-social-link:hover { background: rgba(255,255,255,0.12); color: #fff; }
.footer-social-labeled .footer-social-link svg { flex-shrink: 0; }
.footer-social-labeled .footer-social-link span { font-weight: 500; }

/* Desktop: icons only, compact row */
@media (min-width: 769px) {
  .footer-social-labeled { flex-direction: row; gap: 10px; align-items: center; margin-top: 16px; }
  .footer-social-labeled .footer-social-link { padding: 8px; border-radius: 50%; width: auto; }
  .footer-social-labeled .footer-social-link span { display: none; }
}

body { overflow-x: hidden; }


/* ===== PAGE CONTENT ===== */
.page-content { padding: 60px 0 100px; }
@media (max-width: 768px) { .page-content { padding: 40px 0 80px; } }

/* ===== MODAL / AUTH FORM ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--white); border-radius: 14px; padding: 40px 36px;
  max-width: 460px; width: 100%; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  max-height: 90vh; overflow-y: auto;
}
.modal h2 {
  font-family: var(--font-heading); font-size: 22px; font-weight: 400;
  font-style: italic; text-align: center; margin-bottom: 4px; color: var(--fg);
}
.modal-sub {
  text-align: center; color: var(--fg-muted); font-size: 13px; margin-bottom: 24px;
}
.modal-close {
  position: absolute; top: 16px; right: 18px;
  background: none; border: none; font-size: 22px; cursor: pointer;
  color: var(--fg-light); line-height: 1; padding: 4px;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--fg); }

/* Auth tabs */
.auth-tabs {
  display: flex; border-bottom: 1px solid var(--border); margin-bottom: 24px; gap: 0;
}
.auth-tab {
  flex: 1; padding: 10px 16px; background: none; border: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.5px; cursor: pointer;
  color: var(--fg-muted); text-transform: uppercase; transition: all 0.2s;
}
.auth-tab.active { color: var(--fg); border-bottom-color: var(--accent); }
.auth-tab:hover:not(.active) { color: var(--fg); }

/* Form elements */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 11px; font-weight: 600; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.8px; }
.form-input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 14px; font-family: var(--font-body);
  background: var(--bg); color: var(--fg); box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(107,18,52,0.1); }
.form-input:disabled { background: var(--bg-alt); color: var(--fg-muted); cursor: not-allowed; }
.form-submit {
  width: 100%; padding: 13px 24px; background: var(--fg); color: var(--white);
  border: none; border-radius: 8px; font-size: 13px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; cursor: pointer;
  transition: background 0.2s; margin-top: 8px;
}
.form-submit:hover { background: var(--accent); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-error {
  background: #fee2e2; color: #991b1b; border-radius: 8px;
  padding: 10px 14px; font-size: 13px; margin-bottom: 16px; display: none;
}
.form-error.visible { display: block; }

/* Role selector */
.role-selector { display: flex; gap: 10px; }
.role-option {
  flex: 1; padding: 14px 10px; border: 1px solid var(--border); border-radius: 8px;
  cursor: pointer; text-align: center; transition: all 0.2s; background: var(--bg);
}
.role-option.selected { border-color: var(--accent); background: rgba(107,18,52,0.05); }
.role-icon { font-size: 20px; margin-bottom: 4px; }
.role-title { font-size: 13px; font-weight: 600; color: var(--fg); }
.role-desc { font-size: 11px; color: var(--fg-muted); margin-top: 2px; }

/* Policy checkbox */
.policy-check { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0; cursor: pointer; }
.policy-check input { flex-shrink: 0; margin-top: 2px; accent-color: var(--accent); }
.policy-check-label { font-size: 12px; color: var(--fg-muted); line-height: 1.5; }
.policy-check-label a { color: var(--accent); text-decoration: underline; }

/* Legal fields */
.legal-fields { display: none; }
.legal-fields.show { display: block; }

@media (max-width: 480px) {
  .modal { padding: 28px 20px; border-radius: 0 0 14px 14px; align-self: flex-end; max-height: 95vh; }
  .modal-overlay { align-items: flex-end; padding: 0; }
}

/* ===== COOKIE POPUP ===== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 380px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 24px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.25,0.1,0.25,1);
  font-family: var(--font-body);
}

.cookie-banner.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cookie-banner .cookie-text {
  font-size: 14px;
  color: var(--fg);
  line-height: 1.6;
  margin-bottom: 20px;
}

.cookie-banner .cookie-text a {
  color: var(--fg-muted);
  text-decoration: underline;
  transition: var(--transition);
}

.cookie-banner .cookie-text a:hover {
  color: var(--fg);
}

.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
}

.cookie-banner .cookie-accept {
  flex: 1;
  padding: 12px 20px;
  background: var(--fg);
  color: var(--white);
  border: none;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.cookie-banner .cookie-accept:hover {
  background: var(--fg-muted);
}

.cookie-banner .cookie-decline {
  flex: 1;
  padding: 12px 20px;
  background: transparent;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
}

.cookie-banner .cookie-decline:hover {
  border-color: var(--fg-muted);
  color: var(--fg);
}

@media (max-width: 480px) {
  .cookie-banner {
    bottom: 0;
    right: 0;
    left: 0;
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    padding: 20px;
  }
}
