/* =========================================================
   GLOBAL
   ========================================================= */
:root {
  --bg: #0b0f1a;
  --card: #121a2b;
  --muted: #96a0b5;
  --text: #eaf0ff;
  --accent: #7c5cff;
  --accent2: #22c55e;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --max: 1100px;

  /* чтобы якоря не прятались под sticky nav + quicknav */
  --anchor-offset: 132px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 700px at 20% -10%, rgba(124, 92, 255, 0.35), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(34, 197, 94, 0.22), transparent 55%), var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: inherit;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11, 15, 26, 0.55);
  border-bottom: 1px solid var(--border);
}

.nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.3px;
}


.navlinks {
  display: flex;
  align-items: center;
  gap: 14px;
}

.navlinks a {
  text-decoration: none;
  color: rgba(234, 240, 255, 0.85);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 12px;
}

.navlinks a:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  color: var(--text);
}

.btn:visited {
  color: var(--text);
}

button.btn {
  color: var(--text);
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), rgba(124, 92, 255, 0.65));
  border-color: rgba(124, 92, 255, 0.65);
}

.btn.primary:hover {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.95), rgba(124, 92, 255, 0.7));
}

.btn.green {
  background: linear-gradient(135deg, var(--accent2), rgba(34, 197, 94, 0.65));
  border-color: rgba(34, 197, 94, 0.6);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: 54px 0 26px;
}

.heroGrid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: stretch;
}

.card {
  background: rgba(18, 26, 43, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.heroCard {
  padding: 28px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(234, 240, 255, 0.88);
  font-weight: 700;
  font-size: 13px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent2);
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.14);
}

h1 {
  margin: 14px 0 10px;
  font-size: 44px;
  line-height: 1.07;
}

.sub {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  max-width: 54ch;
}

.ctaRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.mini {
  margin-top: 16px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: rgba(234, 240, 255, 0.78);
  font-size: 13px;
}

.mini span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.check {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.35);
  display: grid;
  place-items: center;
  color: #bfffd0;
  font-weight: 900;
  font-size: 12px;
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 22px 0;
}

.heroContacts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* =========================================================
   CONTACTS
   ========================================================= */
.contactCard {
  padding: 22px;
}

.contactCard h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.contactCard p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.infoBox {
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 14px;
}

.infoLine {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.infoLine:last-child {
  border-bottom: none;
}

.label {
  color: rgba(234, 240, 255, 0.74);
  font-size: 13px;
}

.value {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.form {
  display: grid;
  gap: 10px;
}

input,
textarea {
  width: 100%;
  background: rgba(9, 13, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  padding: 12px 12px;
  border-radius: 14px;
  outline: none;
  font-size: 14px;
}

input:focus,
textarea:focus {
  border-color: rgba(124, 92, 255, 0.75);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.18);
}

textarea {
  min-height: 92px;
  resize: vertical;
}

.formRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.note {
  font-size: 12px;
  color: rgba(234, 240, 255, 0.62);
  margin: 6px 0 0;
}

/* =========================================================
   SECTIONS / FEATURES
   ========================================================= */
section {
  padding: 26px 0;
}

.sectionHead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.sectionHead h2 {
  margin: 0;
  font-size: 26px;
}

.sectionHead p {
  margin: 0;
  color: var(--muted);
  max-width: 65ch;
  font-size: 14px;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature {
  padding: 18px;
}

.icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(124, 92, 255, 0.16);
  border: 1px solid rgba(124, 92, 255, 0.28);
  display: grid;
  place-items: center;
  font-weight: 900;
  margin-bottom: 10px;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  padding: 26px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 24px;
}

.footGrid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  align-items: start;
}

.footBrand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.footLogo {
  width: 32px;
  height: 32px;
  border-radius: 12px;
}

.footLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.footLinks a {
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(234, 240, 255, 0.82);
  font-size: 13px;
  font-weight: 700;
}

.footLinks a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.small {
  color: rgba(234, 240, 255, 0.55);
  font-size: 12px;
  margin-top: 10px;
}

/* =========================================================
   LEGAL MODAL
   ========================================================= */
.legalModal {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.legalBackdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.legalWrap {
  position: relative;
  padding-top: 18px;
  padding-bottom: 18px;
}

.legalCard {
  max-width: 820px;
  margin: 0 auto;
  padding: 18px;
  max-height: 80vh;
  overflow: auto;
}

.legalTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.legalTitle {
  margin: 0;
}

.legalBody {
  color: rgba(234, 240, 255, 0.82);
  font-size: 14px;
}

/* =========================================================
   COOKIES
   ========================================================= */
.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: none;
}

.cookieInner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(18, 26, 43, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.cookieInner p {
  margin: 0;
  color: rgba(234, 240, 255, 0.78);
  font-size: 13px;
}

.cookieActions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookieActions .btn {
  padding: 10px 12px;
  border-radius: 14px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 940px) {
  h1 {
    font-size: 38px;
  }
  .heroGrid {
    grid-template-columns: 1fr;
  }
  .grid3 {
    grid-template-columns: 1fr;
  }
  .footGrid {
    grid-template-columns: 1fr;
  }
  .footLinks {
    justify-content: flex-start;
  }
  .formRow {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 32px;
  }
  .navlinks {
    display: none;
  }
}

/* =========================================================
   TEAM
   ========================================================= */
.teamCard {
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.avatar {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  object-fit: cover;
  flex: 0 0 auto;
}

.teamBody h3 {
  margin: 0 0 2px;
  font-size: 16px;
}

.role {
  margin: 0 0 8px;
  font-weight: 800;
  color: rgba(234, 240, 255, 0.85);
  font-size: 13px;
}

.muted {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 940px) {
  .teamCard {
    align-items: flex-start;
  }
}

/* =========================================================
   FLOATING CALL BUTTON
   ========================================================= */
.callFab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  isolation: isolate;
  overflow: visible;
  background: radial-gradient(120% 120% at 30% 25%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 55%),
    linear-gradient(135deg, rgba(124, 92, 255, 1), rgba(124, 92, 255, 0.55));
  border: 1px solid rgba(124, 92, 255, 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42), 0 0 0 6px rgba(124, 92, 255, 0.08);
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.callFab::before,
.callFab::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  z-index: -1;
  pointer-events: none;
}

.callFab::before {
  background: radial-gradient(circle, rgba(124, 92, 255, 0.35), transparent 60%);
  animation: fabPulse 1.35s ease-in-out infinite !important;
}

.callFab::after {
  inset: -2px;
  border: 2px solid rgba(124, 92, 255, 0.35);
  animation: fabRing 1.35s ease-out infinite !important;
}

@keyframes fabPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.55;
  }
  55% {
    transform: scale(1.06);
    opacity: 0.22;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.55;
  }
}

@keyframes fabRing {
  0% {
    transform: scale(0.92);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

.callFabIcon {
  color: #fff;
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.35));
  transform-origin: 50% 60%;
  animation: phoneWiggle 1.6s ease-in-out infinite;
}

@keyframes phoneWiggle {
  0%,
  60%,
  100% {
    transform: rotate(0deg);
  }
  68% {
    transform: rotate(-10deg) translateX(-1px);
  }
  76% {
    transform: rotate(10deg) translateX(1px);
  }
  84% {
    transform: rotate(-8deg);
  }
  92% {
    transform: rotate(6deg);
  }
}

.callFab:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.55), 0 0 0 8px rgba(124, 92, 255, 0.1);
}

.callFab:active {
  transform: translateY(0) scale(0.98);
}

@media (max-width: 520px) {
  .callFab {
    right: 14px;
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .callFab::before,
  .callFab::after,
  .callFabIcon {
    animation: none !important;
  }
}

/* =========================================================
   CALL MODAL
   ========================================================= */
.callModal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
}

.callModal.isOpen {
  display: block;
}

.callBackdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
}

.callWrap {
  position: relative;
  padding: 28px 20px;
}

.callCard {
  max-width: 720px;
  margin: 0 auto;
  padding: 26px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
}

@media (max-width: 520px) {
  .callWrap {
    padding: 22px 14px;
  }
  .callCard {
    padding: 20px;
    border-radius: 22px;
  }
}

.callTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.callTitle {
  margin: 0;
}

.callList {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.callItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-decoration: none;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.callItem:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(124, 92, 255, 0.35);
}

.callPerson {
  font-weight: 900;
  letter-spacing: 0.2px;
}

.callPhone {
  color: rgba(234, 240, 255, 0.78);
  font-weight: 700;
  font-size: 13px;
  margin-top: 2px;
}

.callArrow {
  font-weight: 900;
  opacity: 0.8;
}

.callNote {
  margin-top: 12px;
  color: rgba(234, 240, 255, 0.65);
  font-size: 12px;
}

/* CONTACT FORM (modal) bigger fields */
.callForm {
  display: grid;
  gap: 12px;
}

.callActions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.callForm .formRow {
  grid-template-columns: 1fr;
}

.callForm .label {
  font-size: 14px;
  font-weight: 800;
}

.callForm input {
  padding: 18px 16px;
  font-size: 18px;
  border-radius: 18px;
}

.callForm textarea {
  padding: 18px 16px;
  font-size: 18px;
  border-radius: 18px;
  min-height: 140px;
}

.callActions .btn {
  padding: 14px 18px;
  font-size: 16px;
  border-radius: 16px;
}

#contactFormNote {
  margin: 6px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(234, 240, 255, 0.8);
}

#contactFormNote.ok {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
}

#contactFormNote.err {
  border-color: rgba(124, 92, 255, 0.35);
  background: rgba(124, 92, 255, 0.1);
}

/* =========================================================
   FAQ
   ========================================================= */
.faqSection {
  padding: 26px 0;
}

.faqAcc {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.faqItem {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 26, 43, 0.72);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.faqItem > summary {
  list-style: none;
}

.faqItem > summary::-webkit-details-marker {
  display: none;
}

.faqQ {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  user-select: none;
  background: radial-gradient(120% 140% at 15% 20%, rgba(124, 92, 255, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

.faqQText {
  font-weight: 900;
  letter-spacing: 0.2px;
  color: rgba(234, 240, 255, 0.92);
  font-size: 15px;
  line-height: 1.25;
}

.faqChevron {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  position: relative;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.faqChevron::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(234, 240, 255, 0.82);
  border-bottom: 2px solid rgba(234, 240, 255, 0.82);
  transform: rotate(45deg);
}

.faqA {
  padding: 0 16px 14px;
  color: rgba(234, 240, 255, 0.78);
  font-size: 14px;
  line-height: 1.55;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* =========================================================
   WORKS PAGE
   ========================================================= */
.workRow {
  scroll-margin-top: var(--anchor-offset);
}

.worksBoard {
  display: grid;
  gap: 16px;
}

.workBlock {
  overflow: hidden;
}

.workGrid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-areas: "media info";
  align-items: stretch;
}

.workGrid,
.workMedia,
.workInfo {
  min-width: 0;
}

.workMedia {
  grid-area: media;
  padding: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(1000px 420px at 20% 20%, rgba(124, 92, 255, 0.12), transparent 55%);
  overflow: hidden;
}

.workInfo {
  grid-area: info;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.workTitle {
  margin: 10px 0 10px;
  font-size: 22px;
  line-height: 1.2;
}

.workText {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.workMeta {
  margin-top: 2px;
  display: grid;
  gap: 8px;
}

.workMetaRow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.workMetaRow:last-child {
  border-bottom: none;
}

.workTags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(234, 240, 255, 0.8);
  font-size: 12px;
  font-weight: 700;
}

.workRow.isReverse .workGrid {
  grid-template-areas: "info media";
}

.workRow.isReverse .workMedia {
  border-right: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(1000px 420px at 80% 20%, rgba(34, 197, 94, 0.1), transparent 55%);
}

@media (max-width: 940px) {
  .workGrid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "info";
  }
  .workRow.isReverse .workGrid {
    grid-template-areas:
      "media"
      "info";
  }
  .workMedia {
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .workRow.isReverse .workMedia {
    border-left: 0;
  }
}

/* =========================================================
   WORKS: Swiper inside big work blocks
   ========================================================= */
.workSwiper {
  position: relative !important;
  isolation: isolate;
  overflow: hidden !important;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(18, 26, 43, 0.55);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 100%;
  touch-action: pan-y;
}

.workSwiper .swiper-wrapper {
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 1;
}

.workSwiper .swiper-slide {
  width: 100% !important;
  max-width: 100%;
  flex: 0 0 100%;
  display: block;
}

.workPhoto {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

@media (max-width: 940px) {
  .workPhoto {
    height: 220px;
  }
}

/* hide dots in works slider */
.workDots,
.workSwiper [data-swiper-pagination],
.workSwiper .swiper-pagination,
.workSwiper .dots {
  display: none !important;
}

/* nav over photo */
.workSwiper .workNav,
.workSwiper .carNav {
  position: absolute !important;
  top: 50% !important;
  left: 10px !important;
  right: 10px !important;
  transform: translateY(-50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  z-index: 50 !important;
  pointer-events: none !important;
}

.workSwiper .workNav .btn,
.workSwiper .carNav .btn {
  pointer-events: auto !important;
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  border-radius: 12px !important;
  font-size: 16px !important;
  line-height: 1 !important;
  background: rgba(11, 15, 26, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  backdrop-filter: blur(8px) !important;
}

.workSwiper .workNav .btn:disabled,
.workSwiper .carNav .btn:disabled,
.workSwiper .workNav .swiper-button-disabled,
.workSwiper .carNav .swiper-button-disabled {
  opacity: 0.35 !important;
  cursor: default !important;
}

@media (max-width: 520px) {
  .workSwiper .workNav,
  .workSwiper .carNav {
    left: 8px !important;
    right: 8px !important;
  }
  .workSwiper .workNav .btn,
  .workSwiper .carNav .btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 11px !important;
    font-size: 15px !important;
  }
}

/* =========================================================
   WORKS: quick nav
   ========================================================= */
.worksQuickNav {
  position: sticky;
  top: 72px;
  z-index: 20;
  padding: 10px;
  margin-bottom: 14px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.worksQuickNav::-webkit-scrollbar {
  height: 6px;
}

.worksQuickNav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.qLink {
  white-space: nowrap;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.qLink:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* =========================================================
   WORKS MODAL (gallery)
   ========================================================= */
.workModal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
}

.workModal.isOpen {
  display: block;
}

.workModalBackdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
}

.workModalWrap {
  position: relative;
  height: 100%;
  padding: 22px 16px;
  display: grid;
  place-items: center;
}

.workModalCard {
  width: min(1100px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
}

.workModalTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.workModalTitle {
  margin: 0;
  font-weight: 900;
  font-size: 16px;
}

.workModalClose {
  padding: 10px 12px;
  border-radius: 14px;
  color: #fff;
}

.workModalSwiper {
  position: relative;
  height: min(78vh, 720px);
  background: rgba(0, 0, 0, 0.35);
}

.workModalSwiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.workModalImg {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
}

.workModalPrev,
.workModalNext {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(11, 15, 26, 0.55);
  color: #fff;
}

.workModalPrev {
  left: 12px;
}

.workModalNext {
  right: 12px;
}

.workModalPrev:hover,
.workModalNext:hover {
  background: rgba(11, 15, 26, 0.75);
}

.workModalPagination,
.workModal #workModalPagination,
.workModal .swiper-pagination-fraction {
  display: none !important;
}

body.isModalOpen {
  overflow: hidden;
}

/* =========================================================
   HOME: Works cards (DEFAULT card styles)
   ========================================================= */
.workCard {
  overflow: hidden;
}

.workImg {
  width: 100%;
  max-width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.workBody {
  padding: 16px;
}

.workBody h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.workBody p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

/* =========================================================
   HOME: Works cards Swiper (FIXED)
   - Нормальная высота карточек (одинаково)
   - Не "примыкают" (gap делаем через JS spaceBetween)
   - На десктопе будет 3 в ряд (в JS breakpoints)
   - Если все карточки видны — controls скрываются (watchOverflow)
   ========================================================= */
#works .worksCardsSwiper {
  position: relative;
  overflow: hidden;
  padding: 10px 0 34px; /* место под пагинацию */
  overscroll-behavior: contain;
  touch-action: pan-y;
}

/* не ломаем swiper */
#works .worksCardsSwiper .swiper-wrapper {
  display: flex !important;
}

/* каждый слайд растягивает карточку */
#works .worksCardsSwiper .swiper-slide {
  display: flex !important;
  align-items: stretch !important;
  height: auto !important;
  flex-shrink: 0 !important;
}

/* карточка: одинаковая высота внутри слайда */
#works .workCard {
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* фикс высота фото */
#works .workImg {
  height: 190px;
  width: 100%;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* body растягивается + кнопка вниз */
#works .workBody {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ограничение строк (не раздуваем карточку) */
#works .workBody h3 {
  margin: 0;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#works .workBody p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#works .workActions {
  margin-top: auto;
  display: flex;
}

#works .workViewBtn {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
}

/* controls */
#works .worksCardsPrev,
#works .worksCardsNext {
  position: absolute;
  top: 50%;
  transform: translateY(-55%);
  z-index: 10;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
  background: rgba(11, 15, 26, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

#works .worksCardsPrev {
  left: 10px;
}

#works .worksCardsNext {
  right: 10px;
}

#works .worksCardsPagination {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

#works .worksCardsPagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  opacity: 1;
  margin: 0 !important;
}

#works .worksCardsPagination .swiper-pagination-bullet-active {
  background: var(--accent);
  border-color: rgba(124, 92, 255, 0.85);
  box-shadow: 0 0 0 6px rgba(124, 92, 255, 0.16);
}

/* ✅ Swiper сам добавляет lock-классы при watchOverflow:true */
#works .worksCardsPrev.swiper-button-lock,
#works .worksCardsNext.swiper-button-lock,
#works .worksCardsPagination.swiper-pagination-lock {
  display: none !important;
}

/* мобилка: стрелки скрыть (листать свайпом) */
@media (max-width: 940px) {
  #works .worksCardsPrev,
  #works .worksCardsNext {
    display: none !important;
  }
}

/* =========================================================
   Swiper base (минимально необходимое)
   ========================================================= */
.swiper {
  position: relative;
  overflow: hidden;
}
.swiper-wrapper {
  display: flex;
  width: 100%;
  box-sizing: content-box;
}
.swiper-slide {
  flex-shrink: 0;
  position: relative;
}
/* ===== Breadcrumbs (compact) ===== */
.crumbsBar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 15, 26, 0.18);
  backdrop-filter: blur(8px);
}

.crumbs {
  padding: 8px 0;
  overflow: hidden;
}

.crumbsList {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;

  font-size: 12.5px;
  font-weight: 700;
  color: rgba(234, 240, 255, 0.68);
}

.crumbSep {
  opacity: 0.45;
  font-weight: 900;
  padding: 0 2px;
}

.crumbLink {
  color: rgba(234, 240, 255, 0.75);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding: 2px 0;
}
.crumbLink:hover {
  color: rgba(234, 240, 255, 0.9);
  border-bottom-color: rgba(234, 240, 255, 0.28);
}

.crumbCurrent {
  color: rgba(234, 240, 255, 0.9);
  font-weight: 900;
}

/* optional: если очень длинные — пусть переносятся красиво */
@media (max-width: 520px) {
  .crumbsList {
    font-size: 12px;
  }
}
/* ===== NAV: fix brand wrap on mobile when 2 buttons ===== */
.nav .inner {
  min-width: 0; /* важно для flex overflow */
}

.brand {
  min-width: 0; /* позволяем сжиматься */
  flex: 1 1 auto; /* бренд занимает оставшееся и может ужаться */
}

.brand > div:last-child {
  white-space: nowrap; /* запрет переноса "Крыша.бай" */
  overflow: hidden; /* если совсем узко — обрежем */
  text-overflow: ellipsis; /* ... вместо второй строки */
}

/* контейнер кнопок не должен сжиматься */
.nav .inner > div[style*="display:flex"] {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Mobile: чуть уменьшаем бренд + кнопки */
@media (max-width: 520px) {
  .logo {
    width: 30px;
    height: 30px;
    border-radius: 11px;
  }

  .brand {
    gap: 8px;
    font-size: 14px; /* уменьшили текст "Крыша.бай" */
  }

  /* кнопки компактнее */
  .nav .btn {
    padding: 9px 10px;
    border-radius: 12px;
    font-size: 13px;
  }
}
.logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;

  background: transparent;   /* ✅ убрали фон */
  box-shadow: none;          /* ✅ убрали тень */

  display: grid;
  place-items: center;

  border: 1px solid rgba(255, 255, 255, 0.12); /* опционально, чтобы не “пусто” */
}

.logoImg {
  width: 30px;   /* ✅ больше лого */
  height: 30px;
  display: block;
}
@media (max-width: 520px) {
  .logo { width: 38px; height: 38px; }
  .logoImg { width: 26px; height: 26px; }
}
