:root{
  /* Calm light palette */
  --bg:#fbf9ff;          /* почти белый фон */
  --panel:#f1e9ff;       /* карточки */
  --alt:#ebe0ff;         /* альтернативные секции */
  --dense:#e2d3ff;       /* плотные блоки */
  --hover:#f6f1ff;       /* hover */

  --text:#1b1026;
  --muted:#5b4a77;

  --line:rgba(27,16,38,.10);

  --primary:#1b1026;
  --primaryText:#ffffff;
  --ghostBg:rgba(255,255,255,.7);

  --shadow: 0 10px 25px rgba(27,16,38,.08);
  --shadowHover: 0 14px 32px rgba(27,16,38,.12);

  --radius:18px;
  --radiusSm:14px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}


/* Reset */
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(800px 500px at 20% -10%, rgba(120,80,200,.04), transparent 60%),
    radial-gradient(800px 500px at 90% 0%, rgba(120,80,200,.03), transparent 60%),
    var(--bg);
}

img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
button, input, select, textarea{ font:inherit; }
::selection{ background: rgba(27,16,38,.12); }

/* Layout */
.container{ width:min(1120px, calc(100% - 32px)); margin:0 auto; }

/* Text helpers */
.muted{ color:var(--muted); }
.fine{ font-size:12px; line-height:1.4; }
.lead{ font-size:18px; color:var(--muted); line-height:1.6; }

.center{
  display:flex;
  gap:12px;
  justify-content:center;
  align-items:center;
  margin-top:18px;
  flex-wrap:wrap;
}

/* Pills */
.pill{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  font-size:12px;
  color:var(--muted);
  background: rgba(255,255,255,.25);
}

/* Topbar */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(236,219,255,.82);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
}
.topbar__left{
  display:flex;
  gap:10px;
  align-items:center;
}
.topbar__right{
  display:flex;
  gap:10px;
  align-items:center;
}
.topbar__link{
  font-size:14px;
  color:var(--muted);
  border:1px solid transparent;
  padding:6px 10px;
  border-radius:10px;
}
.topbar__link:hover{
  background: var(--hover);
  border-color: rgba(27,16,38,.10);
}
.topbar__link strong{ color:var(--text); }

/* Header */
.header{
  border-bottom:1px solid var(--line);
  background: rgba(236,219,255,.72);
  backdrop-filter: blur(10px);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:14px;
}

/* Brand */
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:.2px;
}
.brand__mark{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:12px;
  background: rgba(255,255,255,.35);
}
.brand__text{ font-size:16px; }
.brand__logo{
  height: 36px;     /* можешь поменять на 32 / 40 / 44 */
  width: auto;
  display: block;
}

/* Nav */
.nav{
  display:flex;
  gap:18px;
  align-items:center;
}
.nav a{
  color:var(--muted);
  font-size:14px;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid transparent;
}
.nav a:hover{
  color:var(--text);
  background: var(--hover);
  border-color: rgba(27,16,38,.10);
}

/* Burger */
.burger{
  display:none;
  background: rgba(255,255,255,.35);
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px;
  cursor:pointer;
}
.burger span{
  display:block;
  width:18px;
  height:2px;
  background:var(--text);
  margin:4px 0;
  opacity:.9;
}

/* Mobile nav */
.mobileNav{
  display:none;
  border-top:1px solid var(--line);
  padding:12px 0;
}
.mobileNav a{
  display:block;
  padding:12px 0;
  color:var(--muted);
}
.mobileNav a:hover{
  background: var(--hover);
  border-radius:12px;
  padding-left:12px;
  padding-right:12px;
}
.mobileNav.show{ display:block; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 14px;
  border-radius:var(--radiusSm);
  border:1px solid transparent;
  background:var(--primary);
  color:var(--primaryText);
  font-weight:800;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover{
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: var(--shadowHover);
}
.btn:active{ transform: translateY(0); box-shadow: var(--shadow); }

.btn--ghost{
  background: var(--ghostBg);
  color: var(--text);
  border:1px solid rgba(27,16,38,.16);
  box-shadow:none;
}
.btn--ghost:hover{
  background: var(--hover);
  box-shadow: none;
}

.btn--small{
  padding:9px 12px;
  border-radius:12px;
  font-size:13px;
}
.btn--full{ width:100%; margin-top:8px; }

/* Sections */
.section{ padding:46px 0; }
.section--alt{
  background: rgba(255,255,255,.18);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.section__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}
.section__head h2{
  margin:0;
  font-size:28px;
  letter-spacing:-.3px;
}
.section__head p{
  margin:0;
  max-width:520px;
}

/* Hero */
.hero{ padding:34px 0 26px; }
.hero__inner{
  display:grid;
  grid-template-columns: 1.2fr .9fr;
  gap:22px;
  align-items:start;
}
.hero__copy{
  border-radius: var(--radius);
  padding: 6px 0;
}
.hero h1{
  margin:0 0 10px;
  font-size:44px;
  line-height:1.08;
  letter-spacing:-.7px;
}
.hero__cta{
  display:flex;
  gap:12px;
  margin:18px 0 18px;
  flex-wrap:wrap;
}

/* Trust row */
.trust{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
  margin-top:8px;
}
.trust__item{
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
  background: rgba(255,255,255,.30);
  transition: background .2s ease, transform .2s ease;
}
.trust__item:hover{
  background: var(--hover);
  transform: translateY(-2px);
}
.trust__item strong{ display:block; font-size:14px; }
.trust__item span{ display:block; font-size:12px; margin-top:3px; color:var(--muted); }

/* Cards / Panels */
.card{
  background: rgba(255,255,255,.28);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.card:hover{
  background: var(--hover);
  transform: translateY(-2px);
  box-shadow: var(--shadowHover);
}
.card--wide{ margin-top:18px; background: rgba(215,189,248,.55); }
.card--wide:hover{ background: rgba(215,189,248,.62); }

.card__header{ margin-bottom:10px; }
.h3{ font-size:18px; margin:0 0 6px; }

/* Forms */
.form label{
  display:block;
  font-size:13px;
  color:var(--muted);
  margin:10px 0;
}
input, select, textarea{
  width:100%;
  margin-top:6px;
  background: rgba(255,255,255,.60);
  border:1px solid rgba(27,16,38,.18);
  border-radius:14px;
  padding:11px 12px;
  color:var(--text);
  outline:none;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus{
  background: var(--hover);
  border-color: rgba(27,16,38,.26);
  box-shadow: 0 0 0 4px rgba(27,16,38,.08);
}
input::placeholder, textarea::placeholder{ color: rgba(74,58,99,.7); }

.grid2{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }

/* Service cards */
.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}
.svc{
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
  background: rgba(255,255,255,.28);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.svc:hover{
  background: var(--hover);
  transform: translateY(-2px);
  box-shadow: var(--shadowHover);
}
.svc h3{ margin:0 0 6px; font-size:16px; }
.svc p{ margin:0; color:var(--muted); line-height:1.55; }

/* Gallery */
.gallery{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}
.shot{
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  background: rgba(255,255,255,.28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.shot:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadowHover);
}
.ph{
  height:190px;
  display:grid;
  place-items:center;
  color:var(--muted);
  background: linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,.20));
  transition: background .2s ease;
}
.shot:hover .ph{
  background: linear-gradient(135deg, var(--hover), rgba(255,255,255,.28));
}
.shot figcaption{
  padding:12px;
  color:var(--muted);
  font-size:13px;
}

/* Steps */
.steps{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:12px;
}
.steps li{
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
  background: rgba(255,255,255,.28);
  transition: transform .2s ease, background .2s ease;
}
.steps li:hover{
  background: var(--hover);
  transform: translateY(-2px);
}
.steps h3{ margin:0 0 6px; font-size:16px; }
.steps p{ margin:0; color:var(--muted); line-height:1.55; }

/* Areas */
.areas{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.areas__box{
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
  background: rgba(255,255,255,.28);
  transition: transform .2s ease, background .2s ease;
}
.areas__box:hover{
  background: var(--hover);
  transform: translateY(-2px);
}
.areas__box h3{ margin:0 0 6px; font-size:16px; }

/* Quotes */
.quotes{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
}
.quote{
  margin:0;
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
  background: rgba(255,255,255,.28);
  transition: transform .2s ease, background .2s ease;
}
.quote:hover{
  background: var(--hover);
  transform: translateY(-2px);
}
.quote p{ margin:0 0 10px; line-height:1.55; }
.quote footer{ color:var(--muted); font-size:13px; }

/* FAQ */
.faq details{
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px 16px;
  background: rgba(255,255,255,.28);
  margin-bottom:10px;
  transition: background .2s ease;
}
.faq details:hover{ background: var(--hover); }
.faq summary{ cursor:pointer; font-weight:800; }
.faq p{ margin:10px 0 0; color:var(--muted); line-height:1.55; }

/* CTA Box */
.ctaBox{
  border:1px solid rgba(27,16,38,.18);
  border-radius:18px;
  padding:18px;
  background: rgba(215,189,248,.62);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  box-shadow: var(--shadow);
}
.ctaBox__actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

/* Footer */
.footer{
  border-top:1px solid var(--line);
  padding:26px 0 26px;
  background: rgba(255,255,255,.18);
}
.footer__inner{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
}
.brand--footer .brand__mark{ background: rgba(255,255,255,.35); }
.footer__links{
  display:flex;
  flex-direction:column;
  gap:8px;
  color:var(--muted);
}
.footer__bottom{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:18px;
}
.sep{ opacity:.35; }

/* Sticky mobile CTA */
.stickyCta{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  display:none;
  padding:10px;
  background: rgba(236,219,255,.88);
  border-top:1px solid var(--line);
  backdrop-filter: blur(10px);
  gap:10px;
}
.stickyCta__btn{
  flex:1;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  padding:12px 10px;
  border-radius:14px;
  border:1px solid rgba(27,16,38,.18);
  color:var(--text);
  background: rgba(255,255,255,.38);
  font-weight:900;
}
.stickyCta__btn:hover{ background: var(--hover); }
.stickyCta__btn--primary{
  background: var(--primary);
  color: var(--primaryText);
  border-color: transparent;
}
.stickyCta__btn--primary:hover{ filter: brightness(1.06); }

/* Responsive */
@media (max-width: 960px){
  .hero__inner{ grid-template-columns:1fr; }
  .trust{ grid-template-columns:1fr; }
  .cards{ grid-template-columns:1fr; }
  .gallery{ grid-template-columns:1fr; }
  .steps{ grid-template-columns:1fr; }
  .quotes{ grid-template-columns:1fr; }
  .areas{ grid-template-columns:1fr; }

  .nav{ display:none; }
  .burger{ display:inline-block; }
  .stickyCta{ display:flex; }

  .ctaBox{ flex-direction:column; align-items:flex-start; }
}
/* Контейнер для картинки */
.ph {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important; /* Делает блок строго квадратным */
  position: relative !important;
  overflow: hidden !important;   /* Прячет всё, что не влезло */
  border-radius: 18px !important;
  background: #eee;              /* Цвет фона, пока грузится фото */
}

/* Сама картинка внутри */
.ph img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;  /* Центрирует и обрезает лишнее */
  display: block !important;
}

.shot:hover .ph img {
  transform: scale(1.05); /* Легкий зум при наведении */
}
/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; scroll-behavior:auto; }
}

/* Lightbox modal */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(12, 10, 18, .65);
  backdrop-filter: blur(8px);
}

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

.lightbox__stage{
  width: min(1100px, calc(100% - 16px));
  max-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
}

.lightbox__img{
  max-width: 100%;
  max-height: calc(100vh - 64px);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  background: rgba(255,255,255,.06);
}

.lightbox__close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.lightbox__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lightbox__prev{ left: 14px; }
.lightbox__next{ right: 14px; }

.lightbox__close:hover,
.lightbox__nav:hover{
  background: rgba(255,255,255,.18);
}

@media (max-width: 960px){
  .lightbox__prev{ left: 10px; }
  .lightbox__next{ right: 10px; }
  .lightbox__nav{ width: 42px; height: 42px; font-size: 30px; }
}
/* Исправление для мобильного меню */
@media (max-width: 960px) {
  /* Когда бургер активен, превращаем его в крестик */
  .burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .burger.active span:nth-child(2) { opacity: 0; }
  .burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  /* Стили для открытого меню */
  .nav.active {
    display: flex !important; /* Показываем меню */
    flex-direction: column;
    position: absolute;
    top: 100%; /* Сразу под хедером */
    left: 0;
    right: 0;
    background: rgba(236, 219, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 20px;
    border-bottom: 1px solid var(--line);
    gap: 10px;
    z-index: 100;
    box-shadow: var(--shadow);
  }

  .nav.active a {
    width: 100%;
    text-align: center;
    font-size: 18px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.4);
  }
}