:root {
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --text: #f5f5f5;
  --text-muted: rgba(255, 255, 255, 0.55);
  --accent: #e8a317;
  --accent-hover: #f5b82e;
  --accent-rgb: 232, 163, 23;
  --border: rgba(232, 163, 23, 0.35);
  --header-bg: rgba(10, 10, 10, 0.85);
  --card-bg: rgba(20, 20, 20, 0.9);
  --btn-text-on-accent: #0a0a0a;
  --glow: rgba(232, 163, 23, 0.15);
  --letters-opacity: 0.06;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.5s ease;
}

.serif {
  font-family: 'Playfair Display', Georgia, serif;
}

.accent-text {
  color: var(--accent);
  text-shadow: 0 0 40px rgba(var(--accent-rgb), 0.35);
}

.bg-letters {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='800' viewBox='0 0 800 800'%3E%3Ctext x='40' y='120' font-size='120' fill='white' opacity='0.08' font-family='serif'%3EK%3C/text%3E%3Ctext x='520' y='200' font-size='90' fill='white' opacity='0.06' font-family='serif'%3EW%3C/text%3E%3Ctext x='200' y='400' font-size='140' fill='white' opacity='0.05' font-family='serif'%3EA%3C/text%3E%3Ctext x='600' y='500' font-size='100' fill='white' opacity='0.07' font-family='serif'%3EZ%3C/text%3E%3Ctext x='80' y='650' font-size='110' fill='white' opacity='0.06' font-family='serif'%3E翻%3C/text%3E%3Ctext x='400' y='700' font-size='80' fill='white' opacity='0.05' font-family='serif'%3EЖ%3C/text%3E%3C/svg%3E");
  background-size: cover;
  opacity: var(--letters-opacity);
}

.bg-glow {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 90vw);
  height: 500px;
  background: radial-gradient(ellipse, var(--glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transition: background 0.5s ease;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.5s ease;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--accent);
  color: var(--btn-text-on-accent);
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.5s ease;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text strong {
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.logo-text small {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  transition: color 0.5s ease;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
}

.btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.2s, background 0.3s, box-shadow 0.3s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-accent {
  background: var(--accent);
  color: var(--btn-text-on-accent);
  box-shadow: 0 4px 24px rgba(var(--accent-rgb), 0.35);
}

.btn-accent:hover {
  background: var(--accent-hover);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
  margin-top: 0.5rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s;
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 1.5rem 8rem;
}

.hero-badge {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  margin-bottom: 2rem;
  transition: color 0.5s, border-color 0.5s;
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  margin: 0 0 1rem;
  line-height: 1.15;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 3rem;
}

.translation-showcase {
  width: 100%;
  max-width: 900px;
  margin-bottom: 2rem;
}

.translation-slider {
  position: relative;
  min-height: 140px;
}

.translation-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.translation-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.translation-pair,
.translation-single {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.translation-source .word {
  color: var(--text-muted);
  opacity: 0.45;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.translation-target,
.translation-single {
  position: relative;
  flex-direction: column;
}

.translation-target .word,
.translation-single .word {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
}

.translation-arrow {
  color: var(--accent);
  font-size: 1.5rem;
  opacity: 0.8;
}

.lang-tag {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: inline-block;
}

.lang-tag.accent {
  border-color: var(--accent);
  color: var(--accent);
}

.word-underline {
  display: block;
  width: 80%;
  max-width: 200px;
  height: 2px;
  margin: 0.5rem auto 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.6);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.slider-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}

.slider-dots button.active {
  background: var(--accent);
  transform: scale(1.2);
}

.lang-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.lang-pill {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
}

.lang-pill:hover,
.lang-pill.active {
  background: var(--accent);
  color: var(--btn-text-on-accent);
  border-color: var(--accent);
}

.lang-pill.muted {
  cursor: default;
  opacity: 0.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.section {
  padding: 5rem 1.5rem;
  position: relative;
  z-index: 1;
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.section-inner.reverse {
  direction: rtl;
}

.section-inner.reverse > * {
  direction: ltr;
}

.section-inner.centered {
  grid-template-columns: 1fr;
  text-align: center;
}

.section-media img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  object-fit: cover;
  max-height: 420px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 0 0 1.25rem;
  line-height: 1.25;
}

.section-content p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.section-content.wide {
  max-width: 800px;
  margin: 0 auto;
}

.inline-image {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  margin: 1.5rem auto;
  display: block;
}

.reviews-section h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.reviews-carousel {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.reviews-track {
  display: flex;
  gap: 1.5rem;
  animation: scrollReviews 50s linear infinite;
  width: max-content;
}

.reviews-track:hover {
  animation-play-state: paused;
}

@keyframes scrollReviews {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.review-card {
  flex: 0 0 280px;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  backdrop-filter: blur(8px);
}

.review-card img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.review-card p {
  font-size: 0.95rem;
  font-style: italic;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.review-card span {
  font-size: 0.85rem;
  color: var(--accent);
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.3s, transform 0.2s;
}

.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.contact-icon {
  font-size: 1.5rem;
}

.footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  color: var(--text);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal h2 {
  font-family: 'Playfair Display', Georgia, serif;
  margin: 0 0 0.5rem;
}

.modal-desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.order-form label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.order-form input,
.order-form textarea {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.order-form input:focus,
.order-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--btn-text-on-accent);
  font-size: 0.7rem;
  cursor: help;
}

.modal a {
  color: var(--accent);
}

@media (max-width: 900px) {
  .header {
    padding: 1rem 1.25rem;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--header-bg);
    padding: 1rem 1.25rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav.open {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .section-inner,
  .section-inner.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

}
