/* ===== FONTS ===== */
@font-face { font-family: 'Rostelecom Basis'; src: url('fonts/RostelecomBasis-Light.otf') format('opentype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Rostelecom Basis'; src: url('fonts/RostelecomBasis-Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Rostelecom Basis'; src: url('fonts/RostelecomBasis-Medium.otf') format('opentype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Rostelecom Basis'; src: url('fonts/RostelecomBasis-Bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Rostelecom Basis', Arial, sans-serif; font-size: 16px; color: #101828; background: #fff; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== TOKENS ===== */
:root {
  --purple: #7700FF;
  --purple-dark: #5500CC;
  --purple-deep: #3d0099;
  --orange: #FF4F12;
  --orange-dark: #E03A00;
  --black: #101828;
  --grey-bg: #F4F6F8;
  --grey-border: #E3E8EC;
  --lavender: #E8D2ED;
  --blue-light: #749FD6;
  --white: #FFFFFF;
  --text-muted: #667085;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.13);
}

/* ===== LAYOUT ===== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section--white { background: #fff; padding: 80px 0; }
.section--grey  { background: var(--grey-bg); padding: 80px 0; }
.section--purple { background: var(--purple); padding: 80px 0; }

/* ===== TYPOGRAPHY ===== */
.section-title { font-size: 40px; font-weight: 700; color: var(--black); margin-bottom: 12px; line-height: 1.15; letter-spacing: -0.02em; }
.section-label { display: inline-block; border: 1.5px solid var(--grey-border); color: var(--text-muted); padding: 5px 14px; border-radius: 20px; font-size: 13px; font-weight: 500; letter-spacing: 0.2px; margin-bottom: 16px; }
.section-title--white { color: #fff; }
.section-sub  { font-size: 18px; color: var(--text-muted); margin-bottom: 48px; }
.section-sub--light { color: rgba(255,255,255,0.75); }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; flex-wrap: wrap; gap: 16px; }
.section-head-row .section-title { margin-bottom: 4px; }
.section-head-row .section-sub  { margin-bottom: 0; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 700;
  cursor: pointer; border: 2px solid transparent; transition: all 0.2s ease; white-space: nowrap;
}
.btn--orange  { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn--orange:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn--ghost   { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn--outline { background: transparent; color: var(--purple); border-color: var(--purple); }
.btn--outline:hover { background: var(--purple); color: #fff; }
.btn--lg { padding: 16px 32px; font-size: 16px; }

/* ===== LOGO ===== */
.logo__img { display: block; }
.logo__img--white { filter: brightness(0) invert(1); }

/* ===== HEADER ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--purple); padding: 0 0;
  transition: box-shadow 0.2s;
}
.header--scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.25); }
.header__inner { display: flex; align-items: center; gap: 32px; height: 76px; }
.logo { flex-shrink: 0; display: flex; align-items: center; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link { padding: 8px 14px; border-radius: 6px; color: rgba(255,255,255,0.85); font-size: 15px; font-weight: 500; line-height: 1; transition: all 0.15s; }
.nav__link:hover { color: #fff; background: rgba(255,255,255,0.12); }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: white; border-radius: 2px; transition: all 0.2s; }

/* ===== HERO ===== */
.hero { background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple) 60%, #9933FF 100%); padding: 80px 0 64px; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: center; }

/* Video hero */
.hero--video { position: relative; padding: 0; min-height: 600px; display: flex; align-items: center; background: var(--purple-deep); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; filter: grayscale(100%); }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.45) 60%, rgba(20,0,50,0.7) 100%); z-index: 1; }
.hero--video .hero__inner { position: relative; z-index: 2; padding: 80px 24px 64px; width: 100%; }
.hero__inner--centered { display: block; }
.hero__content--wide { max-width: 720px; }
.tag { display: inline-block; background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 20px; }
.hero__title { font-size: 52px; font-weight: 700; color: #fff; line-height: 1.1; margin-bottom: 20px; }
.hero__sub { font-size: 18px; color: rgba(255,255,255,0.8); margin-bottom: 36px; line-height: 1.6; max-width: 520px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero__stats { display: flex; gap: 56px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 36px; }
.stat { display: flex; flex-direction: column; }
.stat__n { font-size: 52px; font-weight: 700; color: #fff; line-height: 1; letter-spacing: -0.02em; }
.stat__l { font-size: 14px; color: rgba(255,255,255,0.6); margin-top: 8px; }
.hero__visual { display: flex; align-items: center; justify-content: center; }
.hero__robot-wrap { width: 380px; height: 380px; }
.hero__robot-svg { width: 100%; height: 100%; }

/* ===== PAIN POINTS ===== */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pain-card { background: #fff; border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.pain-card__icon { width: 48px; height: 48px; margin-bottom: 14px; }
.pain-card__icon svg { width: 48px; height: 48px; }
.pain-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.pain-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.55; }

.pains-list { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--grey-border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.pain-item { display: flex; gap: 20px; padding: 32px 28px; border-bottom: 1px solid var(--grey-border); }
.pain-item:nth-child(2n-1) { border-right: 1px solid var(--grey-border); }
.pain-item:nth-last-child(-n+2) { border-bottom: none; }
.pain-num { font-size: 44px; font-weight: 700; color: #D0D5DD; line-height: 1; flex-shrink: 0; width: 52px; }
.pain-item h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--black); }
.pain-item p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ===== SOLUTIONS ===== */
.ops-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.op-card { background: var(--grey-bg); border-radius: var(--radius); padding: 24px 20px; border: 1px solid var(--grey-border); transition: all 0.25s ease; cursor: default; }
.op-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--purple); background: #fff; }
.op-card ul { opacity: 0; margin-top: 12px; transition: opacity 0.25s ease; }
.op-card:hover ul { opacity: 1; }
.op-card__icon { width: 52px; height: 52px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.op-card__icon svg { width: 32px; height: 32px; }
.op-icon--weld  { background: var(--purple); }
.op-icon--pallet { background: #2E75B6; }
.op-icon--tend  { background: var(--purple-dark); }
.op-icon--qc    { background: #1a5276; }
.op-icon--asm   { background: var(--orange); }
.op-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.op-card p  { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.5; }
.op-card ul { padding: 0; }
.op-card li { font-size: 13px; color: var(--purple); font-weight: 600; padding: 2px 0; white-space: nowrap; }
.op-card li::before { content: "✓ "; }

/* ===== HOW WE WORK ===== */
.steps { display: grid; grid-template-columns: 1fr 32px 1fr 32px 1fr; gap: 0; align-items: stretch; }
.step { background: rgba(255,255,255,0.1); border-radius: var(--radius); padding: 32px 28px; border: 1px solid rgba(255,255,255,0.2); display: flex; flex-direction: column; }
.step__num { font-size: 48px; font-weight: 700; color: rgba(255,255,255,0.2); line-height: 1; margin-bottom: 12px; }
.step__badge { display: inline-block; background: var(--orange); color: white; padding: 5px 14px; border-radius: 20px; font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.step__title { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.step__desc { font-size: 14px; color: rgba(255,255,255,0.8); line-height: 1.6; margin-bottom: 16px; }
.step__list { padding: 0; }
.step__list li { font-size: 14px; color: rgba(255,255,255,0.85); padding: 4px 0; }
.step__list li::before { content: "→ "; color: var(--orange); }
.step__duration { margin-top: 20px; display: inline-block; border: 1px solid rgba(255,255,255,0.3); border-radius: 20px; padding: 5px 14px; font-size: 13px; color: rgba(255,255,255,0.7); }
.step__arrow { display: flex; align-items: center; justify-content: center; font-size: 28px; color: rgba(255,255,255,0.4); padding-top: 80px; }

/* ===== PURCHASE MODELS ===== */
.models-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.model-card { background: var(--grey-bg); border-radius: var(--radius); padding: 28px 24px; border: 2px solid var(--grey-border); position: relative; }
.model-card--accent { background: var(--purple); border-color: var(--purple); color: #fff; border-radius: var(--radius) 0 var(--radius) var(--radius); }
.model-card--accent::before { content: ''; position: absolute; top: 0; right: 0; width: 44px; height: 44px; background: #fff; clip-path: polygon(0 0, 100% 0, 100% 100%); z-index: 1; pointer-events: none; }
.model-card--accent h3, .model-card--accent p, .model-card--accent li { color: #fff !important; }
.model-card--accent .model-card__sub { color: rgba(255,255,255,0.7); }
.model-card--accent ul li::before { content: "✓ "; color: #fff !important; font-weight: 700; }
.model-card--gov { border-color: #27AE60; }
.model-card__tag { position: absolute; top: -12px; left: 20px; background: var(--orange); color: white; padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: 700; }
.model-card__tag--green { background: #27AE60; }
.model-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 4px; margin-top: 8px; }
.model-card__sub { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.model-card p { font-size: 14px; color: var(--text-muted); line-height: 1.55; margin-bottom: 14px; }
.model-card ul li { font-size: 14px; color: var(--black); padding: 3px 0; }
.model-card ul li::before { content: "✓ "; color: var(--purple); font-weight: 700; }

/* ===== CASES ===== */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
/* На средних ширинах карточки кейсов в 3 колонки становятся слишком узкими —
   статы переносятся; переходим на 2 колонки раньше остальных сеток */
@media (max-width: 1220px) {
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
}
.case-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--grey-border); box-shadow: var(--shadow); transition: all 0.2s; display: flex; flex-direction: column; }
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--purple); }
.case-card__img { height: 180px; display: flex; align-items: flex-end; padding: 16px; position: relative; }
.case-img--weld-truss { background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.65) 100%), url('images/case-welding-truss.jpg') center/cover no-repeat; }
.case-img--weld-multi { background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.65) 100%), url('images/case-welding-multi.jpg') center/cover no-repeat; }
.case-img--plasma     { background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.65) 100%), url('images/case-plasma-cut.jpg') center/cover no-repeat; }
.case-img--mill       { background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.65) 100%), url('images/case-milling-kuka.jpg') center/cover no-repeat; }
.case-img--elteza     { background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.65) 100%), url('images/cases/case-elteza.jpeg') center/cover no-repeat; }
.case-img--dikom      { background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.65) 100%), url('images/cases/case-dikom.jpeg') center/cover no-repeat; }
.case-img--bike       { background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.75) 100%), url('images/cases/case1_img5.jpg') center/cover no-repeat; }
.case-tag { background: var(--orange); color: #fff; padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: 700; }
.case-card__img { flex-shrink: 0; }
.case-card__body { padding: 20px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.case-card__industry { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.case-card__body h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; line-height: 1.3; color: var(--black); }
.case-card__body p  { font-size: 14px; color: var(--text-muted); line-height: 1.55; margin-bottom: 16px; }
.case-stats { display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; border-top: 1px solid var(--grey-border); padding-top: 16px; margin-top: auto; }
.case-stat:last-child { text-align: right; }
.case-stat:first-child { text-align: left; }
.case-stat { font-size: 13px; color: var(--text-muted); }
.case-stat span { display: block; font-size: 20px; font-weight: 700; color: var(--purple); line-height: 1.2; }
.case-stat span.stat-txt { font-size: 15px; line-height: 1.25; padding-top: 5px; }

/* ===== WHY ===== */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--grey-border); border-radius: var(--radius); overflow: hidden; }
.why-card { padding: 36px 32px; background: #fff; border-right: 1px solid var(--grey-border); border-bottom: 1px solid var(--grey-border); }
.why-card:nth-child(3n) { border-right: none; }
.why-card:nth-child(n+4) { border-bottom: none; }
.why-card__icon { display: none; }
.why-card__kpi { font-size: 44px; font-weight: 700; color: var(--purple); line-height: 1; margin-bottom: 10px; letter-spacing: -0.02em; }
.why-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--black); }
.why-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ===== CONTACT ===== */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.contact__inner--simple { align-items: center; }
.contact__left h2 { font-size: 36px; font-weight: 700; color: #fff; margin-bottom: 16px; line-height: 1.2; }
.contact__left p  { font-size: 17px; color: rgba(255,255,255,0.8); line-height: 1.6; }
.contact__links { display: flex; flex-direction: column; gap: 20px; }
.contact__link { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.contact__link-label { font-size: 13px; color: rgba(255,255,255,0.55); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.contact__link-val { font-size: 26px; font-weight: 700; color: #fff; transition: color 0.2s; }
.contact__link:hover .contact__link-val { color: var(--orange); }
.contact__promises { padding: 0; }
.contact__promises li { color: rgba(255,255,255,0.9); font-size: 15px; padding: 6px 0; }
.contact__form { background: #fff; border-radius: var(--radius); padding: 36px 32px; }
.form-row { display: flex; gap: 16px; margin-bottom: 16px; }
.form-row--between { justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.form-input { width: 100%; padding: 13px 16px; border: 1.5px solid var(--grey-border); border-radius: var(--radius-sm); font-size: 15px; font-family: Arial, sans-serif; color: var(--black); background: #fff; transition: border-color 0.2s; }
.form-input:focus { outline: none; border-color: var(--purple); }
.form-input::placeholder { color: #aaa; }
textarea.form-input { resize: vertical; min-height: 74px; }
/* Honeypot-поле против ботов: реальный пользователь его не видит и не заполняет */
.form-hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { margin-top: 20px; font-size: 12px; color: var(--text-muted); line-height: 1.45; }
.form-note a { color: var(--orange); text-decoration: none; }
.form-note a:hover { text-decoration: underline; }
.form-success { margin-top: 14px; font-size: 14px; font-weight: 600; color: #1a9e4b; text-align: center; }
.form-textarea { resize: vertical; min-height: 80px; margin-bottom: 16px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; max-width: 280px; }
.form-check input { margin-top: 3px; accent-color: var(--purple); flex-shrink: 0; }
.form-check span { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.form-success { margin-top: 16px; background: #edfdf5; color: #166534; border-radius: var(--radius-sm); padding: 14px 18px; font-size: 15px; font-weight: 600; }

/* ===== FOOTER ===== */
.footer { background: var(--purple-deep); color: rgba(255,255,255,0.8); }
.footer__inner { display: grid; grid-template-columns: 260px 1fr; gap: 64px; padding: 56px 24px 40px; }
.footer__brand p { font-size: 14px; color: rgba(255,255,255,0.6); margin-top: 16px; line-height: 1.6; max-width: 220px; }
.footer__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col-title { font-weight: 700; color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.footer__col a { font-size: 14px; color: rgba(255,255,255,0.65); transition: color 0.15s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-top: 1px solid rgba(255,255,255,0.1); flex-wrap: wrap; gap: 16px; }
.footer__bottom p  { font-size: 13px; color: rgba(255,255,255,0.45); }
.footer__links { display: flex; gap: 24px; }
.footer__links a  { font-size: 13px; color: rgba(255,255,255,0.45); transition: color 0.15s; }
.footer__links a:hover { color: rgba(255,255,255,0.8); }

/* Подсказки к специальным терминам */
.term { border-bottom: 1px dotted currentColor; cursor: help; position: relative; }
.term::after {
  content: attr(data-tip);
  position: absolute; left: 0; bottom: calc(100% + 8px);
  background: var(--black); color: #fff;
  font-size: 12px; font-weight: 400; line-height: 1.5; letter-spacing: normal;
  padding: 8px 12px; border-radius: 8px;
  width: max-content; max-width: 250px; white-space: normal; text-align: left;
  opacity: 0; visibility: hidden; transition: opacity 0.15s ease;
  pointer-events: none; z-index: 60;
}
.term:hover::after { opacity: 1; visibility: visible; }

/* На устройствах без hover списки в карточках видны сразу */
@media (hover: none) {
  .op-card ul { opacity: 1; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .ops-grid { grid-template-columns: repeat(3, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .hero__title { font-size: 42px; }
}

@media (max-width: 900px) {
  .section-title { font-size: 28px; }
  .steps { grid-template-columns: 1fr; }
  .step__arrow { display: none; }
  .cards-4, .models-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  /* why-grid: reset to individual cards at tablet */
  .why-grid { gap: 20px; border: none; border-radius: 0; }
  .why-card { border-radius: var(--radius); border: 1px solid var(--grey-border) !important; background: var(--grey-bg); grid-column: span 1; }
  .why-card:nth-child(3n) { border-right: 1px solid var(--grey-border) !important; }
  .why-card:nth-child(n+4) { border-bottom: 1px solid var(--grey-border) !important; }
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__nav { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero__title { font-size: 32px; }
  .hero__sub { font-size: 16px; }
  .cards-4, .models-grid, .cases-grid, .why-grid, .ops-grid, .pains-list { grid-template-columns: 1fr; }
  .pains-list { border: none; }
  .pain-item { border-right: none !important; border-bottom: 1px solid var(--grey-border) !important; }
  .pain-item:last-child { border-bottom: none !important; }
  .form-row { flex-direction: column; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--purple-dark); flex-direction: column; padding: 16px; gap: 4px; }
  .nav--open { display: flex; }
  .burger { display: flex; margin-left: auto; }
  .header__inner .btn--orange { display: none; }
  .footer__nav { grid-template-columns: 1fr; }
}
