/* ============================================================
   Фабрика Скандия — страницы разделов «Покупателям», «Партнёрам», «Фабрика»
   Автономные стили (префикс sp-), не конфликтуют со стилями сайта.
   Подключение: <link rel="stylesheet" href="/css/pages.css?v=1">
   Шрифт Montserrat и базовые цвета — как на scandia-online.ru
   ============================================================ */

:root {
  --sp-green: #88be34;
  --sp-green-hover: #8dc636;
  --sp-green-dark: #6a9a26;
  --sp-dark: #222222;
  --sp-gray: #6b6b6b;
  --sp-bg: #f7f6f4;
  --sp-line: #e8e8e8;
  --sp-radius: 16px;
  --sp-shadow: 0 8px 32px rgba(125, 145, 110, 0.14);
}

/* ---------- Шапка и подвал (копия структуры сайта) ---------- */

.sp-page {
  font-family: "Montserrat", sans-serif;
  color: var(--sp-dark);
  background: #fff;
  margin: 0;
  line-height: 1.5;
}

.sp-page img { max-width: 100%; display: block; }
.sp-page a:not([class]) { color: var(--sp-green); }

.sp-container {
  max-width: 1432px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Шапка */
.sp-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: #fff;
  box-shadow: 0 0 16px rgba(125, 145, 110, 0.24);
}

.sp-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.sp-header__logo { max-width: 200px; flex-shrink: 0; }
.sp-header__logo img { width: 100%; }

.sp-header__nav ul {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sp-header__nav a {
  text-decoration: none;
  color: var(--sp-dark);
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.sp-header__nav a:hover,
.sp-header__nav a.sp-active { color: var(--sp-green); }

.sp-header__contacts { text-align: right; }
.sp-header__phone {
  font-size: 18px;
  font-weight: 700;
  color: var(--sp-green) !important;
  text-decoration: none;
  white-space: nowrap;
}
.sp-header__time { font-size: 12px; color: var(--sp-gray); }

.sp-header__burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 2px solid var(--sp-green);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.sp-header__burger svg { width: 24px; height: 24px; stroke: var(--sp-dark); }
.sp-header__burger .sp-icon-close { display: none; }
.sp-header.sp-open .sp-header__burger .sp-icon-open { display: none; }
.sp-header.sp-open .sp-header__burger .sp-icon-close { display: block; }

@media (max-width: 991.98px) {
  .sp-header__burger { display: inline-flex; }
  .sp-header__nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #fff;
    box-shadow: 0 16px 24px rgba(125, 145, 110, 0.18);
    padding: 8px 16px 20px;
    display: none;
  }
  .sp-header.sp-open .sp-header__nav { display: block; }
  .sp-header__nav ul { flex-direction: column; gap: 0; }
  .sp-header__nav li { border-bottom: 1px solid var(--sp-line); }
  .sp-header__nav a { display: block; padding: 14px 0; font-size: 15px; }
  .sp-header__contacts { display: none; }
}

/* Подвал */
.sp-footer {
  border-top: 1px solid #000;
  padding: 40px 0 60px;
  margin-top: 72px;
}

.sp-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 36px;
}

.sp-footer__col_info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 240px;
}

.sp-footer__logo { max-width: 200px; }
.sp-footer__logo img { width: 100%; }

.sp-footer__phone a {
  font-size: 17px;
  font-weight: 700;
  color: var(--sp-dark);
  text-decoration: none;
}
.sp-footer__phone a:hover { color: var(--sp-green); }

.sp-footer__title {
  font-size: 14px;
  text-transform: uppercase;
  color: var(--sp-green);
  font-weight: 500;
  margin-bottom: 10px;
}

.sp-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sp-footer__list a { text-decoration: none; color: var(--sp-dark); font-size: 14px; }
.sp-footer__list a:hover { color: var(--sp-green); }

.sp-footer__bottom {
  border-top: 1px solid var(--sp-line);
  padding-top: 20px;
  font-size: 13px;
  color: var(--sp-gray);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.sp-footer__bottom a { color: var(--sp-gray); }

@media (max-width: 991.98px) {
  .sp-footer__inner { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575.98px) {
  .sp-footer__inner { grid-template-columns: 1fr; }
}

/* ---------- Хлебные крошки ---------- */

.sp-crumbs {
  font-size: 13px;
  color: var(--sp-gray);
  padding: 18px 0 0;
}
.sp-crumbs a { color: var(--sp-gray); text-decoration: none; }
.sp-crumbs a:hover { color: var(--sp-green); }
.sp-crumbs span { color: var(--sp-dark); }

/* ---------- Hero ---------- */

.sp-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  margin-top: 20px;
  min-height: 440px;
  display: flex;
  align-items: stretch;
}

.sp-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-hero__overlay {
  position: relative;
  z-index: 2;
  background: linear-gradient(90deg, rgba(20, 28, 14, 0.78) 0%, rgba(20, 28, 14, 0.45) 55%, rgba(20, 28, 14, 0.05) 100%);
  width: 100%;
  display: flex;
  align-items: center;
}

.sp-hero__content {
  padding: 56px;
  max-width: 640px;
  color: #fff;
}

.sp-hero__tag {
  display: inline-block;
  background: var(--sp-green);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.sp-hero__title {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 18px;
}

.sp-hero__text {
  font-size: 17px;
  line-height: 1.6;
  opacity: 0.92;
  margin: 0 0 28px;
}

.sp-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 767.98px) {
  .sp-hero { min-height: 520px; }
  .sp-hero__content { padding: 32px 24px; }
  .sp-hero__title { font-size: 30px; }
}

/* ---------- Кнопки ---------- */

.sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  min-height: 46px;
  padding: 0 28px;
  border-radius: 10px;
  border: 2px solid var(--sp-green);
  color: var(--sp-green);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.sp-btn:hover { background: var(--sp-green); color: #fff; }

.sp-btn_filled { background: var(--sp-green); color: #fff; }
.sp-btn_filled:hover { background: var(--sp-green-hover); border-color: var(--sp-green-hover); }

.sp-btn_light { border-color: #fff; color: #fff; }
.sp-btn_light:hover { background: #fff; color: var(--sp-dark); }

/* ---------- Секции ---------- */

.sp-section { padding: 64px 0 0; }

.sp-section__head { max-width: 760px; margin-bottom: 36px; }

.sp-section__subtitle {
  color: var(--sp-green);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.sp-section__title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 14px;
}

.sp-section__lead { font-size: 16px; color: var(--sp-gray); line-height: 1.65; margin: 0; }

@media (max-width: 767.98px) {
  .sp-section { padding-top: 48px; }
  .sp-section__title { font-size: 26px; }
}

/* ---------- Карточки-навигации ---------- */

.sp-navcards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sp-navcard {
  background: var(--sp-bg);
  border-radius: var(--sp-radius);
  padding: 26px;
  text-decoration: none;
  color: var(--sp-dark);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid transparent;
}

.sp-navcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--sp-shadow);
  border-color: var(--sp-green);
}

.sp-navcard__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--sp-green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sp-navcard__icon svg { width: 26px; height: 26px; stroke: #fff; }

.sp-navcard__title { font-size: 18px; font-weight: 700; }
.sp-navcard__text { font-size: 14px; color: var(--sp-gray); line-height: 1.55; }
.sp-navcard__more { font-size: 13px; font-weight: 600; color: var(--sp-green); text-transform: uppercase; letter-spacing: 0.05em; margin-top: auto; }

@media (max-width: 991.98px) { .sp-navcards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .sp-navcards { grid-template-columns: 1fr; } }

/* ---------- Шаги ---------- */

.sp-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: spstep;
}

.sp-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  padding: 28px 24px 24px;
  counter-increment: spstep;
}

.sp-step::before {
  content: "0" counter(spstep);
  display: block;
  font-size: 40px;
  font-weight: 800;
  color: var(--sp-green);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 14px;
}

.sp-step__title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.sp-step__text { font-size: 14px; color: var(--sp-gray); line-height: 1.55; }

@media (max-width: 991.98px) { .sp-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .sp-steps { grid-template-columns: 1fr; } }

/* ---------- Инфо-блоки 2 колонки ---------- */

.sp-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.sp-duo__card {
  background: var(--sp-bg);
  border-radius: var(--sp-radius);
  padding: 34px;
}

.sp-duo__card h3 { font-size: 21px; margin: 0 0 16px; }

.sp-duo__card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }

.sp-duo__card li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.55;
  color: #444;
}

.sp-duo__card li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--sp-green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M4.5 12.75l6 6 9-13.5'/%3E%3C/svg%3E") center/contain no-repeat, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
}

@media (max-width: 767.98px) { .sp-duo { grid-template-columns: 1fr; } }

/* ---------- Текст + фото ---------- */

.sp-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

.sp-split_reverse { grid-template-columns: 1fr 1.05fr; }
.sp-split_reverse .sp-split__media { order: -1; }

.sp-split__media img {
  border-radius: 24px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: var(--sp-shadow);
}

.sp-split__content h3 { font-size: 26px; margin: 0 0 16px; line-height: 1.25; }
.sp-split__content p { color: var(--sp-gray); line-height: 1.7; margin: 0 0 14px; }

.sp-split__list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 10px; }
.sp-split__list li { padding-left: 24px; position: relative; font-size: 15px; }
.sp-split__list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--sp-green);
}

@media (max-width: 991.98px) {
  .sp-split, .sp-split_reverse { grid-template-columns: 1fr; gap: 28px; }
  .sp-split_reverse .sp-split__media { order: 0; }
}

/* ---------- Цифры ---------- */

.sp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--sp-dark);
  border-radius: 24px;
  padding: 44px 40px;
}

.sp-stat__num {
  font-size: 46px;
  font-weight: 800;
  color: var(--sp-green);
  line-height: 1;
  margin-bottom: 10px;
}

.sp-stat__text { color: rgba(255,255,255,0.85); font-size: 14px; line-height: 1.5; }

@media (max-width: 991.98px) { .sp-stats { grid-template-columns: repeat(2, 1fr); padding: 32px 24px; } }
@media (max-width: 575.98px) { .sp-stats { grid-template-columns: 1fr 1fr; } .sp-stat__num { font-size: 34px; } }

/* ---------- Галерея коллекций ---------- */

.sp-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.sp-gallery__item {
  position: relative;
  border-radius: var(--sp-radius);
  overflow: hidden;
  aspect-ratio: 1/1;
  text-decoration: none;
}

.sp-gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}

.sp-gallery__item:hover img { transform: scale(1.06); }

.sp-gallery__label {
  position: absolute;
  left: 12px; bottom: 12px;
  background: rgba(255,255,255,0.92);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--sp-dark);
}

@media (max-width: 991.98px) { .sp-gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Советы / иконки списком ---------- */

.sp-tips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sp-tip {
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  padding: 26px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sp-tip:hover { border-color: var(--sp-green); box-shadow: var(--sp-shadow); }

.sp-tip__icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(136, 190, 52, 0.14);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.sp-tip__icon svg { width: 22px; height: 22px; stroke: var(--sp-green-dark); }

.sp-tip__title { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.sp-tip__text { font-size: 14px; color: var(--sp-gray); line-height: 1.55; }

@media (max-width: 991.98px) { .sp-tips { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .sp-tips { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.sp-faq { max-width: 860px; }

.sp-faq__item {
  border: 1px solid var(--sp-line);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}

.sp-faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--sp-dark);
  cursor: pointer;
  text-align: left;
}

.sp-faq__q svg { width: 20px; height: 20px; flex-shrink: 0; stroke: var(--sp-green); transition: transform 0.25s; }
.sp-faq__item.sp-open .sp-faq__q svg { transform: rotate(45deg); }

.sp-faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.sp-faq__a-inner {
  padding: 0 24px 22px;
  color: var(--sp-gray);
  font-size: 15px;
  line-height: 1.65;
}

/* ---------- CTA-форма ---------- */

.sp-cta {
  margin-top: 72px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background: var(--sp-dark);
}

.sp-cta__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.sp-cta__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 56px;
  align-items: center;
}

.sp-cta__title { color: #fff; font-size: 32px; font-weight: 700; line-height: 1.25; margin: 0 0 14px; }
.sp-cta__text { color: rgba(255,255,255,0.8); font-size: 16px; line-height: 1.6; margin: 0 0 20px; }
.sp-cta__phone { font-size: 24px; font-weight: 700; color: var(--sp-green) !important; text-decoration: none; }
.sp-cta__note { color: rgba(255,255,255,0.6); font-size: 13px; margin-top: 8px; }

.sp-form {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
}

.sp-form__title { font-size: 20px; font-weight: 700; margin: 0 0 18px; }

.sp-form__field { margin-bottom: 14px; }

.sp-form__input,
.sp-form__textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid var(--sp-line);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--sp-dark);
  transition: border-color 0.2s;
  background: #fff;
}

.sp-form__input:focus,
.sp-form__textarea:focus { outline: none; border-color: var(--sp-green); }

.sp-form__input.sp-error { border-color: #f60112; }

.sp-form__textarea { min-height: 84px; resize: vertical; }

.sp-form__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--sp-gray);
  margin: 6px 0 16px;
  line-height: 1.45;
}
.sp-form__consent input { margin-top: 2px; accent-color: var(--sp-green); }

.sp-form__submit { width: 100%; min-height: 50px; font-size: 16px; }

.sp-form__success {
  text-align: center;
  padding: 28px 8px;
}
.sp-form__success-icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--sp-green);
  display: flex; align-items: center; justify-content: center;
}
.sp-form__success-icon svg { width: 32px; height: 32px; stroke: #fff; }
.sp-form__success-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.sp-form__success-text { color: var(--sp-gray); font-size: 14px; }

.sp-form.sp-sent .sp-form__body { display: none; }
.sp-form.sp-sent .sp-form__success { display: block; }

@media (max-width: 991.98px) {
  .sp-cta__inner { grid-template-columns: 1fr; padding: 36px 24px; gap: 28px; }
}

/* ---------- Анимация появления ---------- */

.sp-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.sp-reveal.sp-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .sp-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Партнёрские карточки ---------- */

.sp-audience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.sp-audience__card {
  border-radius: var(--sp-radius);
  overflow: hidden;
  background: var(--sp-bg);
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.sp-audience__card:hover { border-color: var(--sp-green); box-shadow: var(--sp-shadow); transform: translateY(-4px); }

.sp-audience__img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }

.sp-audience__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.sp-audience__title { font-size: 20px; font-weight: 700; }
.sp-audience__text { font-size: 14.5px; color: var(--sp-gray); line-height: 1.6; flex: 1; }

@media (max-width: 991.98px) { .sp-audience { grid-template-columns: 1fr; } }

/* ---------- Плашка FSC / бейдж ---------- */

.sp-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(136, 190, 52, 0.12);
  border: 1px solid var(--sp-green);
  color: var(--sp-green-dark);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
}
