/*
Theme Name: АСТЕРТЕХ
Author: ООО «АСТЕРТЕХ»
Version: 2.2.3.4
Description: Корпоративная тема АСТЕРТЕХ для инженерного ИТ-центра.
*/
:root{
  --dark:#20282f;
  --dark-2:#29343c;
  --dark-3:#171e23;
  --orange:#f36c21;
  --orange-hover:#dd5f1b;

  --paper:#f4f6f7;
  --surface:#ffffff;
  --contact:#edf1f3;

  --text:#25313a;
  --muted:#59656e;
  --muted-strong:#4f5d66;
  --on-dark:#f3f6f7;
  --on-dark-muted:#c7d0d5;

  --line:#d7dee2;
  --line-strong:#c3ccd2;
  --line-dark:#46525a;

  --content:1180px;
  --header-content:1320px;
  --reading:960px;

  --header-h:76px;
  --radius:4px;
}

*{box-sizing:border-box}

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  padding-top:var(--header-h);
  background:var(--paper);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:17px;
  line-height:1.65;
  letter-spacing:-.006em;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

a{color:inherit;text-decoration:none}
strong{font-weight:700}
button,input,textarea,select{font:inherit}

::selection{background:rgba(243,108,33,.22)}

.skip-link{
  position:fixed;
  top:8px;
  left:8px;
  z-index:3000;
  transform:translateY(-150%);
  padding:9px 13px;
  background:#fff;
  color:var(--text);
  border-radius:3px;
}
.skip-link:focus{transform:translateY(0)}

:focus-visible{
  outline:3px solid rgba(243,108,33,.65);
  outline-offset:3px;
}

/* Header */
.site-header{
  position:fixed;
  top:0;left:0;right:0;
  width:100%;
  z-index:1000;
  background:rgba(32,40,47,.985);
  border-bottom:1px solid rgba(255,255,255,.09);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.header-inner{
  width:min(var(--header-content),calc(100% - 40px));
  min-height:var(--header-h);
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.brand{
  display:flex;
  align-items:center;
  gap:13px;
  flex:0 0 auto;
  color:#fff;
  line-height:1;
  text-decoration:none;
  white-space:nowrap;
}
.brand-mark{
  width:38px;
  height:38px;
  position:relative;
  display:block;
  flex:0 0 38px;
}
.brand-mark::before,
.brand-mark::after{
  content:"";
  position:absolute;
  inset:5px;
  border:2px solid var(--orange);
  transform:rotate(45deg);
  border-radius:3px;
}
.brand-mark::after{
  inset:12px;
  border-color:rgba(255,255,255,.70);
}
.brand-name{
  display:inline-flex;
  align-items:baseline;
  font-size:23px;
  font-weight:780;
  letter-spacing:.075em;
}
.brand-aster{color:#fff}
.brand-tech{color:var(--orange)}

.main-nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:clamp(10px,1.4vw,20px);
  color:#d9e0e4;
  font-size:14px;
  line-height:1.2;
  white-space:nowrap;
}
.main-nav a{
  position:relative;
  display:block;
  padding:29px 0 27px;
}
.main-nav a::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:18px;
  height:2px;
  background:var(--orange);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .18s ease;
}
.main-nav a:hover{color:#fff}
.main-nav a:hover::after,
.main-nav a:focus-visible::after{transform:scaleX(1)}

.menu-toggle{
  display:none;
  width:44px;height:44px;
  padding:9px;
  border:0;
  background:transparent;
  cursor:pointer;
  flex:0 0 auto;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
}
.menu-toggle span{
  display:block;
  width:25px;height:2px;
  background:#fff;
  transition:transform .2s ease,opacity .2s ease;
}
.menu-toggle.is-open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.menu-toggle.is-open span:nth-child(2){opacity:0}
.menu-toggle.is-open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

body.admin-bar .site-header{top:32px}

/* Hero */
.hero{
  background:var(--dark);
  color:var(--on-dark);
  overflow:hidden;
}
.hero-inner{
  width:min(var(--content),calc(100% - 48px));
  min-height:620px;
  margin:0 auto;
  padding:clamp(78px,8vw,108px) 0 clamp(70px,7vw,92px);
  display:grid;
  grid-template-columns:1.08fr .92fr;
  gap:clamp(40px,5vw,68px);
  align-items:center;
}
.hero-copy{max-width:720px}
.kicker{
  margin-bottom:15px;
  color:var(--orange);
  font-size:13px;
  line-height:1.2;
  font-weight:750;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.hero h1{
  margin:0 0 26px;
  color:#fff;
  font-size:clamp(48px,5.5vw,74px);
  line-height:1.01;
  letter-spacing:-.045em;
  font-weight:760;
  text-wrap:balance;
}
.hero p{
  max-width:650px;
  margin:0;
  color:#d8e0e5;
  font-size:20px;
  line-height:1.55;
  letter-spacing:-.01em;
}
.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  margin-top:31px;
  padding:11px 21px;
  border:1px solid transparent;
  border-radius:var(--radius);
  background:var(--orange);
  color:#fff;
  font-size:16px;
  font-weight:700;
  transition:background .18s ease,transform .18s ease;
}
.button:hover{background:var(--orange-hover);transform:translateY(-1px)}

.hero-graphic{
  position:relative;
  min-height:410px;
  display:grid;
  place-items:center;
}
.hero-graphic .hg-ring{
  position:absolute;
  border:1px solid rgba(255,255,255,.16);
  border-radius:50%;
}
.hero-graphic .hg-r1{width:370px;height:370px}
.hero-graphic .hg-r2{width:255px;height:255px}
.hero-graphic .hg-r3{width:145px;height:145px}
.hero-graphic .hg-core{
  width:102px;height:102px;
  border:2px solid var(--orange);
  transform:rotate(45deg);
  position:relative;
}
.hero-graphic .hg-core:before,
.hero-graphic .hg-core:after{
  content:"";
  position:absolute;
  left:50%;
  width:12px;height:12px;
  border-radius:50%;
  background:var(--orange);
  transform:translateX(-50%);
}
.hero-graphic .hg-core:before{top:-7px}
.hero-graphic .hg-core:after{bottom:-7px}
.hero-graphic .hg-node{
  position:absolute;
  width:11px;height:11px;
  border-radius:50%;
  background:var(--orange);
  box-shadow:0 0 0 7px rgba(243,108,33,.08);
}
.hero-graphic .hgn1{top:22.8%;left:11.8%}
.hero-graphic .hgn2{top:22.8%;right:11.8%}
.hero-graphic .hgn3{bottom:22.8%;left:11.8%}
.hero-graphic .hgn4{bottom:22.8%;right:11.8%}
.hero-graphic .hg-line{
  position:absolute;
  height:1px;
  background:rgba(255,255,255,.22);
  transform-origin:left center;
}
.hero-graphic .hgl1{width:199px;left:25.8%;top:32.5%;transform:rotate(27deg)}
.hero-graphic .hgl2{width:198px;left:53.8%;top:32.5%;transform:rotate(152deg)}
.hero-graphic .hgl3{width:206px;left:25.6%;top:67.5%;transform:rotate(-27deg)}
.hero-graphic .hgl4{width:198px;left:53.8%;top:67.5%;transform:rotate(207deg)}
.hero-graphic .hg-label{
  position:absolute;
  color:#9aa7af;
  font-size:11px;
  line-height:1;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.hero-graphic .hglb1{left:0%;top:10.5%}
.hero-graphic .hglb2{right:0%;top:10.5%}
.hero-graphic .hglb3{left:-1%;bottom:9%}
.hero-graphic .hglb4{right:-0.5%;bottom:9%}

/* Sections */
.section{
  padding:clamp(68px,7.2vw,96px) 24px;
  scroll-margin-top:calc(var(--header-h) + 22px);
}
.section-inner{
  max-width:var(--content);
  margin:0 auto;
}
.section-dark{
  background:var(--dark-2);
  color:var(--on-dark);
}
.section-title{
  max-width:var(--reading);
}
.section-title h2{
  margin:0 0 23px;
  color:var(--text);
  font-size:clamp(35px,3.8vw,48px);
  line-height:1.08;
  letter-spacing:-.032em;
  font-weight:740;
  text-wrap:balance;
}
.section-title>p{
  max-width:88ch;
  margin:0 0 16px;
  color:var(--muted);
  font-size:18px;
  line-height:1.68;
}
.section-title>p:last-child{margin-bottom:0}
.section-title strong{color:var(--text)}
.section-dark .section-title h2{color:#fff}
.section-dark .section-title>p{color:var(--on-dark-muted)}
.section-dark .section-title strong{color:#fff}

/* Cards */
.grid-3{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin-top:44px;
}
.card{
  min-height:190px;
  padding:28px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
}
.card-num{
  margin-bottom:12px;
  color:var(--orange);
  font-size:12px;
  line-height:1.2;
  font-weight:780;
  letter-spacing:.1em;
}
.card h3{
  margin:0 0 10px;
  color:var(--text);
  font-size:21px;
  line-height:1.22;
  letter-spacing:-.015em;
}
.card p{
  margin:0;
  color:var(--muted);
  font-size:16px;
  line-height:1.62;
}
.section-dark .card{
  background:#222d34;
  border-color:var(--line-dark);
}
.section-dark .card h3{color:#fff}
.section-dark .card p{color:var(--on-dark-muted)}

/* Approach / flow */
.flow{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  margin-top:46px;
  border-top:1px solid var(--line-strong);
  border-bottom:1px solid var(--line);
}
.flow-item{
  min-height:205px;
  padding:24px 22px 28px;
  border-right:1px solid var(--line-strong);
}
.flow-item:last-child{border-right:0}
.flow-item strong{
  display:block;
  margin-bottom:12px;
  color:var(--text);
  font-size:18px;
  line-height:1.28;
  font-weight:720;
}
.flow-item span{
  display:block;
  color:var(--muted);
  font-size:16px;
  line-height:1.62;
  font-weight:400;
}

.quote,
.final-quote{
  max-width:960px;
  margin-top:42px;
  padding-left:24px;
  border-left:3px solid var(--orange);
  color:var(--text);
  font-size:clamp(23px,2.5vw,29px);
  line-height:1.35;
  letter-spacing:-.018em;
}
.final-quote{
  padding-top:0;
  border-top:0;
}

/* Technology */
.tech-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:42px;
  background:transparent;
  border:0;
}
.tech-item{
  padding:28px 29px;
  background:#fff;
  border-left:2px solid var(--orange);
  border-radius:var(--radius);
}
.tech-item h3{
  margin:0 0 12px;
  color:var(--text);
  font-size:21px;
  line-height:1.25;
}
.tech-item p{
  margin:0;
  color:var(--muted);
  font-size:16px;
  line-height:1.62;
}
.tech-item strong{color:var(--text)}

/* Principles */
.principles{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:44px;
  background:transparent;
}
.principle{
  padding:30px;
  background:#fff;
  border:0;
  border-radius:var(--radius);
}
.principle .number{
  color:var(--orange);
  font-size:12px;
  line-height:1.2;
  font-weight:780;
  letter-spacing:.09em;
}
.principle h3{
  margin:11px 0 12px;
  color:var(--text);
  font-size:21px;
  line-height:1.24;
}
.principle p{
  margin:0 0 13px;
  color:var(--muted);
  font-size:16px;
  line-height:1.62;
}
.principle p:last-child{margin-bottom:0}
.principle strong{color:var(--text)}

/* Cooperation */
.contact{
  background:var(--contact);
  color:var(--text);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.contact .section-title>p{color:var(--muted)}
.contact .card{background:#fff}
.contact-list{
  max-width:760px;
  margin-top:34px;
  color:var(--text);
  font-size:18px;
  line-height:1.6;
  font-weight:650;
}
.contact-list a{
  color:var(--orange);
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:4px;
}

/* Footer */
.footer-mixed{
  background:var(--dark-3);
  color:#dbe3e7;
  padding:48px 24px 26px;
}
.footer-mixed-inner{
  max-width:var(--content);
  margin:0 auto;
}
.footer-mixed-title{
  margin:0 0 31px;
  color:#fff;
  font-size:27px;
  line-height:1.2;
  letter-spacing:-.018em;
  font-weight:700;
}
.footer-mixed-grid{
  display:grid;
  grid-template-columns:1.35fr .8fr 1fr;
  gap:44px;
}
.footer-mixed-grid h3,
.footer-mixed-grid p,
.footer-mixed-grid a,
.footer-mixed .company-name,
.footer-mixed .company-short,
.footer-mixed-address h3,
.footer-mixed-address p{
  margin:0 0 10px;
  color:#dbe3e7;
  font-size:17px;
  line-height:1.52;
  font-weight:400;
  letter-spacing:0;
}
.footer-mixed a:hover{color:#fff}
.footer-mixed-address{
  margin-top:29px;
  padding-top:22px;
  border-top:1px solid #344047;
}
.footer-mixed-copy{
  margin-top:27px;
  padding-top:17px;
  border-top:1px solid #344047;
  color:#9eabb3;
  font-size:13px;
  line-height:1.4;
}

/* Responsive */
@media screen and (max-width:782px){
  body.admin-bar .site-header{top:46px}
}

@media (max-width:1180px) and (min-width:1081px){
  .header-inner{width:calc(100% - 28px)}
  .brand-name{font-size:20px}
  .main-nav{gap:10px;font-size:12.5px}
}

@media (max-width:1080px){
  .header-inner{position:relative}
  .menu-toggle{display:flex}
  .main-nav{
    display:none;
    position:absolute;
    top:var(--header-h);
    left:-20px;
    right:-20px;
    width:auto;
    padding:10px 24px 18px;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    background:rgba(32,40,47,.995);
    border-top:1px solid rgba(255,255,255,.08);
    box-shadow:0 14px 30px rgba(0,0,0,.24);
  }
  .main-nav.is-open{display:flex}
  .main-nav a{
    padding:13px 0;
    border-bottom:1px solid rgba(255,255,255,.09);
    font-size:16px;
  }
  .main-nav a::after{display:none}
  .main-nav a:last-child{border-bottom:0}

  .hero-inner{
    grid-template-columns:1fr;
    min-height:auto;
  }
  .hero-copy{max-width:780px}
  .hero-graphic{
    min-height:330px;
    order:-1;
  }

  .grid-3,
  .principles{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .flow{
    grid-template-columns:1fr;
    border-bottom:0;
  }
  .flow-item{
    min-height:auto;
    border-right:0;
    border-bottom:1px solid var(--line-strong);
  }
}

@media (max-width:720px){
  body{font-size:16px}
  .header-inner{width:calc(100% - 28px)}
  .brand-name{font-size:20px}

  .hero-inner{width:calc(100% - 30px)}
  .hero h1{font-size:clamp(42px,12vw,58px)}
  .hero p{font-size:18px}
  .hero-graphic{min-height:280px}
  .hero-graphic .hg-r1{width:270px;height:270px}
  .hero-graphic .hg-r2{width:190px;height:190px}
  .hero-graphic .hg-r3{width:110px;height:110px}

  .section{padding-left:16px;padding-right:16px}
  .section-title h2{font-size:34px}
  .section-title>p{font-size:17px}

  .grid-3,
  .principles,
  .tech-list{
    grid-template-columns:1fr;
  }

  .card,
  .principle,
  .tech-item{
    padding:24px;
  }

  .quote,
  .final-quote{
    font-size:22px;
    padding-left:18px;
  }

  .footer-mixed-grid{
    grid-template-columns:1fr;
    gap:25px;
  }
  .footer-mixed-grid h3,
  .footer-mixed-grid p,
  .footer-mixed-grid a,
  .footer-mixed .company-name,
  .footer-mixed .company-short,
  .footer-mixed-address h3,
  .footer-mixed-address p{
    font-size:16px;
  }
}

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

/* 2.1.1 — исправление читаемости в блоке 06 «Принципы» */
.section-dark .quote,
.section-dark .final-quote{
  color:var(--on-dark);
}

.section-dark .quote strong,
.section-dark .final-quote strong{
  color:#fff;
}

/* 2.1.2 — более широкая текстовая композиция */
.section-title{
  width:100%;
  max-width:960px;
}
.section-title>p{
  max-width:88ch;
}
.quote,
.final-quote,
.contact-list{
  max-width:960px;
}

/* Сохраняем левое выравнивание: без text-align:justify */
.section-title,
.section-title p,
.card,
.card p,
.tech-item,
.tech-item p,
.principle,
.principle p,
.flow-item,
.flow-item span,
.quote,
.final-quote,
.contact-list{
  text-align:left;
}

@media(max-width:1080px){
  .section-title{max-width:900px}
}

@media(max-width:720px){
  .section-title{max-width:100%}
  .section-title>p{max-width:none}
  .quote,
  .final-quote,
  .contact-list{max-width:100%}
}

/* 2.1.3 — экспериментальный вариант: основной текст выровнен по ширине */
.section-title>p,
.card p,
.tech-item p,
.principle p,
.flow-item span,
.quote,
.final-quote,
.contact-list{
  text-align:justify;
  text-justify:inter-word;
  hyphens:auto;
  -webkit-hyphens:auto;
  overflow-wrap:break-word;
}

/* Заголовки, навигация и служебные данные остаются по левому краю */
.kicker,
.section-title h2,
.card h3,
.tech-item h3,
.principle h3,
.flow-item strong,
.footer-mixed-title,
.footer-mixed-grid,
.footer-mixed-address,
.footer-mixed-copy,
.main-nav,
.brand{
  text-align:left;
}

/* На узких мобильных экранах левое выравнивание читается лучше */
@media(max-width:640px){
  .section-title>p,
  .card p,
  .tech-item p,
  .principle p,
  .flow-item span,
  .quote,
  .final-quote,
  .contact-list{
    text-align:left;
  }
}

/* 2.1.4 — ScrollSpy: активный пункт меню при прокрутке */
.main-nav a.is-active,
.main-nav a[aria-current="location"]{
  color:#fff;
}

.main-nav a.is-active::after,
.main-nav a[aria-current="location"]::after{
  transform:scaleX(1);
}

@media(max-width:1080px){
  .main-nav a.is-active,
  .main-nav a[aria-current="location"]{
    color:#fff;
    padding-left:12px;
    border-left:2px solid var(--orange);
  }
}

/* 2.2.1 — возвращена фирменная пиктограмма из первой версии темы */
@media(max-width:720px){
  .brand{gap:10px}
  .brand-mark{
    width:32px;
    height:32px;
    flex-basis:32px;
  }
  .brand-mark::before,
  .brand-mark::after{inset:4px}
  .brand-mark::after{inset:10px}
}


/* 2.2.3.1 — числовые маркеры удалены из блоков по всей странице */
.grid-3 .card h3{margin-top:0}
.flow-item strong,
.principle .number{
  letter-spacing:.04em;
}


/* 2.2.3.2 — внешние подписи и узлы Hero смещены на внешний круг */
.hero-graphic .hg-label{
  min-width:110px;
}


/* 2.2.3.3 — внешние узлы Hero поставлены непосредственно на внешний круг */
.hero-graphic .hg-node{
  box-shadow:0 0 0 7px rgba(243,108,33,.08);
}


/* 2.2.3.4 — внешние точки Hero смещены в пользовательские позиции на дугах внешнего круга */
.hero-graphic .hg-node{
  box-shadow:0 0 0 7px rgba(243,108,33,.08);
}
