*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark: #023a49;
  --dark2: #0f4659;
  --off-white: #f5f5f3;
  --border: #e0ddd6;
  --text: #1a1a1a;
  --text-muted: #555;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: #fff; line-height: 1.6; padding-top: 72px; }

a { text-decoration: none; color: inherit; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #023a49;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-top {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1280px; margin: 0 auto; padding: 0 2rem; height: 72px;
}

.logo-svg { height: 46px; width: 240px; display: block; }

nav { display: flex; align-items: center; }
nav a, nav .nav-top-link {
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.75);
  padding: 0 14px; height: 72px; display: flex; align-items: center;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}
nav a:hover, nav .nav-top-link:hover { color: #fff; }
nav a.active, nav .nav-top-link.active { color: #fff; border-bottom-color: rgba(255,255,255,0.6); }

.nav-item { position: relative; display: flex; align-items: stretch; }
.nav-top-link { gap: 6px; white-space: nowrap; }
.nav-top-link svg { width: 10px; height: 10px; stroke: currentColor; fill: none; stroke-width: 2; }
.nav-dropdown {
  display: none;
  position: absolute; top: 100%; left: 0; z-index: 120;
  min-width: 300px; background: #fff;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border: 1px solid #e0ddd6; border-top: none;
  padding: 8px 0;
}
.nav-item--dropdown:hover .nav-dropdown,
.nav-item--dropdown.is-open .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block; height: auto; padding: 13px 20px 13px 18px;
  font-size: 14px; font-weight: 500; color: #1a1a1a;
  border-bottom: none;
}
.nav-dropdown a:hover { color: #023a49; }
.nav-dropdown a.active { color: #023a49; font-weight: 600; }

.btn-header {
  font-size: 13px; font-weight: 600; color: #fff;
  background: var(--dark2); border: 1px solid rgba(255,255,255,0.3);
  padding: 9px 18px; border-radius: 4px; white-space: nowrap;
}
.btn-header:hover { background: rgba(255,255,255,0.12); }

.header-right { display: flex; align-items: center; gap: 12px; }
.lang-btn {
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.6);
  padding: 5px 10px; border: 1px solid rgba(255,255,255,0.2); border-radius: 4px;
  cursor: pointer; transition: all 0.2s;
}
.lang-btn:hover, .lang-btn.active { color: #fff; border-color: rgba(255,255,255,0.5); }

.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 4px; cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; }
.nav-mobile-lang { display: none; }

.nav-overlay {
  display: none; position: fixed; inset: 0; z-index: 90;
  background: rgba(0,0,0,0.45); border: none; cursor: pointer;
}
.nav-overlay.open { display: block; }
body.menu-open { overflow: hidden; }

.section-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--dark2); margin-bottom: 12px;
}

.prod-hero {
  background: linear-gradient(135deg, #f5f5f3 0%, #e8eef0 100%);
  padding: 48px 0 40px;
  scroll-margin-top: 72px;
}

.prod-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.prod-hero-media {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(2, 58, 73, 0.12);
  border: 1px solid var(--border);
}

.prod-hero-media img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 360px;
  object-fit: cover;
}

.prod-breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.prod-breadcrumb a { color: var(--dark); font-weight: 500; }
.prod-breadcrumb a:hover { text-decoration: underline; }

.prod-hero h1 {
  font-size: clamp(32px, 5vw, 48px); font-weight: 800; color: var(--dark);
  letter-spacing: -0.02em; margin-bottom: 16px;
}

.prod-lead { font-size: 17px; color: var(--text-muted); max-width: 720px; line-height: 1.7; }

.prod-subnav {
  position: sticky; top: 72px; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.prod-subnav-inner {
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 0;
  scrollbar-width: thin;
}

.prod-subnav-link {
  flex-shrink: 0; font-size: 12px; font-weight: 600; color: var(--text-muted);
  padding: 8px 14px; border-radius: 100px; border: 1px solid var(--border);
  transition: all 0.2s;
}
.prod-subnav-link:hover { color: var(--dark); border-color: var(--dark); }
.prod-subnav-link.is-active {
  background: var(--dark); color: #fff; border-color: var(--dark);
}
.prod-subnav-link--accent { border-color: rgba(196, 90, 18, 0.4); color: #c45a12; }
.prod-subnav-link--accent.is-active { background: #c45a12; border-color: #c45a12; color: #fff; }

.prod-section {
  padding: 64px 0;
  scroll-margin-top: 130px;
}
.prod-section--alt { background: var(--off-white); }

.prod-section-grid {
  display: grid; grid-template-columns: 100px 1fr; gap: 32px; align-items: start;
}

.prod-section-grid--media {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
}

.prod-section-grid--reverse .prod-section-media { order: 2; }
.prod-section-grid--reverse .prod-section-content { order: 1; }

.prod-section-media {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
  background: #fff;
}

.prod-section-media img {
  width: 100%;
  height: auto;
  display: block;
  min-height: 220px;
  max-height: 420px;
  object-fit: cover;
}

.prod-section-content {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px 28px;
  align-items: start;
}

.prod-section-content .prod-section-num { grid-column: 1; grid-row: 1 / 3; }
.prod-section-content .prod-section-body { grid-column: 2; }

.prod-section-num {
  font-size: 56px; font-weight: 800; color: #0f4659; line-height: 1;
  letter-spacing: -3px; opacity: 0.35;
}

.prod-section-body h2 {
  font-size: 28px; font-weight: 800; color: var(--text); margin-bottom: 14px;
}

.prod-section-body > p {
  font-size: 16px; color: var(--text-muted); margin-bottom: 20px; max-width: 680px;
}

.prod-list {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px;
}
.prod-list li {
  font-size: 13px; font-weight: 500; color: var(--dark);
  background: #fff; border: 1px solid var(--border);
  padding: 8px 14px; border-radius: 4px;
}
.prod-section--alt .prod-list li { background: #fff; }

/* Journal-style product catalog */
.prod-section--catalog {
  padding-top: 48px;
  padding-bottom: 80px;
}

.prod-catalog-head {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px 28px;
  align-items: start;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.prod-catalog-head .prod-section-num {
  font-size: 56px;
  font-weight: 800;
  color: #0f4659;
  line-height: 1;
  letter-spacing: -3px;
  opacity: 0.35;
}

.prod-catalog-head h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

.prod-catalog-intro {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.7;
}

.prod-catalog-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px 56px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}

.prod-catalog-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.prod-catalog-item--reverse .prod-catalog-media {
  order: 2;
}

.prod-catalog-item--reverse .prod-catalog-text {
  order: 1;
}

.prod-catalog-media {
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #f0f2f4;
  border: 1px solid var(--border);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prod-catalog-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 380px;
  object-fit: contain;
  display: block;
}

.prod-crop {
  background: repeating-conic-gradient(#e8eaed 0% 25%, #f5f6f8 0% 50%) 50% / 16px 16px;
}

.prod-crop img {
  object-fit: cover;
  transform: scale(1.35);
}

/* Отдельные фото товара — вписываются по ширине колонки без кропа */
.prod-media--fit {
  background: #fff;
  min-height: 0;
  height: auto;
  display: block;
}

.prod-media--fit img {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: 380px;
  object-fit: contain;
  transform: none;
  display: block;
}
.prod-crop--baker img { object-position: 18% 48%; }
.prod-crop--overall img { object-position: 82% 88%; }
.prod-catalog-text h3 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.35;
}

.prod-catalog-text p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 520px;
}

.prod-journal {
  background: var(--dark); color: #fff; padding-bottom: 80px;
}
.prod-journal .section-eyebrow { color: rgba(255,255,255,0.45); }
.prod-journal h2 { color: #fff; font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.prod-journal .prod-lead { color: rgba(255,255,255,0.65); }

.prod-journal-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px; flex-wrap: wrap; margin-bottom: 28px;
}

.btn-download {
  display: inline-flex; align-items: center;
  font-size: 13px; font-weight: 600; color: var(--dark);
  background: #fff; padding: 12px 22px; border-radius: 4px; white-space: nowrap;
}
.btn-download:hover { background: var(--off-white); }

.prod-pdf-wrap {
  background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.25);
  min-height: 70vh;
}

.prod-pdf-frame {
  width: 100%; height: 75vh; min-height: 500px; border: none; display: block;
}

.prod-pdf-hint {
  margin-top: 14px; font-size: 13px; color: rgba(255,255,255,0.5);
}
.prod-pdf-hint a { color: rgba(255,255,255,0.85); text-decoration: underline; }

.site-footer {
  background: #010f14; padding: 28px 0; color: rgba(255,255,255,0.4); font-size: 13px;
}
.site-footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: #fff; }

@media (max-width: 900px) {
  .prod-hero-grid { grid-template-columns: 1fr; }
  .prod-hero-media { order: -1; }
  .prod-section-grid--media,
  .prod-section-grid--media.prod-section-grid--reverse {
    grid-template-columns: 1fr;
  }
  .prod-section-grid--reverse .prod-section-media,
  .prod-section-grid--reverse .prod-section-content { order: unset; }
  .prod-section-content { grid-template-columns: 1fr; }
  .prod-section-content .prod-section-num { grid-row: auto; font-size: 40px; }

  .prod-catalog-head { grid-template-columns: 1fr; }
  .prod-catalog-head .prod-section-num { font-size: 40px; }
  .prod-catalog-item,
  .prod-catalog-item--reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .prod-catalog-item--reverse .prod-catalog-media,
  .prod-catalog-item--reverse .prod-catalog-text { order: unset; }
  .prod-catalog-media { min-height: 220px; }
  .prod-catalog-media img { min-height: 220px; max-height: 300px; }
  .prod-media--fit img { max-height: 300px; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .header-right { gap: 6px; flex-shrink: 0; }
  .header-right .lang-btn {
    display: inline-block;
    padding: 5px 8px;
    font-size: 11px;
  }
  .nav-mobile-lang {
    display: block;
    margin-top: auto;
    padding: 24px 2rem 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-mobile-lang-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 12px;
  }
  .nav-mobile-lang-btns { display: flex; gap: 10px; flex-wrap: wrap; }
  nav {
    display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
    flex-direction: column; background: rgba(2, 58, 73, 0.98); padding: 1rem 0;
    overflow-y: auto;
  }
  nav.open { display: flex; flex-direction: column; }
  nav a, nav .nav-top-link { height: auto; padding: 14px 2rem; width: 100%; }
  .nav-item { flex-direction: column; align-items: stretch; }
  .nav-dropdown {
    position: static;
    box-shadow: none; border: none; background: rgba(0,0,0,0.12);
    min-width: 0; padding: 0; display: none;
  }
  .nav-item--dropdown.is-open .nav-dropdown { display: block; }
  .nav-item--dropdown:hover .nav-dropdown { display: none; }
  .nav-item--dropdown.is-open:hover .nav-dropdown { display: block; }
  .nav-dropdown a {
    padding: 12px 2rem 12px 2.75rem; color: rgba(255,255,255,0.85); font-size: 13px;
    width: 100%;
  }
  .nav-dropdown a:hover,
  .nav-dropdown a.active { color: #fff; }
  .header-right .btn-header { display: none; }
  .prod-section-media img { min-height: 180px; max-height: 280px; }
  .prod-pdf-frame { height: 60vh; min-height: 400px; }
}
