/* ============================================================
   УСЛУГИ — uslugi.css
   Дополняет /style.css, не дублирует общие правила
   ============================================================ */

/* ── PAGE HERO ───────────────────────────────────────────── */
.page-hero {
  position: relative;
  padding-block: calc(68px + 4rem) 4rem;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.4) saturate(.5);
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 100% at 10% 60%, rgba(8,17,30,.95) 0%, transparent 70%),
    linear-gradient(to bottom, rgba(8,17,30,.2) 0%, rgba(8,17,30,.8) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

/* Breadcrumb */
.breadcrumb { margin-bottom: 1.25rem; }
.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  list-style: none;
}
.breadcrumb li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: var(--clr-muted);
}
.breadcrumb li + li::before {
  content: '/';
  color: rgba(138,155,180,.4);
}
.breadcrumb a {
  color: var(--clr-muted);
  transition: color 180ms ease;
}
.breadcrumb a:hover { color: var(--clr-accent); }
.breadcrumb [aria-current="page"] { color: var(--clr-accent); }

.page-hero h1 {
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 24px rgba(0,0,0,.5);
  animation: hero-enter .9s cubic-bezier(.22,1,.36,1) .1s both;
}
.page-hero-sub {
  font-size: 1.05rem;
  color: rgba(238,242,247,.72);
  max-width: 560px;
  animation: hero-enter .9s cubic-bezier(.22,1,.36,1) .25s both;
}

/* ── SERVICES OVERVIEW GRID ──────────────────────────────── */
.srv-overview {
  padding-block: var(--sp-2xl);
  background: var(--clr-surface);
}

.ov-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-sm);
}

.ov-card {
  background: var(--clr-elevated);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 260ms var(--ease-spring),
              box-shadow 260ms var(--ease-spring),
              border-color 180ms ease,
              opacity .65s var(--ease-out);
}
.ov-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 4px 10px rgba(0,0,0,.45),
    0 18px 36px rgba(0,0,0,.3),
    0 0 0 1px rgba(232,151,26,.15);
  border-color: rgba(232,151,26,.15);
}

.ov-card-link {
  display: flex;
  flex-direction: column;
  padding: var(--sp-md);
  height: 100%;
  border-radius: var(--radius-lg);
}
.ov-card-link:focus-visible {
  outline: 3px solid var(--clr-accent);
  outline-offset: 2px;
}

.ov-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(232,151,26,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-sm);
  transition: background 180ms ease;
}
.ov-card:hover .ov-icon { background: rgba(232,151,26,.18); }

.ov-card h3 { margin-bottom: .4rem; font-size: 1.05rem; }
.ov-card p  { font-size: .88rem; color: var(--clr-muted); flex: 1; margin-bottom: .75rem; }

.ov-arrow {
  align-self: flex-start;
  color: var(--clr-accent);
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform 220ms var(--ease-spring);
}
.ov-card:hover .ov-arrow { transform: translateX(4px); }

/* ── SERVICE DETAIL SECTIONS ─────────────────────────────── */
.srv-detail {
  padding-block: var(--sp-2xl);
  background: var(--clr-bg);
}
.srv-detail--alt { background: var(--clr-surface); }

.srv-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: start;
}
.srv-detail-inner--rev { direction: rtl; }
.srv-detail-inner--rev > * { direction: ltr; }

.srv-detail-img figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(0,0,0,.45),
    0 0 0 1px rgba(255,255,255,.06);
}
.srv-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4/3;
  transition: transform 500ms cubic-bezier(.22,1,.36,1);
}
.srv-detail-img:hover img { transform: scale(1.03); }

.detail-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--clr-accent);
  background: rgba(232,151,26,.1);
  border: 1px solid rgba(232,151,26,.25);
  padding: .25rem .75rem;
  border-radius: 2rem;
  margin-bottom: .75rem;
}

.srv-detail-text h2 { margin-bottom: var(--sp-sm); }
.srv-detail-text p  { color: var(--clr-muted); margin-bottom: var(--sp-sm); font-size: .95rem; }

.detail-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-block: var(--sp-md);
}
.detail-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .88rem;
  color: var(--clr-muted);
}
.detail-list li::before {
  content: '';
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: .25rem;
  border-radius: 50%;
  background: rgba(232,151,26,.12)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 5l2.5 2.5L8 3' stroke='%23E8971A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E")
    no-repeat center;
  border: 1px solid rgba(232,151,26,.35);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  margin-block: var(--sp-md);
  padding: var(--sp-md);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
}
.meta-item {
  display: flex;
  flex-direction: column;
  min-width: 80px;
}
.meta-val {
  font-family: var(--ff-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-accent);
  line-height: 1.2;
}
.meta-key {
  font-size: .72rem;
  color: var(--clr-muted);
  margin-top: .15rem;
}

/* ── TYPES / CARDS ───────────────────────────────────────── */
.types-section {
  padding-block: var(--sp-2xl);
  background: var(--clr-surface);
  position: relative;
}
.types-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(232,151,26,.05) 0%, transparent 65%);
  pointer-events: none;
}

.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-md);
}

.type-card {
  background: var(--clr-elevated);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-md);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  transition: transform 260ms var(--ease-spring),
              box-shadow 260ms var(--ease-spring),
              border-color 180ms ease,
              opacity .65s var(--ease-out);
}
.type-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 4px 10px rgba(0,0,0,.45),
    0 18px 36px rgba(0,0,0,.3),
    0 0 0 1px rgba(232,151,26,.15);
  border-color: rgba(232,151,26,.15);
}

.type-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.type-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(232,151,26,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.type-header h3 { flex: 1; margin: 0; font-size: 1rem; }

.type-badge {
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .2rem .55rem;
  border-radius: 2rem;
  background: rgba(232,151,26,.15);
  color: var(--clr-accent);
  border: 1px solid rgba(232,151,26,.3);
  white-space: nowrap;
}
.type-badge--neutral { background: rgba(138,155,180,.12); color: var(--clr-muted); border-color: rgba(138,155,180,.25); }
.type-badge--blue    { background: rgba(100,180,255,.1);  color: #7ec8f4;          border-color: rgba(100,180,255,.25); }

.type-card > p { font-size: .9rem; color: var(--clr-muted); }

.type-pros {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  flex: 1;
}
.type-pros li {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .85rem;
  color: var(--clr-muted);
}
.type-pros li::before {
  content: '✓';
  color: var(--clr-accent);
  font-weight: 700;
  font-size: .8rem;
  margin-top: .15rem;
  flex-shrink: 0;
}

.type-note {
  font-size: .78rem;
  color: rgba(138,155,180,.7);
  border-top: 1px solid var(--clr-border);
  padding-top: var(--sp-sm);
  margin-top: auto;
}

/* ── EQUIPMENT / BRANDS ──────────────────────────────────── */
.equipment {
  padding-block: var(--sp-2xl);
  background: var(--clr-bg);
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-md);
  margin-bottom: var(--sp-lg);
}

.brand-card {
  background: var(--clr-elevated);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-md);
  box-shadow: var(--shadow-card);
  transition: transform 260ms var(--ease-spring),
              border-color 180ms ease,
              opacity .65s var(--ease-out);
}
.brand-card:hover {
  transform: translateY(-3px);
  border-color: rgba(232,151,26,.18);
}

.brand-logo {
  height: 40px;
  margin-bottom: var(--sp-sm);
  display: flex;
  align-items: center;
}
.brand-logo svg { height: 40px; width: auto; }
.brand-card p { font-size: .88rem; color: var(--clr-muted); }

.eq-note {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  background: rgba(232,151,26,.06);
  border: 1px solid rgba(232,151,26,.18);
  border-radius: var(--radius-md);
  padding: var(--sp-md);
}
.eq-note svg { flex-shrink: 0; margin-top: .2rem; }
.eq-note p { font-size: .9rem; color: var(--clr-muted); }

/* ── PROCESS STEPS ───────────────────────────────────────── */
.process {
  padding-block: var(--sp-2xl);
  background: var(--clr-surface);
  position: relative;
}
.process::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 100% 50%, rgba(232,151,26,.05) 0%, transparent 65%);
  pointer-events: none;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-md);
  list-style: none;
  counter-reset: none;
}

.process-step {
  display: flex;
  gap: var(--sp-sm);
  background: var(--clr-elevated);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-md);
  box-shadow: var(--shadow-card);
  transition: transform 260ms var(--ease-spring),
              border-color 180ms ease,
              opacity .65s var(--ease-out);
}
.process-step:hover {
  transform: translateY(-3px);
  border-color: rgba(232,151,26,.15);
}

.step-num {
  font-family: var(--ff-head);
  font-size: 2rem;
  font-weight: 700;
  color: rgba(232,151,26,.25);
  line-height: 1;
  min-width: 2.5rem;
  padding-top: .1rem;
  transition: color 180ms ease;
}
.process-step:hover .step-num { color: rgba(232,151,26,.55); }

.step-body h3 { font-size: 1rem; margin-bottom: .4rem; }
.step-body p  { font-size: .88rem; color: var(--clr-muted); }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq { padding-block: var(--sp-2xl); background: var(--clr-bg); }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  max-width: 800px;
  margin-inline: auto;
}

.faq-item {
  background: var(--clr-elevated);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 180ms ease;
}
.faq-item[open] { border-color: rgba(232,151,26,.22); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  padding: var(--sp-md);
  cursor: pointer;
  font-weight: 600;
  font-size: .95rem;
  list-style: none;
  user-select: none;
  transition: color 180ms ease;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { color: var(--clr-accent); }
.faq-question:focus-visible { outline: 2px solid var(--clr-accent); outline-offset: -2px; }

.faq-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--clr-muted);
  position: relative;
  transition: transform 260ms var(--ease-spring),
              border-color 180ms ease;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 1.5px;
  background: var(--clr-muted);
  border-radius: 2px;
  translate: -50% -50%;
  transition: transform 260ms var(--ease-spring),
              opacity 180ms ease,
              background 180ms ease;
}
.faq-icon::after { rotate: 90deg; }

.faq-item[open] .faq-icon {
  border-color: var(--clr-accent);
  transform: rotate(45deg);
}
.faq-item[open] .faq-icon::before,
.faq-item[open] .faq-icon::after { background: var(--clr-accent); }

.faq-answer {
  padding: 0 var(--sp-md) var(--sp-md);
  border-top: 1px solid var(--clr-border);
}
.faq-answer p { font-size: .9rem; color: var(--clr-muted); padding-top: var(--sp-sm); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .srv-detail-inner,
  .srv-detail-inner--rev { grid-template-columns: 1fr; direction: ltr; }
  .srv-detail-inner--rev > * { direction: ltr; }
}

@media (max-width: 600px) {
  .ov-grid        { grid-template-columns: 1fr; }
  .types-grid     { grid-template-columns: 1fr; }
  .brands-grid    { grid-template-columns: 1fr 1fr; }
  .process-steps  { grid-template-columns: 1fr; }
  .detail-meta    { gap: var(--sp-sm); }
}

@media (max-width: 400px) {
  .brands-grid { grid-template-columns: 1fr; }
}
