/* -------------------------------------------------------
   Aleksandr — Portfolio (Freelance focused)
   Light / Minimal theme
   Single-file CSS, no dependencies
-------------------------------------------------------- */

:root{
  --bg: #ffffff;      /* page background — бумага */
  --bg2:#ffffff;
  --card: #ffffff;    /* surfaces */
  --card2:#f5f5f7;    /* subtle surface */

  --text:#151515;     /* primary text — чернила */
  --muted: rgba(0,0,0,.72);
  --muted2: rgba(0,0,0,.55);
  --line: rgba(0,0,0,.16);

  --accentA:#32127A;  /* индиго */
  --accentB:#250b5e;  /* индиго тёмный */
  --ok:#16a34a;

  --shadow: 0 12px 30px rgba(0,0,0,.08);
  --radius: 16px;

  --container: 1120px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
  background:#ffffff;
  color:var(--text);
  line-height:1.5;
  overflow-x:hidden;
}
::selection{ background:#32127A; color:#fff; }

a{ color:inherit; text-decoration:none; }

:where(a, button, input, textarea, select, summary):focus-visible{
  outline:3px solid rgba(50,18,122,.32);
  outline-offset:3px;
}

code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:.92em;
  padding:.15em .35em;
  border:1px solid var(--line);
  border-radius:10px;
  background: var(--card2);
}

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

.h1{ font-size: clamp(2rem, 3.2vw, 3.05rem); line-height:1.08; margin: 14px 0 14px; letter-spacing: -.02em;}
.h2{ font-size: clamp(1.4rem, 2.0vw, 2rem); margin: 0 0 8px; letter-spacing: -.01em;}
.h3{ font-size: 1.1rem; margin: 0 0 6px; letter-spacing: -.01em;}
.lead{ color: var(--muted); font-size: 1.06rem; margin: 0 0 22px; max-width: 62ch;}
.muted{ color: var(--muted); }
.section__desc{ color: var(--muted2); max-width: 78ch; margin:0; }

.accent{
  background: none;
  color: var(--accentA);
}

/* Decorative background (disabled for minimal look) */
.fx{ display:none; }

.header{
  position:sticky;
  top:0;
  z-index:20;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(0,0,0,.35);
  color:var(--text);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
}

.logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:750;
  letter-spacing:.01em;
}
.logo__mark{
  width:34px; height:34px;
  display:grid;
  place-items:center;
  border-radius: 12px;
  background: #32127A;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}
.logo__text{ opacity:.96; }
.logo__dot{ color: #32127A; }

.logo--small .logo__mark{ width:30px; height:30px; border-radius: 11px;}
.logo--small .logo__text{ font-size:.98rem;}

.nav__links{
  display:flex;
  align-items:center;
  gap: 10px;
  color: var(--text);
}
.nav__links a{
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
}
.nav__links a:hover{
  border-color: rgba(0,0,0,.2);
  background: rgba(0,0,0,.05);
}
.nav__cta{
  padding: 10px 14px !important;
  background: #32127A;
  color: #fff !important;
  font-weight: 750;
  border: 0 !important;
}
.nav__cta:hover{ background: #250b5e !important; }

.nav__links .drop{ position:relative; flex:0 0 auto; }
.nav__links .drop__toggle{
  display:block;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor:pointer;
  background:none;
  font: inherit;
  color: inherit;
  line-height: inherit;
  white-space:nowrap;
}
.nav__links .drop__toggle:hover,
.nav__links .drop.is-open .drop__toggle{
  border-color: rgba(0,0,0,.2);
  background: rgba(0,0,0,.05);
}
.nav__links .drop__menu{
  display:none;
  position:absolute;
  top:calc(100% + 6px);
  left:0;
  min-width:220px;
  background:#fff;
  border:1px solid rgba(0,0,0,.15);
  border-radius:12px;
  box-shadow:0 10px 24px rgba(0,0,0,.12);
  padding:6px;
  flex-direction:column;
  z-index:20;
}
.nav__links .drop.is-open .drop__menu{ display:flex; }
.nav__links .drop__menu--services{ min-width:250px; }
.nav__links .drop__menu a{
  padding:9px 10px;
  border-radius:8px;
  white-space:nowrap;
  border:1px solid transparent;
}
.nav__links .drop__menu a:hover{
  background: rgba(0,0,0,.05);
  border-color: rgba(0,0,0,.2);
}

.breadcrumbs.container{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
  padding-top:22px;
  color:var(--muted2);
  font-size:.88rem;
}
.breadcrumbs.container a{ color:var(--accentA); }
.breadcrumbs.container a:hover{ text-decoration:underline; }
.breadcrumbs.container .breadcrumbs__sep{ color:rgba(0,0,0,.35); }

.review-list{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap:18px;
  margin-top:28px;
}
.review-card{
  background:#fff;
  border:2px solid #32127A;
  border-radius:16px;
  padding:22px;
  display:flex;
  flex-direction:column;
  gap:18px;
}
.review-card__quote{
  color:var(--text);
  line-height:1.55;
  margin:0;
}
.review-card__foot{
  display:flex;
  align-items:center;
  gap:12px;
  padding-top:16px;
  border-top:1px solid rgba(50,18,122,.18);
}
.review-card__avatar{
  width:56px; height:56px;
  border-radius:50%;
  object-fit:cover;
  flex-shrink:0;
}
.review-card__who{ min-width:0; }
.review-card__name{ margin:0; font-weight:750; color:var(--text); }
.review-card__role{ margin:2px 0 0; color:var(--muted); font-size:.92rem; }
.review-card__link{ display:inline-block; margin-top:4px; color:#32127A; font-weight:650; font-size:.92rem; }
.review-card__link:hover{ text-decoration:underline; }

.nav__toggle{
  display:none;
  width:44px; height:44px;
  border:1px solid rgba(0,0,0,.25);
  background: #fff;
  border-radius: 14px;
  padding: 10px;
}
.nav__toggle span{
  display:block;
  height:2px;
  background: #151515;
  border-radius: 2px;
}
.nav__toggle span + span{ margin-top: 7px; }

/* Hero */
.hero{
  display:grid;
  grid-template-columns: 1.35fr .85fr;
  gap: 26px;
  padding: 52px 0 26px;
}
.hero__left{ color:var(--text); }
.hero .lead{ color: var(--muted); }
.hero .accent{
  background: none;
  color:#32127A;
}
.hero .btn--ghost{
  color:var(--text);
  border-color: rgba(0,0,0,.35);
  background: transparent;
}
.hero .btn--ghost:hover{
  border-color: #32127A;
  background: #32127A;
  color: #fff;
}

.eyebrow{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:0;
}
.pill{
  font-size:.86rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.25);
  background: #fff;
  color: rgba(0,0,0,.75);
}

.hero__cta{ display:flex; flex-wrap:wrap; gap: 10px; align-items:center; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border-radius: 14px;
  padding: 12px 14px;
  border:1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-weight: 700;
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover{ transform: translateY(-1px); border-color: #32127A; background: #32127A; color: #fff; }
.btn:active{ transform: translateY(0px); }

.btn--primary{
  border:0;
  color:#fff;
  background: #32127A;
  box-shadow: 0 10px 24px rgba(50,18,122,.18);
}
.btn--primary:hover{ color:#fff; background:#250b5e; box-shadow: 0 12px 30px rgba(50,18,122,.24); }

.btn--ghost{
  background: transparent;
}

.btn--text{
  padding: 10px 0;
  border:0;
  background: transparent;
  color: #32127A;
}
.btn--text:hover{
  background: transparent;
  color: #250b5e;
  transform:none;
}

.btn--small{
  padding: 10px 12px;
  border-radius: 13px;
  font-size:.93rem;
}

.hero__chips{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.chip{
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.16);
  background: #fff;
  padding: 12px 12px;
}
.chip__title{
  color: rgba(15,23,42,.55);
  font-size:.82rem;
  margin-bottom: 4px;
}
.chip__value{
  font-size:.96rem;
  color: rgba(15,23,42,.90);
}

.card{
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}
.card--profile{ position:relative; min-height: 268px; padding: 20px; overflow:hidden; }
.card--mini{ margin-top: 14px; padding: 16px; }
.card--doc{ padding: 18px; }

.doc p{ margin: 0 0 12px; }
.doc h2, .doc h3{ margin-top: 18px; }
.doc ul, .doc ol{ margin: 0 0 12px; padding-left: 20px; }
.doc li{ margin: 6px 0; }
.doc .small{ font-size: .92rem; color: var(--muted2); }

.avatar-wrap{
  position:absolute;
  top:18px;
  right:18px;
  width:auto;
  display:block;
  padding:0;
}
.avatar{
  width: 92px;
  height: 92px;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 22px;
  border: 2px solid rgba(50,18,122,.6);
  box-shadow: 0 10px 26px rgba(0,0,0,.16);
}

.profile{ min-height: 96px; padding: 0 112px 0 0; }
.profile__name{ font-weight:850; font-size: 1.25rem; letter-spacing:-.01em; }
.profile__role{ color: var(--muted); margin-top: 2px; font-size: .96rem; }

.profile__status{
  margin-top: 12px;
  display:flex;
  gap:10px;
  align-items:center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card2);
  color: rgba(15,23,42,.86);
}
.dot{ width:10px; height:10px; border-radius: 50%; }
.dot--ok{
  background: var(--ok);
  box-shadow: 0 0 0 6px rgba(22,163,74,.14);
}

.profile__links{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  cursor:pointer;
}
.link:hover{
  border-color: #32127A;
  background: #32127A;
  color: #fff;
}
.link--btn{ font: inherit; }

.note-links .link{
  display:inline;
  padding:0;
  border:0;
  border-radius:0;
  background:none;
  color:#32127A;
  text-decoration:underline;
  text-underline-offset:2px;
}
.note-links .link:hover{ color:#250b5e; background:none; }

.profile__note{ margin-top: 12px; }
.profile__note .muted{ font-size: .92rem; }

.mini__title{ font-weight: 750; margin: 0 0 8px; }
.mini__list{ margin:0; padding-left: 18px; color: var(--muted); }
.mini__list li{ margin: 6px 0; }

/* Stats */
.stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 14px 0 8px;
}
.stat{
  border-radius: 16px;
  border:1px solid rgba(0,0,0,.16);
  background: #fff;
  padding: 14px 14px;
}
.stat__num{
  font-weight: 850;
  font-size: 1.45rem;
  letter-spacing: -.02em;
}
.stat__label{ color: var(--muted); margin-top: 4px; font-size:.93rem; }

/* Sections */
.section{ padding: 56px 0 0; }
.section__head{ display:grid; gap: 10px; margin-bottom: 18px; }
.section__foot{ margin-top: 18px; }
.section__foot .btn--ghost{
  color:var(--text);
  border-color: rgba(0,0,0,.4);
}
.section__foot .btn--ghost:hover{
  background: #32127A;
  border-color: #32127A;
  color:#fff;
}
.section > .section__head .h1,
.section > .section__head .h2{ color:var(--text); }
.section > .section__head .section__desc{ color:var(--muted); }

/* Grids */
.grid{ display:grid; gap: 12px; }
.grid--projects{ grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; }
.grid--stack{ grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid--services{ grid-template-columns: repeat(2, 1fr); }
.grid--process{ grid-template-columns: repeat(4, 1fr); }
.grid--faq{ grid-template-columns: repeat(2, 1fr); }
.grid--contact{ grid-template-columns:minmax(0, 1fr) minmax(0, 1.2fr); align-items:start; }
.grid--contact > *{ min-width:0; }

.card--project{ padding: 16px; min-height: 220px; display:flex; flex-direction:column; gap: 12px; }
.card--project-featured{ min-height: 268px; }
.card--project .project__top .h3{ color:#32127A; }
.project__top .muted{ margin: 0; }

.card--stack{ padding: 16px; display:flex; flex-direction:column; gap: 10px; min-height: 214px; }
.card--stack .muted{ margin: 0; }

.tags{ display:flex; flex-wrap:wrap; gap: 8px; }
.tag{
  font-size: .82rem;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: var(--card2);
  color: rgba(15,23,42,.72);
}
.project__desc{ margin:0; color: var(--muted); }
.project__links{ margin-top:auto; display:flex; gap: 10px; flex-wrap:wrap; }

/* Карточки кейсов: компактный вид, полное описание открывается стрелкой */
.card--project .project__top .muted{ min-height: 2.9em; }
/* Две строки тегов: 2 x 33.7px + gap 8px = 75.4px, третья начинается с 83.4px */
.card--project .tags{ min-height: 78px; max-height: 78px; overflow:hidden; transition: max-height .35s ease; }
.card--project.is-expanded .tags{ max-height: 400px; }
.card--project .project__links{ margin-top: 0; gap: 8px; align-content: flex-start; }
.card--project .project__links .btn{ padding: 8px 11px; font-size: .86rem; border-radius: 11px; }
.project__body{
  position:relative;
  display:flex; flex-direction:column; gap: 12px;
  min-height: 6.2em;
  max-height: 6.2em;
  overflow:hidden;
  transition: max-height .35s ease;
}
.project__body::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:2.6em;
  background: linear-gradient(to bottom, rgba(255,255,255,0), var(--card) 88%);
  pointer-events:none; transition: opacity .25s ease;
}
.card--project.is-expanded .project__body::after{ opacity:0; }
.project__toggle{
  align-self:center;
  margin-left:auto;
  width:32px; height:32px; padding:0;
  display:inline-flex; align-items:center; justify-content:center;
  border:0; border-radius:999px;
  background: var(--accentA); color:#fff; cursor:pointer;
  transition: transform .25s ease, background .2s ease;
}
.project__toggle:hover{ background: var(--accentB); }
.project__toggle:focus-visible{ outline:2px solid var(--accentA); outline-offset:3px; }
.project__toggle svg{ width:15px; height:15px; }
.card--project.is-expanded .project__toggle{ transform: rotate(180deg); }

/* Сертификаты: полноразмерные карточки.
   Ряды: диплом Нетологии во всю ширину, дальше по 3 в ряд */
.grid--certs{ grid-template-columns: repeat(6, 1fr); gap: 16px; align-items: start; }

.cert-cell{ grid-column: span 2; }
.cert-cell--wide{ grid-column: 1 / -1; }

.card--cert{
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: box-shadow .3s ease, border-color .3s ease;
}
.card--cert:hover{
  border-color: rgba(50,18,122,.55);
  box-shadow: 0 26px 60px rgba(0,0,0,.18);
}

/* Изображение сертификата — сразу в полный размер */
.cert__img{
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  cursor: zoom-in;
}
.cert__img img{
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
}
/* Нетология: диплом и подтверждение ФРДО рядом, крупно */
.cert__imgs{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cert__body{ display: grid; gap: 6px; align-content: start; }
.cert__body .muted,
.cert__body .small{ margin: 0; }
.cert__body .btn{ justify-self: start; }

.card--service{ padding: 18px; }
.card--service .muted{ margin: 0 0 10px; }
.list{ margin: 0; padding-left: 18px; color: var(--muted); }
.list li{ margin: 8px 0; }

.card--step{ padding: 16px; }
.step__num{
  font-weight: 900;
  letter-spacing: .04em;
  color: rgba(15,23,42,.45);
}
.step__title{ margin-top: 6px; font-weight: 780; }

.card--faq{ padding: 14px 16px; }
.card--faq summary{
  cursor:pointer;
  font-weight: 750;
  list-style:none;
}
.card--faq summary::-webkit-details-marker{ display:none; }
.card--faq p{ margin: 10px 0 0; }

.card--contact{ padding: 18px; }
.contact__rows{ display:grid; gap: 12px; margin-top: 10px; }
.contact__row{ display:flex; justify-content:space-between; align-items:center; gap: 10px; }
.divider{
  margin: 14px 0;
  height:1px;
  background: var(--line);
}

.card--brief{ padding: 18px; display:grid; gap: 12px; }
.brief__head{ display:grid; gap:6px; margin-bottom:2px; }
.brief__head .h3,
.brief__head p{ margin:0; }
.field{ display:grid; gap: 8px; }
.field__optional{ color:var(--muted); font-size:.82rem; font-weight:500; }
label{ color: rgba(15,23,42,.78); font-weight: 650; font-size:.95rem; }
input, textarea, select{
  width:100%;
  font: inherit;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 12px;
  outline: none;
}
textarea{ resize: vertical; min-height: 78px; }
input:focus, textarea:focus, select:focus{
  border-color: rgba(50,18,122,.45);
  box-shadow: 0 0 0 6px rgba(50,18,122,.10);
}
.brief__actions{ display:flex; gap: 10px; flex-wrap:wrap; }
.brief__alternative{ margin:0; color:var(--muted); font-size:.92rem; }

/* Компактная форма отзыва: узкая карточка по центру под списком отзывов */
.review-form{
  max-width: 560px;
  margin: 32px auto 0;
  padding: 22px;
  gap: 12px;
  border-top: 3px solid #32127A;
}
.review-form__head{ display:grid; gap:4px; margin-bottom:2px; }
.review-form__head .h3{ margin:0; font-size:1.25rem; }
.review-form__head p{ margin:0; font-size:.9rem; }
.review-form .field{ gap:6px; }
.review-form label{ font-size:.88rem; }
.review-form input,
.review-form textarea{ padding:10px 12px; border-radius:12px; font-size:.95rem; }
.review-form textarea{ min-height:92px; }
.review-form__row{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
.review-form__actions{ display:flex; margin-top:2px; }
.review-form__actions .btn{ width:100%; justify-content:center; }
.review-form .brief__status{ margin:0; font-size:.92rem; }

/* Отдельная страница отзыва (/otzyv): только форма, без навигации и витрины.
   С сайта на неё ссылок нет — адрес рассылается клиентам лично. */
.feedback-page{ padding: 40px 0 32px; }
/* Ширина задаётся через min(), иначе на узких экранах карточка упирается в края */
.feedback-page__inner{ width: min(600px, calc(100% - 40px)); display:grid; gap:20px; }
.feedback-page__logo{ justify-self:center; }
.feedback-page__head{ display:grid; gap:8px; text-align:center; }
.feedback-page__head .h1{ margin:0; font-size: clamp(1.8rem, 5vw, 2.4rem); }
.feedback-page__head .section__desc{ margin:0; }
.feedback-page .review-form--page{ margin:0; max-width:none; }
.feedback-page .review-form--page textarea{ min-height:118px; }
.feedback-page__note{ margin:0; text-align:center; font-size:.88rem; line-height:1.5; }
.feedback-page__foot{
  margin-top:8px; padding-top:16px; border-top:1px solid var(--line);
  display:grid; gap:8px; justify-items:center; text-align:center; font-size:.85rem;
}
.feedback-page__foot p{ margin:0; }
.feedback-page__links{ display:flex; gap:16px; flex-wrap:wrap; justify-content:center; }
/* Текстовые ссылки вместо плашек .link: страница должна остаться тихой */
.feedback-page__note .link,
.feedback-page__links .link{
  display:inline; padding:0; border:0; border-radius:0; background:none;
  color:#32127A; text-decoration:underline; text-underline-offset:2px;
}
.feedback-page__note .link:hover,
.feedback-page__links .link:hover{ color:#250b5e; background:none; }

.footer{
  margin-top: 56px;
  padding: 28px 0 40px;
  border-top: 1px solid rgba(0,0,0,.35);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  color:var(--text);
}
.footer__left{ display:flex; flex-direction:column; gap: 8px; }
.footer__right{ display:flex; align-items:center; gap: 12px; flex-wrap:wrap; }

.footer .muted{ color: var(--muted); }

.footer__legal{
  margin: 0;
  max-width: 72ch;
  font-size: .92rem;
  color: var(--muted2);
}

.toast{
  position: fixed;
  right: 16px;
  bottom: 92px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  color: var(--text);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

/* Reveal */
[data-reveal]{
  opacity: 1;
  transform: none;
  transition: opacity .5s ease, transform .5s ease;
}
[data-reveal].is-visible{
  opacity: 1;
  transform: translateY(0px);
}


/* Pricing */
.table-wrap{
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.price-table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
}

.price-table thead th{
  text-align: left;
  font-size: .86rem;
  letter-spacing: .01em;
  color: rgba(15,23,42,.78);
  background: var(--card2);
  padding: 12px 12px;
  border-bottom: 1px solid var(--line);
}

.price-table td{
  padding: 12px 12px;
  vertical-align: top;
  color: rgba(15,23,42,.88);
  border-bottom: 1px solid rgba(15,23,42,.08);
}

.price-table tr:last-child td{ border-bottom: 0; }

.price-table td:nth-child(3),
.price-table th:nth-child(3){
  white-space: nowrap;
}

.price-table td:last-child,
.price-table th:last-child{
  white-space: nowrap;
  font-weight: 850;
}

.price-note{
  margin-top: 12px;
  font-size: .92rem;
  color: var(--muted2);
}


/* Floating contacts (MAX / Telegram) */
.floating-actions{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.fab{
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.fab:hover{
  transform: translateY(-2px);
  background: var(--card);
  border-color: rgba(15,23,42,.22);
}
.fab svg{
  width: 22px;
  height: 22px;
}
.fab--telegram{ color: #229ED9; }
.fab--max{ color:#fff; background:#32127A; border-color:transparent; }
.fab--max:hover{ color:#fff; background:#250b5e; border-color:transparent; }
.fab--max svg{ width:24px; height:24px; }

.mobile-contact-bar{ display:none; }


/* Certificates lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(15, 6, 26, .88);
  backdrop-filter: blur(10px);
}
.lightbox--gallery{ padding-inline:88px; }
.lightbox[hidden]{ display:none; }
.lightbox__img{
  max-width: min(1100px, 100%);
  max-height: 100%;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}
.lightbox__close{
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease;
}
.lightbox__close:hover{ background: rgba(255,255,255,.22); }
.lightbox__nav{
  position: absolute;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--text);
  background: rgba(255,255,255,.96);
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0,0,0,.24);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}
.lightbox__nav:hover,
.lightbox__nav:focus-visible{
  background: var(--card2);
  color: var(--text);
  box-shadow: 0 10px 30px rgba(0,0,0,.32);
}
.lightbox__nav:active{ transform: translateY(-50%) scale(.94); }
.lightbox__nav--prev{ left: 14px; }
.lightbox__nav--next{ right: 14px; }
.lightbox__nav[hidden]{ display: none; }
.lightbox__count{
  position: absolute;
  z-index: 4;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: .9rem;
  background: rgba(15,6,26,.78);
  border: 1px solid rgba(255,255,255,.22);
  padding: 4px 12px;
  border-radius: 999px;
  pointer-events: none;
}
.lightbox__count[hidden]{ display: none; }
.lightbox__figure{
  width: min(1180px, 100%);
  max-height: calc(100dvh - 56px);
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  background: rgba(15,6,26,.96);
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
}
.lightbox__media{
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(255,255,255,.06);
  touch-action: pan-y;
}
.lightbox__caption{
  width: 100%;
  max-height: min(26dvh, 190px);
  overflow-y: auto;
  color: #fff;
  font-size: clamp(.9rem, 1.25vw, 1rem);
  line-height: 1.5;
  text-align: left;
  background: rgba(15,6,26,.98);
  border-top: 1px solid rgba(255,255,255,.18);
  padding: clamp(12px, 2vw, 18px) clamp(16px, 3vw, 28px);
}
.lightbox__caption[hidden]{ display: none; }
.lightbox__caption-project{
  display: block;
  margin-bottom: 4px;
  color: #d8ccff;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.35;
  text-transform: uppercase;
}
.lightbox__caption-project[hidden],
.lightbox__caption-link[hidden],
.lightbox__caption-text[hidden]{ display:none; }
.lightbox__caption-text{ display:block; }
.lightbox__caption-link{
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  color: #32127A;
  font-size: .86rem;
  font-weight: 800;
  text-decoration: none;
}
.lightbox__caption-link:hover,
.lightbox__caption-link:focus-visible{ background:#32127A; color:#fff; }
.lightbox--gallery .lightbox__img{
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 190px);
  border-radius: 0;
  object-fit: contain;
  box-shadow: none;
}

/* Responsive */
@media (max-width: 980px){
  .page-contact .floating-actions{ display:none; }
  .hero{ grid-template-columns: 1fr; }
  .hero__chips{ grid-template-columns: 1fr; }
  .grid--projects{ grid-template-columns: repeat(2, 1fr); }
  .grid--certs{ grid-template-columns: repeat(2, 1fr); }
  .grid--certs .cert-cell{ grid-column: span 1; }
  .grid--certs .cert-cell--wide{ grid-column: 1 / -1; }
  .grid--stack{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--process{ grid-template-columns: repeat(2, 1fr); }
  .grid--contact{ grid-template-columns:minmax(0, 1fr); }
  .grid--contact .card--brief{ order:-1; }
}

@media (max-width: 900px){
  .nav__toggle{ display:block; }
  .nav__links{
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: min(var(--container), calc(100% - 40px));
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    display:none;
    max-height:calc(100vh - 82px);
    overflow-y:auto;
  }
  .nav__links a{ width:100%; }
  .nav__links.is-open{ display:flex; }
  .nav__links .drop{ width:100%; z-index:1; }
  .nav__links .drop.is-open{ z-index:2; }
  .nav__links .drop__toggle{ width:100%; text-align:left; }
  .nav__links .drop.is-open .drop__menu{
    position:static;
    margin-top:4px;
    min-width:0;
    width:100%;
    max-height:none;
    border:1px solid rgba(0,0,0,.15);
    border-radius:12px;
    box-shadow:none;
    padding:6px;
  }
  .nav__links .drop__menu a{ width:100%; white-space:normal; }
}

@media (max-width: 720px){
  .floating-actions{
    right:12px;
    bottom:calc(max(12px, env(safe-area-inset-bottom)) + 64px);
    gap:8px;
  }
  .floating-actions .fab{ width:44px; height:44px; }
  .floating-actions .fab svg{ width:19px; height:19px; }
  .floating-actions .fab--max svg{ width:21px; height:21px; }
  .cookie:not([hidden]) ~ .floating-actions{ bottom:calc(env(safe-area-inset-bottom) + 118px + 64px); }
  .service-hero__grid > *{ min-width:0; }
  .service-actions .btn{ flex:1 1 100%; width:100%; }
  .service-points > *{ max-width:100%; white-space:normal; }
  .mobile-contact-bar{
    position:fixed;
    right:12px;
    bottom:max(12px, env(safe-area-inset-bottom));
    z-index:58;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:48px;
    padding:11px 18px;
    border:1px solid rgba(255,255,255,.28);
    border-radius:999px;
    background:#32127A;
    color:#fff;
    box-shadow:0 12px 28px rgba(50,18,122,.28);
    font-weight:850;
    line-height:1.2;
  }
  .mobile-contact-bar:hover,
  .mobile-contact-bar:focus-visible{
    background:#250b5e;
    color:#fff;
  }
  .cookie:not([hidden]) ~ .mobile-contact-bar{ bottom:calc(env(safe-area-inset-bottom) + 118px); }
  .review-list{ grid-template-columns:1fr; }
  .review-form{ padding:18px; margin-top:24px; }
  .review-form__row{ grid-template-columns:1fr; gap:10px; }
  .grid--projects{ grid-template-columns: 1fr; }
  .grid--faq{ grid-template-columns:1fr; }
  .grid--certs{ grid-template-columns: 1fr; }
  .grid--certs .cert-cell,
  .grid--certs .cert-cell--wide{ grid-column: auto; }
  .cert__imgs{ grid-template-columns: 1fr; }
  .grid--stack{ grid-template-columns: 1fr; }
  .grid--services{ grid-template-columns: 1fr; }

  .lightbox{ padding: 12px; }
  .lightbox--gallery{ padding: 12px; }
  .lightbox__close{ top: 10px; right: 10px; }
  .lightbox__nav{
    width: 50px;
    height: 50px;
    font-size: 32px;
  }
  .lightbox__nav--prev{ left: 8px; }
  .lightbox__nav--next{ right: 8px; }
  .lightbox__count{ top: 12px; }
  .lightbox__figure{
    width: 100%;
    max-height: calc(100dvh - 24px);
    border-radius: 14px;
  }
  .lightbox__caption{
    max-height: min(34dvh, 220px);
    font-size: .85rem;
    line-height: 1.45;
    padding: 11px 14px 13px;
  }
  .lightbox__caption-project{ font-size:.7rem; }
  .lightbox--gallery .lightbox__img{ max-height: calc(100dvh - 210px); }

  .stats{ grid-template-columns: 1fr; }
  .footer{ flex-direction: column; align-items:flex-start; }
  .avatar{ width:78px; height:78px; border-radius:18px; }
  .profile{ padding-right:92px; }
}

@media (max-height: 560px){
  .lightbox--gallery{ padding-block:8px; }
  .lightbox__figure{ max-height:calc(100dvh - 16px); }
  .lightbox__caption{
    max-height:110px;
    padding:8px 12px 9px;
    font-size:.82rem;
    line-height:1.35;
  }
  .lightbox__caption-project{ margin-bottom:2px; font-size:.66rem; }
  .lightbox--gallery .lightbox__img{ max-height:calc(100dvh - 126px); }
  .lightbox__count{ top:8px; }
  .lightbox__close{ top:8px; right:8px; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .btn, [data-reveal]{ transition:none !important; }
}

/* ---------- форма заявки: согласие, статус, honeypot ---------- */
.req{ color:#32127A; }
.field--hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.consent{
  display:flex; gap:10px; align-items:flex-start; text-align:left;
  font-size:14px; line-height:1.45; color:#444; margin:6px 0 4px;
  padding:12px 14px; background:#fafafa; border:1px solid #ececec; border-radius:10px;
}
.consent input{ margin-top:3px; width:16px; height:16px; accent-color:#32127A; flex:0 0 auto; }
.consent a{ color:#32127A; text-decoration:underline; }
.consent--compact{
  margin:2px 0 0; padding:10px 12px;
  font-size:12.5px; line-height:1.4; color:#555;
}
.consent--compact input{ margin-top:1px; width:15px; height:15px; }
.brief__status{ margin:10px 0 0; font-size:15px; min-height:1em; }
.brief__status.is-ok{ color:#146c43; font-weight:600; }
.brief__status.is-err{ color:#b02a37; }

/* ---------- уведомление о куках ---------- */
.cookie{
  position:fixed; left:16px; right:16px; bottom:16px; z-index:60;
  display:none; gap:14px; align-items:center; flex-wrap:wrap;
  max-width:760px; margin:0 auto; padding:14px 18px;
  background:#111; color:#fff; border-radius:14px;
  box-shadow:0 12px 30px rgba(0,0,0,.28); font-size:14px; line-height:1.45;
}
.cookie.is-visible{ display:flex; }
.cookie p{ margin:0; flex:1 1 320px; }
.cookie a{ color:#c4b5fd; text-decoration:underline; }
.cookie__actions{ display:flex; gap:8px; flex-wrap:wrap; }
.cookie button{
  flex:0 0 auto; border:0; cursor:pointer; padding:9px 20px; border-radius:10px;
  background:#32127A; color:#fff; font:inherit; font-weight:600;
}
.cookie button:hover{ background:#4a1fa8; }
.cookie .cookie__decline{
  background:transparent;
  color:#fff;
  border:1px solid rgba(255,255,255,.45);
}
.cookie .cookie__decline:hover{ background:rgba(255,255,255,.12); }

@media (max-width: 400px){
  .cookie{ left:8px; right:8px; bottom:8px; gap:9px; padding:10px 12px; font-size:12.5px; }
  .cookie p{ flex-basis:100%; }
  .cookie__actions{ width:100%; }
  .cookie button{ flex:1 1 0; padding:8px 7px; }
}

/* Плитки площадок с отзывами: страница-ссылка /otzyvy (2 x 2)
   и верх reviews.html (.revhub--wide, 4 в ряд на десктопе). */
.revhub{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:6px 0 0;padding:0;list-style:none;}
.revhub__tile{display:grid;justify-items:center;align-content:start;gap:8px;height:100%;padding:26px 14px 22px;
  border:1px solid var(--line);border-radius:18px;background:#fff;color:var(--text);text-align:center;text-decoration:none;
  box-shadow:var(--shadow);transition:background-color .18s ease,border-color .18s ease,color .18s ease,transform .18s ease;}
.revhub__icon{display:block;width:72px;height:72px;margin:0 0 6px;}
.revhub__name{font-weight:800;font-size:1.12rem;line-height:1.25;}
.revhub__cap{font-size:.86rem;line-height:1.35;color:var(--muted2);transition:color .18s ease;}
.revhub__bubble{fill:#32127A;transition:fill .18s ease;}
.revhub__dot{fill:#fff;transition:fill .18s ease;}
.revhub__tile:hover,.revhub__tile:focus-visible{background:#32127A;border-color:#32127A;color:#fff;transform:translateY(-2px);}
.revhub__tile:hover .revhub__cap,.revhub__tile:focus-visible .revhub__cap{color:rgba(255,255,255,.78);}
.revhub__tile:hover .revhub__bubble,.revhub__tile:focus-visible .revhub__bubble{fill:#fff;}
.revhub__tile:hover .revhub__dot,.revhub__tile:focus-visible .revhub__dot{fill:#32127A;}
@media(max-width:420px){
  .revhub{gap:10px;}
  .revhub__tile{padding:20px 10px 18px;}
  .revhub__icon{width:60px;height:60px;}
  .revhub__name{font-size:1rem;}
  .revhub__cap{font-size:.8rem;}
}
@media(prefers-reduced-motion:reduce){
  .revhub__tile{transition:none;}
  .revhub__tile:hover,.revhub__tile:focus-visible{transform:none;}
}
.revhub--wide{max-width:900px;margin:30px auto 0;grid-template-columns:repeat(4,minmax(0,1fr));}
@media(max-width:820px){ .revhub--wide{grid-template-columns:repeat(2,minmax(0,1fr));} }
