/* ===== CSS Variables — Golden Berkut theme ===== */
:root {
  --primary:        #1a1208;   /* very dark warm black */
  --primary-dark:   #0d0904;   /* near-black */
  --accent:         #c9a227;   /* rich gold */
  --accent-light:   #e5c158;   /* lighter gold */
  --gold:           #c9a227;
  --gold-light:     #f0d878;
  --text:           #1a1208;
  --text-muted:     #7a6e5a;
  --bg:             #ffffff;
  --bg-light:       #faf7f0;   /* warm cream */
  --border:         #e8e0ce;   /* warm border */
  --success:        #16a34a;
  --success-bg:     #dcfce7;
  --danger:         #dc2626;
  --danger-bg:      #fee2e2;
  --radius:         10px;
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.10);
  --shadow:         0 4px 16px rgba(0,0,0,0.13);
  --shadow-lg:      0 10px 32px rgba(0,0,0,0.18);
  --transition:     0.22s ease;
  --max-width:      1160px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ===== Layout helpers ===== */
.container   { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section     { padding: 88px 0; }

.section-header { margin-bottom: 52px; }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
  letter-spacing: 0.2px;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline {
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
}
.btn-outline:hover { background: #fff; color: var(--primary); border-color: #fff; }

/* ===== Page Header (inner pages) ===== */
.page-header {
  background: linear-gradient(120deg, #0d0904 0%, #1a1208 100%);
  color: #fff;
  padding: 40px 0 36px;
  border-bottom: 1px solid rgba(201,162,39,0.15);
}
.page-header-breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}
.page-header-breadcrumb a {
  color: rgba(255,255,255,0.5);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-header-breadcrumb a:hover { color: #fff; }
.page-header h1 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.page-header p {
  font-size: 0.97rem;
  color: rgba(255,255,255,0.68);
}

/* ===== Page CTA banner ===== */
.page-cta {
  background: var(--bg-light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.page-cta strong { font-size: 1.05rem; font-weight: 700; color: var(--primary); display: block; margin-bottom: 4px; }
.page-cta p { font-size: 0.88rem; color: var(--text-muted); }

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--primary);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}
.nav-logo-text { line-height: 1.15; }
.nav-logo-text span { color: var(--gold); display: block; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.5px; opacity: 0.85; }
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.78);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 7px;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.nav-links a.nav-active { color: #fff; background: rgba(255,255,255,0.14); font-weight: 700; }
.nav-cta {
  background: var(--gold) !important;
  color: var(--primary) !important;
  font-weight: 700 !important;
  margin-left: 4px;
}
.nav-cta:hover { background: #e6b520 !important; }

/* ===== Language dropdown ===== */
.lang-switcher {
  position: relative;
  flex-shrink: 0;
}
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.18);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1;
}
.lang-toggle:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.35); color: #fff; }
.lang-toggle-arrow {
  font-size: 0.6rem;
  opacity: 0.7;
  transition: transform 0.2s;
  display: inline-block;
}
.lang-switcher.open .lang-toggle-arrow { transform: rotate(180deg); }
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--primary-dark);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 6px;
  min-width: 120px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  z-index: 300;
}
.lang-switcher.open .lang-dropdown { display: block; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.72);
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  white-space: nowrap;
}
.lang-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.lang-btn.lang-active { color: var(--gold); background: rgba(212,160,23,0.12); }
.lang-btn.lang-active::after {
  content: '✓';
  margin-left: auto;
  font-size: 0.75rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(140deg, #0d0904 0%, #1a1208 55%, #2a1e08 100%);
  color: #fff;
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 36px 36px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201,162,39,0.22) 0%, transparent 65%);
  pointer-events: none;
}
.hero-content { max-width: 640px; position: relative; z-index: 1; }

/* ── Hero two-column layout ── */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.hero-logo-img {
  width: clamp(140px, 18vw, 240px);
  height: auto;
  border-radius: 0;
  display: block;
}
.hero-logo-name {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.3;
}
.hero-logo-name span {
  display: block;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
  opacity: 0.85;
}
.hero-badge {
  display: inline-block;
  background: rgba(212,160,23,0.18);
  border: 1px solid rgba(212,160,23,0.6);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 22px;
  letter-spacing: -1.5px;
}
.hero h1 span { color: var(--gold); }
.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 40px;
  line-height: 1.75;
  max-width: 520px;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.12);
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -1px;
}
.hero-stat span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.58);
  margin-top: 6px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== About ===== */
.about { background: var(--bg-light); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-lead {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
}
.about-features { display: flex; flex-direction: column; gap: 22px; }
.about-feature { display: flex; gap: 18px; align-items: flex-start; }
.about-feature-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.about-feature strong { display: block; font-weight: 700; margin-bottom: 3px; }
.about-feature p { color: var(--text-muted); font-size: 0.88rem; }
.about-visual {
  background: linear-gradient(145deg, #1a1208 0%, #2a1e08 55%, #c9a227 100%);
  border-radius: 20px;
  padding: 48px 40px;
  color: #fff;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}
.about-visual::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
}
.about-visual::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.about-visual-inner { position: relative; z-index: 1; }
.about-visual h3 { font-size: 1.9rem; font-weight: 800; margin-bottom: 14px; letter-spacing: -0.5px; }
.about-visual p { opacity: 0.78; line-height: 1.75; font-size: 0.95rem; }

/* ===== Products ===== */
.products { background: var(--bg); }
.material-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 10px 26px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-light);
  border: 2px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.tab-btn:hover { border-color: var(--accent); color: var(--accent); }
.tab-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.products-loading {
  text-align: center;
  padding: 64px 0;
  color: var(--text-muted);
}
.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.product-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.product-icon {
  width: 44px; height: 44px;
  min-width: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.product-name-wrap .p-name { font-size: 0.97rem; font-weight: 700; color: var(--text); }
.product-name-wrap .p-material { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

.availability {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.avail-yes { color: var(--success); }
.avail-yes .dot { background: var(--success); }
.avail-no  { color: var(--danger); }
.avail-no  .dot { background: var(--danger); }

.p-quantity {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.p-quantity strong { color: var(--text); font-weight: 700; }

/* ===== Services ===== */
.services { background: var(--bg-light); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  gap: 22px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border);
  transition: var(--transition);
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.service-icon { font-size: 2.4rem; margin-bottom: 18px; line-height: 1; }
.service-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: var(--primary); }
.service-desc { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 22px; line-height: 1.65; }
.service-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  padding-top: 18px;
  border-top: 1.5px solid var(--border);
}
.service-price sub { font-size: 0.78rem; font-weight: 400; color: var(--text-muted); display: block; margin-top: 3px; }

/* ===== Contacts ===== */
.contacts { background: var(--bg); }
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 26px;
}
.contact-icon {
  width: 44px; height: 44px;
  min-width: 44px;
  background: var(--bg-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}
.contact-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 4px; }
.contact-value { font-size: 0.97rem; font-weight: 600; }
.contact-value a { color: var(--accent); }
.contact-value a:hover { text-decoration: underline; }
.contact-sub { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }

.contact-form-wrap {
  background: var(--bg-light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-form-wrap h3 { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.93rem;
  transition: var(--transition);
  background: #fff;
  color: var(--text);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,111,168,0.12);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit {
  width: 100%;
  padding: 13px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.97rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 4px;
}
.form-submit:hover { background: var(--accent-light); }

/* ===== Footer ===== */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.5);
  padding: 28px 0;
  text-align: center;
  font-size: 0.85rem;
}
footer p + p { margin-top: 8px; }
footer strong { color: rgba(255,255,255,0.85); }
footer a { color: rgba(255,255,255,0.5); text-decoration: underline; }
footer a:hover { color: rgba(255,255,255,0.85); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .section { padding: 60px 0; }

  .hamburger { display: flex; }

  /* Лого возвращается влево */
  .nav-logo {
    position: static;
    transform: none;
    flex: unset;
    text-align: left;
  }

  .lang-switcher { display: none; }

  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 12px 16px 20px;
    gap: 2px;
    z-index: 199;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 11px 16px;
    border-radius: 8px;
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
  }
  /* Добавляем переключатель языка в мобильное меню */
  .nav-links.open + .hamburger ~ .lang-switcher { display: flex; }
  .nav-cta { margin-left: 0; margin-top: 4px; text-align: center; }

  .hero { padding: 60px 0 52px; }
  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  .hero-logo-wrap {
    order: -1;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    margin-bottom: 8px;
  }
  .hero-logo-img { width: 80px; border-radius: 12px; }
  .hero-logo-name { text-align: left; font-size: 1.05rem; }
  .hero-stats { gap: 24px; margin-top: 44px; padding-top: 28px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { text-align: center; }

  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-visual { min-height: 220px; padding: 32px 28px; }
  .about-visual h3 { font-size: 1.5rem; }

  .contacts-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 520px) {
  .products-grid { grid-template-columns: 1fr; }
  .services-grid  { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .hero-stat strong { font-size: 1.7rem; }
}
