/* =============================================================
   DEVOPS.CSS — страница DevOps-команды
   ============================================================= */

/* HERO — общие стили переиспользуем из hardware.css,
   здесь только переопределяем фон */
.hero {
  position:        relative;
  min-height:      60vh;
  display:         flex;
  flex-direction:  column;
  justify-content: flex-end;
  padding:         var(--header-h) var(--page-px) 72px;
  overflow:        hidden;
}
.hero-bg {
  position:            absolute;
  inset:               0;
  background-image:    url('/assets/img/dir-devops.jpg');
  background-size:     cover;
  background-position: center;
  filter:              brightness(0.2);
}
.hero-bg::after {
  content:    '';
  position:   absolute;
  inset:      0;
  background: linear-gradient(to top, var(--bg) 0%, transparent 65%);
}
.hero-grid {
  position:         absolute;
  inset:            0;
  background-image:
    linear-gradient(rgba(0,200,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
}
.hero-content { position: relative; z-index: 2; }

.breadcrumb {
  font-size:      11px;
  font-weight:    400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color:          rgba(255,255,255,0.3);
  margin-bottom:  20px;
  opacity:        0;
  animation:      fadeUp 0.7s 0.1s forwards;
}
.breadcrumb a       { color: rgba(255,255,255,0.3); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span    { color: rgba(255,255,255,0.5); margin: 0 8px; }

.hero-title {
  font-family:    var(--font-display);
  font-size:      clamp(64px, 9vw, 128px);
  line-height:    0.92;
  letter-spacing: 0.02em;
  color:          var(--white);
  margin-bottom:  24px;
  opacity:        0;
  animation:      fadeUp 0.9s 0.25s forwards;
  hyphens:        none;
  word-break:     keep-all;
}
.hero-title em { color: var(--accent); font-style: normal; }

.hero-sub {
  font-size:   16px;
  font-weight: 300;
  color:       rgba(255,255,255,0.45);
  max-width:   560px;
  line-height: 1.75;
  opacity:     0;
  animation:   fadeUp 0.9s 0.4s forwards;
}

/* SERVICES */
.services {
  padding:    var(--section-py) var(--page-px);
  background: var(--bg);
}
.services-header {
  display:         flex;
  align-items:     flex-end;
  justify-content: space-between;
  margin-bottom:   72px;
}
.services-title {
  font-family:    var(--font-display);
  font-size:      clamp(44px, 5.5vw, 80px);
  line-height:    0.95;
  letter-spacing: 0.02em;
  hyphens:        none;
  word-break:     keep-all;
}
.services-desc {
  max-width:   340px;
  font-size:   14px;
  color:       rgba(255,255,255,0.35);
  line-height: 1.7;
  text-align:  right;
}

.service-blocks {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   2px;
}
.service-block {
  background:  var(--gray3);
  padding:     48px;
  position:    relative;
  overflow:    hidden;
  transition:  background 0.25s;
}
.service-block::before {
  content:          '';
  position:         absolute;
  top: 0; left: 0; right: 0;
  height:           2px;
  background:       var(--accent);
  transform:        scaleX(0);
  transform-origin: left;
  transition:       transform 0.4s ease;
}
.service-block:hover            { background: #282832; }
.service-block:hover::before    { transform: scaleX(1); }

.service-block-num {
  font-family: var(--font-display);
  font-size:   96px;
  color:       rgba(0,200,255,0.05);
  line-height: 1;
  position:    absolute;
  top: 24px; right: 36px;
  transition:  color 0.3s;
  user-select: none;
}
.service-block:hover .service-block-num { color: rgba(0,200,255,0.1); }

.service-block-title {
  font-family:    var(--font-display);
  font-size:      36px;
  letter-spacing: 0.04em;
  color:          var(--white);
  margin-bottom:  16px;
  line-height:    1.05;
  hyphens:        none;
  word-break:     keep-all;
  position:       relative;
  z-index:        1;
}
.service-block-desc {
  font-size:   14px;
  font-weight: 300;
  color:       rgba(255,255,255,0.45);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width:   480px;
  position:    relative;
  z-index:     1;
}
.service-block-stack {
  position:    relative;
  z-index:     1;
  border-top:  1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
}
.stack-label {
  font-size:      9px;
  font-weight:    500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color:          rgba(255,255,255,0.2);
  margin-bottom:  14px;
}
.stack-items { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-item {
  font-size:      12px;
  font-weight:    400;
  color:          rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
  padding:        5px 12px;
  border:         1px solid rgba(255,255,255,0.08);
  transition:     color 0.2s, border-color 0.2s;
}
.service-block:hover .stack-item { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.15); }
.stack-item.hi { color: rgba(0,200,255,0.7); border-color: rgba(0,200,255,0.2); }

/* PROCESS */
.process {
  padding:       var(--section-py) var(--page-px);
  background:    var(--bg2);
  border-top:    1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.process-header {
  display:         flex;
  align-items:     flex-end;
  justify-content: space-between;
  margin-bottom:   72px;
}
.process-title {
  font-family:    var(--font-display);
  font-size:      clamp(44px, 5.5vw, 80px);
  line-height:    0.95;
  letter-spacing: 0.02em;
  hyphens:        none;
  word-break:     keep-all;
}
.process-desc {
  max-width:   340px;
  font-size:   14px;
  color:       rgba(255,255,255,0.35);
  line-height: 1.7;
  text-align:  right;
}
.process-steps {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  gap:                   2px;
}
.process-step {
  background: var(--gray3);
  padding:    40px 36px;
  position:   relative;
  overflow:   hidden;
}
.process-step-num {
  font-family:   var(--font-display);
  font-size:     72px;
  color:         rgba(0,200,255,0.06);
  line-height:   1;
  margin-bottom: 20px;
  user-select:   none;
}
.process-step-title {
  font-family:    var(--font-display);
  font-size:      26px;
  letter-spacing: 0.04em;
  color:          var(--white);
  margin-bottom:  14px;
  line-height:    1.1;
  hyphens:        none;
  word-break:     keep-all;
}
.process-step-text {
  font-size:   13px;
  font-weight: 300;
  color:       rgba(255,255,255,0.4);
  line-height: 1.65;
}
.process-step-line {
  position:   absolute;
  bottom: 0; left: 0; right: 0;
  height:     2px;
  background: var(--accent);
  opacity:    0;
  transition: opacity 0.3s;
}
.process-step:hover .process-step-line { opacity: 1; }

/* WHY */
.why { padding: var(--section-py) var(--page-px); background: var(--bg); }
.why-inner {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   80px;
  align-items:           center;
}
.why-title {
  font-family:    var(--font-display);
  font-size:      clamp(44px, 5.5vw, 80px);
  line-height:    0.95;
  letter-spacing: 0.02em;
  margin-bottom:  24px;
  hyphens:        none;
  word-break:     keep-all;
}
.why-title em  { color: var(--accent); font-style: normal; }
.why-text {
  font-size:     15px;
  color:         rgba(255,255,255,0.45);
  line-height:   1.75;
  margin-bottom: 36px;
}
.why-cta {
  display:        inline-flex;
  align-items:    center;
  gap:            12px;
  font-size:      13px;
  font-weight:    500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:          var(--bg);
  background:     var(--accent);
  text-decoration: none;
  padding:        16px 32px;
  transition:     background 0.2s, gap 0.2s;
  cursor:         none;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.why-cta:hover  { background: var(--accent-hover); gap: 18px; }
.why-cta::after { content: '→'; }

.why-facts {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   2px;
}
.why-fact {
  background: var(--gray3);
  padding:    36px;
  position:   relative;
}
.why-fact::before {
  content:    '';
  position:   absolute;
  top: 0; left: 0;
  width:      2px;
  height:     100%;
  background: var(--accent);
  opacity:    0.4;
}
.why-fact-num {
  font-family:   var(--font-display);
  font-size:     44px;
  color:         var(--white);
  line-height:   1;
  margin-bottom: 8px;
  hyphens:       none;
}
.why-fact-num em { color: var(--accent); font-style: normal; }
.why-fact-text {
  font-size:      12px;
  font-weight:    400;
  color:          rgba(255,255,255,0.35);
  line-height:    1.55;
  letter-spacing: 0.04em;
}

/* CONTACT — переопределяем фоновое слово */
.contact::before { content: 'DEVOPS'; }

/* =============================================================
   АДАПТИВ
   ============================================================= */
@media (max-width: 1024px) {
  .services-header  { flex-direction: column; align-items: flex-start; gap: 16px; }
  .services-desc    { text-align: left; max-width: 100%; }
  .service-blocks   { grid-template-columns: 1fr; }
  .service-block-num { font-size: 64px; }
  .process-header   { flex-direction: column; align-items: flex-start; gap: 16px; }
  .process-desc     { text-align: left; max-width: 100%; }
  .process-steps    { grid-template-columns: repeat(2, 1fr); }
  .why-inner        { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .hero             { min-height: 70vh; }
  .hero-title       { font-size: clamp(36px, 11vw, 64px); word-break: break-word; overflow-wrap: break-word; hyphens: auto; }
  .service-block    { padding: 32px 24px; }
  .service-block-num { display: none; }
  .service-block-title { font-size: 28px; }
  .process-steps    { grid-template-columns: 1fr; }
  .process-step     { padding: 28px 24px; }
  .why-facts        { grid-template-columns: 1fr; }
  .why-fact         { padding: 24px; }
  .why-cta          { cursor: pointer; }
}
