/* ──────────────────────────────────────────
   inner.css  —  стили для внутренних страниц
   ────────────────────────────────────────── */

/* ─── Page hero ─── */
.page-hero {
  background: var(--green);
  padding: 48px 0 56px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,0.7); transition: color .2s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span:last-child { color: #fff; font-weight: 600; }

.page-hero__title {
  color: #fff;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
}

/* ─── Product sections ─── */
.product-section {
  padding: 80px 0;
  background: #fff;
}
.product-section--alt { background: #f7f9f7; }

.product-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.product-section__image {
  border-radius: 4px;
  position: sticky;
  top: 24px;
}
.product-section__image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.product-section__latin {
  font-size: 0.7em;
  font-weight: 400;
  color: var(--grey);
}

.product-section__lead {
  font-size: 16px;
  font-weight: 600;
  color: var(--green-dark);
  margin: 16px 0 24px;
  line-height: 1.6;
}

.product-section__body p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--grey);
  margin-bottom: 16px;
}
.product-section__body p:last-child { margin-bottom: 0; }

.product-section__nutrition {
  margin-top: 28px;
  padding: 24px;
  background: #fff;
  border: 1px solid #e8ede9;
  border-radius: 4px;
}

.product-section__nutrition-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 12px;
}

.product-section__nutrition-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-bottom: 12px;
}
.product-section__nutrition-list li { font-size: 14px; color: var(--dark); }
.product-section__nutrition-list strong { color: var(--green-dark); }

.product-section__energy,
.product-section__packaging { font-size: 14px; color: var(--dark); margin-top: 8px; }

/* ─── Inline text link ─── */
.text-link {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  transition: color .2s;
}
.text-link:hover { color: var(--green-dark); }

/* ─── Document links (proteinx page) ─── */
.product-section__docs {
  margin-top: 24px;
  font-size: 15px;
  color: var(--grey);
  line-height: 1.7;
}
.product-section__docs a {
  color: var(--orange);
  transition: opacity .2s;
}
.product-section__docs a:hover { opacity: 0.7; text-decoration: underline; }

/* ─── Fatty acid table (oil page) ─── */
.acid-table__heading {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 32px;
}
.acid-table {
  width: 100%;
  border-collapse: collapse;
}
.acid-table th,
.acid-table td {
  text-align: left;
  padding: 18px 20px;
  font-size: 16px;
  color: var(--grey);
  width: 50%;
}
.acid-table th {
  font-weight: 700;
  color: var(--dark);
  border-bottom: 1px solid #c9d2cc;
}
.acid-table tbody tr:not(:first-child) td {
  border-bottom: 1px solid #e8ede9;
}
.acid-table tbody tr:nth-child(even) {
  background: #eef1ef;
}

@media (max-width: 600px) {
  .acid-table th,
  .acid-table td {
    padding: 14px 12px;
    font-size: 14px;
  }
}

/* ─── Info: articles grid ─── */
.info-articles { padding: 80px 0; background: #fff; }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8ede9;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.article-card:hover {
  box-shadow: 0 8px 32px rgba(46,142,78,.13);
  transform: translateY(-3px);
}

.article-card__img-wrap {
  display: block;
  overflow: hidden;
  flex-shrink: 0;
}
.article-card__img-wrap img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.article-card:hover .article-card__img-wrap img { transform: scale(1.04); }

.article-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
}
.article-card__title a { color: inherit; transition: color .2s; }
.article-card__title a:hover { color: var(--green); }

/* ─── Article page ─── */
.article-page { padding: 64px 0 80px; background: #fff; }
.article-page__inner { max-width: 820px; margin: 0 auto; }
.article-page__title { line-height: 1.25; }
.article-page__hero {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 40px;
}
.article-page__body p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--grey);
  margin-bottom: 20px;
}
.article-page__body p:last-child { margin-bottom: 0; }
.article-page__back {
  margin-top: 48px;
}

@media (max-width: 600px) {
  .article-page { padding: 40px 0 56px; }
  .article-page__hero { margin-bottom: 28px; }
  .article-page__body p { font-size: 15px; }
}

/* ─── Contact page ─── */
.contact-page { padding: 80px 0; background: #fff; }

.contact-page__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-page__block { margin-bottom: 32px; }
.contact-page__block:last-child { margin-bottom: 0; }

.contact-page__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 6px;
}

.contact-page__value { font-size: 16px; color: var(--dark); line-height: 1.6; }

.contact-page__link { color: var(--dark); transition: color .2s; }
.contact-page__link:hover { color: var(--green); }

.contact-page__form-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 32px;
}

/* ─── 404 page ─── */
.not-found {
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background: #f7f9f7;
}
.not-found__code {
  font-size: clamp(80px, 20vw, 160px);
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 16px;
}
.not-found__title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}
.not-found__text {
  font-size: 16px;
  color: var(--grey);
  line-height: 1.7;
  max-width: 440px;
  margin: 0 auto 40px;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .product-section__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .product-section--alt .product-section__text { order: 1; }
  .product-section--alt .product-section__image { order: 2; }
  .product-section__image { position: static; }
  .product-section__nutrition-list { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .contact-page__inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 600px) {
  .page-hero { padding: 32px 0 40px; }
  .product-section { padding: 48px 0; }
  .info-articles { padding: 48px 0; }
  .articles-grid { grid-template-columns: 1fr; }
  .article-card__img-wrap img { height: 180px; }
  .contact-page { padding: 48px 0; }
}
