/* ===== Aevum Longevity — общие стили сайта ===== */

:root {
  --cream: #F7ECE5;
  --cream-deep: #EFDFD3;
  --espresso: #3A2E26;
  --espresso-soft: #6B5C4F;
  --rose-gold: #B08968;
  --rose-gold-light: #D9C2A3;
  --line: rgba(176, 137, 104, 0.35);
  --max-width: 1080px;
  --max-width-article: 720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--espresso);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  color: var(--espresso);
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* Header */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(243, 232, 220, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img { height: 48px; width: auto; }

.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  letter-spacing: 0.18em;
  color: var(--espresso);
}

nav {
  display: flex;
  gap: 40px;
}

nav a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--espresso-soft);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

nav a.current { color: var(--rose-gold); border-color: var(--rose-gold); }
nav a:hover { color: var(--rose-gold); border-color: var(--rose-gold); }

/* Logo shimmer — sanduhr + wordmark */
.brand img, .hero-logo, footer img {
  position: relative;
}

@keyframes shimmer-sweep {
  0%   { background-position: -150% 0; }
  60%  { background-position: 250% 0; }
  100% { background-position: 250% 0; }
}

.logo-shimmer {
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.logo-shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(255,255,255,0) 35%,
    rgba(255,255,255,0.55) 50%,
    rgba(255,255,255,0) 65%);
  background-size: 200% 100%;
  background-position: -150% 0;
  animation: shimmer-sweep 5s ease-in-out infinite;
  animation-delay: 1.6s;
  mix-blend-mode: screen;
  pointer-events: none;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 32px 80px;
  position: relative;
}

.hero-logo {
  width: min(320px, 65vw);
  height: auto;
  opacity: 0;
  animation: reveal 1.6s ease forwards;
  display: block;
  filter: drop-shadow(0 14px 30px rgba(176, 137, 104, 0.18));
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-tagline {
  margin-top: 28px;
  font-size: 14px;
  letter-spacing: 0.32em;
  color: var(--rose-gold);
  text-transform: uppercase;
}

.hero-lead {
  margin-top: 36px;
  max-width: 560px;
  font-size: 19px;
  color: var(--espresso-soft);
  font-weight: 300;
}

.hero-cta {
  margin-top: 48px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--espresso);
  padding: 16px 38px;
  border: 1px solid var(--rose-gold);
  transition: background 0.35s ease, color 0.35s ease;
}

.hero-cta:hover { background: var(--rose-gold); color: var(--cream); }

.scroll-hint {
  position: absolute;
  bottom: 40px;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--espresso-soft);
  opacity: 0.6;
}

.scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 34px;
  background: var(--rose-gold);
  margin: 10px auto 0;
}

/* Page hero (for category pages) */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
}

.page-hero .kicker {
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--rose-gold);
  display: block;
  margin-bottom: 18px;
}

.page-hero h1 {
  font-size: 46px;
  letter-spacing: 0.02em;
  max-width: 720px;
  margin: 0 auto;
}

.page-hero p {
  margin-top: 22px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: var(--espresso-soft);
  font-size: 17px;
}

/* Section shared */
section { padding: 120px 0; }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 72px;
}

.section-head .kicker {
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--rose-gold);
  display: block;
  margin-bottom: 18px;
}

.section-head h2 { font-size: 42px; letter-spacing: 0.03em; }

.section-head p {
  margin-top: 20px;
  color: var(--espresso-soft);
  font-size: 16px;
}

.divider {
  width: 48px;
  height: 1px;
  background: var(--rose-gold);
  margin: 24px auto 0;
}

.tint { background: var(--cream-deep); }

/* Three-column grid (homepage overview cards) */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.overview-card {
  display: block;
  padding: 44px 32px;
  border: 1px solid var(--line);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.overview-card:hover { border-color: var(--rose-gold); transform: translateY(-4px); }

.overview-card .item-mark { margin: 0 0 24px; }

.overview-visual {
  aspect-ratio: 4/5;
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
}

.overview-visual::before {
  content: ''; position: absolute; inset: 14px; border: 1px solid rgba(58, 46, 38, 0.22); z-index: 2; pointer-events: none;
}

.overview-visual::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(58,46,38,0.35) 0%, rgba(58,46,38,0) 45%);
  z-index: 1; pointer-events: none;
}

.overview-visual img {
  width: 100%; height: 100%; object-fit: cover; display: block; position: relative; z-index: 0;
}

.overview-card h3 { font-size: 26px; margin-bottom: 12px; }

.overview-card p {
  color: var(--espresso-soft);
  font-size: 15.5px;
}

.overview-card .cta-label {
  display: inline-block;
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-gold);
}

.item { text-align: center; }

.item-mark {
  width: 40px;
  height: 40px;
  margin: 0 auto 24px;
  border: 1px solid var(--rose-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-mark span { width: 6px; height: 6px; background: var(--rose-gold); border-radius: 50%; }

.item h3 { font-size: 24px; margin-bottom: 14px; letter-spacing: 0.02em; }

.item p { color: var(--espresso-soft); font-size: 15.5px; max-width: 280px; margin: 0 auto; }

/* Two column feature */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.feature-visual img {
  width: 100%; height: 100%; object-fit: cover; display: block; position: relative; z-index: 1;
}

.feature-text .kicker {
  font-size: 13px; letter-spacing: 0.28em; color: var(--rose-gold); display: block; margin-bottom: 18px;
}

.feature-text h2 { font-size: 38px; margin-bottom: 24px; }
.feature-text p { color: var(--espresso-soft); font-size: 16px; margin-bottom: 16px; }

.feature-visual {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, #E9D9C2 0%, #DCC4A2 55%, #C9A876 100%);
  position: relative;
  overflow: hidden;
}

.feature-visual::before {
  content: ''; position: absolute; inset: 24px; border: 1px solid rgba(58, 46, 38, 0.25); z-index: 2; pointer-events: none;
}

.feature-visual::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(58,46,38,0.35) 0%, rgba(58,46,38,0) 40%);
  z-index: 1; pointer-events: none;
}

.feature-visual .caption {
  position: absolute; bottom: 32px; left: 32px; right: 32px;
  font-family: 'Cormorant Garamond', serif; font-size: 20px; color: #fff; letter-spacing: 0.04em; z-index: 2;
}

/* Subcategory cards (top of a category page) */
.subcat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 96px;
}

.subcat-card { display: block; }

.subcat-visual {
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
}

.subcat-visual img {
  width: 100%; height: 100%; object-fit: cover; display: block; position: relative; z-index: 0;
}

.subcat-visual::before {
  content: ''; position: absolute; inset: 14px; border: 1px solid rgba(58, 46, 38, 0.22); z-index: 2; pointer-events: none;
}

.subcat-visual .label {
  position: absolute; bottom: 20px; left: 20px; right: 20px;
  font-family: 'Cormorant Garamond', serif; font-size: 19px; color: #fff; letter-spacing: 0.02em; z-index: 2;
}

.subcat-visual::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(58,46,38,0.45) 0%, rgba(58,46,38,0) 45%);
  z-index: 1; pointer-events: none;
}

.tone-1 { background: linear-gradient(155deg, #E9D9C2 0%, #D6B994 55%, #B08968 100%); }
.tone-2 { background: linear-gradient(155deg, #EFE2D6 0%, #DCC4A2 55%, #C9A876 100%); }
.tone-3 { background: linear-gradient(155deg, #E4D2C4 0%, #CBA986 55%, #A87F5C 100%); }
.tone-4 { background: linear-gradient(155deg, #D9C2A3 0%, #C2A17A 55%, #8F6A48 100%); }

.subcat-card p.subcat-desc {
  color: var(--espresso-soft);
  font-size: 14.5px;
}

/* Article content blocks */
.article-group { max-width: var(--max-width-article); margin: 0 auto 120px; }
.article-group:last-child { margin-bottom: 40px; }

.article-group .subcat-h2 {
  font-size: 34px;
  margin-bottom: 12px;
  scroll-margin-top: 110px;
}

.article-group > .subcat-intro {
  color: var(--espresso-soft);
  font-size: 16.5px;
  margin-bottom: 56px;
}

.article {
  padding-top: 44px;
  border-top: 1px solid var(--line);
  margin-bottom: 44px;
}

.article:last-child { margin-bottom: 0; }

.article h3 {
  font-size: 27px;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

.article p {
  color: var(--espresso-soft);
  font-size: 16px;
  margin-bottom: 16px;
}

.article p:last-child { margin-bottom: 0; }

.article strong { color: var(--espresso); font-weight: 500; }

.article ul {
  margin: 0 0 16px 20px;
  color: var(--espresso-soft);
  font-size: 16px;
}

.article li { margin-bottom: 8px; }

.article .note {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-style: italic;
  color: var(--espresso);
  margin-top: 20px;
}

.article .disclaimer {
  font-size: 13px;
  color: var(--espresso-soft);
  opacity: 0.75;
  margin-top: 16px;
  font-style: italic;
}

/* Guide blocks (kept for homepage-style compact guides if reused) */
.guide-block { max-width: 680px; margin: 0 auto 56px; }
.guide-block:last-child { margin-bottom: 0; }
.guide-block h3 { font-size: 26px; margin-bottom: 28px; letter-spacing: 0.02em; }
.guide-item { padding: 18px 0; border-top: 1px solid var(--line); }
.guide-item:last-of-type { border-bottom: 1px solid var(--line); }
.guide-item p { font-size: 15.5px; color: var(--espresso-soft); }
.guide-item strong { color: var(--espresso); font-weight: 500; }
.guide-note {
  margin-top: 20px; font-family: 'Cormorant Garamond', serif; font-size: 19px; font-style: italic;
  color: var(--espresso); text-align: center;
}

.journal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.journal-card { border-top: 1px solid var(--line); padding-top: 28px; }
.journal-card .tag { font-size: 12px; letter-spacing: 0.16em; color: var(--rose-gold); text-transform: uppercase; }
.journal-card h3 { font-size: 24px; margin: 14px 0 12px; }
.journal-card p { color: var(--espresso-soft); font-size: 15px; }

/* Experts - coming soon */
.experts { text-align: center; padding: 100px 0; }
.experts-frame { max-width: 640px; margin: 0 auto; padding: 70px 48px; border: 1px solid var(--line); position: relative; }
.experts-frame .kicker { font-size: 13px; letter-spacing: 0.28em; color: var(--rose-gold); }
.experts-frame h2 { font-size: 36px; margin: 20px 0 18px; }
.experts-frame p { color: var(--espresso-soft); font-size: 16px; max-width: 420px; margin: 0 auto; }
.soon-badge {
  display: inline-block; margin-top: 28px; font-size: 12px; letter-spacing: 0.2em; color: var(--rose-gold);
  border: 1px solid var(--rose-gold); padding: 8px 20px;
}

/* Contact */
.contact { text-align: center; }
.contact h2 { font-size: 42px; }
.contact p { color: var(--espresso-soft); max-width: 480px; margin: 20px auto 40px; font-size: 16px; }
.contact-links { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.contact-links a { font-size: 14px; letter-spacing: 0.08em; padding-bottom: 6px; border-bottom: 1px solid var(--rose-gold); }

/* Footer */
footer { padding: 48px 0; border-top: 1px solid var(--line); text-align: center; }
footer img { height: 32px; margin-bottom: 16px; }
footer .foot-links { display: flex; justify-content: center; gap: 28px; margin-bottom: 16px; flex-wrap: wrap; }
footer .foot-links a {
  font-family: 'Cormorant Garamond', serif; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--espresso-soft);
}
footer .copyright { font-size: 12px; color: var(--espresso-soft); opacity: 0.7; letter-spacing: 0.04em; }

/* Responsive */
@media (max-width: 860px) {
  nav { display: none; }
  .grid-3, .journal, .subcat-grid { grid-template-columns: 1fr; gap: 40px; }
  .subcat-grid { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; gap: 40px; }
  .feature-visual { order: -1; }
  .section-head h2, .feature-text h2 { font-size: 32px; }
  .page-hero h1 { font-size: 34px; }
  section { padding: 84px 0; }
}

@media (max-width: 520px) {
  .subcat-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo { animation: none; opacity: 1; }
  .logo-shimmer::after { animation: none; }
  html { scroll-behavior: auto; }
}

a:focus-visible, button:focus-visible { outline: 1px solid var(--rose-gold); outline-offset: 3px; }

.lang-toggle {
  margin-left: 8px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose-gold);
  background: transparent;
  border: 1px solid var(--rose-gold);
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.lang-toggle:hover { background: var(--rose-gold); color: var(--cream); }

.nav-row { display: flex; align-items: center; gap: 8px; }

/* Блочное переключение языка для длинных статей */
[data-lang-content] { display: none; }
html.lang-ru [data-lang-content="ru"],
html.lang-en [data-lang-content="en"],
html.lang-de [data-lang-content="de"] { display: block; }
