:root{
  --bg:#f1f1f1;
  --bg2:#e7e7e7;
  --surface:rgba(255,255,255,.96);
  --surface-2:rgba(20,20,20,.55);
  --text:#1c1c1c;
  --muted:#6d6d6d;
  --line:rgba(255,255,255,.14);
  --line-dark:rgba(0,0,0,.08);
  --white:#ffffff;
  --black:#111111;
  --gray:#2b2b2b;
  --gray-2:#444444;
  --shadow:0 20px 60px rgba(0,0,0,.12);
  --radius:24px;
  --max:1180px;
}

*{box-sizing:border-box}

html {
  scroll-behavior:smooth;
  overflow-x: hidden;
}

body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  color:var(--text);
  background:linear-gradient(180deg,#f6f6f6, #ececec 38%, #f7f7f7 100%);
  overflow-x: hidden;
}

body.no-scroll{overflow:auto}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}

.container{
  width:min(var(--max), calc(100% - 40px));
  margin-inline:auto;
}

.skip-link{
  position:absolute;
  left:-999px;
  top:10px;
  background:#fff;
  color:#000;
  padding:10px 14px;
  border-radius:10px;
  z-index:9999;
}
.skip-link:focus{left:12px}

/* ================================
   ВЕРХНЯ ПАНЕЛЬ (Topbar)
   ================================ */
.topbar{
  background:#2b2b2b;
  color:#e5e5e5;
  font-size:14px;
  font-weight: 500;
  letter-spacing:.01em;
}
.topbar .inner{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  padding:12px 0;
  flex-wrap:wrap;
}
.topbar .meta{
  display:flex;
  gap:32px;
  flex-wrap:wrap;
  align-items:center;
}
.topbar .meta span{opacity:.95}
.topbar .meta strong{color:#fff}

.topbar .meta a,
.topbar .meta .copy-phone {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.topbar .meta a:hover,
.topbar .meta .copy-phone:hover {
  opacity: 0.7;
}
.topbar .meta svg {
  opacity: 0.8;
}

header.site-header{
  position:absolute;
  top:46px;
  left:0;
  width:100%;
  z-index:30;
}
.nav{
  display:flex;
  align-items:center;
  gap:20px;
  padding:20px 0;
  justify-content: space-between;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  color:#fff;
  font-weight:800;
  letter-spacing:.03em;
  text-shadow:0 1px 3px rgba(0,0,0,.35);
  font-size: 1.35rem;
}
.brand small{
  display:block;
  font-weight:600;
  opacity:.78;
  letter-spacing:0;
  font-size: 0.75rem;
}

.nav-links{
  display:flex;
  gap:8px;
  align-items:center;
  margin-left: auto;
}
.nav-links > a{
  order: 1;
  color:#fff;
  font-weight:700;
  padding:10px 14px;
  border-radius:12px;
  transition:transform .2s ease, background .2s ease, color .2s ease;
  text-shadow:0 1px 2px rgba(0,0,0,.35);
  white-space: nowrap;
}
.nav-links > a:hover{
  background:transparent;
  color:#c7c7c7;
  transform:translateY(-1px);
}
.nav-links > a.active{
  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.22);
  color:#fff;
}

.mobile-controls, .menu-close, .menu-overlay, .mobile-menu-contacts { 
  display: none; 
}

.mobile-only {
  display: none !important;
}

.search-shell{
  position:relative;
  order: 2;
  margin-left: 12px;
}
.search-form{
  display:flex;
  align-items:center;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.24);
  border-radius:14px;
  overflow:hidden;
  backdrop-filter: blur(12px);
}
.search-form input{
  width:200px;
  padding:11px 14px;
  border:0;
  outline:none;
  background:transparent;
  color:#fff;
  font:inherit;
}
.search-form input::placeholder{color:rgba(255,255,255,.75)}
.search-form button{
  border:0;
  background:rgba(255,255,255,.14);
  color:#fff;
  padding:11px 14px;
  cursor:pointer;
  font-size:16px;
}
.search-results{
  position:absolute;
  right:0;
  top:calc(100% + 8px);
  width:min(360px, 86vw);
  background:rgba(18,18,18,.96);
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  box-shadow:var(--shadow);
  overflow:hidden;
  display:none;
}
.search-results a{
  display:block;
  padding:12px 14px;
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.search-results a span{
  display:block;
  color:rgba(255,255,255,.72);
  font-size:12px;
  margin-top:2px;
}
.search-results a:hover{background:rgba(255,255,255,.08)}


.hero{
  position:relative;
  min-height:520px;
  overflow:hidden;
  color:#fff;
  --bg-image: url("images/hero.png");
  background:
    linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.20) 55%, rgba(0,0,0,.05) 100%),
    var(--bg-image) center/cover no-repeat;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.26)),
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.08), transparent 18%),
    radial-gradient(circle at 72% 24%, rgba(255,255,255,.08), transparent 16%);
}
.hero.no-overlay {
  background: var(--bg-image) center/cover no-repeat;
}
.hero.no-overlay::before {
  display: none;
}

.hero-inner{
  position:relative;
  min-height:520px;
  display:grid;
  align-items:end;
  padding:86px 0 46px;
}
.hero-copy{
  max-width:840px;
  padding-top:84px;
  margin:0 auto;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.hero-tag{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:rgba(255,255,255,.88);
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
  padding:10px 14px;
  backdrop-filter: blur(10px);
  margin-bottom:18px;
}
.hero h1{
  margin:0 0 14px;
  font-size:clamp(2rem, 4vw, 4.1rem);
  line-height:1.03;
  letter-spacing:-.03em;
  text-shadow:0 2px 20px rgba(0,0,0,.35);
}
.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:26px;
  justify-content:center;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 18px;
  border-radius:14px;
  font-weight:800;
  border:1px solid rgba(255,255,255,.18);
  transition:transform .2s ease, background .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.btn:hover{transform:translateY(-2px)}
.btn.primary{
  background:#fff;
  color:#111;
  border:1px solid rgba(0,0,0,.05);
  box-shadow:0 6px 16px rgba(0,0,0,.08);
}
.btn.ghost{background:rgba(255,255,255,.08);color:#fff}

.breadcrumbs{
  background:#fff;
  border-bottom:1px solid rgba(0,0,0,.06);
}
.breadcrumbs .inner{
  padding:12px 0;
}
.breadcrumbs ol{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding:0;
  margin:0;
  color:#7a7a7a;
  font-size:.95rem;
}
.breadcrumbs li{display:flex;align-items:center;gap:10px}
.breadcrumbs li+li::before{
  content:"/";
  color:#b6b6b6;
}
.breadcrumbs a{color:#111}
.breadcrumbs [aria-current="page"]{color:#111;font-weight:700}

.section{
  padding:72px 0;
}
.section.alt{
  background:linear-gradient(180deg, rgba(255,255,255,.72), rgba(245,245,245,.68));
  border-top:1px solid rgba(0,0,0,.05);
  border-bottom:1px solid rgba(0,0,0,.05);
}
.section-head{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-end;
  margin-bottom:26px;
}
.section-head h2{
  margin:0;
  font-size:clamp(1.6rem, 2vw, 2.2rem);
  letter-spacing:-.02em;
}
.section-head p{
  margin:0;
  max-width:64ch;
  color:var(--muted);
  line-height:1.7;
}
.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:#595959;
  font-size:.78rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.14em;
  margin-bottom:12px;
}
.kicker::before{
  content:"";
  width:34px;
  height:2px;
  background:linear-gradient(90deg, #111, #7a7a7a);
  border-radius:99px;
}

.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}

.card{
  background:var(--surface);
  border:1px solid rgba(0,0,0,.08);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.card.pad{padding:24px}
.card h3,.card h2{margin-top:0}
.card p{line-height:1.7;color:#555}

a.card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(0,0,0,.16);
}

.feature{
  display:flex;
  gap:16px;
  align-items:flex-start;
}
.icon{
  width:48px;
  height:48px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg, #f7f7f7, #e8e8e8);
  border:1px solid rgba(0,0,0,.07);
  font-size:1.25rem;
  flex:0 0 auto;
}
.feature h3{margin:0 0 8px}
.feature p{margin:0}

.image-panel{
  position:relative;
  min-height:370px;
  border-radius:28px;
  overflow:hidden;
  --bg-image: url("images/hero.png");
  background: var(--bg-image) center/cover no-repeat;
  box-shadow:var(--shadow);
  border:1px solid rgba(0,0,0,.08);
}
.image-panel::after{
  display: none;
}

.list{
  list-style:none;
  padding:0;
  margin:18px 0 0;
}
.list li{
  position:relative;
  padding:12px 0 12px 30px;
  border-bottom:1px solid rgba(0,0,0,.08);
}
.list li::before{
  content:"";
  position:absolute;
  left:0;
  top:18px;
  width:12px;
  height:12px;
  border-radius:50%;
  background:linear-gradient(135deg, #222, #888);
  box-shadow:0 0 0 5px rgba(0,0,0,.06);
}

.timeline{
  display:grid;
  gap:14px;
  margin-top:18px;
}
.step{
  display:grid;
  grid-template-columns:64px 1fr;
  gap:16px;
  padding:18px;
  border-radius:20px;
  background:rgba(255,255,255,.96);
  border:1px solid rgba(0,0,0,.08);
}
.step .num{
  width:58px;
  height:58px;
  border-radius:18px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg, #111, #555);
  color:#fff;
  font-weight:900;
}
.step h3{margin:0 0 6px}
.step p{margin:0;color:#5b5b5b}

.tabs{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:18px;
}
.tab{
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  border-radius:999px;
  padding:10px 14px;
  font-weight:700;
  cursor:pointer;
}
.tab.active{
  background:#111;
  color:#fff;
  border-color:#111;
}
.tab-panel{display:none}
.tab-panel.active{
  display:block;
  animation:fadeUp .55s ease both;
}

.form{
  display:grid;
  gap:16px;
}
input,textarea,select{
  width:100%;
  font:inherit;
  color:var(--text);
  background:#fff;
  border:1px solid #d1d5db;
  border-radius:12px;
  padding:14px 16px;
  outline:none;
  transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
input::placeholder, textarea::placeholder {
  color: #9ca3af;
}
input:focus,textarea:focus,select:focus{
  border-color:#111;
  box-shadow:0 0 0 1px #111;
}
textarea{min-height:140px;resize:vertical}

.form .btn.primary {
  width: 100%;
  margin-top: 4px;
  border-radius: 12px;
}

.footer{
  padding:30px 0 44px;
  color:#696969;
}
.footer .inner{
  border-top:1px solid rgba(0,0,0,.08);
  padding-top:20px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
}

.loader{
  position:fixed;
  inset:0;
  z-index:9999;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,.08), transparent 28%),
    linear-gradient(180deg, #070707, #1b1b1b 60%, #0b0b0b);
  display:grid;
  place-items:center;
  transition:opacity .45s ease, visibility .45s ease;
}
.loader.hidden{
  opacity:0;
  visibility:hidden;
}
.loader-wrap{
  display:grid;
  place-items:center;
  gap:18px;
  color:#fff;
  text-align:center;
}
.loader-ring{
  width:92px;
  height:92px;
  position:relative;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.10);
  animation:floaty 2.4s ease-in-out infinite;
}
.loader-ring::before,
.loader-ring::after{
  content:"";
  position:absolute;
  inset:10px;
  border-radius:50%;
  border:4px solid transparent;
}
.loader-ring::before{
  border-top-color:#fff;
  border-right-color:rgba(255,255,255,.8);
  animation:spin 1.1s linear infinite;
}
.loader-ring::after{
  inset:22px;
  border-top-color:rgba(255,255,255,.55);
  border-left-color:rgba(255,255,255,.25);
  animation:spin 1.7s linear reverse infinite;
}
.loader-dots{
  display:flex;
  gap:8px;
  justify-content:center;
}
.loader-dots span{
  width:10px;height:10px;border-radius:50%;
  background:#fff;
  opacity:.18;
  animation:bounce 1.2s infinite ease-in-out;
}
.loader-dots span:nth-child(2){animation-delay:.15s}
.loader-dots span:nth-child(3){animation-delay:.3s}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes bounce{
  0%,80%,100%{transform:scale(.7); opacity:.22}
  40%{transform:scale(1); opacity:1}
}
@keyframes floaty{
  0%,100%{transform:translateY(0) scale(1)}
  50%{transform:translateY(-6px) scale(1.02)}
}

.reveal{
  opacity:0;
  transform:translateY(22px);
  transition:opacity .7s ease, transform .7s ease;
}
.reveal.visible{
  opacity:1;
  transform:none;
}

.fade-up{animation:fadeUp .7s ease both}
@keyframes fadeUp{
  from{opacity:0; transform:translateY(18px)}
  to{opacity:1; transform:translateY(0)}
}

.stagger > *{
  opacity:0;
  transform:translateY(18px);
  animation:fadeUp .6s ease forwards;
}
.stagger > *:nth-child(1){animation-delay:.05s}
.stagger > *:nth-child(2){animation-delay:.16s}
.stagger > *:nth-child(3){animation-delay:.27s}
.stagger > *:nth-child(4){animation-delay:.38s}
.stagger > *:nth-child(5){animation-delay:.49s}

/* =========================================
   МОБІЛЬНА АДАПТАЦІЯ
   ========================================= */
@media (max-width: 980px){
  header.site-header {
    position: absolute;
    top: 16px;
    z-index: 30;
  }
  .topbar { display: none; }
  
  .desktop-only { display: none !important; }
  .mobile-only { display: inline-flex !important; }
  
  .nav {
    justify-content: space-between !important;
  }
  
  .brand, .mobile-controls {
    position: relative;
    z-index: 10;
  }

  .mobile-controls {
    display: flex;
    align-items: center;
    gap: 12px; 
    margin-left: auto;
  }
  
  /* Стилі для номера телефону у верхній панелі на телефоні */
  .mobile-phone-link {
    color: #ffffff;
    display: flex;
    align-items: center;
    font-size: 1rem;
    margin-left: 0;
    padding-left: 0;
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); 
    transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
    white-space: nowrap;
  }
  .mobile-phone-link:hover {
    color: #e0e0e0;
    opacity: 0.9;
    transform: translateY(-1px); /* Анімація при кліку/наведенні */
  }

  .menu-toggle {
    display: grid;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 22px;
    cursor: pointer;
    place-items: center;
    backdrop-filter: blur(10px);
    padding: 0;
    transition: background 0.2s ease;
  }
  
  .menu-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 5; 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: rgba(38, 38, 38, 0.95);
    backdrop-filter: blur(24px);
    border-left: 1px solid rgba(255, 255, 255, 0.06); 
    border-radius: 24px 0 0 24px;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 24px 32px;
    gap: 12px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20; 
    box-shadow: -15px 0 40px rgba(0,0,0,0.35);
    margin: 0;
    pointer-events: auto;
  }
  .nav-links.open {
    right: 0;
  }
  
  .search-shell {
    order: 1;
    width: 100%;
    margin-left: 0;
    margin-bottom: 12px;
  }
  .search-form {
    width: 100%;
    background: rgba(255, 255, 255, 0.08); 
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
  }
  .search-form input {
    width: calc(100% - 44px);
    padding: 12px 16px;
    background: transparent;
  }
  .search-form button {
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    display: grid;
    place-items: center;
  }
  .search-results {
    width: 100%;
    top: calc(100% + 4px);
  }
  
  .nav-links > a {
    order: 2;
    width: 100%;
    padding: 14px 18px; 
    font-size: 1.05rem;
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px; 
  }
  
  .mobile-menu-contacts {
    display: flex;
    order: 3;
    flex-direction: column;
    gap: 16px;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    width: 100%;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
  }
  .contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
  }
  a.contact-item:hover {
    color: #fff;
  }
  .contact-item svg {
    opacity: 0.7;
    flex-shrink: 0;
  }

  .menu-close {
    display: block;
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
  }

  .section {
    padding: 50px 0;
  }
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .card.pad {
    padding: 20px;
  }
  .hero-inner {
    padding-top: 160px;
    padding-bottom: 40px;
    min-height: auto;
  }
  .hero {
    min-height: 480px;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .image-panel {
    min-height: 240px;
  }
  .step {
    grid-template-columns: 48px 1fr;
    padding: 16px;
  }
  .step .num {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }
}

@media (max-width: 600px){
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: calc(100% + 40px);
    margin-left: -20px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
  }
  .tabs::-webkit-scrollbar { display: none; }
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation:none !important;
    transition:none !important;
  }
}