/* MariTsy — minimal portfolio
   No external dependencies. Designed for Neocities.
*/
:root{
  --bg: #f4f1ec;
  --surface: rgba(255,255,255,0.78);
  --surface2: rgba(255,255,255,0.60);
  --text: rgba(25,34,45,0.92);
  --muted: rgba(46,58,73,0.72);
  --line: rgba(35,47,62,0.14);
  --accent: #ead8be;
  --accent2: #a792f5;

  --shadow: 0 18px 60px rgba(33,46,61,0.12);
  --radius: 18px;
  --radius2: 26px;

  --container: 1100px;
  --g: 18px;

  --h1: clamp(2rem, 2.7vw, 3rem);
  --h2: clamp(1.5rem, 2.1vw, 2.1rem);
  --lead: clamp(1.02rem, 1.15vw, 1.15rem);
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  overflow-x: hidden;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(1200px 700px at 20% 0%, rgba(188,167,255,0.20), transparent 55%),
    radial-gradient(1000px 700px at 80% 10%, rgba(243,231,210,0.14), transparent 60%),
    linear-gradient(180deg, #f8f5f0, #f4f1ec 28%, #efebe5);
  background-attachment: fixed, fixed, fixed;
  color: var(--text);
  line-height: 1.55;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
p{ margin:0 0 12px; }
h1,h2,h3{ margin:0 0 10px; line-height:1.15; letter-spacing:-0.02em; }
h1{ font-size: var(--h1); }
h2{ font-size: var(--h2); }
h3{ font-size: 1.05rem; }

.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

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

/* Header */
.header{
  position: sticky;
  top:0;
  z-index: 120;
  backdrop-filter: blur(14px);
  background: rgba(250,248,244,0.88);
  border-bottom: 1px solid var(--line);
}
.header__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  min-height: 45px;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap: 10px;
}
.brand__mark{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 0 4px rgba(31,42,55,0.04);
}
.brand__text{
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.92rem;
}
.brand--small .brand__text{ font-size: 0.86rem; }

.nav{
  display:flex;
  gap: 14px;
  align-items:center;
}
.nav a{
  font-size: 0.95rem;
  color: var(--muted);
  padding: 10px 10px;
  border-radius: 12px;
  transition: background .2s ease, color .2s ease;
}
.nav a:hover{
  color: var(--text);
  background: rgba(31,42,55,0.045);
}

.nav__toggle{
  display:none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(31,42,55,0.022);
  border-radius: 14px;
  cursor:pointer;
  padding: 10px;
}
.nav__toggle span{
  display:block;
  width: 20px;
  height:2px;
  flex: 0 0 2px;
  background: rgba(31,42,55,0.72);
  border-radius: 99px;
  margin: 2px 0;
}

.header__right{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-left: auto;
}
.langSwitch{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 4px;
  border: 1px solid rgba(31,42,55,0.10);
  background: rgba(31,42,55,0.022);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(31,42,55,0.03);
}
.langBtn{
  min-width: 30px;
  height: 23px;
  border: 0px solid rgba(31,42,55,0.10); /* Button border color */
  border-radius: 7px;
  background: rgba(31,42,55,0.022);
  color: var(--text);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform .12s ease, filter .16s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.langBtn:hover{ transform: translateY(-1px); }
.langBtn:active{ transform: translateY(0); }
.langBtn:focus-visible{
  outline: 2px solid rgba(188,167,255,0.75);
  outline-offset: 2px;
}
.langBtn.is-active{
  color: #101820;
  
  border-color: rgba(31,42,55,0.20);
  box-shadow: 0 8px 20px rgba(33,46,61,0.10);
}
.langBtn.is-active[data-lang="ua"]{
  background: linear-gradient(180deg, #005bbb 0 50%, #ffd500 50% 100%); /* UA Flag color */
  font-size: 0rem;
}
.langBtn.is-active[data-lang="en"]{
  background:
    linear-gradient(135deg, #012169 0%, #0a4b9f 55%, #c8102e 100%);
  color: #fff;
}
.langBtn:not(.is-active){
  color: rgba(31,42,55,0.72);
}

/* Hero */
.hero{
  padding: 27px 0 26px; /* top page padding */
}
.hero__grid{
  display:grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1px;
  align-items: start;
}
.kicker{
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.lead{
  font-size: var(--lead);
  color: var(--muted);
  max-width: 56ch;
}
.hero__cta{
  display:flex;
  gap: 10px;
  margin: 18px 0 18px;
  flex-wrap: wrap;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 80px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(240,227,205,0.96), rgba(181,163,244,0.90));
  color: #16202b;
  font-weight: 650;
  border: 0;
  cursor:pointer;
  transition: transform .12s ease, filter .18s ease;
}
.btn:hover{ transform: translateY(-2px); filter: brightness(1.02); }
.btn:active{ transform: translateY(0px); }
.btn--ghost{
  background: rgba(31,42,55,0.045);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn--small{ padding: 10px 14px; border-radius: 13px; }
.btn--wide{ width: 100%; padding: 12px 16px; }

/* === Custom cursor (desktop only) === */
@media (hover: hover) and (pointer: fine) {
  html, body, * {
    cursor: url("../img/Crystal3.png") 8 8, auto !important;
  }
}

/* Touch devices: default cursor */
@media (hover: none), (pointer: coarse) {
  html, body, * {
    cursor: auto !important;
  }
}

/* Hero meta cards: width adapts to content */
.hero__meta{
  display:grid;
  grid-template-columns: max-content max-content;
  gap: 12px;
  margin-top: 14px;
  align-items: start;
  justify-content: start;
}

/* Box containers 3 pcs */
.meta{
  border: 1px solid var(--line);
  background: rgba(31,42,55,0.022);
  border-radius: var(--radius);
  padding: 12px 12px;

  width: fit-content;
  max-width: 100%;
  min-width: 0;
  align-self: start;
  justify-self: start;
}

.meta__t{
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 4px;

  max-width: 100%;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.meta__v{
  font-weight: 600;
  font-size: 0.96rem;

  max-width: 100%;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.hero__meta .meta:nth-child(3){
  grid-column: 1 / -1; /* переносим 3-ю карточку на новую строку */
}

/* Hero card */
.hero__card{
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(31,42,55,0.04), rgba(31,42,55,0.022));
  border-radius: var(--radius2);
  padding: 14px;
  box-shadow: var(--shadow);
}
.hero__cardHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.hero__cardTitle{ font-weight: 700; }
.hero__cardSub{ color: var(--muted); font-size: 0.92rem; margin-top: 2px; }
.pill{
  border: 1px solid var(--line);
  background: rgba(31,42,55,0.03);
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.86rem;
}
.hero__cardFoot{
  margin-top: 12px;
}
.note{
  color: var(--muted);
  font-size: 0.94rem;
}

/* Hero BA + picker */
.ba--hero{ padding: 0; }
.ba--hero .ba__viewport{
  aspect-ratio: 13 / 11;
  border-radius: 20px;
}
.ba--hero .ba__range{ margin-top: 12px; }

.baPicker{
  display:flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.baThumb{
  flex: 0 0 72px;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid rgba(31,42,55,0.10);
  background: rgba(31,42,55,0.022);
  padding:0;
  cursor:pointer;
  transition: transform .12s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
  scroll-snap-align: start;
}
.baThumb:hover{ transform: translateY(-3px); }
.baThumb:active{ transform: translateY(0px); }
.baThumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.baThumb.is-active{
  border-color: rgba(243,231,210,0.95);
  box-shadow: 0 0 0 4px rgba(243,231,210,0.14);
}
.baThumb:focus-visible{
  outline: 2px solid rgba(188,167,255,0.7);
  outline-offset: 3px;
}

@media (min-width: 820px){
  .baPicker{
    display:grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    overflow: visible;
    padding-bottom: 0;
  }
  .baThumb{ flex: initial; width: 100%; }
}
@media (min-width: 980px){
  .ba--hero .ba__viewport{ min-height: 430px; }
}

/* Section */
.section{ padding: 54px 0; }
.section--alt{
  background: transparent;
  border-top: 0;
  border-bottom: 0;
}
.section__head{
  margin-bottom: 18px;
}
.section__foot{ margin-top: 20px; }
.muted{ color: var(--muted); }

/* Grids & cards */
.grid{
  display:grid;
  gap: 16px;
}
.grid--2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3{ grid-template-columns: repeat(3, minmax(0,1fr)); }

/* Interior pager (3x2 per page) */
.pager{ position: relative; }
.pager__viewport{ position: relative; }
.pager__arrow{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(31,42,55,0.10);
  background: rgba(31,42,55,0.045);
  color: rgba(25,34,45,0.92);
  cursor: pointer;
  display:grid;
  place-items:center;
  font-size: 43px;
  line-height: 1;
  box-shadow: 0 14px 40px rgba(33,46,61,0.12);
  backdrop-filter: blur(10px);
}
.pager__arrow:hover{ background: rgba(31,42,55,0.08); }
.pager__arrow:disabled{
  opacity: 0.35;
  cursor: default;
}
.pager__arrow--prev{ left: -70px; } /* arrow padding from the tiles */
.pager__arrow--next{ right: -70px; }

.pager__dots{
  display:flex;
  justify-content:center;
  gap: 10px;
  margin-top: 14px;
}
.pager__dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(31,42,55,0.14);
  background: rgba(31,42,55,0.08);
  cursor:pointer;
  padding:0;
}
.pager__dot.is-active{
  width: 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: rgba(243,231,210,0.65);
}

.pager--single .pager__arrow,
.pager--single .pager__dots{ display:none; }

@media (max-width: 740px){
  .pager{
    padding-bottom: 68px; /* место под мобильные стрелки */
  }
  .pager .pager__arrow{ /* стрелки возле плиток 3х2 */
    top: auto;
    bottom: -75px;
    transform: none;
    width: 61px;
    height: 61px;
    border-radius: 18px;
    font-size: 43px;
  }
  .pager .pager__arrow--prev{ left: 8px; }
  .pager .pager__arrow--next{ right: 8px; }
}

.workCard{
  border: 1px solid var(--line);
  background: rgba(31,42,55,0.022);
  border-radius: var(--radius2);
  overflow:hidden;
}
.workCard__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 14px 10px;
}
.workCard__title{ margin:0; font-size: 1.02rem; }
.tag{
  font-size: 0.86rem;
  color: var(--muted);
  border: 1px solid rgba(31,42,55,0.10);
  background: rgba(31,42,55,0.022);
  padding: 6px 10px;
  border-radius: 999px;
}

/* Before/after */
.ba{
  /* padding: 0 14px 14px; */
}
.ba__viewport{
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(31,42,55,0.10);
  background: rgba(226,232,239,0.70);
}
.ba__img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: contain;
}
.ba__img--before{
  /* clipped by JS via clip-path */
  clip-path: inset(0 50% 0 0);
}
.ba__bar{
  position:absolute;
  top:0;
  bottom:0;
  left: 50%;
  width: 2px;
  background: rgba(25,34,45,0.72);
  transform: translateX(-1px);
  mix-blend-mode: normal;
}
.ba__knob{
  position:absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(31,42,55,0.20);
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(8px);
  display:grid;
  place-items:center;
  opacity: 0;
  pointer-events: none;
}
.ba__knob span{
  display:block;
  width: 16px;
  height: 2px;
  background: rgba(25,34,45,0.90);
  border-radius: 99px;
}
.ba__knob span:first-child{ transform: rotate(90deg); }
.ba__range{
  width: 100%;
  margin-top: 10px;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  height: 18px;
  cursor: pointer;
}
/* Track */
.ba__range::-webkit-slider-runnable-track{
  height: 6px;
  border-radius: 999px;
  background: rgba(31,42,55,0.10);
  border: 1px solid rgba(31,42,55,0.10);
}
.ba__range::-moz-range-track{
  height: 6px;
  border-radius: 999px;
  background: rgba(31,42,55,0.10);
  border: 1px solid rgba(31,42,55,0.10);
}
/* Thumb = прежний "кружок" (44px) */
.ba__range::-webkit-slider-thumb{
  -webkit-appearance: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(31,42,55,0.20);
  background:
    linear-gradient(rgba(25,34,45,0.92), rgba(25,34,45,0.92)) center / 16px 2px no-repeat,
    linear-gradient(rgba(25,34,45,0.92), rgba(25,34,45,0.92)) center / 2px 16px no-repeat,
    rgba(255,255,255,0.82);
  box-shadow: 0 10px 26px rgba(33,46,61,0.12);
  margin-top: -19px; /* centers thumb over 6px track */
}
.ba__range::-moz-range-thumb{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(31,42,55,0.20);
  background:
    linear-gradient(rgba(25,34,45,0.92), rgba(25,34,45,0.92)) center / 16px 2px no-repeat,
    linear-gradient(rgba(25,34,45,0.92), rgba(25,34,45,0.92)) center / 2px 16px no-repeat,
    rgba(255,255,255,0.82);
  box-shadow: 0 10px 26px rgba(33,46,61,0.12);
}
.ba__range::-moz-focus-outer{ border: 0; }

.ba__range:focus-visible{

  outline: 2px solid rgba(188,167,255,0.7);
  outline-offset: 4px;
  border-radius: 12px;
}

/* Callout */
.callout{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 16px 16px;
  border: 1px solid var(--line);
  background: rgba(31,42,55,0.022);
  border-radius: var(--radius2);
}
.callout__title{ font-weight: 750; margin-bottom: 2px; }

/* Tiles */
.tile{
  margin:0;
  border: 1px solid var(--line);
  background: rgba(31,42,55,0.022);
  border-radius: var(--radius2);
  overflow:hidden;
}
.tile__btn{
  display:block;
  width:100%;
  border:0;
  padding:0;
  cursor:pointer;
  background: transparent;
  color: inherit;
  text-align:left;
}
.tile img{
  width:100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .25s ease;
}
.tile__btn:hover img{ transform: scale(1.02); }
.tile figcaption{
  padding: 12px 12px 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Split */
.split{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items:start;
}
.aboutPortrait{
  max-width: 380px;   /* подбери: 380 / 420 / 460 */
  margin: 0 auto;     /* чтобы остался по центру */
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(31,42,55,0.03), rgba(31,42,55,0.018));
  border-radius: var(--radius2);
  padding: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.aboutPortrait::before{
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  left: -40px;
  top: -35px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(188,167,255,0.20), rgba(188,167,255,0) 70%);
  pointer-events: none;
}
.aboutPortrait::after{
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -55px;
  bottom: -55px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243,231,210,0.14), rgba(243,231,210,0) 72%);
  pointer-events: none;
}
.aboutPortrait img{
  position: relative;
  z-index: 1;
  width: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 18px;
  border: 1px solid rgba(31,42,55,0.08);
  background: rgba(33,46,61,0.08);
}

/* Steps */
.steps{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.step{
  border: 1px solid var(--line);
  background: rgba(31,42,55,0.022);
  border-radius: var(--radius2);
  padding: 14px;
  display:flex;
  gap: 12px;
  align-items:flex-start;
}
.step__n{
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  flex: 0 0 34px;           /* запрещает сжатие во flex */
  border-radius: 50%;       /* идеальный круг */
  background: rgba(31,42,55,0.045);
  border: 1px solid rgba(31,42,55,0.10);
  display:grid;
  place-items:center;
  font-weight: 750;
  line-height: 1;           /* аккуратнее центрирует цифру */
}
.step__t{
  font-weight: 700;
  margin-bottom: 4px;
}

.faq{
  margin-top: 18px;
  border: 1px solid rgba(31,42,55,0.08);
  background: rgba(31,42,55,0.015);
  border-radius: var(--radius2);
  padding: 6px;
}
details{
  border-radius: 16px;
  padding: 12px 12px;
}
details + details{ border-top: 1px solid rgba(31,42,55,0.06); }
summary{
  cursor: pointer;
  font-weight: 650;
}
details p{ margin-top: 8px; color: var(--muted); }

/* Contact — compact redesign */
.contact{
  display:grid;
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
  gap: 12px;
  align-items:start;
  margin-top: 6px;
}

/* Обертка левой части (после удаления формы это основной блок) */
.contact__left{
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(31,42,55,0.03), rgba(31,42,55,0.018));
  border-radius: var(--radius2);
  padding: 16px;
  box-shadow: var(--shadow);
}

/* Если по какой-то причине у блока нет класса .contact__left */
.contact > :first-child{
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(31,42,55,0.03), rgba(31,42,55,0.018));
  border-radius: var(--radius2);
  padding: 16px;
  box-shadow: var(--shadow);
}

/* Немного компактнее текст внутри секции контактов */
.contact .muted{
  max-width: 62ch;
  margin-bottom: 0;
}

.contact__links{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin: 14px 0 14px;
}

.contactLink{
  border: 1px solid var(--line);
  background: rgba(31,42,55,0.022);
  border-radius: 16px;
  padding: 12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  min-height: 58px;
  transition: background .2s ease, border-color .2s ease, transform .12s ease;
}
.contactLink:hover{
  background: rgba(31,42,55,0.04);
  border-color: rgba(31,42,55,0.10);
  transform: translateY(-1px);
}
.contactLink__k{
  color: var(--muted);
  font-size: 0.86rem;
}
.contactLink__v{
  font-weight: 650;
  text-align: right;
  overflow-wrap: anywhere;
}

.contact__cta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
  justify-content: center; /* центрируем кнопку */
}

/* Локально уменьшаем кнопки в контактах, чтобы не тянулись как hero CTA */
.contact__cta .btn{
  padding: 10px 18px;
  min-height: 42px;
  min-width: 150px; /* аккуратная ширина как у CTA */
  justify-content: center;
}

/* Footer */
.footer{
  padding: 26px 0 40px;
  border-top: 1px solid rgba(31,42,55,0.06);
}
.footer__row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 14px;
  flex-wrap: wrap;
}
.footer__muted{ color: var(--muted); font-size: 0.92rem; margin-top: 6px; }
.footer__right{ display:flex; gap: 12px; }
.footer__right a{ color: var(--muted); padding: 8px 10px; border-radius: 12px; }
.footer__right a:hover{ color: var(--text); background: rgba(31,42,55,0.045); }

/* Lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  display:none;
  z-index: 200;
}
.lightbox.is-open{ display:block; }
.lightbox__backdrop{
  position:absolute;
  inset:0;
  background: rgba(34,46,61,0.18);
}
.lightbox__panel{
  position:absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(980px, calc(100vw - 24px));
  border: 1px solid rgba(31,42,55,0.10);
  border-radius: var(--radius2);
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  padding: 12px;
}
.lightbox__img{
  width:100%;
  border-radius: 18px;
  border: 1px solid rgba(31,42,55,0.08);
  max-height: 78vh;
  object-fit: contain;
  background: rgba(226,232,239,0.70);
}
.lightbox__close{
  position:absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(31,42,55,0.10);
  background: rgba(31,42,55,0.04);
  color: var(--text);
  cursor:pointer;
  font-size: 34px;
  line-height: 1;
}

.lightbox__nav{
  z-index: 2;
  top: calc(50% - 18px);
}
.lightbox__nav--prev{ left: 20px; }
.lightbox__nav--next{ right: 20px; }

.lightbox__switch{
  display:flex;
  justify-content:center;
  margin-top: 10px;
}
.lightbox__thumb{
  width: 92px;
  height: 68px;
  padding: 0;
  border-radius: 16px;
  border: 1px solid rgba(31,42,55,0.10);
  background: rgba(31,42,55,0.03);
  overflow:hidden;
  cursor:pointer;
}
.lightbox__thumb:hover{ background: rgba(31,42,55,0.06); }
.lightbox__thumbImg{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.lightbox__hint{
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 10px;
  text-align:center;
}

/* Reveal / появление контента на странице */
.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-in{
  opacity: 1;
  transform: translateY(0);
}

/* SR-only */
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* Responsive */
@media (max-width: 920px){
  .hero__grid{ grid-template-columns: minmax(0, 1fr); }
  .split{ grid-template-columns: 1fr; }
  .contact{ grid-template-columns: 1fr; }
}
@media (max-width: 820px){
  .grid--3{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps{ grid-template-columns: 1fr; }
}
@media (max-width: 720px){
  .grid--2{ grid-template-columns: 1fr; }

  /* Prevent mobile header overflow / horizontal page shift */
  .container{ padding-left: 12px; padding-right: 12px; }
  .header__row{ gap: 8px; justify-content: flex-start; }
  .brand{ min-width: 0; flex: 1 1 auto; }
  .brand__text{
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.78rem;
  }
  .nav__toggle{
    flex: 0 0 43px;
    width: 40px;
    height: 40px;
    padding: 0;
  }
  .nav__toggle span{ width: 22px; margin: 3px auto; }
  .header__right{ flex: 0 0 auto; margin-left: 0; gap: 6px; min-width: 0; }
  .langSwitch{ gap: 4px; min-width: 0; }

  /* Meta cards mobile: stacked + wrapping text */
  .hero__meta{
  display:flex;
  flex-direction: column;
  align-items: stretch;
}
  .hero__cta .btn{ width: 100%; padding: 12px 14px; }

  .aboutPortrait{
    padding: 8px;
  }

  .aboutPortrait img{
    aspect-ratio: 4 / 4.7;
    border-radius: 16px;
  }

  /* Contact mobile compact */
  .contact{
    grid-template-columns: 1fr;
    margin-top: 2px;
  }

  .contact__left,
  .contact > :first-child{
    padding: 14px;
    border-radius: 20px;
  }

  .contact__links{
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .contactLink{
    min-height: 54px;
    border-radius: 14px;
    padding: 11px 12px;
  }

  .contactLink__k{ font-size: 0.84rem; }
  .contactLink__v{ font-size: 0.92rem; }

  .contact__cta{
    flex-direction: column;
    align-items: stretch;
  }

  .contact__cta .btn{
    width: 100%;
    justify-content: center;
    padding: 11px 14px;
  }

  .meta{
    width: 100%;
    align-self: stretch;
  }
  .meta__t,
  .meta__v{
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .nav__toggle{ display:inline-flex; align-items:center; justify-content:center; flex-direction:column; }
  .header__row{ min-height: 56px; }
  .header__right{ gap: 8px; }
  .langSwitch{ padding: 3px; gap: 4px; border-radius: 12px; }
  .langBtn{ min-width: 40px; height: 32px; border-radius: 9px; font-size: 0.74rem; }
  .nav{
    position: fixed;
    left: 12px;
    right: 12px;
    top: 76px;
    display:none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    border-radius: var(--radius2);
    background: rgba(252,250,247,0.96);
    border: 1px solid rgba(31,42,55,0.10);
    backdrop-filter: blur(12px);
  }
  .nav a{ width: 100%; }

  .nav.is-open{ display:flex; }

  /* Lightbox arrows mobile: ниже изображения, крупнее */
  .lightbox__panel{
    width: calc(100vw - 14px);
    padding: 10px 10px 76px;
  }
  .lightbox__nav{
    top: auto;
    bottom: 70px;
    transform: none;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    font-size: 43px;
  }
  .lightbox__nav--prev{ left: 10px; }
  .lightbox__nav--next{ right: 10px; }
}