/* =========================================================
   НТЦ КП — стили сайта
   ========================================================= */

:root{
  --ink:        #161616;
  --ink-soft:   #232326;
  --paper:      #FAFAF9;
  --paper-dim:  #F0EFEC;
  --steel:      #6B7078;
  --steel-line: #DCDAD5;
  --red:        #E31E24;
  --red-dark:   #B3151A;
  --white:      #FFFFFF;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  --maxw: 1180px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

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

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

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display:block; }

.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

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

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before{
  content:"";
  width: 18px; height: 1px;
  background: var(--red);
  display:inline-block;
}

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

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,249,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--steel-line);
}
.site-header .wrap{
  display:flex;
  align-items:center;
  justify-content: space-between;
  height: 84px;
}
.brand{
  display:flex;
  align-items:center;
  gap: 14px;
}
.brand img{ height: 40px; width:auto; }
.brand-text{
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--steel);
  letter-spacing: 0.02em;
}
.brand-text strong{ color: var(--ink); display:block; font-size: 12.5px; }

.nav{
  display:flex;
  align-items:center;
  gap: 36px;
}
.nav a{
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.nav a::after{
  content:"";
  position:absolute; left:0; right:0; bottom:0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover::after,
.nav a.active::after{ transform: scaleX(1); }
.nav a.active{ color: var(--red); }

.nav-toggle{ display:none; }

@media (max-width: 720px){
  .nav{
    position: fixed;
    top: 84px; left:0; right:0;
    background: var(--paper);
    border-bottom: 1px solid var(--steel-line);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 32px 28px;
    gap: 18px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: all .2s ease;
  }
  .nav.open{ transform: translateY(0); opacity:1; visibility: visible; }
  .nav-toggle{
    display:flex;
    flex-direction: column;
    gap: 5px;
    width: 26px;
    background: none; border: none; cursor:pointer;
    padding: 8px;
  }
  .nav-toggle span{
    height: 2px; width:100%;
    background: var(--ink);
  }
  .brand-text{ display:none; }
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
  border-bottom: 1px solid var(--steel-line);
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr 0.7fr;
  gap: 64px;
  align-items: end;
  position: relative;
  z-index: 2;
}
.hero h1{
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.12;
  margin: 22px 0 26px;
}
.hero h1 em{
  font-style: normal;
  color: var(--red);
}
.hero p.lead{
  color: var(--steel);
  font-size: 17px;
  max-width: 46ch;
  margin: 0 0 32px;
}
.hero-actions{ display:flex; gap: 16px; flex-wrap: wrap; }

.btn{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all .2s ease;
  border: 1px solid var(--ink);
}
.btn-primary{
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover{ background: var(--red); border-color: var(--red); }
.btn-ghost{
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover{ border-color: var(--red); color: var(--red); }

.hero-panel{
  border: 1px solid var(--steel-line);
  background: var(--white);
  padding: 26px 26px 22px;
  font-family: var(--font-mono);
}
.hero-panel .panel-label{
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 14px;
}
.spec-row{
  display:flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--steel-line);
  font-size: 13px;
}
.spec-row:first-of-type{ border-top: none; }
.spec-row span:first-child{ color: var(--steel); }
.spec-row span:last-child{ color: var(--ink); text-align:right; }

/* coil / cable svg decoration */
.hero-deco{
  position:absolute;
  right: -80px; top: -60px;
  width: 480px; height: 480px;
  opacity: 0.06;
  z-index: 1;
  pointer-events: none;
}

/* ---------- Sections generic ---------- */
section{ padding: 88px 0; }
.section-head{
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head h2{
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin-top: 16px;
}
.section-head p{
  color: var(--steel);
  margin-top: 14px;
  font-size: 16px;
}

.divider{ border: none; border-top: 1px solid var(--steel-line); }

/* ---------- About / intro block ---------- */
.about{
  background: var(--white);
  border-bottom: 1px solid var(--steel-line);
}
.about-grid{
  display:grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}
.about-text p{ color: var(--ink); font-size: 16.5px; }
.about-text p + p{ margin-top: 16px; }

.stat-list{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-content: start;
}
.stat{
  border-top: 1px solid var(--steel-line);
  padding-top: 14px;
}
.stat b{
  font-family: var(--font-display);
  font-size: 1.9rem;
  display:block;
  color: var(--ink);
}
.stat span{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Director quote ---------- */
.quote-section{ background: var(--ink); color: var(--paper); }
.quote-grid{
  display:grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}
.quote-photo{
  width: 100%;
  aspect-ratio: 3/4;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.14);
}
.quote-photo img{ width:100%; height:100%; object-fit: cover; }
.quote-section blockquote{
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
  line-height: 1.5;
  margin: 0 0 22px;
  color: var(--white);
}
.quote-section blockquote::before{ content: "“"; color: var(--red); }
.quote-section blockquote::after{ content: "”"; color: var(--red); }
.quote-name{ font-family: var(--font-mono); font-size: 13px; color: var(--paper); }
.quote-name b{ display:block; color: var(--white); font-size: 14px; margin-bottom: 4px;}
.quote-name span{ color: #9A9DA4; }

/* ---------- Services / cards ---------- */
.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--steel-line);
  border: 1px solid var(--steel-line);
}
.card{
  background: var(--white);
  padding: 32px 28px;
}
.card .num{
  font-family: var(--font-mono);
  color: var(--red);
  font-size: 13px;
}
.card h3{
  font-size: 1.05rem;
  margin: 16px 0 10px;
}
.card p{ color: var(--steel); font-size: 14.5px; margin:0; }

/* ---------- Policy page: clause list ---------- */
.clause-list{ display:flex; flex-direction: column; }
.clause{
  display:grid;
  grid-template-columns: 90px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--steel-line);
}
.clause:first-child{ border-top: 1px solid var(--steel-line); }
.clause .tag{
  font-family: var(--font-mono);
  color: var(--red);
  font-size: 14px;
  letter-spacing: 0.02em;
}
.clause h3{ font-size: 1.15rem; margin-bottom: 10px; }
.clause p{ color: var(--steel); margin:0; font-size: 15.5px; }

.policy-lede{
  background: var(--white);
  border: 1px solid var(--steel-line);
  padding: 32px;
  font-size: 16.5px;
  margin-bottom: 8px;
}
.policy-lede p{ margin:0 0 14px; }
.policy-lede p:last-child{ margin-bottom:0; }
.policy-badge{
  display:inline-flex; align-items:center; gap:10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 8px 14px;
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Contacts page ---------- */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-block h3{
  font-size: 1rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--steel);
  margin-bottom: 18px;
  font-weight: 500;
}
.contact-line{
  display:flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--steel-line);
  font-size: 15px;
}
.contact-line:first-of-type{ border-top: none; }
.contact-line span:first-child{ color: var(--steel); }
.contact-line a{ color: var(--ink); }
.contact-line a:hover{ color: var(--red); }

.requisites{
  background: var(--white);
  border: 1px solid var(--steel-line);
  padding: 8px 32px;
}
.map-frame{
  border: 1px solid var(--steel-line);
  overflow:hidden;
  height: 340px;
  margin-top: 24px;
}
.map-frame iframe{ width:100%; height:100%; border:0; filter: grayscale(0.15) contrast(1.05); }

/* copyable requisite values */
.copy-value{
  font: inherit;
  font-family: var(--font-body);
  color: var(--ink);
  background: none;
  border: none;
  padding: 4px 6px;
  margin: -4px -6px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.copy-value .copy-ico{
  width: 14px; height: 14px;
  color: var(--steel-line);
  transition: color .15s ease;
  flex-shrink: 0;
}
.copy-value:hover{ background: var(--paper-dim); color: var(--red); }
.copy-value:hover .copy-ico{ color: var(--red); }
.copy-value.copied{ color: var(--red); background: var(--paper-dim); }
.copy-value.copied .copy-ico{ color: var(--red); }

.copy-toast{
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 12px);
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  padding: 12px 20px;
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 200;
}
.copy-toast.show{
  opacity: 1;
  transform: translate(-50%, 0);
}

.contact-cta{
  background: var(--ink);
  color: var(--paper);
  padding: 40px 36px;
  margin-top: 8px;
}
.contact-cta a.btn-primary{ background: var(--red); border-color: var(--red); margin-top: 18px;}
.contact-cta a.btn-primary:hover{ background: var(--white); color: var(--ink); border-color: var(--white); }
.contact-cta h3{ color: var(--white); font-family: var(--font-display); font-size:1.3rem; }
.contact-cta p{ color: #B7B9BD; margin: 10px 0 0; font-size:14.5px; }

/* ---------- Footer ---------- */
footer{
  border-top: 1px solid var(--steel-line);
  padding: 40px 0;
}
.footer-grid{
  display:flex;
  justify-content: space-between;
  align-items:center;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-grid .brand-text{ display:block; }
footer .fine{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--steel);
}

/* ---------- Reveal on scroll ---------- */
.reveal{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in{ opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; gap: 40px; }
  .about-grid{ grid-template-columns: 1fr; gap: 36px; }
  .quote-grid{ grid-template-columns: 1fr; }
  .quote-photo{ width: 160px; }
  .cards{ grid-template-columns: 1fr; }
  .clause{ grid-template-columns: 60px 1fr; gap: 20px; }
  .contact-grid{ grid-template-columns: 1fr; gap: 40px; }
  section{ padding: 64px 0; }
  .wrap{ padding: 0 20px; }
}
