@font-face {
  font-family: 'Manrope';
  src: url('/lomonosov-assets/manrope.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/lomonosov-assets/manrope-medium.woff2') format('woff2');
  font-weight: 500 800;
  font-display: swap;
}

:root {
  --bg: #f7f8fc;
  --ink: #133482;
  --soft: #e9edf7;
  --line: #cbd3e6;
  --muted: #506184;
  --white: #ffffff;
  --accent: #173fb0;
  color-scheme: light;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

button, a, summary {
  -webkit-tap-highlight-color: transparent;
}

button:active, .button:active {
  transform: translateY(1px);
}

button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header.site-header {
  height: 96px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.wordmark {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.11em;
  line-height: 1.2;
  display: inline-block;
  color: var(--ink);
  text-transform: uppercase;
}

.wordmark span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.45em;
  text-align: center;
  margin-top: 5px;
}

nav.main-nav {
  display: flex;
  gap: 32px;
  margin: auto;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.nav-item {
  position: relative;
  padding: 30px 0;
}

.nav-item > a {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.nav-item > a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Dropdown Menu */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 240px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 16px 0;
  box-shadow: 0 12px 30px rgba(19, 52, 130, 0.08);
  z-index: 105;
}

.nav-item:hover .nav-dropdown {
  display: flex;
  flex-direction: column;
}

.nav-dropdown a {
  padding: 10px 24px;
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown a:hover {
  background: var(--soft);
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-btn {
  background: none;
  border: 1px solid var(--line);
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-btn:hover {
  border-color: var(--ink);
  background: var(--soft);
}

.menu-button {
  display: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  max-width: 1600px;
  margin: auto;
  min-height: 660px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  align-items: center;
  padding: 35px 5% 80px;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.2em;
  margin: 0 0 24px;
  color: var(--muted);
}

.hero-copy {
  z-index: 1;
}

.hero h1 {
  font-size: clamp(54px, 6.45vw, 103px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin: 0 0 26px;
}

.intro {
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 35px;
  color: var(--muted);
  max-width: 44ch;
}

.button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 38px;
  padding: 17px 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  min-height: 52px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}

.button:hover {
  background: #102d83;
  color: #fff;
}

.hero-object {
  margin-right: -7%;
  transform: rotate(-8deg);
  mix-blend-mode: multiply;
}

.hero-object img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-caption {
  position: absolute;
  bottom: 30px;
  left: 52%;
  right: 5%;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
  color: var(--muted);
}

.hero-caption span:first-child {
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--ink);
}

/* ==========================================================================
   Categories Banner Bar
   ========================================================================== */
.categories {
  padding: 0 5%;
  border-block: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg);
}

.categories a {
  display: flex;
  justify-content: space-between;
  padding: 28px 24px;
  font-size: 13px;
  font-weight: 500;
  border-right: 1px solid var(--line);
  transition: all 0.2s;
}

.categories a:first-child {
  padding-left: 0;
}

.categories a:last-child {
  border-right: 0;
}

.categories a:hover {
  color: var(--accent);
  background: var(--soft);
}

/* ==========================================================================
   Section Layouts
   ========================================================================== */
.section {
  max-width: 1600px;
  margin: auto;
  padding: 100px 5%;
}

h2 {
  font-size: clamp(36px, 4.1vw, 64px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin: 0 0 25px;
}

p {
  line-height: 1.7;
}

/* Collection Section */
.collection {
  display: grid;
  grid-template-columns: 1fr 1.08fr 0.78fr;
  gap: 40px;
  align-items: center;
}

.collection-title p {
  font-size: 14px;
  max-width: 26ch;
  margin: 24px 0 30px;
  color: var(--muted);
}

.text-link {
  display: inline-block;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.text-link span {
  margin-left: 25px;
}

figure {
  margin: 0;
}

.pattern-photo {
  height: 430px;
  overflow: hidden;
}

.pattern-photo img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
}

.collection-cup {
  padding-top: 100px;
}

.collection-cup img {
  width: 100%;
  height: 230px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.collection-cup figcaption {
  font-size: 12px;
  line-height: 1.9;
  margin-top: 20px;
}

.collection-cup span {
  color: var(--muted);
  font-size: 11px;
}

/* Pieces Section */
.pieces {
  padding-top: 45px;
}

.selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 35px 0 30px;
  font-size: 11px;
}

.filters {
  display: flex;
  gap: 28px;
}

.filters button {
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  padding: 10px 0;
  font-size: 12px;
  color: var(--muted);
}

.filters .active {
  border-color: var(--ink);
  color: var(--ink);
  font-weight: 500;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--soft);
  padding: 24px 18px 36px;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(19, 52, 130, 0.06);
}

.product-image {
  border: 0;
  display: block;
  width: 100%;
  background: transparent;
  padding: 0;
}

.product-image img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.35s;
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-info h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 20px 0 6px;
}

.product-info p {
  color: var(--muted);
  font-size: 11px;
  margin: 0;
}

/* Gifting Section */
.gifting {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: 90px;
  padding-top: 30px;
  align-items: center;
}

.gift-photo {
  height: 550px;
  overflow: hidden;
}

.gift-photo img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
}

.gift-copy p {
  max-width: 33ch;
  font-size: 14px;
  margin: 28px 0;
  color: var(--muted);
}

/* Story Section */
.story {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  padding-block: 90px;
}

.story-body > p {
  max-width: 42ch;
  font-size: 18px;
}

.story-body > p + p {
  font-size: 14px;
  color: var(--muted);
}

details {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  font-size: 12px;
}

summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  font-weight: 500;
}

summary::-webkit-details-marker {
  display: none;
}

details p {
  color: var(--muted);
  margin-top: 0;
  line-height: 1.8;
}

/* ==========================================================================
   Category Page (OpenCart 4)
   ========================================================================== */
.category-page {
  max-width: 1600px;
  margin: auto;
  padding: 40px 5% 100px;
}

.taste-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.taste-breadcrumb li::after {
  content: '/';
  margin-left: 12px;
}

.taste-breadcrumb li:last-child::after {
  content: '';
}

.taste-breadcrumb a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.category-hero {
  margin-bottom: 50px;
}

.category-hero h1 {
  font-size: clamp(40px, 5vw, 76px);
  font-weight: 400;
  letter-spacing: -0.04em;
  margin: 0 0 20px;
}

.category-hero p {
  max-width: 60ch;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

/* Subcategory chips */
.subcategories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 50px;
}

.subcategory-chip {
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 12px;
  letter-spacing: 0.03em;
  transition: all 0.2s;
}

.subcategory-chip:hover {
  border-color: var(--ink);
  background: var(--soft);
}

/* Empty Catalog State */
.empty-catalog {
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 80px 40px;
  text-align: center;
  margin: 40px 0;
}

.empty-catalog h3 {
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 16px;
}

.empty-catalog p {
  color: var(--muted);
  max-width: 50ch;
  margin: 0 auto 30px;
  font-size: 14px;
}

.empty-catalog-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer.site-footer {
  padding: 70px 5% 30px;
  background: var(--soft);
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--line);
}

.footer-top p {
  font-size: 25px;
  letter-spacing: -0.03em;
  margin: 0;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 50px 0;
  border-bottom: 1px solid var(--line);
}

.footer-col h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink);
  margin: 0 0 20px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 11px;
  color: var(--muted);
}

/* ==========================================================================
   Responsive (Mobile & Tablet)
   ========================================================================== */
@media (max-width: 1100px) {
  header.site-header {
    gap: 20px;
    height: 80px;
  }
  nav.main-nav {
    gap: 18px;
  }
  .hero {
    min-height: 560px;
  }
  .hero h1 {
    font-size: 7vw;
  }
  .collection {
    gap: 25px;
  }
  .pattern-photo {
    height: 350px;
  }
  .gifting {
    gap: 50px;
  }
  .gift-photo {
    height: 460px;
  }
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  header.site-header {
    height: 82px;
    padding: 0 6%;
  }
  nav.main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 82px;
    background: var(--bg);
    padding: 24px 6%;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 16px;
  }
  nav.main-nav.open {
    display: flex;
  }
  .nav-item {
    padding: 8px 0;
  }
  .nav-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    padding: 8px 0 8px 16px;
    background: transparent;
  }
  .menu-button {
    display: block;
    border: 1px solid var(--line);
    background: none;
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 500;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 6% 64px;
    min-height: 0;
  }
  .hero h1 {
    font-size: clamp(49px, 12vw, 80px);
  }
  .hero-object {
    margin: 38px -3% 20px 0;
    grid-row: 2;
  }
  .hero-caption {
    left: 6%;
    right: 6%;
    bottom: 24px;
    font-size: 8px;
  }
  .categories {
    grid-template-columns: 1fr 1fr;
    padding: 0 6%;
  }
  .categories a {
    font-size: 11px;
    padding: 20px 14px;
  }
  .categories a:nth-child(2) {
    border-right: 0;
  }
  .categories a:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }
  .categories a:nth-child(3) {
    padding-left: 0;
  }
  .section {
    padding: 64px 6%;
  }
  h2 {
    font-size: 38px;
  }
  .collection {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .pattern-photo {
    height: 370px;
  }
  .collection-cup {
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .gifting {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .gift-photo {
    height: 400px;
  }
  .story {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .footer-columns {
    grid-template-columns: 1fr;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
