/* ===========================================
   FELUXE — Premium Redesign System
   Navy / Teal / Plum / Gold on warm ivory
   Cinzel (wordmark) · Cormorant (display) · Hanken Grotesk (UI)
   =========================================== */

:root {
  /* Brand — derived from logo + packaging */
  --navy-900: #0d1c2e;
  --navy:     #1c3a5e;
  --navy-700: #16304c;
  --teal:     #0f9ea1;
  --teal-700: #0b7e82;
  --plum:     #732c6c;
  --plum-700: #4f1d4b;
  --gold:     #e3b23c;
  --gold-700: #c4942a;

  /* Neutrals */
  --ivory:    #f6f3ec;
  --ivory-2:  #efeadf;
  --paper:    #ffffff;
  --ink:      #16202e;
  --ink-soft: #3a4658;
  --muted:    #6b7585;
  --line:     #e2ddd0;
  --line-dk:  rgba(255,255,255,.14);

  /* Accent system (Tweakable) */
  --accent:      var(--teal);
  --accent-deep: var(--teal-700);
  --accent-2:    var(--plum);

  /* Type */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --caps:  'Cinzel', Georgia, serif;
  --sans:  'Hanken Grotesk', system-ui, -apple-system, sans-serif;

  --maxw: 1240px;
  --gut: clamp(1.25rem, 4vw, 3rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gut);
}

/* ---------- Typographic helpers ---------- */
.eyebrow {
  font-family: var(--caps);
  font-size: .82rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: .8rem;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--gold); }
.eyebrow.on-dark::before { background: var(--gold); }
.eyebrow.center { justify-content: center; }
.eyebrow.center::after {
  content: ''; width: 28px; height: 1px; background: var(--accent); display: inline-block;
}
.eyebrow.center.on-dark::after { background: var(--gold); }

.display {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  color: var(--navy);
}
.display em { font-style: italic; color: var(--accent-deep); font-weight: 500; }

.section-head {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-top: .9rem;
}
.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 60ch;
  line-height: 1.6;
}

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section--ivory { background: var(--ivory); }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy-900); color: #e8ecf2; }
.section--navy .section-head,
.section--navy .display { color: #fff; }
.section--navy .lead { color: rgba(232,236,242,.78); }

.head-block { max-width: 62ch; }
.head-block.center { margin: 0 auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  letter-spacing: .01em;
  padding: 1rem 1.9rem; border-radius: 2px; cursor: pointer;
  border: 1px solid transparent; transition: all .25s ease;
  min-height: 52px;
}
.btn .arr { transition: transform .25s ease; }
.btn:hover .arr { transform: translateX(4px); }
.btn-solid { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-gold { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-700); border-color: var(--gold-700); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  background: rgba(246,243,236,.86);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled { background: rgba(246,243,236,.96); box-shadow: 0 6px 30px rgba(13,28,46,.07); }
.nav {
  max-width: var(--maxw); margin: 0 auto;
  padding: .85rem var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand .wordmark {
  font-family: var(--caps); font-weight: 700;
  font-size: 1.45rem; letter-spacing: .14em; color: var(--navy);
  line-height: 1;
}
.brand .wordmark span { display: block; font-family: var(--sans); font-weight: 600;
  font-size: .52rem; letter-spacing: .42em; color: var(--accent-deep); margin-top: 3px; }
.nav-links { display: none; align-items: center; gap: clamp(1.2rem, 2vw, 2.2rem); list-style: none; }
.nav-links a {
  font-size: .92rem; font-weight: 500; color: var(--ink-soft); position: relative; padding-block: .3rem;
  transition: color .2s;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a::after {
  content:''; position:absolute; left:0; bottom:-2px; height:1.5px; width:0; background: var(--accent);
  transition: width .25s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { margin-left: .5rem; }
.menu-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 10px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .3s; }
.menu-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2){ opacity: 0; }
.menu-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 999; background: var(--navy-900);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 1.5rem;
  /* clear the fixed header so the first item never hides under the navbar */
  padding: clamp(5rem, 11vh, 6.5rem) 1.25rem 3rem;
  /* let long translations (RU / AR) scroll instead of getting clipped */
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  transform: translateX(100%); transition: transform .4s cubic-bezier(.7,0,.2,1);
}
/* center the block vertically when it's short, but allow growth/scroll when tall */
.mobile-menu > :first-child { margin-top: auto; }
.mobile-menu > :last-child { margin-bottom: auto; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { font-family: var(--serif); font-size: clamp(1.5rem, 6vw, 1.9rem); color: #fff; font-weight: 500; flex: none; text-align: center; line-height: 1.15; white-space: nowrap; }
.mobile-menu a:hover { color: var(--gold); }

@media (min-width: 1080px) {
  .nav-links { display: flex; }
  .menu-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy-900);
  color: #fff; position: relative; overflow: hidden;
  padding-top: clamp(8rem, 14vh, 11rem); padding-bottom: clamp(4rem, 8vw, 7rem);
}
.hero::before {
  content:''; position:absolute; inset:0;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(15,158,161,.22), transparent 55%),
    radial-gradient(100% 80% at 10% 100%, rgba(115,44,108,.28), transparent 55%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 5vw, 4rem); align-items: center;
}
.hero h1 { font-family: var(--serif); font-weight: 600; line-height: 1.12;
  font-size: clamp(2.6rem, 6vw, 4.8rem); letter-spacing: -0.015em; color: #fff; }
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 500; }
.hero .sub { color: rgba(255,255,255,.8); font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  max-width: 48ch; margin-top: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.hero-visual { position: relative; }
.hero-visual .bag {
  width: 100%; max-width: 460px; margin-inline: auto; filter: drop-shadow(0 40px 60px rgba(0,0,0,.55));
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 1.4rem 2.2rem; margin-top: 2.8rem;
  padding-top: 2rem; border-top: 1px solid var(--line-dk); }
.hero-badge { display: flex; flex-direction: column; }
.hero-badge b { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--gold); line-height: 1; }
.hero-badge b.word { font-size: 1.55rem; letter-spacing: .015em; }
.hero-badge span { font-size: .82rem; color: rgba(255,255,255,.65); letter-spacing: .04em; margin-top: .35rem; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
}

/* ---------- Marquee / trust strip ---------- */
.trust {
  background: var(--navy); color: #fff; padding-block: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.trust-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem); }
.trust-item { display: inline-flex; align-items: center; gap: .6rem; font-size: .9rem;
  color: rgba(255,255,255,.82); letter-spacing: .03em; }
.trust-item i { color: var(--gold); font-size: 1rem; }
.trust-sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.3); }

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: 1fr; gap: 1.8rem; margin-top: 3.5rem; }
@media (min-width: 720px){ .product-grid { grid-template-columns: repeat(3,1fr); } }
.product-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform .35s ease, box-shadow .35s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px rgba(13,28,46,.12); }
.product-media { background: var(--ivory-2); aspect-ratio: 4/5; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.product-media img { height: 100%; width: auto; object-fit: contain; }
.product-body { padding: 1.8rem; display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.product-body h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--navy); line-height: 1.1; }
.product-body p { color: var(--ink-soft); font-size: .98rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; }
.tag { font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent-deep); background: color-mix(in oklab, var(--accent) 12%, white);
  padding: .35rem .7rem; border-radius: 2px; }
.pack-note { font-size: .85rem; color: var(--muted); padding-top: 1rem; border-top: 1px solid var(--line); }
.pack-note strong { color: var(--navy); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem,5vw,4rem); align-items: start; }
@media (min-width: 920px){ .about-grid { grid-template-columns: 1.1fr .9fr; } }
.about-body p { margin-top: 1.1rem; color: var(--ink-soft); }
.about-body p strong { color: var(--navy); font-weight: 700; }
.about-sub { font-family: var(--serif); font-size: 1.5rem; color: var(--navy); font-weight: 600; margin-top: 2rem; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.stat { background: var(--paper); padding: 2rem 1.5rem; text-align: center; }
.stat b { font-family: var(--serif); display: block; font-size: clamp(2.4rem,4vw,3.4rem); font-weight: 600; color: var(--accent-deep); line-height: 1; }
.stat b.word { font-size: clamp(1.5rem,2.4vw,2rem); letter-spacing: .01em; }
.stat span { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: .6rem; display: block; }
.cert-card { margin-top: 1.5rem; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--paper); }
.cert-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.cert-card .cap { padding: 1rem 1.2rem; font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: .6rem; }
.cert-card .cap i { color: var(--gold); }

/* ---------- Technical specs ---------- */
.spec-layout { display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem,5vw,4rem); align-items: start; margin-top: 2.5rem; }
@media (min-width: 920px){ .spec-layout { grid-template-columns: 1fr 1fr; align-items: center; } }
.spec-props { list-style: none; margin: 2rem 0 0; display: grid; gap: 1.05rem; }
.spec-props li { display: flex; gap: .9rem; align-items: flex-start; color: var(--ink-soft); font-size: 1rem; line-height: 1.45; }
.spec-props i { color: var(--accent-deep); font-size: 1rem; margin-top: .28rem; width: 1.2rem; text-align: center; flex: none; }
.spec-sheet { background: var(--navy-900); color: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px rgba(13,28,46,.18); }
.spec-sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.5rem 1.8rem; border-bottom: 1px solid var(--line-dk); }
.spec-sheet-head .k { font-family: var(--caps); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.spec-sheet-head .v { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: #fff; }
.spec-rows { margin: 0; }
.spec-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.05rem 1.8rem; border-bottom: 1px solid var(--line-dk); }
.spec-row:last-child { border-bottom: 0; }
.spec-row dt { color: rgba(255,255,255,.78); font-size: .96rem; }
.spec-row dd { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--gold); line-height: 1; margin: 0; white-space: nowrap; }
.spec-foot { display: flex; gap: .6rem; align-items: center; padding: 1.1rem 1.8rem; background: rgba(255,255,255,.04); font-size: .85rem; color: rgba(255,255,255,.62); }
.spec-foot i { color: var(--accent); }

/* ---------- Production steps ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 3.5rem; border-top: 1px solid var(--line-dk); }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; padding: 1.8rem 0; border-bottom: 1px solid var(--line-dk); align-items: baseline; }
.step .num { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: var(--gold); line-height: 1; min-width: 2.5ch; }
.step h4 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: #fff; }
.step p { color: rgba(232,236,242,.72); margin-top: .3rem; }
@media (min-width: 760px){ .step { grid-template-columns: auto 16rem 1fr; gap: 2.5rem; align-items: baseline; } }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 3.5rem; border-radius: 4px; overflow: hidden; }
@media (min-width: 640px){ .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px){ .svc-grid { grid-template-columns: repeat(3,1fr); } }
.svc { background: var(--paper); padding: 2.4rem 2rem; transition: background .3s; }
.svc:hover { background: var(--ivory); }
.svc .ic { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-deep); font-size: 1.4rem; border: 1px solid var(--line); border-radius: 50%; }
.svc h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--navy); margin: 1.2rem 0 .6rem; }
.svc p { color: var(--ink-soft); font-size: .96rem; }

/* ---------- Catalog CTA ---------- */
.catalog-cta { background: var(--navy-900); color: #fff; border-radius: 6px; overflow: hidden;
  display: grid; grid-template-columns: 1fr; position: relative; }
@media (min-width:860px){ .catalog-cta { grid-template-columns: 1.3fr 1fr; } }
.catalog-cta .pad { padding: clamp(2.5rem,5vw,4.5rem); }
.catalog-cta h2 { font-family: var(--serif); font-size: clamp(2rem,3.5vw,3rem); font-weight: 600; line-height: 1.06; }
.catalog-cta p { color: rgba(255,255,255,.78); margin-top: 1rem; max-width: 44ch; }
.catalog-list { list-style: none; margin: 1.8rem 0; display: grid; gap: .7rem; }
.catalog-list li { display: flex; gap: .7rem; align-items: center; color: rgba(255,255,255,.85); font-size: .95rem; }
.catalog-list i { color: var(--gold); }
.catalog-btns { display: flex; flex-wrap: wrap; gap: 1rem; }
.catalog-side { background:
   linear-gradient(150deg, color-mix(in oklab, var(--plum) 60%, var(--navy-900)), var(--navy));
   display:flex; align-items:center; justify-content:center; padding: 3rem; min-height: 240px; }
.catalog-side i { font-size: clamp(4rem,8vw,7rem); color: rgba(255,255,255,.25); }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 1.8rem; margin-top: 3.5rem; }
@media (min-width:760px){ .blog-grid { grid-template-columns: repeat(2,1fr);} }
.article-card { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.article-card:hover { transform: translateY(-5px); box-shadow: 0 24px 44px rgba(13,28,46,.1); }
.article-card .ph { aspect-ratio: 16/10; overflow: hidden; }
.article-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.article-card:hover .ph img { transform: scale(1.05); }
.article-body { padding: 1.8rem; }
.article-meta { display: flex; gap: 1rem; align-items: center; font-size: .78rem; letter-spacing: .05em;
  text-transform: uppercase; color: var(--muted); }
.article-meta .cat { color: var(--accent-deep); font-weight: 700; }
.article-body h3 { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--navy); margin: .8rem 0; line-height: 1.15; }
.article-body p { color: var(--ink-soft); font-size: .96rem; }
.read-more { display: inline-flex; gap: .4rem; align-items: center; margin-top: 1.2rem;
  font-weight: 600; color: var(--accent-deep); font-size: .92rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem,4vw,3.5rem); margin-top: 3.5rem; }
@media (min-width:900px){ .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-panel { background: var(--navy-900); color: #fff; border-radius: 6px; padding: clamp(2rem,4vw,3rem); }
.contact-panel h3 { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; }
.contact-panel p { color: rgba(255,255,255,.78); margin-top: .6rem; }
.email-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.channel { padding: 1.2rem 0; border-top: 1px solid var(--line-dk); }
.channel:last-child { border-bottom: 1px solid var(--line-dk); }
.channel .label { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-family: var(--caps); font-weight: 600; }
.channel .num { font-size: 1.15rem; margin-top: .3rem; }
.channel .acts { display: flex; gap: .6rem; margin-top: .7rem; }
.mini-btn { display:inline-flex; align-items:center; gap:.45rem; padding:.5rem 1rem; border-radius: 2px;
  font-size: .85rem; font-weight: 600; border: 1px solid rgba(255,255,255,.3); color: #fff; }
.mini-btn:hover { background: rgba(255,255,255,.1); }
.mini-btn.wa { background: #1f7a4d; border-color: #1f7a4d; }
.mini-btn.wa:hover { background: #166038; }
.contact-cards { display: grid; gap: 1.2rem; }
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 1.6rem 1.8rem; display: flex; gap: 1.1rem; }
.info-card .ic { color: var(--accent-deep); font-size: 1.3rem; padding-top: .2rem; }
.info-card h4 { font-family: var(--serif); font-size: 1.3rem; color: var(--navy); font-weight: 600; }
.info-card p { font-size: .92rem; color: var(--ink-soft); margin-top: .3rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.7); padding-block: clamp(3rem,5vw,4.5rem) 2rem; }
.footer-top { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-dk); }
@media (min-width:760px){ .footer-top { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand .wordmark { font-family: var(--caps); font-weight: 700; font-size: 1.5rem; letter-spacing: .14em; color: #fff; }
.footer-brand p { margin-top: 1rem; max-width: 38ch; font-size: .95rem; }
.footer-col h5 { font-family: var(--caps); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer-col a { display: block; padding: .35rem 0; font-size: .95rem; color: rgba(255,255,255,.7); }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; padding-top: 2rem; font-size: .85rem; color: rgba(255,255,255,.5); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===========================================
   INTERIOR PAGES — Page hero, Gallery, Blog
   =========================================== */
.page-hero {
  background: var(--navy-900); color: #fff; position: relative; overflow: hidden;
  padding-top: clamp(8rem, 13vh, 11rem); padding-bottom: clamp(3rem, 6vw, 5rem);
}
.page-hero::before {
  content:''; position:absolute; inset:0;
  background: radial-gradient(110% 90% at 90% 0%, rgba(15,158,161,.2), transparent 55%),
              radial-gradient(90% 80% at 0% 100%, rgba(115,44,108,.26), transparent 55%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-family: var(--serif); font-weight: 600; line-height: 1.08;
  font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.015em; margin-top: .8rem; }
.page-hero h1 em { font-style: italic; color: var(--gold); font-weight: 500; }
.page-hero p { color: rgba(255,255,255,.78); max-width: 56ch; margin-top: 1.1rem; font-size: 1.1rem; }
.crumbs { font-size: .85rem; color: rgba(255,255,255,.55); letter-spacing: .04em; }
.crumbs a:hover { color: #fff; }

/* Filter tabs */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 3rem; }
.filter-btn {
  font-family: var(--sans); font-size: .9rem; font-weight: 600; letter-spacing: .02em;
  padding: .65rem 1.3rem; border-radius: 2px; cursor: pointer;
  background: transparent; color: var(--ink-soft); border: 1px solid var(--line); transition: all .25s;
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Gallery grid */
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 1.4rem; margin-top: 3rem; }
@media (min-width: 600px){ .gallery-grid { grid-template-columns: repeat(2,1fr);} }
@media (min-width: 960px){ .gallery-grid { grid-template-columns: repeat(3,1fr);} }
.gallery-card {
  position: relative; overflow: hidden; border-radius: 4px; border: 1px solid var(--line);
  background: var(--ivory-2); aspect-ratio: 4/3;
}
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-card:hover img { transform: scale(1.06); }
.gallery-card .ov {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.4rem; color: #fff;
  background: linear-gradient(to top, rgba(13,28,46,.85) 0%, rgba(13,28,46,.1) 55%, transparent 100%);
  opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s;
}
.gallery-card:hover .ov { opacity: 1; transform: none; }
.gallery-card .ov .k { font-family: var(--caps); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.gallery-card .ov h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; margin-top: .2rem; }
.gallery-card .ov p { font-size: .9rem; color: rgba(255,255,255,.82); margin-top: .35rem; }
.gallery-card.hide { display: none; }

/* Video cards (16:9, click to play) */
.gallery-card.is-video { aspect-ratio: 4/3; cursor: pointer; background: var(--navy-900); }
.gallery-card.is-video .poster { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-card.is-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-card.is-video .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  pointer-events: none; transition: opacity .3s;
}
.gallery-card.is-video.playing .play { opacity: 0; }
.gallery-card.is-video .play i {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(13,28,46,.6);
  backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.4);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.3rem;
}
.gallery-card.is-video .ov { background: linear-gradient(to top, rgba(13,28,46,.9) 0%, rgba(13,28,46,.15) 50%, transparent 100%); opacity: 1; transform: none; }
.gallery-card.is-video.playing .ov { opacity: 0; }
.gallery-card.is-video.playing .poster { display: none; }

/* ===========================================
   i18n — language switcher + Arabic / RTL
   =========================================== */
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.lang-switch button {
  font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  padding: .42rem .6rem; background: transparent; color: var(--muted); border: 0; cursor: pointer;
  border-inline-start: 1px solid var(--line); transition: background .2s, color .2s;
}
.lang-switch button:first-child { border-inline-start: 0; }
.lang-switch button:hover { color: var(--navy); }
.lang-switch button.on { background: var(--navy); color: #fff; }
.mobile-lang { margin-top: 1.5rem; }
.mobile-lang .lang-switch { border-color: rgba(255,255,255,.3); }
.mobile-lang .lang-switch button { color: rgba(255,255,255,.7); border-inline-start-color: rgba(255,255,255,.25); font-size: .85rem; padding: .6rem 1rem; }
.mobile-lang .lang-switch button.on { background: var(--gold); color: var(--navy-900); }

/* Keep nav labels on a single line so multi-word translations
   (e.g. RU "О нас") never break across two lines */
.nav-links a { white-space: nowrap; }
/* RU labels run long on desktop — drop the Specs item from the top nav
   (still reachable on the page) so the bar stays clean and uncrowded */
html[lang="ru"] .nav-links li:has(> a[data-i18n="nav.specs"]) { display: none; }
/* Keep the contact widget from overlapping an open menu */
body.menu-open .contact-fab { display: none; }

/* Arabic typography + RTL */
[dir="rtl"] {
  --serif: 'Amiri', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Cairo', system-ui, -apple-system, sans-serif;
  --caps: 'Cairo', system-ui, sans-serif;
}
/* Brand wordmark stays Latin */
.brand .wordmark, .footer-brand .wordmark { font-family: 'Cinzel', Georgia, serif; }
[dir="rtl"] .brand .wordmark span { font-family: 'Cairo', sans-serif; }
/* Arabic is cursive — kill letter-spacing / uppercase that breaks glyph joining */
[dir="rtl"] :where(.eyebrow,.section-head,.display,.hero h1,.page-hero h1,.stat span,.channel .label,
  .footer-col h5,.article-meta,.filter-btn,.crumbs,.tag,.btn,.nav-links a,.lang-switch button,
  .gallery-card .ov .k,.product-body h3,.svc h3,.info-card h4,.fab-item) {
  letter-spacing: normal; text-transform: none;
}
[dir="rtl"] .eyebrow, [dir="rtl"] .wordmark span { font-weight: 700; }
[dir="rtl"] body { line-height: 1.8; }
/* Flip the floating widget to the left in RTL */
[dir="rtl"] .contact-fab { right: auto; left: clamp(16px,3vw,28px); align-items: flex-start; }
[dir="rtl"] .fab-actions { align-items: flex-start; }

/* Blog featured + list */
.featured {
  display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 3rem;
  border: 1px solid var(--line); border-radius: 5px; overflow: hidden; background: var(--paper);
}
@media (min-width: 820px){ .featured { grid-template-columns: 1.1fr .9fr; } }
.featured .ph { overflow: hidden; min-height: 280px; }
.featured .ph img { width: 100%; height: 100%; object-fit: cover; }
.featured .body { padding: clamp(2rem, 4vw, 3.2rem); display: flex; flex-direction: column; justify-content: center; }
.featured .body h2 { font-family: var(--serif); font-size: clamp(1.8rem,3vw,2.6rem); font-weight: 600; color: var(--navy); line-height: 1.12; margin: 1rem 0; }
.featured .body p { color: var(--ink-soft); }

/* Article detail page */
.article-detail { max-width: 760px; margin: 0 auto; }
.article-detail .lead-img {
  width: 100%; border-radius: 5px; border: 1px solid var(--line);
  margin-bottom: clamp(2rem, 4vw, 3rem); display: block;
}
.article-detail .lead {
  font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.55rem);
  line-height: 1.5; color: var(--navy); margin-bottom: 1.8rem;
}
.article-detail p { color: var(--ink-soft); font-size: 1.1rem; line-height: 1.78; margin-bottom: 1.4rem; }
.article-detail p strong { color: var(--navy); font-weight: 600; }
.article-detail h2 {
  font-family: var(--serif); color: var(--navy); font-weight: 600;
  font-size: clamp(1.55rem, 2.6vw, 2.05rem); line-height: 1.18;
  margin: 2.6rem 0 1rem;
}
.article-detail ul, .article-detail ol { margin: 0 0 1.6rem; padding-left: 1.4rem; color: var(--ink-soft); }
.article-detail li { font-size: 1.06rem; line-height: 1.7; margin-bottom: .75rem; }
.article-detail li strong { color: var(--navy); font-weight: 600; }
.article-detail li::marker { color: var(--accent-deep); }
.article-foot {
  max-width: 760px; margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  padding-top: 2rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: space-between; align-items: center;
}
.back-link { display: inline-flex; gap: .5rem; align-items: center; font-weight: 600; color: var(--accent-deep); font-size: .95rem; }
.article-hero-meta {
  display: flex; flex-wrap: wrap; gap: .6rem 1.1rem; align-items: center; margin-top: 1.3rem;
  font-family: var(--caps); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.62);
}
.article-hero-meta .cat { color: var(--gold); font-weight: 700; }

/* Floating contact widget — on-brand, expand-on-tap */
.contact-fab { position: fixed; right: clamp(16px,3vw,28px); bottom: clamp(16px,3vw,28px); z-index: 9000;
  display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.fab-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  opacity: 0; transform: translateY(12px) scale(.96); pointer-events: none;
  transition: opacity .28s ease, transform .28s cubic-bezier(.6,0,.2,1); }
.contact-fab.open .fab-actions { opacity: 1; transform: none; pointer-events: auto; }
.fab-item { display: inline-flex; align-items: center; gap: .42rem; padding: .36rem .58rem;
  border-radius: 50px; background: var(--paper); color: var(--navy); font-family: var(--sans);
  font-weight: 600; font-size: .68rem; text-decoration: none; border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(13,28,46,.16); transition: transform .2s; white-space: nowrap; }
.fab-item:hover { transform: translateY(-2px); }
.fab-item i { width: 19px; height: 19px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; color: #fff; font-size: .6rem; }
.fab-item .i-wa { background: #1f8a4d; }
.fab-item .i-mail { background: var(--accent); }
.fab-item .i-call { background: var(--navy); }
.fab-item .i-ig { background: #E1306C; }
.fab-toggle { width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--navy-900); color: #fff; font-size: 1.1rem; display: flex; align-items: center;
  justify-content: center; box-shadow: 0 10px 28px rgba(13,28,46,.45); transition: transform .3s, background .3s; }
.fab-toggle:hover { background: var(--navy); }
.fab-toggle .x { display: none; }
.contact-fab.open .fab-toggle { transform: rotate(90deg); }
.contact-fab.open .fab-toggle .chat { display: none; }
.contact-fab.open .fab-toggle .x { display: block; }


/* ===========================================
   FAQ accordion
   =========================================== */
.faq-list { max-width: 860px; margin: 3rem auto 0; }
.faq-item {
  border: 1px solid var(--line); border-radius: 4px; background: var(--paper);
  margin-bottom: .8rem; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem;
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { flex-shrink: 0; color: var(--accent); transition: transform .3s; }
.faq-item[open] summary i { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 1.4rem 1.3rem; color: var(--ink-soft); line-height: 1.7; }

/* ===========================================
   Footer cat mascot
   =========================================== */
.site-footer { position: relative; }
.footer-cat {
  position: absolute; top: -59px; inset-inline-end: clamp(1.5rem, 7vw, 6rem);
  width: 84px; height: 60px; padding: 0; border: 0; background: none;
  cursor: pointer; line-height: 0; z-index: 2;
  transition: transform .25s ease;
}
.footer-cat:hover { transform: translateY(-3px); }
.footer-cat svg { display: block; width: 100%; height: 100%; }

/* ===========================================
   404 page
   =========================================== */
.nf-section { min-height: 60vh; display: flex; align-items: center; }
.nf-inner { text-align: center; max-width: 620px; margin-inline: auto; }
.nf-cat { width: min(280px, 70vw); margin-inline: auto; cursor: pointer; line-height: 0; }
.nf-code {
  font-family: var(--caps); font-weight: 700; font-size: 1rem; letter-spacing: .3em;
  color: var(--accent); margin-top: 1rem;
}
.nf-inner h1 { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 600; color: var(--navy); margin-top: .6rem; }
.nf-inner p { color: var(--ink-soft); margin-top: 1rem; line-height: 1.7; }
.nf-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.2rem; }
