/* ============================================================
   КОМПАНИЯМ /kompaniyam/ — локальные стили
   Дополняет:
   - /style.css
   - /uslugi/sezonnaya-smena-shin/page.css  (usp-grid, links-grid)
   - /uslugi/remont-prokola/page.css        (pores-note)
   - /dostavka-topliva/page.css             (quality-note)
   ============================================================ */

/* ===== ДЛЯ КОГО — 10 карточек ===== */
.b2b-types {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 560px) {
  .b2b-types { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .b2b-types { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
  .b2b-types { grid-template-columns: repeat(5, 1fr); }
}

.b2b-type {
  padding: 20px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .18s ease, border-color .18s ease;
}

.b2b-type:hover {
  transform: translateY(-2px);
  border-color: rgba(255,107,0,.4);
}

.b2b-type__icon {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 8px;
}

.b2b-type h3 {
  font-size: 14.5px;
  margin: 0 0 4px;
  color: var(--text);
  letter-spacing: -.01em;
  line-height: 1.3;
}

.b2b-type p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

/* ===== ЧТО ВХОДИТ — 7 карточек ===== */
.b2b-included {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 560px) {
  .b2b-included { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .b2b-included { grid-template-columns: repeat(4, 1fr); }
}

.b2b-included__item {
  padding: 22px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .18s ease, border-color .18s ease;
}

.b2b-included__item:hover {
  transform: translateY(-2px);
  border-color: rgba(255,107,0,.4);
}

.b2b-included__icon {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 10px;
}

.b2b-included__item h3 {
  font-size: 15px;
  margin: 0 0 6px;
  color: var(--text);
  letter-spacing: -.01em;
}

.b2b-included__item p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* ===== УСЛОВИЯ — 6 карточек ===== */
.b2b-terms-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .b2b-terms-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .b2b-terms-grid { grid-template-columns: repeat(3, 1fr); }
}

.b2b-term {
  padding: 22px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .18s ease, border-color .18s ease;
}

.b2b-term:hover {
  transform: translateY(-2px);
  border-color: rgba(255,107,0,.4);
}

.b2b-term__icon {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 10px;
}

.b2b-term h3 {
  font-size: 15.5px;
  margin: 0 0 6px;
  color: var(--text);
  letter-spacing: -.01em;
}

.b2b-term p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* ===== ЧЕМ УДОБНО — 3 преимущества с номерами ===== */
.b2b-advantages {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 800px) {
  .b2b-advantages { grid-template-columns: repeat(3, 1fr); }
}

.b2b-advantage {
  position: relative;
  padding: 28px 24px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease;
}

.b2b-advantage:hover {
  transform: translateY(-2px);
  border-color: rgba(255,107,0,.35);
}

.b2b-advantage__num {
  position: absolute;
  top: 8px;
  right: 16px;
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255,107,0,.1);
  letter-spacing: -.04em;
  pointer-events: none;
  user-select: none;
}

.b2b-advantage h3 {
  position: relative;
  z-index: 1;
  font-size: 17px;
  margin: 0 0 10px;
  color: var(--text);
  letter-spacing: -.02em;
  line-height: 1.25;
  padding-right: 40px;
}

.b2b-advantage p {
  position: relative;
  z-index: 1;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 480px) {
  .b2b-advantage { padding: 22px 20px 20px; }
  .b2b-advantage__num { font-size: 44px; top: 4px; right: 12px; }
  .b2b-advantage h3 { font-size: 15.5px; }
}

/* ===== ФОРМА КП ===== */
.b2b-form {
  max-width: 720px;
}

/* Подсказка под файл-инпутом */
.b2b-file-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.45;
}

.b2b-file-hint strong {
  color: var(--accent);
  font-weight: 700;
}

/* ===== HERO CTA адаптив ===== */
@media (max-width: 600px) {
  .hero-text > div[style*="display:flex"] {
    width: 100%;
  }
  .hero-text > div[style*="display:flex"] > a {
    flex: 1;
    min-width: 0;
    text-align: center;
    padding: 12px 14px !important;
    font-size: 13px !important;
  }
}
