/* ===== АВ-КАССА — фирменный стиль =====
   Основной цвет взят из логотипа: #00BEF0
   ====================================== */

:root{
  --blue:#00BEF0;
  --blue-dark:#0098c4;
  --blue-deep:#0b6b8a;
  --blue-soft:#6BBDEE;
  --blue-tint:#e8f8fe;
  --blue-tint-2:#f4fbfe;
  --ink:#0f2a35;
  --ink-2:#3c5865;
  --muted:#6d8794;
  --line:#dfeaf0;
  --white:#fff;
  --dark:#0b2431;
  --radius:18px;
  --radius-sm:12px;
  --shadow:0 18px 40px -22px rgba(11,42,55,.35);
  --shadow-lg:0 30px 60px -30px rgba(11,42,55,.45);
  --font:'Segoe UI', 'Inter', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth}
body{
  margin:0;font-family:var(--font);color:var(--ink);background:var(--white);
  font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{margin:0 0 .5em;line-height:1.18;font-weight:800;letter-spacing:-.02em}
h1{font-size:clamp(30px,4.4vw,52px)}
h2{font-size:clamp(26px,3.2vw,38px)}
h3{font-size:19px}
p{margin:0 0 1em}
.container{width:min(1200px,calc(100% - 40px));margin-inline:auto}

/* ---------- кнопки ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:14px 26px;border-radius:999px;font-weight:700;font-size:15px;
  border:2px solid transparent;cursor:pointer;transition:.2s ease;white-space:nowrap;
}
.btn--primary{background:var(--blue);color:#fff;box-shadow:0 12px 24px -12px rgba(0,190,240,.9)}
.btn--primary:hover{background:var(--blue-dark);transform:translateY(-1px)}
.btn--ghost{border-color:var(--blue);color:var(--blue-deep);background:transparent}
.btn--ghost:hover{background:var(--blue-tint)}
.btn--sm{padding:10px 20px;font-size:14px}
.btn--wide{width:100%}

/* ---------- шапка ---------- */
.header{
  position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);
  backdrop-filter:blur(10px);border-bottom:1px solid var(--line);
}
.header__inner{display:flex;align-items:center;gap:28px;min-height:76px}
.logo img{height:42px;width:auto}
.nav{display:flex;gap:26px;margin-left:auto;font-weight:600;font-size:15px}
.nav a{color:var(--ink-2);padding:6px 0;border-bottom:2px solid transparent}
.nav a:hover{color:var(--blue-deep);border-color:var(--blue)}
.header__side{display:flex;align-items:center;gap:16px}
.header__phone{font-weight:800;font-size:16px;color:var(--ink);white-space:nowrap}
.header__phone:hover{color:var(--blue-deep)}
.burger{display:none;flex-direction:column;gap:5px;background:none;border:0;padding:8px;cursor:pointer}
.burger span{width:24px;height:2px;background:var(--ink);border-radius:2px}

/* ---------- hero ---------- */
.hero{position:relative;overflow:hidden;padding:72px 0 84px;background:linear-gradient(180deg,var(--blue-tint-2),#fff)}
.hero__bg{
  position:absolute;inset:auto -10% -40% 40%;height:120%;
  background:radial-gradient(ellipse at center,rgba(0,190,240,.22),transparent 62%);
  pointer-events:none;
}
.hero__inner{position:relative;display:grid;grid-template-columns:1.15fr .85fr;gap:56px;align-items:center}
.badge{
  display:inline-block;background:var(--blue-tint);color:var(--blue-deep);
  padding:7px 16px;border-radius:999px;font-size:13px;font-weight:700;margin-bottom:18px;
}
.hero__text p{font-size:18px;color:var(--ink-2);max-width:56ch}
.hero__actions{display:flex;gap:14px;flex-wrap:wrap;margin:26px 0 34px}
.hero__facts{display:flex;gap:34px;list-style:none;padding:0;margin:0;flex-wrap:wrap}
.hero__facts li{display:flex;flex-direction:column}
.hero__facts b{font-size:26px;color:var(--blue-deep);font-weight:800;line-height:1.1}
.hero__facts span{font-size:13px;color:var(--muted);max-width:16ch}

.hero__card{
  background:#fff;border:1px solid var(--line);border-radius:24px;
  padding:26px;box-shadow:var(--shadow-lg);
}
.hero__card-head{background:var(--blue);border-radius:16px;padding:18px 22px;margin-bottom:20px}
.hero__card-head img{height:56px;margin-inline:auto}
.hero__list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.hero__list li{position:relative;padding-left:30px;font-size:15px;color:var(--ink-2);font-weight:600}
.hero__list li::before{
  content:"";position:absolute;left:0;top:5px;width:18px;height:18px;border-radius:50%;
  background:var(--blue-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230098c4' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* ---------- секции ---------- */
.section{padding:84px 0}
.section--soft{background:var(--blue-tint-2)}
.section__head{max-width:720px;margin-bottom:40px}
.section__head p{color:var(--ink-2);font-size:17px;margin:0}

/* ---------- панель групп ---------- */
.groupbar{
  display:flex;gap:12px;overflow-x:auto;padding:4px 4px 14px;margin-bottom:26px;
  scrollbar-width:thin;
}
.groupbar::-webkit-scrollbar{height:6px}
.groupbar::-webkit-scrollbar-thumb{background:var(--line);border-radius:99px}
.group-tab{
  display:flex;align-items:center;gap:12px;flex:0 0 auto;cursor:pointer;
  background:#fff;border:2px solid var(--line);border-radius:16px;
  padding:12px 20px 12px 14px;transition:.2s ease;text-align:left;font-family:inherit;
}
.group-tab:hover{border-color:var(--blue-soft)}
.group-tab.is-active{border-color:var(--blue);background:var(--blue-tint);box-shadow:0 12px 26px -18px rgba(0,190,240,1)}
.group-tab__ico{
  width:40px;height:40px;flex:0 0 auto;border-radius:12px;background:var(--blue-tint);
  display:grid;place-items:center;color:var(--blue-deep);
}
.group-tab.is-active .group-tab__ico{background:var(--blue);color:#fff}
.group-tab__ico svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.group-tab__txt b{display:block;font-size:15px;font-weight:800;line-height:1.25}
.group-tab__txt span{display:block;font-size:12.5px;color:var(--muted);line-height:1.35}

/* ---------- карусель объектов ---------- */
.cases__viewport{position:relative}
.cases__track{
  display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:24px;
  scroll-behavior:smooth;scrollbar-width:none;padding:4px;
}
.cases__track::-webkit-scrollbar{display:none}
.case{
  flex:0 0 100%;scroll-snap-align:center;background:#fff;border:1px solid var(--line);
  border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);
  display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);
}

/* левая часть — фотокарусель */
.case__gallery{position:relative;background:#0d1f28;min-height:420px}
.case__slides{position:relative;height:100%;min-height:420px}
.case__slide{
  position:absolute;inset:0;opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .45s ease,visibility .45s ease;
  display:grid;place-items:center;background:#0d1f28;
}
.case__slide.is-active{opacity:1;visibility:visible;pointer-events:auto}
.case__slide img{width:100%;height:100%;object-fit:cover;cursor:zoom-in}
.case__nophoto{
  color:#8fb8c6;display:grid;gap:12px;place-items:center;text-align:center;padding:30px;font-size:14px;
}
.case__nophoto svg{width:54px;height:54px;fill:none;stroke:currentColor;stroke-width:1.4}
.gal-arrow{
  position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;border-radius:50%;
  background:rgba(255,255,255,.9);border:0;display:grid;place-items:center;cursor:pointer;z-index:3;
  transition:.2s;
}
.gal-arrow:hover{background:#fff}
.gal-arrow svg{width:20px;height:20px;fill:none;stroke:var(--ink);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.gal-arrow--prev{left:14px}
.gal-arrow--next{right:14px}
.case__thumbs{
  position:absolute;left:0;right:0;bottom:0;display:flex;gap:8px;padding:12px;z-index:3;
  background:linear-gradient(0deg,rgba(6,20,27,.75),transparent);overflow-x:auto;scrollbar-width:none;
}
.case__thumbs::-webkit-scrollbar{display:none}
.case__thumbs button{
  flex:0 0 auto;width:60px;height:44px;border-radius:8px;overflow:hidden;padding:0;cursor:pointer;
  border:2px solid transparent;background:none;opacity:.65;transition:.2s;
}
.case__thumbs button.is-active{border-color:var(--blue);opacity:1}
.case__thumbs img{width:100%;height:100%;object-fit:cover}
.case__counter{
  position:absolute;top:14px;right:14px;z-index:3;background:rgba(6,20,27,.6);color:#fff;
  border-radius:999px;padding:5px 12px;font-size:12.5px;font-weight:600;
}

/* правая часть — описание */
.case__body{padding:32px 34px;display:flex;flex-direction:column;min-width:0}
.case__tags{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.tag{background:var(--blue-tint);color:var(--blue-deep);font-size:12.5px;font-weight:700;padding:5px 12px;border-radius:999px}
.tag--muted{background:#eef3f6;color:var(--muted)}
.case__title{font-size:23px;margin-bottom:10px}
.case__desc{color:var(--ink-2);font-size:15px;margin-bottom:20px}
.case__blocks{display:grid;gap:18px}
.spec__head{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.spec__head svg{width:18px;height:18px;fill:none;stroke:var(--blue-deep);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.spec__head b{font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--blue-deep)}
.spec ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.spec li{position:relative;padding-left:20px;font-size:14.5px;color:var(--ink-2)}
.spec li::before{content:"";position:absolute;left:4px;top:9px;width:6px;height:6px;border-radius:50%;background:var(--blue)}
.spec--works li::before{
  content:"";left:2px;top:5px;width:12px;height:12px;border-radius:0;background:none;
  border-left:2px solid var(--blue);border-bottom:2px solid var(--blue);transform:rotate(-45deg) scale(.85);
}

/* стрелки карусели объектов */
.carousel-arrow{
  position:absolute;top:50%;transform:translateY(-50%);z-index:5;
  width:52px;height:52px;border-radius:50%;border:1px solid var(--line);background:#fff;
  display:grid;place-items:center;cursor:pointer;box-shadow:var(--shadow);transition:.2s;
}
.carousel-arrow:hover{background:var(--blue);border-color:var(--blue)}
.carousel-arrow:hover svg{stroke:#fff}
.carousel-arrow svg{width:24px;height:24px;fill:none;stroke:var(--ink);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.carousel-arrow--prev{left:-26px}
.carousel-arrow--next{right:-26px}
.carousel-arrow[disabled]{opacity:.35;cursor:default}
.carousel-arrow[disabled]:hover{background:#fff;border-color:var(--line)}
.carousel-arrow[disabled]:hover svg{stroke:var(--ink)}

.cases__dots{display:flex;gap:8px;justify-content:center;margin-top:26px}
.cases__dots button{
  width:9px;height:9px;border-radius:50%;border:0;background:var(--line);cursor:pointer;padding:0;transition:.2s;
}
.cases__dots button.is-active{background:var(--blue);width:26px;border-radius:99px}
.cases__empty{text-align:center;color:var(--muted);padding:60px 20px;border:2px dashed var(--line);border-radius:var(--radius)}

/* ---------- карточки услуг ---------- */
.grid{display:grid;gap:22px}
.grid--3{grid-template-columns:repeat(3,1fr)}
.grid--4{grid-template-columns:repeat(4,1fr)}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px;transition:.2s}
.card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:var(--blue-soft)}
.card__icon{width:52px;height:52px;border-radius:14px;background:var(--blue-tint);display:grid;place-items:center;margin-bottom:16px}
.card__icon svg{width:26px;height:26px;fill:none;stroke:var(--blue-deep);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.card p{color:var(--ink-2);font-size:14.5px;margin:0}

.why__item b{font-size:15px;color:var(--blue);font-weight:800;letter-spacing:.1em}
.why__item h4{margin:8px 0 8px;font-size:17px}
.why__item p{color:var(--ink-2);font-size:14.5px;margin:0}

/* ---------- контакты ---------- */
.contacts__inner{display:grid;grid-template-columns:1fr .9fr;gap:56px;align-items:start}
.contacts__lead{color:var(--ink-2);font-size:16.5px;max-width:52ch}
.contacts__list{list-style:none;padding:0;margin:28px 0 0;display:grid;gap:16px}
.contacts__list li{display:grid;grid-template-columns:150px 1fr;gap:12px;align-items:baseline;
  padding-bottom:14px;border-bottom:1px solid var(--line)}
.contacts__list span{color:var(--muted);font-size:14px}
.contacts__list a,.contacts__list b{font-weight:700;font-size:16px}
.contacts__list a:hover{color:var(--blue-deep)}
.form{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:30px;box-shadow:var(--shadow)}
.form__row{margin-bottom:16px}
.form__row label{display:block;font-size:13.5px;font-weight:700;color:var(--ink-2);margin-bottom:6px}
.form__row label i{color:#e5484d;font-style:normal}
.form input,.form textarea{
  width:100%;border:1.5px solid var(--line);border-radius:var(--radius-sm);padding:13px 15px;
  font-family:inherit;font-size:15px;color:var(--ink);background:#fbfdfe;transition:.15s;
}
.form input:focus,.form textarea:focus{outline:0;border-color:var(--blue);background:#fff;box-shadow:0 0 0 4px rgba(0,190,240,.14)}
.form textarea{resize:vertical}
.form__note{font-size:12.5px;color:var(--muted);margin:12px 0 0;text-align:center}
.form__status{margin-top:12px;font-size:14.5px;font-weight:600;text-align:center}
.form__status.is-ok{color:#15803d}
.form__status.is-err{color:#e5484d}

/* ---------- подвал ---------- */
.footer{background:var(--dark);color:#c6dbe4;padding:56px 0 22px;margin-top:0}
.footer__inner{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:40px;align-items:start}
.footer__brand img{height:54px;border-radius:10px;margin-bottom:14px}
.footer__brand p{font-size:14.5px;margin:0;max-width:36ch}
.footer__nav{display:grid;gap:10px;font-size:15px}
.footer__nav a:hover,.footer__contacts a:hover{color:var(--blue)}
.footer__contacts{display:grid;gap:10px;font-size:15px;font-weight:600}
.footer__admin{color:#7fa3b1;font-weight:500;font-size:14px}
.footer__bottom{margin-top:36px;padding-top:20px;border-top:1px solid rgba(255,255,255,.1);font-size:13px;color:#89a8b5}

/* ---------- лайтбокс ---------- */
.lightbox{position:fixed;inset:0;z-index:100;background:rgba(6,20,27,.94);display:grid;place-items:center;padding:40px}
.lightbox img{max-width:92vw;max-height:86vh;object-fit:contain;border-radius:8px}
.lightbox__close{position:absolute;top:18px;right:24px;background:none;border:0;color:#fff;font-size:40px;line-height:1;cursor:pointer}
.lightbox__nav{position:absolute;top:50%;transform:translateY(-50%);background:none;border:0;color:#fff;font-size:56px;line-height:1;cursor:pointer;padding:0 18px;opacity:.8}
.lightbox__nav:hover{opacity:1}
.lightbox__nav--prev{left:8px}
.lightbox__nav--next{right:8px}

/* ---------- адаптив ---------- */
@media (max-width:1100px){
  .hero__inner{grid-template-columns:1fr;gap:36px}
  .hero__card{max-width:520px}
  .grid--4{grid-template-columns:repeat(2,1fr)}
  .carousel-arrow--prev{left:6px}
  .carousel-arrow--next{right:6px}
}
@media (max-width:900px){
  .nav{position:fixed;inset:76px 0 auto;background:#fff;flex-direction:column;gap:0;padding:8px 20px 20px;
       border-bottom:1px solid var(--line);display:none;box-shadow:var(--shadow)}
  .nav.is-open{display:flex}
  .nav a{padding:14px 0;border-bottom:1px solid var(--line)}
  .header__side .btn{display:none}
  .header__inner{gap:14px}
  .burger{display:flex;margin-left:auto}
  .header__side{margin-left:0}
  .case{grid-template-columns:1fr}
  .case__gallery,.case__slides{min-height:280px}
  /* стрелки объектов — на уровне фото, чтобы не перекрывать текст */
  .carousel-arrow{top:150px;transform:none}
  .case__body{padding:26px 22px}
  .grid--3{grid-template-columns:1fr}
  .contacts__inner{grid-template-columns:1fr;gap:34px}
  .footer__inner{grid-template-columns:1fr;gap:26px}
  .section{padding:60px 0}
}
@media (max-width:560px){
  .grid--4{grid-template-columns:1fr}
  .hero__facts{gap:20px}
  .contacts__list li{grid-template-columns:1fr}
  .case__body{padding:22px 18px}
  .carousel-arrow{width:42px;height:42px}
}

/* ---------- блок собственного софта на главной ---------- */
.section__head--row{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;
  max-width:none;flex-wrap:wrap}
.section__head--row p{max-width:66ch}
.form__row--hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
