/* ПРОМТЕХ — технологичная визитка. Индустриальный стиль. */

:root {
  --prom-blue: #023f78;
  --prom-gold: #bf9e45;
  --prom-green: #4d8265;
  --prom-black: #0b0f14;
  --text: #eaf1ff;
  --text-muted: #9aa8c4;
  --bg: #0b0f14;
  --metal: rgba(191, 158, 69, 0.15);
  --metal-border: rgba(191, 158, 69, 0.35);
  --radius: 6px;
  --transition: 0.2s ease;
  /* Адаптивные отступы: 320→12px, 768→20px, 1440→24px */
  --container-pad: clamp(12px, 4vw, 24px);
  --touch-min: 44px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(15px, 2.5vw, 16px);
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--prom-gold); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 0.9375rem;
  font-weight: 500;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}
.btn--gold { background: var(--prom-gold); color: var(--prom-black); }
.btn--gold:hover { background: #d4b358; text-decoration: none; }
.btn--outline { background: transparent; color: var(--prom-gold); border: 1px solid var(--metal-border); }
.btn--outline:hover { background: var(--metal); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { background: rgba(234, 241, 255, 0.06); text-decoration: none; }
.btn--small { padding: 6px 14px; font-size: 0.875rem; }

/* Section — базовый ритм (переопределяется в секциях для связности) */
.section { padding: 56px 0; }

/* ===== О КОМПАНИИ: паттерн мягкий, тихая зона по центру (vignette), карточка поверх ===== */
.about {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
  background: linear-gradient(180deg, #0f1722 0%, #0d1420 40%, #0b1118 100%);
}

/* Паттерн — фирменная текстура, мягко */
.about::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("/static/img/pattern-bg.png");
  background-repeat: repeat;
  background-size: 620px auto;
  background-position: 0 0;
  opacity: 0.06;
}

/* Слой гашения центра: паттерн слабее в центре, сильнее по краям (vignette) */
.about::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      900px 420px at 50% 50%,
      rgba(13, 20, 32, 0.92) 0%,
      rgba(13, 20, 32, 0.78) 45%,
      rgba(13, 20, 32, 0.35) 70%,
      rgba(13, 20, 32, 0.2) 100%
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55));
}

/* Контент и карточка поверх слоёв */
.about .container {
  position: relative;
  z-index: 2;
}

/* Карточка: контраст и лёгкое стекло */
.about-box {
  max-width: 820px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(17, 25, 37, 0.92), rgba(11, 17, 24, 0.86));
  border-radius: 14px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
}

.about-box h2{
  margin: 0 0 20px;
  font-size: 30px;
  font-weight: 600;
  color: rgba(234,241,255,.95);
  line-height: 1.25;
}

.about-box p{
  margin: 0 0 16px;
  line-height: 1.6;
  opacity: .85;
  color: rgba(234,241,255,.9);
  font-size: 1rem;
}

.about-box p:last-of-type{
  margin-bottom: 0;
}

.about-box button{
  margin-top: 20px;
}

.about-box .btn-gold {
  background: var(--prom-gold);
  color: #0b0f14;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.about-box .btn-gold:hover {
  background: #d4b358;
}

@media (max-width: 768px) {
  .about { padding: 56px 0 52px; }
  .about-box { padding: 28px 24px; }
  .about-box h2 { font-size: 26px; margin-bottom: 16px; }
  .about-box p { font-size: 0.9375rem; }
}

@media (max-width: 480px) {
  .about { padding: 44px 0 40px; }
  .about-box { padding: 22px var(--container-pad); border-radius: 12px; }
  .about-box h2 { font-size: 22px; line-height: 1.3; }
  .about-box p { font-size: 15px; margin-bottom: 14px; }
  .about-box button { width: 100%; min-height: var(--touch-min); margin-top: 18px; }
}

@media (max-width: 360px) {
  .about-box h2 { font-size: 20px; }
  .about-box p { font-size: 14px; }
}

/* Секция «Услуги»: паттерн в фоне + вуаль, контент поверх (читаемость) */
section.section.services {
  position: relative;
  overflow: hidden;
  padding: 56px 0 64px;
  background: linear-gradient(180deg, #111a26 0%, #0f1722 30%, #0d1420 100%);
  box-shadow: 0 -2px 0 0 rgba(0, 0, 0, 0.12);
}

/* 1) Паттерн — мягкая текстура, едва заметный */
section.section.services::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("/static/img/pattern-bg.png");
  background-repeat: repeat;
  background-size: 520px auto;
  background-position: 0 0;
  opacity: 0.08;
  filter: blur(0.2px);
  transform: translateZ(0);
  pointer-events: none;
}

/* 2) Вуаль над паттерном, чтобы не шумел */
section.section.services::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    1200px 520px at 35% 20%,
    rgba(0, 0, 0, 0.18) 0%,
    rgba(0, 0, 0, 0.52) 55%,
    rgba(0, 0, 0, 0.72) 100%
  );
  pointer-events: none;
}

/* 3) Контент секции всегда поверх слоёв */
section.section.services .container,
section.section.services .section__title,
section.section.services .svc-grid,
section.section.services .svc-row,
section.section.services .svc-card {
  position: relative;
  z-index: 2;
}

/* Мобильные: паттерн ещё мягче, без ряби */
@media (max-width: 768px) {
  section.section.services::before {
    background-size: 620px auto;
    opacity: 0.06;
  }
  section.section.services { padding: 48px 0 52px; }
  .section__title { margin-bottom: 24px; font-size: 1.375rem; }
}

@media (max-width: 480px) {
  section.section.services { padding: 40px 0 44px; }
  .section__title { margin-bottom: 20px; font-size: 1.25rem; }
  .svc-grid { gap: 16px; }
  .svc-row { gap: 14px; }
  .svc-card--primary .svc-body { padding: 16px var(--container-pad) 14px; }
  .svc-card--primary .svc-title { font-size: 17px; }
  .svc-card--primary .svc-list { font-size: 13px; }
  .svc-card--secondary .svc-body { padding: 12px var(--container-pad); }
  .svc-card--secondary .svc-title { font-size: 14px; }
  .svc-card--secondary .svc-cover { height: 90px; }
  .svc-link, .svc-card .pt-btn { min-height: var(--touch-min); }
}

@media (max-width: 360px) {
  section.section.services { padding: 32px 0 36px; }
  .section__title { font-size: 1.125rem; }
  .svc-card--primary { min-height: 280px; }
  .svc-card--primary .svc-cover { height: 180px; }
}

.section__title {
  margin: 0 0 32px;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

/* Contact — финальный CTA-блок, в одной стилистике с остальными секциями */
.section.contact {
  padding: 56px 0 72px;
  background: linear-gradient(
    180deg,
    #111a26 0%,
    #0f1722 35%,
    #0d1420 70%,
    #0b1118 100%
  );
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 -1px 16px rgba(0, 0, 0, 0.15);
}

/* Паттерн приглушён, не отвлекает от текста и кнопок */
.section.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("/static/img/pattern-bg.png");
  background-repeat: repeat;
  background-size: 620px auto;
  background-position: 0 0;
  opacity: 0.03;
}

.section.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 70% 50% at 50% 100%,
    rgba(191, 158, 69, 0.03) 0%,
    transparent 55%
  );
}

.section.contact .container,
.contact__block {
  position: relative;
  z-index: 2;
}

.contact__block {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.contact__title {
  margin: 0 0 16px;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .02em;
  line-height: 1.2;
}

.contact__subtitle {
  margin: 0 auto 24px;
  max-width: 480px;
  font-size: 1rem;
  color: rgba(234, 241, 255, .78);
  line-height: 1.55;
}

.contact__city {
  margin: 0 0 6px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.contact__phones {
  margin: 0 0 28px;
  font-size: 1.0625rem;
}

.contact__phones a {
  color: var(--text);
}

.contact__phones a:hover {
  color: var(--prom-gold);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
}

.btn--contact {
  padding: 16px 26px;
  font-size: 1rem;
  font-weight: 600;
  min-width: 168px;
  min-height: var(--touch-min);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
.btn--contact:hover {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .section.contact { padding: 48px 0 64px; }
  .contact__title { font-size: 1.625rem; margin-bottom: 14px; }
  .contact__subtitle { font-size: 0.9375rem; margin-bottom: 22px; }
  .contact__phones { margin-bottom: 26px; }
}

@media (max-width: 640px) {
  .section.contact { padding: 44px 0 56px; }
  .contact__title { font-size: 1.5rem; margin-bottom: 12px; }
  .contact__actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .btn--contact {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .section.contact { padding: 40px 0 52px; }
  .contact__title { font-size: 1.375rem; margin-bottom: 10px; }
  .contact__subtitle { font-size: 14px; margin-bottom: 18px; }
  .contact__phones { margin-bottom: 22px; font-size: 1rem; }
}

@media (max-width: 360px) {
  .section.contact { padding: 36px 0 48px; }
  .contact__title { font-size: 1.25rem; }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  padding: 12px 24px;
  background: var(--prom-black);
  border: 1px solid var(--prom-gold);
  border-radius: var(--radius);
  color: var(--prom-gold);
  font-size: 0.875rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: opacity var(--transition), transform var(--transition);
}
.toast[hidden] { display: none !important; }
.toast.toast--visible { display: block; animation: toast-in 0.25s ease; }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--container-pad);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 20, 0.9);
  cursor: pointer;
}
.modal__box {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: min(90vh, 560px);
  overflow-y: auto;
  background: var(--prom-black);
  border: 1px solid var(--metal-border);
  border-radius: var(--radius);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
  margin: auto;
}
.modal__content { position: relative; padding: 24px; }
.modal__corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 24px;
  border-top: 2px solid var(--prom-gold);
  border-right: 2px solid var(--prom-gold);
  opacity: 0.6;
  border-radius: 0 var(--radius) 0 0;
}
.modal__title { margin: 0 0 20px; font-size: 1.25rem; font-weight: 600; color: var(--text); }

/* Form */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.form__label { display: block; margin-bottom: 14px; }
.form__label span {
  display: block;
  margin-bottom: 4px;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 10px 12px;
  min-height: var(--touch-min);
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  background: rgba(2, 63, 120, 0.25);
  border: 1px solid var(--metal-border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.form__input::placeholder,
.form__textarea::placeholder { color: var(--text-muted); opacity: 0.7; }
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--prom-gold);
}
.form__textarea { resize: vertical; min-height: max(80px, 88px); }
.form__actions { display: flex; gap: 12px; margin-top: 20px; }
.form__actions .btn { flex: 1; min-height: var(--touch-min); }

@media (max-width: 480px) {
  .modal__content { padding: var(--container-pad); }
  .modal__box { max-height: 85vh; }
  .form__actions { flex-direction: column; }
  .form__actions .btn { width: 100%; }
}
@media (max-width: 360px) {
  .modal__title { font-size: 1.125rem; }
}

.modal__success { text-align: center; padding: 16px 0; }
.modal__success-text { margin: 0 0 20px; font-size: 1rem; color: var(--prom-green); }
.modal__success[hidden] { display: none; }
.form.form--hidden { display: none; }

/* --- PT Header (новый шапка) --- */
.pt-container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.pt-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
  font-family: inherit;
}
.pt-btn:hover { transform: translateY(-1px); }
.pt-btn--gold {
  background: rgba(191, 158, 69, .95);
  border-color: rgba(191, 158, 69, .95);
  color: #0b0f14;
}
.pt-btn--gold:hover { background: rgba(191, 158, 69, 1); }
.pt-btn--ghost {
  background: transparent;
  border-color: rgba(191, 158, 69, .25);
  color: rgba(234, 241, 255, .9);
}
.pt-btn--ghost:hover { background: rgba(191, 158, 69, .08); }
.pt-btn--full{ width:100%; justify-content:center; display:inline-flex; }

/* ===== HERO (без header, логотип в hero) ===== */
.pt-hero{
  position:relative;
  min-height: clamp(560px, 78vh, 820px);
  display:flex;
  align-items:center;
  overflow:hidden;
  background: radial-gradient(1200px 700px at 20% 10%, rgba(2,63,120,.55), transparent 55%),
              radial-gradient(900px 600px at 80% 35%, rgba(77,130,101,.22), transparent 55%),
              linear-gradient(180deg, rgba(11,15,20,1), rgba(11,15,20,.92));
}

.pt-hero__bg{
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(90deg, rgba(11,15,20,.92) 0%, rgba(11,15,20,.76) 45%, rgba(11,15,20,.90) 100%),
    url("/static/img/hero.jpg");
  background-size: cover;
  background-position: center;
  filter: saturate(.9) contrast(1.02);
  transform: scale(1.03);
}

.pt-hero__grain{
  position:absolute;
  inset:-40px;
  pointer-events:none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(191,158,69,.08), transparent 35%),
    radial-gradient(circle at 75% 60%, rgba(2,63,120,.10), transparent 40%);
  opacity:.9;
  mix-blend-mode: screen;
}

/* Фоновый логотип на hero отключён — не отвлекает от контента */
.pt-hero__mark{ display: none !important; }

.pt-hero__inner {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 48px 0 64px;
}

.pt-hero__center {
  margin-left: auto;
  margin-right: 6%;
  max-width: 520px;
  text-align: left;
}

/* Логотип + заголовок как единый брендовый блок, в одну линию */
.hero-title-group {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.pt-hero__brand {
  flex-shrink: 0;
  order: -1;
}

.pt-hero__logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  display: block;
  filter: brightness(1.08);
}

.pt-hero__title {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 48px);
  letter-spacing: .06em;
  line-height: 1.08;
  color: var(--text);
  font-weight: 600;
}

.pt-hero__subtitle {
  margin: 0 0 28px;
  color: rgba(234, 241, 255, .82);
  font-size: clamp(15px, 1.65vw, 18px);
  line-height: 1.4;
}

.pt-hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 24px;
}

.pt-btn--lg {
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}

.pt-hero__badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.pt-hero__badge {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .04);
  color: rgba(234, 241, 255, .72);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
}

.pt-hero__divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(15, 23, 34, 0.5) 50%,
    #0f1722 100%
  );
  pointer-events: none;
}
.pt-hero__divider::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(191, 158, 69, 0.25), transparent);
  opacity: 0.9;
}

@media (max-width: 900px) {
  .pt-hero__inner {
    justify-content: center;
    padding-top: 40px;
    padding-bottom: 52px;
  }
  .pt-hero__center {
    margin: 0;
    text-align: center;
  }
  .hero-title-group {
    justify-content: center;
  }
  .pt-hero__cta {
    justify-content: center;
  }
  .pt-hero__badges {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .pt-hero { min-height: min(100vh, 640px); }
  .pt-hero__inner {
    align-items: center;
    justify-content: center;
    padding: 32px var(--container-pad) 40px;
  }
  .pt-hero__center {
    text-align: center;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
  }
  .hero-title-group {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 14px;
  }
  .pt-hero__logo { width: 72px; height: 72px; }
  .pt-hero__title { font-size: clamp(24px, 6.5vw, 30px); }
  .pt-hero__subtitle {
    font-size: 14px;
    line-height: 1.4;
    margin: 0 auto 20px;
    max-width: 320px;
    text-align: center;
  }
  .pt-hero__cta {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    gap: 10px;
  }
  .pt-hero__cta .pt-btn {
    width: 100%;
    min-height: var(--touch-min);
    justify-content: center;
  }
  .pt-hero__badges {
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
  }
  .pt-hero__badge { font-size: 11px; padding: 5px 10px; }
}

@media (max-width: 480px) {
  .pt-hero__inner { padding: 28px var(--container-pad) 36px; }
  .hero-title-group { gap: 10px; margin-bottom: 12px; }
  .pt-hero__logo { width: 64px; height: 64px; }
  .pt-hero__title { font-size: clamp(22px, 7vw, 28px); }
  .pt-hero__subtitle { font-size: 13px; margin-bottom: 18px; max-width: 300px; }
  .pt-hero__cta { max-width: 260px; }
  .pt-hero__badges { margin-top: 18px; gap: 6px; }
  .pt-hero__badge { font-size: 10px; padding: 5px 10px; }
  .pt-hero__divider { height: 32px; }
}

@media (max-width: 360px) {
  .pt-hero__inner { padding: 24px var(--container-pad) 32px; }
  .pt-hero__logo { width: 56px; height: 56px; }
  .pt-hero__title { font-size: 20px; }
  .pt-hero__subtitle { font-size: 12px; max-width: 260px; }
  .pt-hero__cta { max-width: 100%; }
  .pt-hero__badges { margin-top: 16px; }
  .pt-hero__badge { font-size: 10px; padding: 4px 8px; }
}

@media (max-width: 980px) {
  .pt-hero__inner {
    padding-top: 40px;
    padding-bottom: 52px;
  }
}

@media (prefers-reduced-motion: reduce){
  .pt-btn { transition: none !important; }
}

/* ===== SERVICES PRO CARDS (две строки) ===== */
.svc-grid{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.svc-row{
  display: grid;
  gap: 18px;
}

.svc-row--primary{
  grid-template-columns: repeat(3, 1fr);
}

.svc-row--secondary{
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1000px){
  .svc-row--primary{ grid-template-columns: 1fr; }
  .svc-row--secondary{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px){
  .svc-row--secondary{ grid-template-columns: 1fr; }
}

.svc-card{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0,0,0,.45);
  transform: translateZ(0);
  transition: transform .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
}

.svc-card:hover{
  transform: translateY(-3px);
  border-color: rgba(191,158,69,.42);
}

.svc-card--primary{
  min-height: 300px;
}

.svc-card--primary .svc-cover{
  height: 200px;
}

.svc-card--primary .svc-body{
  padding: 18px 18px 16px;
}

.svc-card--primary .svc-title{
  font-size: 18px;
  margin-bottom: 10px;
}

.svc-card--primary .svc-list{
  font-size: 13px;
}

.svc-card--secondary{
  min-height: 0;
}

.svc-card--secondary .svc-cover{
  height: 100px;
}

.svc-card--secondary .svc-body{
  padding: 12px 14px 12px;
}

.svc-card--secondary .svc-title{
  font-size: 14px;
  margin-bottom: 6px;
}

.svc-card--secondary .svc-list{
  font-size: 12px;
}

.svc-cover{
  position: relative;
  background-size: cover;
  background-position: center;
  filter: saturate(.95) contrast(1.02);
  flex-shrink: 0;
}

.svc-cover::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,15,20,.20) 0%, rgba(11,15,20,.88) 100%);
}

/* Нижний ряд: индивидуальное кадрирование для каждой карточки */
.svc-card--tower .svc-cover {
  background-position: 50% 18%;
}
.svc-card--poseidon .svc-cover {
  background-position: 50% 42%;
}
.svc-card--supply .svc-cover {
  background-position: center 68%;
}
.svc-card--build .svc-cover {
  background-position: 50% 83%;
}

.svc-badge{
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(191,158,69,.92);
  color: #0b0f14;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}

.svc-badges{
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.svc-badges .svc-badge{
  position: static;
}

.svc-card--secondary .svc-badge,
.svc-card--secondary .svc-badges{
  display: none;
}

.svc-corner{
  position: absolute;
  right: 10px;
  top: 10px;
  width: 46px;
  height: 46px;
  border-right: 2px solid rgba(191,158,69,.60);
  border-top: 2px solid rgba(191,158,69,.60);
  opacity: .70;
}

.svc-card--secondary .svc-corner{
  width: 32px;
  height: 32px;
  right: 8px;
  top: 8px;
}

.svc-body{
  flex: 1;
  display: flex;
  flex-direction: column;
}

.svc-title{
  color: rgba(234,241,255,.92);
  letter-spacing: .01em;
  margin: 0;
}

.svc-list{
  margin: 0 0 10px;
  padding-left: 16px;
  color: rgba(234,241,255,.74);
  line-height: 1.5;
  flex: 1;
}

.svc-actions{
  margin-top: auto;
  display: flex;
  justify-content: flex-start;
}

.svc-link{
  border: 1px solid rgba(191,158,69,.28);
  background: rgba(191,158,69,.08);
  color: rgba(234,241,255,.88);
  border-radius: 12px;
  padding: 9px 12px;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.svc-link:hover{
  transform: translateY(-1px);
  background: rgba(191,158,69,.12);
  border-color: rgba(191,158,69,.42);
}

