/* ============================================
   cabernetvino.ru — Core Styles
   ============================================ */

:root {
  --wine:       #722F37;
  --wine-deep:  #5B1A29;
  --wine-dark:  #3A0E1A;
  --gold:       #C9A96E;
  --gold-light: #E0CFA3;
  --cream:      #F5F0EB;
  --dark:       #1A0A0E;
  --text:       #2C1A1F;
  --text-light: #6B5A5F;
  --border:     #E0D5CC;
  --success:    #4A7C59;
  --warning:    #B8860B;
  --danger:     #A0283D;

  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body:    'Source Sans 3', 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'Consolas', monospace;

  --max-w:  1200px;
  --max-w-narrow: 800px;
  --radius: 8px;
  --shadow: 0 2px 16px rgba(26,10,14,.08);
  --shadow-lg: 0 8px 32px rgba(26,10,14,.12);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 18px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--wine); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--wine-deep); line-height: 1.25; }
h1 { font-size: 2.8rem; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: 2rem; font-weight: 700; margin-bottom: .4em; }
h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: .4em; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { margin-bottom: .6em; }
strong { color: var(--wine-deep); }

.subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  line-height: 1.6;
  max-width: 640px;
}

/* Layout */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: var(--max-w-narrow); }
.section { padding: 3.5rem 0; }
.section--alt { background: #fff; }
.section--dark { background: var(--dark); color: var(--cream); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--gold); }
.section--dark a { color: var(--gold-light); }
.section--wine { background: linear-gradient(135deg, var(--wine-deep) 0%, var(--wine-dark) 100%); color: var(--cream); }
.section--wine h2, .section--wine h3 { color: var(--gold); }

/* Header / Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26,10,14,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,169,110,.15);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--gold);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.logo img { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 1.8rem; list-style: none; }
.nav-links a {
  color: var(--cream);
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: .85;
  transition: opacity .2s, color .2s;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--gold); }

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  margin: 5px 0;
  transition: transform .3s, opacity .3s;
}

/* Hero (with slider background) */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--cream);
  background: var(--wine-dark);
}
.hero__overlay {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  min-height: 85vh;
  background: linear-gradient(
    to right,
    rgba(26, 10, 14, .82) 0%,
    rgba(26, 10, 14, .55) 55%,
    rgba(26, 10, 14, .25) 100%
  );
  padding: 2rem 0;
}
.hero h1 { font-size: 3.2rem; margin-bottom: .6rem; color: #fff; }
.hero .subtitle { color: rgba(245,240,235,.75); font-size: 1.3rem; margin-bottom: 2rem; max-width: 580px; }
.hero .badge {
  display: inline-block;
  background: rgba(201,169,110,.15);
  border: 1px solid rgba(201,169,110,.3);
  color: var(--gold);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .35em 1em;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75em 1.8em;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s;
}
.btn--primary {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}
.btn--primary:hover { background: var(--gold-light); color: var(--dark); border-color: var(--gold-light); }
.btn--outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn--outline:hover { background: var(--gold); color: var(--dark); }
.btn--sm { padding: .5em 1.2em; font-size: .8rem; }
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-body { padding: 1.5rem; }
.card-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold);
  background: rgba(201,169,110,.12);
  padding: .2em .7em;
  border-radius: 4px;
  margin-bottom: .6rem;
}
.card h3 { font-size: 1.2rem; }
.card p { color: var(--text-light); font-size: .9rem; }

/* Infographic blocks */
.infographic {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin: 2rem 0;
}
.infographic__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--wine-deep);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Bar chart */
.bar-chart { display: flex; flex-direction: column; gap: .8rem; }
.bar-chart__row { display: flex; align-items: center; gap: 1rem; }
.bar-chart__label {
  width: 160px;
  flex-shrink: 0;
  font-size: .85rem;
  font-weight: 600;
  text-align: right;
  color: var(--text);
}
.bar-chart__track {
  flex: 1;
  height: 28px;
  background: var(--cream);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.bar-chart__fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--wine) 0%, var(--wine-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: .6rem;
  font-size: .75rem;
  font-weight: 700;
  color: #fff;
  width: 0;
  transition: width 1.2s cubic-bezier(.25,.8,.25,1);
}
.bar-chart__fill--gold { background: linear-gradient(90deg, var(--gold) 0%, #A08040 100%); color: var(--dark); }
.bar-chart__fill--muted { background: linear-gradient(90deg, #8C7B6E 0%, #6B5A50 100%); }

/* Comparison table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.compare-table th {
  background: var(--wine-deep);
  color: var(--gold);
  padding: .8rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.compare-table td {
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--border);
}
.compare-table tr:nth-child(even) td { background: rgba(245,240,235,.5); }
.compare-table .rating { color: var(--gold); font-weight: 700; }
.compare-table .price { font-weight: 700; color: var(--wine); white-space: nowrap; }

/* Score badge */
.score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}
.score--high { background: var(--success); color: #fff; }
.score--mid  { background: var(--warning); color: #fff; }
.score--low  { background: var(--danger); color: #fff; }

/* Stat blocks */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.stat {
  padding: 1.5rem;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius);
  border: 1px solid rgba(201,169,110,.15);
}
.stat__number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}
.stat__label { font-size: .85rem; opacity: .75; margin-top: .3rem; }

/* Donut chart (CSS-only) */
.donut-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.donut {
  text-align: center;
}
.donut__circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .6rem;
  position: relative;
}
.donut__circle::before {
  content: '';
  position: absolute;
  inset: 6px;
  background: #fff;
  border-radius: 50%;
}
.donut__value {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--wine-deep);
}
.donut__label { font-size: .85rem; font-weight: 600; color: var(--text); }
.donut__sub { font-size: .75rem; color: var(--text-light); }

/* Tags / pills */
.pill {
  display: inline-block;
  padding: .25em .75em;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
}
.pill--green { background: #E8F5E9; color: #2E7D32; }
.pill--yellow { background: #FFF8E1; color: #F57F17; }
.pill--red { background: #FCE4EC; color: #C62828; }

/* Checklist */
.checklist { list-style: none; }
.checklist li {
  padding: .6rem 0 .6rem 2rem;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
}
.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
  font-size: 1.1rem;
}
.checklist li.anti::before { content: '✗'; color: var(--danger); }

/* Blockquote / callout */
.callout {
  border-left: 4px solid var(--gold);
  background: #fff;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}
.callout--sommelier { border-left-color: var(--wine); }
.callout__author {
  font-size: .8rem;
  color: var(--text-light);
  margin-top: .5rem;
  font-style: italic;
}

/* Article layout */
.article-header {
  padding: 4rem 0 2rem;
  background: linear-gradient(135deg, var(--wine-dark), var(--dark));
  color: var(--cream);
}
.article-header h1 { color: #fff; font-size: 2.4rem; }
.article-header .subtitle { color: rgba(245,240,235,.7); }
.article-meta {
  display: flex;
  gap: 1.5rem;
  font-size: .8rem;
  opacity: .65;
  margin-top: 1rem;
}
.article-content { padding: 3rem 0 5rem; }
.article-content h2 { margin-top: 2.5rem; }
.article-content h3 { margin-top: 1.8rem; color: var(--wine); }

/* Flavor wheel (visual) */
.flavor-wheel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  text-align: center;
}
.flavor-item {
  padding: 1rem;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.flavor-item__icon { font-size: 1.8rem; margin-bottom: .3rem; }
.flavor-item__name { font-weight: 700; font-size: .85rem; }
.flavor-item__note { font-size: .75rem; color: var(--text-light); }

/* Timeline */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline__item {
  position: relative;
  padding-bottom: 2rem;
}
.timeline__item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: .35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--wine);
  border: 2px solid var(--cream);
  transform: translateX(-5px);
}
.timeline__year {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--gold);
  font-size: .9rem;
}

/* Footer */
.footer {
  background: var(--dark);
  color: rgba(245,240,235,.5);
  padding: 3rem 0 1.5rem;
  font-size: .85rem;
}
.footer a { color: var(--gold-light); }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer h4 { color: var(--gold); margin-bottom: .8rem; font-size: .9rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: .4rem; }
.footer__bottom {
  border-top: 1px solid rgba(201,169,110,.1);
  padding-top: 1.5rem;
  text-align: center;
  opacity: .5;
  font-size: .75rem;
}

/* Progress bars for tasting notes */
.taste-meter { margin-bottom: .8rem; }
.taste-meter__header {
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: .3rem;
}
.taste-meter__bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.taste-meter__fill {
  height: 100%;
  border-radius: 3px;
  background: var(--wine);
  width: 0;
  transition: width 1s ease;
}

/* Animate on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s, transform .6s;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Banner Carousel (as hero background) */
.banner-carousel__track {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease, transform .8s ease;
  transform: scale(1.04);
}
.banner-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}
.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(26, 10, 14, .5);
  border: 1px solid rgba(201, 169, 110, .25);
  color: var(--gold);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s, border-color .25s, transform .25s;
  backdrop-filter: blur(6px);
}
.banner-carousel__arrow:hover {
  background: rgba(201, 169, 110, .25);
  border-color: var(--gold);
  transform: translateY(-50%) scale(1.08);
}
.banner-carousel__arrow--prev { left: 1.2rem; }
.banner-carousel__arrow--next { right: 1.2rem; }
.banner-carousel__dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: .6rem;
}
.banner-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(201, 169, 110, .5);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .3s, border-color .3s, transform .3s;
}
.banner-carousel__dot:hover {
  border-color: var(--gold);
  transform: scale(1.2);
}
.banner-carousel__dot.active {
  background: var(--gold);
  border-color: var(--gold);
}

@media (max-width: 768px) {
  .banner-carousel__arrow { width: 40px; height: 40px; }
  .banner-carousel__arrow--prev { left: .8rem; }
  .banner-carousel__arrow--next { right: .8rem; }
}
@media (max-width: 480px) {
  .banner-carousel__arrow { width: 36px; height: 36px; }
}

/* About wine grid */
.about-wine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.about-wine-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.8rem 1.5rem;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.about-wine-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.about-wine-card__icon {
  font-size: 2.2rem;
  margin-bottom: .6rem;
}
.about-wine-card h3 {
  font-size: 1.1rem;
  margin-bottom: .5rem;
}
.about-wine-card p {
  font-size: .9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* Geography grid */
.geo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.geo-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(201,169,110,.2);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform .25s, background .25s;
}
.geo-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.12);
}
.geo-card__flag {
  font-size: 2rem;
  margin-bottom: .4rem;
}
.geo-card h3 {
  color: var(--gold);
  font-size: 1.15rem;
  margin-bottom: .2rem;
}
.geo-card__region {
  font-size: .8rem;
  color: rgba(245,240,235,.5);
  margin-bottom: .6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.geo-card p {
  font-size: .88rem;
  color: rgba(245,240,235,.75);
  margin-bottom: .6rem;
}
.geo-card__stat {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
}

/* FAQ accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--wine-deep);
  text-align: left;
  line-height: 1.35;
  transition: color .2s;
}
.faq-item__question:hover {
  color: var(--wine);
}
.faq-item__icon {
  flex-shrink: 0;
  color: var(--gold);
  transition: transform .3s;
}
.faq-item.active .faq-item__icon {
  transform: rotate(180deg);
}
.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 1.5rem;
}
.faq-item.active .faq-item__answer {
  max-height: 300px;
  padding: 0 1.5rem 1.2rem;
}
.faq-item__answer p {
  font-size: .92rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 0;
}

/* Mobile */
@media (max-width: 768px) {
  html { font-size: 16px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero__overlay { min-height: 70vh; }
  .hero h1 { font-size: 2.2rem; }
  .section { padding: 2.5rem 0; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(26,10,14,.98);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: .8rem;
  }
  .nav-links.open { display: flex; }
  .burger { display: block; }

  .footer__grid { grid-template-columns: 1fr; }
  .bar-chart__label { width: 100px; font-size: .75rem; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .donut-row { gap: 1.5rem; }
  .geo-grid { grid-template-columns: 1fr 1fr; }
  .about-wine-grid { grid-template-columns: 1fr 1fr; }

  .compare-table { font-size: .78rem; }
  .compare-table th, .compare-table td { padding: .5rem .6rem; }
}

@media (max-width: 480px) {
  .hero__overlay { min-height: 60vh; }
  .hero h1 { font-size: 1.7rem; }
  .card-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; }
  .geo-grid { grid-template-columns: 1fr; }
  .about-wine-grid { grid-template-columns: 1fr; }
  .faq-item__question { font-size: .95rem; padding: 1rem 1.2rem; }
}
