:root{
  --bg:#0b0d12;
  --card:#121624;
  --text:#e9edf7;
  --muted:#a8b0c3;
  --line:rgba(255,255,255,.10);
  --accent:#c9a24a;
  --accent2:#7bd3ff;
  --radius:18px;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
}
*{box-sizing:border-box}
html,body{
  margin:0;padding:0;
  background:
    radial-gradient(1000px 600px at 20% 0%, rgba(201,162,74,.18), transparent 55%),
    radial-gradient(900px 600px at 80% 10%, rgba(123,211,255,.12), transparent 55%),
    var(--bg);
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
}
a{color:inherit}
.wrap{max-width:1150px;margin:0 auto;padding:24px}
.topbar{
  position:sticky; top:0; z-index:30;
  background:rgba(11,13,18,.70);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.topbar .wrap{display:flex;align-items:center;justify-content:space-between;gap:14px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.logo{
  width:48px;
  height:48px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#000;
  overflow:hidden;
  box-shadow: 0 10px 30px rgba(201,162,74,.25);
}

.logo img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.brand b{display:block;letter-spacing:.6px}
.brand span{display:block;color:var(--muted);font-size:12px;margin-top:2px}
nav{display:flex;gap:14px;flex-wrap:wrap;justify-content:flex-end}
nav a{color:var(--muted);text-decoration:none;font-size:14px;padding:10px 10px;border-radius:12px}
nav a:hover{color:var(--text);background:rgba(255,255,255,.06)}
.ctaRow{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:11px 14px;border-radius:14px;border:1px solid var(--line);
  background:rgba(255,255,255,.06); color:var(--text); text-decoration:none;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  font-size:14px;
  user-select:none;
}
.btn:hover{transform: translateY(-1px); background:rgba(255,255,255,.10); border-color:rgba(255,255,255,.18)}
.btn.primary{
  background:linear-gradient(135deg, rgba(201,162,74,.95), rgba(201,162,74,.35));
  border-color: rgba(201,162,74,.45);
  color:#0b0d12;
  font-weight:700;
}
.btn.primary:hover{background:linear-gradient(135deg, rgba(201,162,74,1), rgba(201,162,74,.45))}
.hero{padding:52px 0 18px}
.gridHero{display:grid;grid-template-columns: 1.2fr .8fr;gap:18px;align-items:stretch}
@media (max-width: 920px){ .gridHero{grid-template-columns:1fr} }
.card{
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
}
.heroCard{padding:26px}
.kicker{
  display:inline-flex;align-items:center;gap:10px;
  padding:8px 12px;border-radius:999px;
  border:1px solid rgba(201,162,74,.35);
  background:rgba(201,162,74,.10);
  color:#f5e8c8;
  font-size:13px;
}
h1{margin:14px 0 10px;font-size:44px;line-height:1.08;letter-spacing:-.7px}
@media (max-width: 520px){ h1{font-size:34px} }
.lead{color:var(--muted);font-size:16px;line-height:1.6;max-width:62ch}
.heroActions{margin-top:16px;display:flex;gap:10px;flex-wrap:wrap}
.mini{padding:22px;display:flex;flex-direction:column;gap:12px}
.mini h3{margin:0;font-size:16px}
.section{padding:22px 0}
.sectionHeader{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap}
.sectionHeader h2{margin:0;font-size:26px}
.sectionHeader p{margin:0;color:var(--muted);max-width:72ch;line-height:1.6}
.cols{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}
@media (max-width: 920px){ .cols{grid-template-columns:1fr} }
.pad{padding:18px}
.table{width:100%;border-collapse:collapse;margin-top:10px;font-size:14px}
.table th,.table td{padding:10px 10px;border-bottom:1px solid var(--line);vertical-align:top}
.table th{color:#f0f3ff;font-weight:700;text-align:left}
.table td{color:var(--muted)}
.table td b{color:var(--text)}
.muted{color:var(--muted)}
.note{font-size:12px;color:var(--muted);line-height:1.5;margin-top:10px}
.badges{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:14px}
@media (max-width: 920px){ .badges{grid-template-columns:1fr} }
.badge{padding:16px;border-radius:16px;border:1px solid var(--line);background:rgba(255,255,255,.04)}
.badge b{display:block;margin-bottom:6px}
.footer{padding:30px 0 40px;border-top:1px solid var(--line);margin-top:22px}
.footerGrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width: 920px){ .footerGrid{grid-template-columns:1fr} }
.map{width:100%;height:320px;border:0;border-radius:16px;overflow:hidden;filter:saturate(1.05) contrast(1.02)}
.small{font-size:12px}
.hr{height:1px;background:var(--line);margin:12px 0}

/* Нижняя галерея (оставили как у тебя) */
.galleryWrap{margin-top:14px}
.gallery{
  position:relative;
  border-radius:18px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  overflow:hidden;
}
.galleryViewport{
  width:100%;
  aspect-ratio: 16 / 9;
  display:flex;
  touch-action: pan-y;
  transform: translateZ(0);
}
.slide{min-width:100%;position:relative;display:grid;place-items:center;}
.slide img{width:100%;height:100%;object-fit:cover;display:block;}
.gBtn{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  border:1px solid rgba(255,255,255,.18);
  background:rgba(11,13,18,.55);
  backdrop-filter: blur(8px);
  color:var(--text);
  padding:10px 12px;
  border-radius:14px;
  cursor:pointer;
  user-select:none;
}
.gBtn:hover{background:rgba(11,13,18,.70)}
.gPrev{left:12px}
.gNext{right:12px}
.dots{
  position:absolute;
  left:50%;
  bottom:10px;
  transform: translateX(-50%);
  display:flex;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  background:rgba(11,13,18,.45);
  border:1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
}
.dot{width:8px;height:8px;border-radius:999px;background:rgba(255,255,255,.28);cursor:pointer;}
.dot.active{background:rgba(201,162,74,.95)}
.galleryMeta{
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}

/* ====== ВОТ ЭТО ГЛАВНОЕ: квадратный слайдер справа ====== */
.workGallery{width:100%;}
.workFrame{
  position:relative;
  width:100%;
  aspect-ratio:1/1;           /* квадрат */
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
}
.workFrame img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  cursor:pointer;
}
.workNav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:42px;height:42px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(11,13,18,.55);
  backdrop-filter: blur(8px);
  color:var(--text);
  font-size:28px;
  line-height:1;
  cursor:pointer;
  user-select:none;
}
.workNav:hover{background:rgba(11,13,18,.70)}
.workPrev{left:12px}
.workNext{right:12px}

.workHint{
  position:absolute;
  left:10px; right:10px; bottom:10px;
  padding:8px 10px;
  border-radius:12px;
  font-size:12px;
  color:rgba(233,237,247,.85);
  background:rgba(11,13,18,.45);
  border:1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  text-align:center;
}

/* fullscreen lightbox */
#workLightbox{
  display:none;
  position:fixed;
  inset:0;
  z-index:9999;
  background:rgba(0,0,0,.92);
  justify-content:center;
  align-items:center;
  padding:24px;
}
#workLightbox[aria-hidden="false"]{display:flex;}
#workLightbox img{
  max-width:92vw;
  max-height:92vh;
  border-radius:16px;
  display:block;
}
.lbClose{
  position:absolute;
  top:16px; right:16px;
  width:44px;height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(11,13,18,.55);
  color:var(--text);
  cursor:pointer;
  font-size:18px;
}
.lbClose:hover{background:rgba(11,13,18,.70)}

/* ===== REVIEWS CAROUSEL ===== */
.reviewsCarousel {
  position: relative;
  margin-top: 32px;
  padding: 40px 0;
  overflow: hidden;
}
.reviewsTrack {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
  min-height: 260px;
}
.reviewCard {
  position: absolute;
  background: linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.03));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  width: 420px;
  transition: all .45s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
  user-select: none;
}
.reviewCard.rc-center {
  transform: translateX(0) scale(1);
  z-index: 3;
  opacity: 1;
  box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(201,162,74,.18);
}
.reviewCard.rc-left {
  transform: translateX(-370px) scale(0.82);
  z-index: 2;
  opacity: 0.5;
}
.reviewCard.rc-right {
  transform: translateX(370px) scale(0.82);
  z-index: 2;
  opacity: 0.5;
}
.reviewCard.rc-hidden {
  transform: translateX(0) scale(0.65);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}
.rcStars { color: var(--accent); font-size: 18px; letter-spacing: 2px; margin-bottom: 12px; }
.rcText {
  font-size: 14px; line-height: 1.75; color: var(--text);
  margin-bottom: 18px;
}
.rcAuthor { display: flex; align-items: center; gap: 10px; }
.rcAvatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: #000; flex-shrink: 0;
}
.rcName { font-weight: 600; font-size: 14px; }
.rcDate { font-size: 12px; color: var(--muted); margin-top: 2px; }

.reviewsNav {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-top: 32px;
}
.reviewsNav button {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text); font-size: 20px; cursor: pointer;
  transition: background .2s, border-color .2s;
  display: flex; align-items: center; justify-content: center;
}
.reviewsNav button:hover {
  background: rgba(201,162,74,.15);
  border-color: var(--accent);
}
.reviewsDots { display: flex; gap: 8px; }
.reviewsDots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line); transition: background .3s, transform .3s;
  cursor: pointer;
}
.reviewsDots span.active {
  background: var(--accent); transform: scale(1.3);
}

/* ===== FAQ ===== */
.faqList { display:flex;flex-direction:column;gap:8px;margin-top:14px; }
.faqItem {
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.03));
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
}
.faqQ {
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:16px 20px;
  font-size:15px;font-weight:600;color:var(--text);
  cursor:pointer;list-style:none;
}
.faqQ::-webkit-details-marker { display:none; }
.faqQ::after {
  content:'﹢';font-size:20px;color:var(--accent);flex-shrink:0;
  transition:transform .2s;
}
.faqItem[open] .faqQ::after { content:'﹣'; }
.faqA {
  padding:0 20px 16px;
  color:var(--muted);font-size:14px;line-height:1.7;
  border-top:1px solid var(--line);
  padding-top:12px;
}
.faqA a { color:var(--accent2); }

.phone-btn {
  white-space: nowrap;
}

/* Фиксируем одинаковую ширину кнопок в шапке */
.topbar .ctaRow .btn {
  min-width: 140px;
  justify-content: center;
  text-align: center;
}

/* одинаковые кнопки в шапке */
.ctaRow .btn {
  width: 140px;          /* фиксированная ширина */
  justify-content: center;
  white-space: nowrap;
}

/* ===== Услуги + iPhone layout ===== */
.servicesGrid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 18px;
  margin-top: 14px;
  align-items: start;
}
.servicesCards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.servicesPhone {
  position: sticky;
  top: 80px;
}
.svcPhoneLabel {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: .4px;
}
.svcIphoneBody {
  position: relative;
  width: 280px;
  height: 580px;
  margin: 0 auto;
  background: linear-gradient(160deg, #2e2e2e, #1c1c1e, #111);
  border-radius: 48px;
  padding: 12px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.13),
    0 0 0 3px #111,
    0 0 0 4px rgba(255,255,255,.07),
    0 40px 80px rgba(0,0,0,.65),
    inset 0 1px 1px rgba(255,255,255,.14);
}
.svcIphoneBody::before {
  content:'';position:absolute;left:-3px;top:100px;
  width:3px;height:24px;background:rgba(255,255,255,.18);border-radius:2px 0 0 2px;
  box-shadow:0 38px 0 rgba(255,255,255,.18),0 72px 0 rgba(255,255,255,.18);
}
.svcIphoneBody::after {
  content:'';position:absolute;right:-3px;top:140px;
  width:3px;height:54px;background:rgba(255,255,255,.18);border-radius:0 2px 2px 0;
}
.svcIphoneScreen {
  width:100%;height:100%;
  background:#0e1621;
  border-radius:38px;
  overflow:hidden;
  display:flex;flex-direction:column;
}
.svcIphonePill {
  position:absolute;top:18px;left:50%;transform:translateX(-50%);
  width:90px;height:26px;background:#000;border-radius:18px;z-index:6;pointer-events:none;
}
.svcIphoneBar {
  position:absolute;bottom:16px;left:50%;transform:translateX(-50%);
  width:90px;height:4px;background:rgba(255,255,255,.3);border-radius:3px;z-index:6;pointer-events:none;
}

/* TG шапка */
.svcTgHeader {
  display:flex;align-items:center;gap:9px;
  padding:36px 12px 8px;
  background:#17212b;
  border-bottom:1px solid rgba(255,255,255,.05);
  flex-shrink:0;
  position:relative;
}
.svcTgBack {
  font-size:18px;color:#5aabff;line-height:1;margin-right:2px;cursor:default;
}
.svcTgAvatar {
  width:34px;height:34px;border-radius:10px;
  background:#000;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;overflow:hidden;padding:2px;
}
.svcTgAvatar img { width:100%;height:100%;object-fit:contain; }
.svcTgInfo { flex:1;min-width:0; }
.svcTgName { font-size:13px;font-weight:700;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.svcTgSub  { font-size:10px;color:#7d8e9d; }
.svcTgSearch { font-size:16px;color:#5aabff;cursor:default; }

/* TG фон чата */
.svcTgFeed {
  flex:1;overflow-y:auto;
  padding:10px 8px 14px;
  display:flex;flex-direction:column;gap:6px;
  background:#0e1621;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.08) transparent;
}

/* Пузырёк сообщения канала */
.tgPost {
  align-self:flex-start;
  max-width:88%;
  background:#182533;
  border-radius:4px 14px 14px 14px;
  padding:8px 10px 6px;
  position:relative;
}
.tgPost::before {
  content:'';
  position:absolute;
  top:0;left:-5px;
  border:5px solid transparent;
  border-top-color:#182533;
  border-right-color:#182533;
}
.tgPostSender {
  font-size:10px;font-weight:700;color:#c9a24a;
  margin-bottom:3px;
}
.tgPostText {
  font-size:11.5px;color:#e8edf4;line-height:1.5;
  word-break:break-word;
  white-space:pre-wrap;
}
.tgPostMeta {
  display:flex;justify-content:flex-end;align-items:center;gap:4px;
  margin-top:4px;
}
.tgPostDate { font-size:9.5px;color:#7d8e9d; }
.tgPostCheck { font-size:9px;color:#5aabff; }

/* Нижняя панель (имитация инпута) */
.svcTgInput {
  display:flex;align-items:center;gap:8px;
  padding:8px 10px;
  background:#17212b;
  border-top:1px solid rgba(255,255,255,.05);
  flex-shrink:0;
  margin-bottom:22px;
}
.svcTgInputBox {
  flex:1;background:#242f3d;border-radius:20px;
  padding:6px 12px;font-size:11px;color:#7d8e9d;
}
.svcTgInputIcon { font-size:16px;color:#5aabff;cursor:default; }

.tgEmpty { font-size:11px;color:#7d8e9d;text-align:center;padding:20px 0; }

@media (max-width: 1050px) {
  .servicesGrid { grid-template-columns: 1fr; }
  .servicesPhone { position:static; }
  .svcIphoneBody { width:260px;height:520px; }
}

/* ===== iPhone TG-канал ===== */
.iphoneWrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
  padding: 10px 0 20px;
}

.iphoneDevice {
  filter: drop-shadow(0 40px 80px rgba(0,0,0,.65));
}

.iphoneBody {
  position: relative;
  width: 320px;
  height: 650px;
  background: linear-gradient(160deg, #2e2e2e 0%, #1c1c1e 50%, #111 100%);
  border-radius: 52px;
  padding: 14px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.13),
    0 0 0 3px #111,
    0 0 0 4px rgba(255,255,255,.07),
    inset 0 1px 1px rgba(255,255,255,.14);
}

/* Кнопки громкости (слева) */
.iphoneBody::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 112px;
  width: 3px;
  height: 26px;
  background: rgba(255,255,255,.18);
  border-radius: 2px 0 0 2px;
  box-shadow: 0 42px 0 rgba(255,255,255,.18), 0 80px 0 rgba(255,255,255,.18);
}

/* Кнопка питания (справа) */
.iphoneBody::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 158px;
  width: 3px;
  height: 60px;
  background: rgba(255,255,255,.18);
  border-radius: 0 2px 2px 0;
}

.iphoneScreen {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 40px;
  overflow: hidden;
}

.iphoneScreen iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Dynamic Island (пилюля сверху) */
.iphonePill {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 104px;
  height: 30px;
  background: #000;
  border-radius: 20px;
  z-index: 5;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}

/* Полоска Home Indicator снизу */
.iphoneBar {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 4px;
  background: rgba(255,255,255,.28);
  border-radius: 3px;
  z-index: 5;
  pointer-events: none;
}

/* ===== RESPONSIVE ===== */

/* Планшет */
@media (max-width: 900px) {
  nav { display: none; }
}

@media (max-width: 768px) {
  .brand span { display: none; }
  .ctaRow { display: flex; gap: 8px; }
  .ctaRow .btn { flex: 1; text-align: center; justify-content: center; width: auto; min-width: 0; white-space: nowrap; }

  .reviewCard { width: 300px; }
  .reviewCard.rc-left  { transform: translateX(-265px) scale(0.82); }
  .reviewCard.rc-right { transform: translateX(265px)  scale(0.82); }
  .reviewsTrack { min-height: 240px; }
}

/* Мобильный */
@media (max-width: 520px) {
  .wrap { padding: 16px; }
  .sectionHeader { flex-direction: column; align-items: flex-start; }

  .reviewCard { width: 88vw; max-width: 340px; }
  .reviewCard.rc-left  { transform: translateX(-92vw) scale(0.78); opacity: 0.3; }
  .reviewCard.rc-right { transform: translateX(92vw)  scale(0.78); opacity: 0.3; }
  .reviewsTrack { min-height: 260px; }

  .heroActions { flex-direction: column; }
  .heroActions .btn { width: 100%; justify-content: center; text-align: center; }

  .badges { grid-template-columns: 1fr 1fr; }

  .table th, .table td { font-size: 13px; padding: 8px 6px; }
}



