/* Tahitian Noni — tn- namespace. Палитра с баннера бренда: петроль + лагуна + аква. */

@font-face {
  font-family: 'Assistant';
  src: url(/assets/fonts/assistant-var.woff2) format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url(/assets/fonts/playfairdisplay-var.woff2) format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --tn-ink: #082630;
  --tn-deep: #0d3a49;
  --tn-petrol: #0a2e3a;
  --tn-lagoon: #1587ac;
  --tn-aqua: #49b9d8;
  --tn-wash: #e8f5fa;
  --tn-paper: #f9fcfd;
  --tn-btn: #0d6e8f;
  --tn-btn-hover: #0a5c78;
  --tn-line: #cfe4ed;
  --tn-muted: #47616c;
  --tn-gold: #b98a2e;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Assistant', 'Segoe UI', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--tn-ink);
  background: var(--tn-paper);
}
img { max-width: 100%; height: auto; }
a { color: var(--tn-lagoon); }
a:hover { color: var(--tn-btn-hover); }

.tn-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, .tn-serif { font-family: 'Playfair Display', Georgia, serif; line-height: 1.25; }
h1 { font-size: 2.1rem; margin: 0 0 .5em; }
h2 { font-size: 1.55rem; margin: 1.8em 0 .6em; }
h3 { font-size: 1.15rem; margin: 1.2em 0 .4em; }

/* --- шапка --- */
.tn-top { background: var(--tn-petrol); color: #fff; }
.tn-top-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 20px; max-width: 1120px; margin: 0 auto;
  flex-wrap: wrap;
}
.tn-brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: #fff; }
.tn-brand-script { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: 1.15rem; color: var(--tn-aqua); }
.tn-brand-word { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 1.5rem; letter-spacing: .14em; }
.tn-site-title { margin: 0; font-size: inherit; font-weight: inherit; }
.tn-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.tn-nav a { color: #d7edf5; text-decoration: none; font-weight: 600; font-size: .95rem; }
.tn-nav a:hover, .tn-nav a[aria-current] { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* --- герой --- */
.tn-hero {
  position: relative;
  background: var(--tn-petrol) url(/assets/hero.jpg) no-repeat right center;
  background-size: cover;
  color: #fff;
}
.tn-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8, 38, 48, .96) 0%, rgba(8, 38, 48, .88) 42%, rgba(8, 38, 48, .45) 70%, rgba(8, 38, 48, .15) 100%);
}
.tn-hero-in { position: relative; max-width: 1120px; margin: 0 auto; padding: 64px 20px 68px; }
.tn-hero h1 { font-size: 2.5rem; max-width: 15em; margin-bottom: .35em; }
.tn-hero p { max-width: 34em; font-size: 1.1rem; color: #dceef6; margin: 0 0 1.4em; }
.tn-hero-cta {
  display: inline-block; background: var(--tn-aqua); color: var(--tn-ink);
  font-weight: 700; text-decoration: none; padding: 12px 26px; border-radius: 6px;
}
.tn-hero-cta:hover { background: #63c6e1; color: var(--tn-ink); }

/* --- полоса фактов --- */
.tn-facts { background: var(--tn-deep); color: #fff; }
.tn-facts-in {
  max-width: 1120px; margin: 0 auto; padding: 18px 20px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.tn-fact { text-align: center; }
.tn-fact b { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 1.25rem; color: var(--tn-aqua); }
.tn-fact span { font-size: .85rem; color: #cfe6ef; }

/* --- секции --- */
.tn-section { padding: 44px 0 8px; }
.tn-section-alt { background: var(--tn-wash); padding: 44px 0 48px; margin-top: 40px; }
.tn-kicker {
  text-transform: uppercase; letter-spacing: .18em; font-size: .78rem;
  font-weight: 700; color: var(--tn-lagoon); margin: 0 0 .4em;
}

/* --- сетка карточек --- */
.tn-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px; margin: 24px 0;
}
.tn-card {
  background: #fff; border: 1px solid var(--tn-line); border-radius: 10px;
  display: flex; flex-direction: column; overflow: hidden;
}
.tn-card-ph {
  height: 250px; background: #fff; display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--tn-line); padding: 14px;
}
.tn-card-ph a { display: flex; height: 100%; align-items: center; justify-content: center; }
.tn-card-ph img { max-height: 100%; width: auto; object-fit: contain; }
.tn-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.tn-card-name { font-family: 'Playfair Display', Georgia, serif; font-size: 1.1rem; margin: 0 0 .35em; }
.tn-card-name a { color: var(--tn-ink); text-decoration: none; }
.tn-card-name a:hover { color: var(--tn-lagoon); }
.tn-card-desc { font-size: .93rem; color: var(--tn-muted); margin: 0 0 .8em; }
.tn-card-meta { margin-top: auto; }
.tn-price { font-size: 1.35rem; font-weight: 700; }
.tn-per-liter { font-size: .85rem; color: var(--tn-muted); margin-left: 8px; }
.tn-rate { font-size: .88rem; color: var(--tn-muted); margin: .3em 0 .8em; }
.tn-rate b { color: var(--tn-gold); }
.tn-card-btns { display: flex; gap: 10px; }
.tn-btn {
  display: inline-block; text-align: center; font-weight: 700; text-decoration: none;
  padding: 10px 18px; border-radius: 6px; cursor: pointer; font-size: .95rem;
}
.tn-btn-buy { background: var(--tn-btn); color: #fff; flex: 1; }
.tn-btn-buy:hover { background: var(--tn-btn-hover); color: #fff; }
.tn-btn-ghost { border: 1.5px solid var(--tn-btn); color: var(--tn-btn); }
.tn-btn-ghost:hover { background: var(--tn-wash); }

/* --- чипы наличия --- */
.tn-chip {
  display: inline-block; font-size: .78rem; font-weight: 700; border-radius: 20px;
  padding: 2px 12px; margin-bottom: .6em;
}
.tn-chip-stock { background: #e2f3e6; color: #1d6b34; }
.tn-chip-later { background: #fdf1dc; color: #8a5a10; }
.tn-later-mark { font-size: .78rem; color: #8a5a10; font-weight: 600; }

/* --- таблицы --- */
.tn-table { width: 100%; border-collapse: collapse; margin: 20px 0; background: #fff; }
.tn-table th, .tn-table td { border: 1px solid var(--tn-line); padding: 10px 14px; text-align: left; font-size: .95rem; }
.tn-table th { background: var(--tn-deep); color: #fff; font-weight: 600; }
.tn-table tr:nth-child(even) td { background: var(--tn-wash); }
.tn-table-note { font-size: .85rem; color: var(--tn-muted); margin-top: -8px; }

/* --- планировщик --- */
.tn-plan { background: #fff; border: 1px solid var(--tn-line); border-radius: 10px; padding: 26px 28px; margin: 24px 0; }
.tn-plan label { font-weight: 700; margin-right: 10px; }
.tn-plan select {
  font: inherit; padding: 7px 12px; border: 1.5px solid var(--tn-lagoon);
  border-radius: 6px; background: #fff; color: var(--tn-ink);
}
.tn-plan-note { font-size: .95rem; }

/* --- полоса рейтингов --- */
.tn-rates { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 24px 0; }
.tn-rate-tile { background: #fff; border: 1px solid var(--tn-line); border-radius: 10px; padding: 20px 22px; }
.tn-rate-tile .tn-stars { color: var(--tn-gold); font-size: 1.1rem; letter-spacing: 2px; }
.tn-rate-tile b { font-size: 1.3rem; }
.tn-rate-tile p { font-size: .88rem; color: var(--tn-muted); margin: .4em 0 0; }
.tn-pool-note { font-size: .85rem; color: var(--tn-muted); }

/* --- PDP --- */
.tn-crumbs { font-size: .85rem; color: var(--tn-muted); margin: 22px 0 6px; }
.tn-crumbs a { color: var(--tn-muted); }
.tn-product { display: grid; grid-template-columns: minmax(300px, 460px) 1fr; gap: 40px; margin: 20px 0 40px; }
.tn-product-media {
  background: #fff; border: 1px solid var(--tn-line); border-radius: 10px;
  padding: 22px; display: flex; align-items: flex-start; justify-content: center;
}
.tn-product-media img { max-height: 560px; width: auto; }
.tn-buybox {
  background: #fff; border: 1px solid var(--tn-line); border-radius: 10px;
  padding: 20px 24px; margin: 18px 0;
}
.tn-buybox .tn-price { font-size: 1.7rem; }
.tn-buybox .tn-btn-buy { display: block; margin-top: 14px; }
.tn-buy-note { font-size: .84rem; color: var(--tn-muted); margin: 10px 0 0; }

/* --- label facts --- */
.tn-label { border: 2px solid var(--tn-ink); border-radius: 8px; padding: 18px 22px; margin: 26px 0; background: #fff; }
.tn-label h2, .tn-label h3 { margin-top: 0; border-bottom: 2px solid var(--tn-ink); padding-bottom: .3em; }
.tn-label dl { margin: 0; }
.tn-label dt { font-weight: 700; margin-top: .7em; }
.tn-label dd { margin: 0; color: var(--tn-muted); font-size: .95rem; }

/* --- заметки (авторский текст) --- */
.tn-notes { margin: 30px 0; }
.tn-note { border-left: 3px solid var(--tn-aqua); padding: 4px 0 4px 22px; margin: 22px 0; }
.tn-note h2, .tn-note h3 { margin: 0 0 .35em; }
.tn-note p { margin: 0; }

/* --- дисклеймер БАД --- */
.tn-disclaimer {
  font-size: .84rem; color: var(--tn-muted); border: 1px solid var(--tn-line);
  border-radius: 8px; padding: 14px 18px; margin: 26px 0; background: var(--tn-wash);
}

/* --- прочее / сервисные --- */
.tn-prose { max-width: 46em; }
.tn-prose ul { padding-left: 1.3em; }
.tn-related { margin: 40px 0; }

/* --- подвал --- */
.tn-foot { background: var(--tn-petrol); color: #b9d5e0; margin-top: 56px; font-size: .9rem; }
.tn-foot-in {
  max-width: 1120px; margin: 0 auto; padding: 36px 20px 30px;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px;
}
.tn-foot a { color: #d7edf5; }
.tn-foot h3 { color: #fff; font-size: 1rem; margin-top: 0; }
.tn-foot ul { list-style: none; margin: 0; padding: 0; }
.tn-foot li { margin: .4em 0; }
.tn-foot-legal {
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding: 16px 20px; max-width: 1120px; margin: 0 auto; font-size: .8rem; color: #8fb2c1;
}

/* --- 404 --- */
.tn-404 { text-align: center; padding: 80px 20px; }

/* --- адаптив --- */
@media (max-width: 900px) {
  .tn-product { grid-template-columns: 1fr; }
  .tn-facts-in { grid-template-columns: repeat(2, 1fr); }
  .tn-foot-in { grid-template-columns: 1fr 1fr; }
  .tn-hero h1 { font-size: 2rem; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .tn-hero-in { padding: 44px 20px 48px; }
  .tn-hero h1 { font-size: 1.65rem; }
  .tn-facts-in { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tn-foot-in { grid-template-columns: 1fr; }
  .tn-card-ph { height: 210px; }
  .tn-table th, .tn-table td { padding: 8px 9px; font-size: .85rem; }
  .tn-plan { padding: 18px 16px; }
}
