/* =========================================================
   HOW TO USE — Стили для страницы "Как применять"
   ========================================================= */

/* ----- HERO ----- */
.h-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--green-950);
  color: #fff;
  padding-top: 78px;
}

.h-hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  right: -200px;
  top: -100px;
  background: radial-gradient(circle, rgba(168, 177, 125, .15) 0%, transparent 68%);
  pointer-events: none;
}

.h-hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.h-hero h1 {
  margin: 0;
  font-size: clamp(48px, 6vw, 76px);
  line-height: .98;
  letter-spacing: -3.5px;
  font-weight: 800;
}

.h-hero h1 span {
  color: #aeb983;
}

.h-hero-description {
  max-width: 600px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .7);
  font-size: 18px;
  line-height: 1.7;
}

/* ----- SELECTOR ----- */
.h-selector {
  padding: 100px 0;
  background: var(--cream);
}

.h-selector-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 30px;
}

/* Левая колонка — список культур */
.h-culture-list {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 12px;
  max-height: 680px;
  overflow-y: auto;
}

.h-culture-list::-webkit-scrollbar {
  width: 4px;
}
.h-culture-list::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 4px;
}
.h-culture-list::-webkit-scrollbar-thumb {
  background: var(--green-500);
  border-radius: 4px;
}

.h-culture-item {
  width: 100%;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.h-culture-item:hover {
  background: #f5f7f3;
}

.h-culture-item.active {
  background: #eaf1e6;
}

.h-culture-item .h-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f1f3ee;
  font-size: 20px;
  flex-shrink: 0;
  transition: background 0.25s ease;
}

.h-culture-item.active .h-icon {
  background: #fff;
}

.h-culture-item .h-info {
  flex: 1;
}

.h-culture-item .h-info strong {
  display: block;
  font-size: 15px;
}

.h-culture-item .h-info small {
  display: block;
  margin-top: 3px;
  color: #929a91;
  font-size: 11px;
}

.h-culture-item .h-arrow {
  color: #84927f;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.25s ease;
  font-size: 14px;
}

.h-culture-item:hover .h-arrow,
.h-culture-item.active .h-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ----- ВКЛАДКИ ПРОДУКТОВ ----- */
.h-product-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e9ece7;
}

.h-product-tab {
  padding: 8px 18px;
  border: 2px solid transparent;
  border-radius: 30px;
  background: transparent;
  color: #929a90;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.h-product-tab:hover {
  color: var(--text);
  background: #f5f7f3;
}

.h-product-tab.active {
  background: var(--green-500);
  color: #fff;
  border-color: var(--green-500);
  box-shadow: 0 4px 16px rgba(131, 142, 87, 0.25);
}

.h-product-tab .h-tab-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 12px;
  background: rgba(255,255,255,0.2);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.h-product-tab.active .h-tab-badge {
  background: rgba(255,255,255,0.2);
}

.h-product-tab .h-tab-icon {
  margin-right: 6px;
}

/* Стили для вариантов продуктов */
.h-variant-note {
  padding: 12px 16px;
  background: #f0f5ec;
  border-radius: 8px;
  border-left: 3px solid var(--green-500);
  margin: 12px 0 16px;
  font-size: 13px;
  color: #555;
}

.h-variant-note strong {
  color: var(--text);
}

.h-variant-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.h-variant-tag.base {
  background: #e8ece3;
  color: #5a6a31;
}

.h-variant-tag.plus {
  background: #e8dcc8;
  color: #8a7a4a;
}

.h-variant-tag.adjuvant {
  background: #dce8e8;
  color: #3a7a7a;
}

/* Адаптив для вкладок */
@media (max-width: 600px) {
  .h-product-tabs {
    flex-wrap: wrap;
    gap: 6px;
  }
  .h-product-tab {
    padding: 6px 14px;
    font-size: 12px;
  }
}

/* Правая колонка — детали */
.h-details {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 40px;
  box-shadow: var(--shadow-soft);
}

.h-details-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid #e9ece7;
}

.h-details-header .h-label {
  display: block;
  color: #98a095;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.h-details-header h2 {
  margin-top: 8px;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -.04em;
}

.h-details-badge {
  padding: 7px 12px;
  border-radius: 100px;
  background: #edf3ea;
  color: #688060;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  flex-shrink: 0;
}

.h-details-body {
  padding-top: 28px;
}

.h-details-body .h-section-title {
  display: block;
  color: #929a90;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}

.h-dosage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0 28px;
}

.h-dosage-card {
  padding: 20px 24px;
  background: #f4f6f1;
  border-radius: 12px;
}

.h-dosage-card .h-dosage-label {
  display: block;
  color: #8a9287;
  font-size: 11px;
  margin-bottom: 6px;
}

.h-dosage-card .h-dosage-value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--text);
}

.h-dosage-card .h-dosage-value small {
  font-size: 14px;
  color: #7d857b;
  font-weight: 500;
}

.h-dosage-card .h-dosage-sub {
  display: block;
  font-size: 13px;
  color: #7d857b;
  margin-top: 4px;
}

.h-phases {
  background: #f4f6f1;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 16px 0 24px;
}

.h-phases .h-phase-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
}

.h-phases .h-phase-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.h-phases .h-phase-list li {
  padding: 6px 0;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.h-phases .h-phase-list li::before {
  content: "•";
  color: var(--green-500);
  font-weight: 700;
  font-size: 18px;
}

.h-note {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  background: #f8f9f6;
  border-radius: 10px;
  border-left: 3px solid var(--green-500);
  margin: 16px 0;
}

.h-note .h-note-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef0eb;
  color: #768072;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.h-note p {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.h-note p strong {
  color: var(--text);
}

.h-special-cases {
  background: #fafbf9;
  border-radius: 12px;
  padding: 20px 24px;
  border: 1px dashed #d5d9ce;
  margin: 16px 0;
}

.h-special-cases .h-special-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
}

.h-special-cases p {
  color: #555;
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}

.h-special-cases ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.h-special-cases ul li {
  padding: 4px 0;
  color: #555;
  font-size: 13px;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.h-special-cases ul li::before {
  content: "▸";
  color: var(--green-500);
  font-weight: 700;
}

.h-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
  color: #999;
}

.h-empty-state .h-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.h-empty-state p {
  font-size: 16px;
  max-width: 320px;
  line-height: 1.6;
}

/* ----- КОНТАКТНЫЙ БЛОК (как в products) ----- */
.h-contact-section {
  padding: 100px 0;
  background: #eef0e7;
}

.h-contact-grid {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 100px;
  align-items: center;
}

.h-contact-section h2 {
  margin: 18px 0;
  font-size: 62px;
  line-height: 1;
  letter-spacing: -.06em;
}

.h-contact-section p {
  max-width: 570px;
  color: #6f756a;
  font-size: 16px;
  line-height: 1.85;
}

.h-contact-links {
  display: flex;
  gap: 45px;
  margin-top: 40px;
}

.h-contact-links a span {
  display: block;
  margin-bottom: 7px;
  color: #8a8f84;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .15em;
}

.h-contact-links b {
  font-size: 17px;
}

.h-contact-card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 25px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.h-contact-card-top {
  display: flex;
  justify-content: space-between;
  color: #81877b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.h-contact-card h3 {
  margin: 55px 0 25px;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -.04em;
}

.h-contact-card form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.h-contact-card input,
.h-contact-card textarea {
  width: 100%;
  padding: 15px 18px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  color: var(--text);
  background: #f8f9f5;
  font-size: 14px;
  transition: border-color .2s ease, background .2s ease;
}

.h-contact-card input:focus,
.h-contact-card textarea:focus {
  border-color: #aab69a;
  background: #fff;
}

.h-contact-card input::placeholder,
.h-contact-card textarea::placeholder {
  color: #9da29a;
}

.h-contact-card small {
  display: block;
  margin-top: 20px;
  color: #888d83;
  font-size: 12px;
  line-height: 1.7;
}

/* Адаптив для контактного блока */
@media (max-width: 1050px) {
  .h-contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 760px) {
  .h-contact-section {
    padding: 75px 0;
  }
  .h-contact-section h2 {
    font-size: 46px;
  }
  .h-contact-links {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .h-contact-card h3 {
    font-size: 24px;
  }
}

/* ----- АДАПТИВ ----- */
@media (max-width: 1050px) {
  .h-selector-grid {
    grid-template-columns: 1fr;
  }
  .h-culture-list {
    max-height: 300px;
  }
}

@media (max-width: 760px) {
  .h-hero {
    min-height: 420px;
  }
  .h-hero h1 {
    font-size: 38px;
  }
  .h-hero-description {
    font-size: 15px;
  }
  .h-selector {
    padding: 60px 0;
  }
  .h-details {
    padding: 24px;
  }
  .h-details-header {
    flex-direction: column;
    gap: 12px;
  }
  .h-details-header h2 {
    font-size: 28px;
  }
  .h-dosage-grid {
    grid-template-columns: 1fr;
  }
  .h-dosage-card .h-dosage-value {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .h-hero h1 {
    font-size: 32px;
  }
  .h-details {
    padding: 18px;
  }
  .h-dosage-card {
    padding: 16px;
  }
  .h-phases {
    padding: 16px;
  }
  .h-special-cases {
    padding: 16px;
  }
}

/* Иконки SVG в списке культур */
.h-icon-img {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: contain;
}

/* Иконка SVG в заголовке деталей */
.h-details-header h2 .h-icon-img {
  width: 46px;
  height: 46px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
  object-fit: contain;
}

/* Адаптив */
@media (max-width: 760px) {
  .h-icon-img {
    width: 28px;
    height: 28px;
  }
  .h-details-header h2 .h-icon-img {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 480px) {
  .h-icon-img {
    width: 24px;
    height: 24px;
  }
  .h-details-header h2 .h-icon-img {
    width: 26px;
    height: 26px;
  }
}