/* =========================================================
   Новые кабельные решения — style.css
   Design tokens
========================================================= */
:root{
  --bg:        #F6F7F4;
  --panel:     #FFFFFF;
  --ink:       #16201C;
  --ink-soft:  #47584F;
  --line:      #DDE1DA;
  --line-strong: #C4CABF;
  --green:     #0C7A34;
  --green-deep:#095C27;
  --orange:    #E1690C;
  --orange-deep:#B8540A;
  --steel:     #47586B;

  --font-display: "IBM Plex Sans Condensed", "IBM Plex Sans", Arial, sans-serif;
  --font-body:    "IBM Plex Sans", Arial, sans-serif;

  --container: 1180px;
  --radius: 6px;
  --header-h: 108px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a{ color: inherit; }

h1,h2,h3{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  letter-spacing: 0.01em;
}

p{ margin: 0 0 1em; }
p:last-child{ margin-bottom: 0; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible{
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* -------------------- Header -------------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,247,244,0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
  flex: 1 1 auto;
}
.brand img{ height: 80px; width: 80px; flex: none; }
.brand-name{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.brand-name small{
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.main-nav{
  display: flex;
  align-items: center;
  gap: 36px;
}
.main-nav a{
  text-decoration: none;
  font-size: 15px;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover{ color: var(--ink); }
.main-nav a::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}
.main-nav a:hover::after{ transform: scaleX(1); }

.nav-toggle{
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg{ width: 20px; height: 20px; }

/* -------------------- Buttons -------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, opacity .15s ease;
}
.btn-primary{
  background: var(--green);
  color: #fff;
}
.btn-primary:hover{ background: var(--green-deep); }
.btn-secondary{
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover{ border-color: var(--ink); }
.btn:disabled{
  opacity: .45;
  cursor: not-allowed;
}
.btn-primary:disabled:hover{ background: var(--green); }

/* -------------------- Hero -------------------- */
.hero{
  padding: 88px 0 96px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero .container{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow{
  font-size: 14px;
  color: var(--steel);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before{
  content:"";
  width: 28px; height: 1px;
  background: var(--orange);
  display: inline-block;
}
.hero h1{
  font-size: clamp(32px, 4.4vw, 50px);
  max-width: 15ch;
  margin-bottom: 20px;
}
.hero-lede{
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 14px;
}
.hero-sub{
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 50ch;
  margin-bottom: 32px;
}
.hero-cta{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-art{ width: 100%; height: auto; }

/* -------------------- Section shell -------------------- */
.section{
  padding: 84px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: var(--header-h);
}
.section-head{
  max-width: 640px;
  margin-bottom: 48px;
}
.section-label{
  font-size: 13px;
  color: var(--orange-deep);
  font-weight: 600;
  margin-bottom: 10px;
}
.section-head h2{
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 12px;
}
.section-head p{
  color: var(--ink-soft);
  font-size: 16px;
}

/* -------------------- Services (numbered process) -------------------- */
.process{
  position: relative;
}
.process-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.process-item{
  position: relative;
  padding: 8px 32px 8px 0;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.process-item + .process-item{
  border-left: 1px solid var(--line);
  padding-left: 32px;
}
.process-index{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.process-index .num{
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 50%;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.process-index .connector{
  height: 1px;
  flex: 1;
  background: repeating-linear-gradient(to right, var(--line-strong) 0 4px, transparent 4px 9px);
}
.process-item:last-child .process-index .connector{ display:none; }
.process-icon{
  width: 30px; height: 30px;
  color: var(--green);
  margin-bottom: 14px;
}
.process-item h3{
  font-size: 19px;
  margin-bottom: 8px;
}
.process-item p{
  color: var(--ink-soft);
  font-size: 15px;
}

/* -------------------- Industries grid -------------------- */
.industries-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.industry-card{
  padding: 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.industry-icon{
  width: 28px; height: 28px;
  color: var(--orange);
  margin-bottom: 16px;
}
.industry-card h3{
  font-size: 18px;
  margin-bottom: 6px;
}
.industry-card p{
  color: var(--ink-soft);
  font-size: 14.5px;
}

/* -------------------- Contact -------------------- */
.contact-grid{
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}
.contact-info-list{
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-info-list li{
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
}
.contact-info-list .ci-icon{
  width: 26px; height: 26px;
  flex: none;
  color: var(--green);
  margin-top: 2px;
}
.contact-info-list img.ci-icon{ border-radius: 4px; }
.contact-info-list a{ text-decoration: none; }
.contact-info-list a:hover{ color: var(--green); }
.schedule-lines{ display: flex; flex-direction: column; gap: 2px; }
.schedule-lines span b{ font-weight: 600; }

.contact-form{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.form-row{ margin-bottom: 18px; }
.form-row label{
  display: block;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.form-row input,
.form-row textarea{
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 11px 13px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease;
}
.form-row input:focus,
.form-row textarea:focus{
  border-color: var(--green);
}
.form-row textarea{ resize: vertical; min-height: 96px; }

.form-row input.is-invalid{
  border-color: #B3261E;
}
.field-error{
  display: block;
  min-height: 16px;
  font-size: 12.5px;
  color: #B3261E;
  margin-top: 4px;
}

.form-check{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.form-check input{ margin-top: 3px; flex: none; }
.form-check a{ color: var(--green); text-decoration: underline; }

.form-row-captcha{
  margin-bottom: 18px;
  overflow: hidden; /* на случай узкого экрана — без видимой полосы прокрутки */
}
.recaptcha-inner{
  transform-origin: 0 0;
  display: inline-block;
}

.form-foot{
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}
.form-status{
  font-size: 14px;
}
.form-status[data-state="ok"]{ color: var(--green); }
.form-status[data-state="error"]{ color: #B3261E; }

.hp-field{ position: absolute; left: -9999px; opacity: 0; }

/* -------------------- Footer -------------------- */
.site-footer{
  background: var(--ink);
  color: #DCE3DC;
  padding: 56px 0 28px;
}
.footer-top{
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 0.9fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-brand img{ height: 68px; width: 68px; }
.footer-brand span{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: #fff;
}
.footer-col h4{
  font-family: var(--font-body);
  font-size: 13px;
  color: #97A69C;
  font-weight: 500;
  margin: 0 0 14px;
}
.footer-legal{
  font-size: 13.5px;
  color: #AEB9AE;
  line-height: 1.7;
}
.footer-links{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a{
  text-decoration: none;
  font-size: 14.5px;
  color: #DCE3DC;
}
.footer-links a:hover{ color: var(--orange); }
.footer-bottom{
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #8B988E;
}

/* -------------------- Simple legal pages -------------------- */
.legal-page{
  padding: 56px 0 88px;
}
.legal-page h1{
  font-size: clamp(26px, 3.4vw, 36px);
  margin-bottom: 8px;
}
.legal-updated{
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 40px;
}
.legal-body h2{
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  margin: 36px 0 12px;
}
.legal-body h2:first-child{ margin-top: 0; }
.legal-body p, .legal-body li{
  color: var(--ink-soft);
  font-size: 15.5px;
}
.legal-body ul, .legal-body ol{
  padding-left: 22px;
}
.legal-body li{ margin-bottom: 8px; }
.legal-body a{ color: var(--green); }
.legal-body strong{ color: var(--ink); }
.legal-body{ max-width: 74ch; }
.back-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  text-decoration: none;
  color: var(--green);
  font-size: 15px;
}

/* -------------------- Responsive -------------------- */
@media (max-width: 900px){
  .hero .container{ grid-template-columns: 1fr; }
  .hero-art{ order: -1; max-width: 320px; margin: 0 auto; }
  .process-list{ grid-template-columns: 1fr; }
  .process-item + .process-item{ border-left: none; border-top: 1px solid var(--line); padding-left: 0; }
  .industries-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; gap: 40px; }
  .footer-top{ grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 720px){
  .main-nav{
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
  }
  .main-nav.is-open{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav a{ padding: 10px 0; width: 100%; }
  .nav-toggle{ display: flex; }
  .hero{ padding: 56px 0 64px; }
  .section{ padding: 56px 0; }
}

@media (max-width: 560px){
  .brand-name{ font-size: 15px; white-space: nowrap; }
  .brand-name small{ display: none; }
  .brand img{ height: 64px; width: 64px; }
  .hero-cta{ flex-direction: column; align-items: stretch; }
  .contact-form{ padding: 22px; }
}
