/* css/tablichki.css */

/* ─── HERO — фото фоном ─── */
.tab-hero { padding: 40px 0; }

.tab-hero__card {
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  background-image: url('/imgmy/tild3536-3762-4761-a239-386137376562__tab.jpg');
  background-size: cover;
  background-position: center;
  min-height: 360px;
  padding: 64px 56px;
  display: flex;
  align-items: center;
}

.tab-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
}

.tab-hero__body {
  position: relative;
  z-index: 1;
  max-width: 480px;
}

.tab-hero__title {
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 12px;
}

.tab-hero__sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin-bottom: 24px;
}

.tab-hero__ask {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

/* ─── ВОЗМОЖНОСТИ — 3 картинки ─── */
.tab-features { padding: 0 0 40px; }

.tab-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tab-feature {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tab-feature__img-wrap {
  width: 100%;
  height: 220px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tab-feature__img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.tab-feature__body {
  padding: 22px 24px 26px;
  flex: 1;
}

.tab-feature__title {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.25;
}

.tab-feature__text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── ГАЛЕРЕЯ ─── */
.tab-gallery { padding: 0 0 40px; }

.tab-gallery__title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 20px;
}

.tab-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tab-gallery__item {
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface);
}

.tab-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.tab-gallery__item:hover img { transform: scale(1.04); }

/* ─── ЦЕНЫ ─── */
.tab-price { padding: 0 0 40px; }

.tab-price__card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 48px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.tab-price__title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
  grid-column: 1 / -1;
}

.tab-price__text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}

.tab-price__text p + p { margin-top: 12px; }

.tab-table-wrap { overflow-x: auto; }

.tab-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.tab-table th {
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 16px;
  text-align: left;
  border-bottom: 2px solid var(--border);
}

.tab-table th:last-child { text-align: right; }

.tab-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}

.tab-table td:last-child { text-align: right; font-weight: 600; color: var(--red); }
.tab-table tr:last-child td { border-bottom: none; }

/* ─── АДАПТИВ ─── */
@media (max-width: 900px) {
  .tab-hero__card   { padding: 48px 36px; min-height: 300px; }
  .tab-price__card  { padding: 36px 32px; }
}

@media (max-width: 860px) {
  .tab-features__grid { grid-template-columns: 1fr 1fr; }
  .tab-price__card    { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .tab-gallery__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .tab-hero__card     { padding: 36px 24px; min-height: 260px; }
  .tab-hero__title    { font-size: 28px; }
  .tab-features__grid { grid-template-columns: 1fr; }
  .tab-price__card    { padding: 28px 24px; }
  .tab-gallery__grid  { grid-template-columns: 1fr 1fr; }
}
