/* Evolventa (GPLv2/LPPL, evolventa.github.io): файлы лежат в src/fonts/ вместе с лицензией */
@font-face {
  font-family: "Evolventa";
  src: url(../fonts/Evolventa-Regular.woff) format("woff"),
       url(../fonts/Evolventa-Regular.ttf) format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #1d1d1d;
  --card: #ebebea;
  --bg: #e4e4e3;
  --sheet-w: 900px;
  --pad: 10%;
  --font: "Evolventa", "Jost", "Century Gothic", "Avenir Next", "Avenir", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* «Лист А4» */
.sheet {
  position: relative;
  width: 100%;
  max-width: var(--sheet-w);
  min-height: calc(min(100vw, var(--sheet-w)) * 1.414);
  margin: 0 auto;
  padding: 0 var(--pad) 8%;
  background: #f4f4f3 url(../img/paper.jpg) top center / 100% auto repeat-y;
  box-shadow: 0 0 40px rgba(0, 0, 0, .12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sheet > main { flex: 1; }

/* Логотип */
.logo { display: block; text-align: center; line-height: 1.15; }
.logo b { display: block; font-weight: 400; font-size: 1.9em; }
.logo small { display: block; font-size: 1.15em; margin-top: .25em; }
.sheet > .logo { margin-top: 8%; margin-bottom: 7%; }
.footer-logo { margin-top: 8%; }
.footer-logo b { font-size: 1.6em; }
.footer-logo small { font-size: 1.05em; }

/* Меню-карточка со скрепкой */
.menu {
  position: absolute;
  top: 1%;
  right: 3.5%;
  width: 35%;
  background: rgba(232, 232, 230, .55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  z-index: 10;
  overflow: hidden;
  max-height: 62px;
  transition: max-height .55s ease;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .06);
}
.menu.open { max-height: 330px !important; }
.menu {
  --btn-h: 62px;
}
.menu__clip {
  position: absolute; top: 0; right: 7%;
  height: calc(var(--btn-h) - 18px); width: auto; pointer-events: none;
}
.menu__btn {
  display: block; width: 100%; height: 62px; padding-right: 27%; text-align: right;
  background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 1.1em; color: var(--ink);
}
@media (min-width: 640px) { .menu { --btn-h: 105px; max-height: 105px; } .menu__btn { height: var(--btn-h); } }
.menu ul { padding: 0 0 8% 14%; }
.menu li a { display: block; padding: .18em 0; font-size: 1.1em; }
.menu li a:hover, .menu li a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }

/* Главная */
.sheet.home {
  min-height: 100vh; min-height: 100dvh; max-height: none;
  display: grid; grid-template-rows: 1fr auto 1fr;
}
.sheet.home > .logo { grid-row: 2; margin: 0; }
.home .tagline {
  grid-row: 3; align-self: end;
  text-align: center; font-size: 1.15em;
  padding-bottom: 4vh;
}

/* Заголовки страниц */
h1.page-title {
  font-weight: 400; font-size: 1.6em; margin: 0 0 8%;
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px;
}
h1.item-title { font-weight: 400; font-size: 1.6em; line-height: 1.3; margin-bottom: 5%; }

/* Проекты */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9% 16%; align-items: start; }
.grid figure a { display: block; }
.grid img { width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: opacity .25s; }
.grid a:hover img { opacity: .85; }
.grid figcaption { margin-top: 1em; font-size: 1.1em; }

/* Карточка-планировка со скрепкой */
.plan-card {
  position: relative; margin: 0 0 8%;
  background: var(--card); padding: 5% 8%;
  transform: rotate(-1.6deg);
  box-shadow: 0 1px 8px rgba(0, 0, 0, .06);
  display: flex; justify-content: center;
}
.plan-card img.plan { width: 62%; }
.plan-card .clip-h {
  position: absolute; left: 3%; top: 15%; width: 20%;
}

/* Слайдер */
.slider { position: relative; margin: 0 -2% ; }
.slider__view { overflow: hidden; }
.slider__track { display: flex; transition: transform .5s ease; gap: 5%; }
.slider__track img {
  flex: 0 0 47.5%; width: 47.5%; aspect-ratio: var(--ph, 3 / 4); object-fit: cover;
}
.slider__arrow {
  position: absolute; right: -9%; top: 42%;
  width: 11%; background: none; border: 0; cursor: pointer; padding: 0;
}
.slider__arrow img { width: 100%; }
.slider__arrow:hover { transform: translateX(4px); }
.slider.single .slider__arrow { display: none; }

/* Пакеты */
.packages { display: flex; flex-direction: column; align-items: center; gap: 4.5%; text-align: center; }
.packages a { display: block; }
.packages img { width: 100%; margin: 0 auto; }
.packages .p1 img { width: 54vw; max-width: 420px; }
.packages .p2 img { width: 28vw; max-width: 215px; }
.packages .p3 img { width: 31vw; max-width: 240px; }
.packages figcaption { margin-top: .9em; font-size: 1.05em; }
.packages a:hover figcaption { text-decoration: underline; text-underline-offset: 4px; }

/* Страница пакета */
.pkg-title { font-size: 1.2em; font-weight: 400; margin-bottom: 4%; }
.pkg-meta { text-align: center; font-size: 1.15em; margin: 4% 0 8%; line-height: 1.5; }
.pkg-slider { position: relative; }
.pkg-arrow {
  position: absolute; right: -4%; top: 38%;
  width: 11%; background: none; border: 0; cursor: pointer; padding: 0; z-index: 2;
}
.pkg-arrow img { width: 100%; }
.pkg-panel { display: none; }
.pkg-panel.active { display: block; animation: fade .4s ease; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.pkg-panel h2 { font-weight: 400; font-size: 1.1em; margin-bottom: 1.2em; }
.pkg-panel ol { list-style: none; counter-reset: n; padding-left: 4%; margin-bottom: 2em; }
.pkg-panel ol li { counter-increment: n; padding: .1em 0; }
.pkg-panel ol li::before { content: counter(n) ". "; }
.pkg-panel p { margin-bottom: 1.4em; text-align: justify; }
.pkg-dots { display: flex; justify-content: center; gap: 10px; margin-top: 4%; }
.pkg-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--ink);
  background: none; cursor: pointer; padding: 0;
}
.pkg-dots button.active { background: var(--ink); }

/* О нас */
.about__photo { width: 39%; margin-left: auto; position: relative; }
.about__photo img.ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 3px solid #111; }
.about__caption { width: 39%; margin: 4% 0 0 auto; font-size: .92em; line-height: 1.4; }
.about__text { margin-top: 9%; text-align: justify; line-height: 1.5; }

/* Контакты */
.contacts h1 { margin-bottom: 8%; }
.contacts p { margin-bottom: 1.6em; }
.contacts a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 520px) {
  .grid { gap: 7% 10%; }
  .menu.open { max-height: 260px !important; }
  .menu li a { font-size: 1em; }
}

/* Телефон (iPhone, портрет 9:16): лист занимает весь экран */
@media (max-width: 520px) {
  body { font-size: 12px; background: #f4f4f3; }
  .sheet {
    min-height: 100vh; min-height: 100dvh;
    padding: 0 7% 10%;
    box-shadow: none;
  }
  .sheet > .logo { margin-top: 20vw; margin-bottom: 10vw; }
  .logo b { font-size: 1.75em; }
  .menu { width: 46%; right: 4%; top: 1.5%; }
  .menu { --btn-h: 56px; }
  .menu__btn { height: var(--btn-h); padding-right: 30%; }
  .menu { max-height: 56px; }
  .menu.open { max-height: 240px !important; }
  .menu li a { font-size: 1.05em; padding: .25em 0; }
  h1.page-title { margin-bottom: 9vw; font-size: 1.45em; }
  .grid { gap: 8vw 7vw; }
  .grid figcaption { font-size: .95em; }
  .plan-card { padding: 7% 6%; }
  .slider { margin: 0; }
  .slider__track { gap: 4%; }
  .slider__track img { flex-basis: 48%; width: 48%; }
  .slider__arrow {
    position: static; display: block; width: 26%; margin: 5% 0 0 auto;
  }
  .pkg-arrow {
    position: static; display: block; width: 26%; margin: 3% 0 0 auto;
  }
  .pkg-meta { margin: 6% 0 8%; }
  .pkg-panel p { text-align: left; }
  .about__photo { width: 52%; }
  .about__caption { width: 52%; }
  .about__text { text-align: left; margin-top: 8vw; }
  .packages { gap: 8vw; }
  .packages .p1 img { width: 76vw; }
  .packages .p2 img { width: 44vw; }
  .packages .p3 img { width: 48vw; }
}


/* Страница пакета: картинки ровно, без наклона */
.pkg-slider .plan-card { transform: none; }
.pkg-gallery { margin: 0 auto; }
.gal-view { position: relative; aspect-ratio: 5 / 6; cursor: pointer; background: #e4e4e2; }
.gal-view img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .7s ease;
}
.gal-view img.active { opacity: 1; }
.gal-dots { display: flex; justify-content: center; gap: 10px; margin-top: 5%; }
.gal-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--ink);
  background: none; cursor: pointer; padding: 0;
}
.gal-dots button.active { background: var(--ink); }

/* Логотип в левом углу напротив плашки меню (на внутренних страницах) */
.sheet .menu { top: 14px; }
.sheet:not(.home) > .logo:not(.footer-logo) { text-align: left; margin: 28px 0 9%; }
.sheet:not(.home) > .logo:not(.footer-logo) b { font-size: 1.7em; }
.sheet:not(.home) > .logo:not(.footer-logo) small { font-size: 1.05em; }
@media (max-width: 520px) {
  .sheet .menu { top: 12px; }
  .sheet:not(.home) > .logo:not(.footer-logo) { margin: 20px 0 12vw; }
  .sheet:not(.home) > .logo:not(.footer-logo) b { font-size: 1.45em; }
  .sheet:not(.home) > .logo:not(.footer-logo) small { font-size: .95em; }
}

/* Кнопка «назад» на страницах пакетов */
.back { display: inline-flex; align-items: center; gap: .7em; margin-bottom: 6%; font-size: 1.05em; }
.back img { width: 3em; transform: scaleX(-1); transition: transform .2s; }
.back:hover img { transform: scaleX(-1) translateX(5px); }
.back:hover span { text-decoration: underline; text-underline-offset: 4px; }

/* Все стрелки одного размера, как у кнопки «назад» */
:root { --arrow-w: 47px; }
.back img { width: var(--arrow-w); }
.pkg-slider .pkg-arrow, .slider .slider__arrow { width: var(--arrow-w); }
@media (max-width: 520px) {
  .pkg-slider .pkg-arrow, .slider .slider__arrow { width: var(--arrow-w); }
}

/* «назад» над стрелкой, рукописным шрифтом */
.back { flex-direction: column-reverse; align-items: flex-start; gap: 0; }
.back span {
  font-family: "Bad Script", "Caveat", "Segoe Script", "Bradley Hand", cursive;
  font-size: 1.5em; line-height: 1; margin: 0 0 -.1em 2.4em;
  -webkit-text-stroke: .35px #f6f6f5;
  transform: rotate(-4deg); transform-origin: left bottom; color: #2b2b2b;
}
.back:hover span { text-decoration: none; }

/* Галерея планировок: картинки целиком на белом листе */
.gal-view.contain { aspect-ratio: 6 / 5; background: transparent; }
.gal-view.contain img { object-fit: contain; padding: 3%; }

/* Заголовок страницы «Проекты»: без подчёркивания, 12px */
h1.page-title.projects-title { text-decoration: none; font-size: 12px; }

/* Заглушка для проектов, у которых пока нет фото */
.ph-tile { width: 100%; aspect-ratio: 3 / 4; background: rgba(205, 205, 203, .45); }

/* Заголовок страницы проекта: 12px */
h1.item-title { font-size: 12px; }

/* Страница проекта: планировка ровно, без скрепки */
#project .plan-card { transform: none; }

/* Слайдер проекта: позиции фото считаются от самой ленты */
.slider__track { position: relative; }

/* Слайдер проекта: стрелки влево и вправо под фото */
.slider .slider__nav { display: flex; justify-content: flex-end; align-items: center; gap: 18px; margin-top: 5%; }
.slider .slider__arrow { position: static; display: block; width: var(--arrow-w); margin: 0; right: auto; top: auto; }
.slider .slider__prev img { transform: scaleX(-1); }
.slider .slider__prev:hover { transform: translateX(-4px); }
.slider .slider__next:hover { transform: translateX(4px); }
.slider.single .slider__nav { display: none; }

/* Крупный просмотр фото проекта */
.slider__track img { cursor: zoom-in; }
body.lb-open { overflow: hidden; }
.lb {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(24, 24, 24, .94);
  display: flex; align-items: center; justify-content: center;
  animation: lbfade .25s ease;
}
@keyframes lbfade { from { opacity: 0; } to { opacity: 1; } }
.lb__img { max-width: 94vw; max-height: 86vh; width: auto; height: auto; object-fit: contain; cursor: zoom-out; }
.lb__close {
  position: absolute; top: 12px; right: 18px; background: none; border: 0; cursor: pointer;
  color: #f2f2f0; font: inherit; font-size: 34px; line-height: 1; padding: 6px 10px;
}
.lb__nav {
  position: absolute; bottom: 20px; background: none; border: 0; cursor: pointer; padding: 6px;
  width: calc(var(--arrow-w) + 12px);
}
.lb__nav img { width: 100%; filter: invert(1); opacity: .9; }
.lb__prev { left: 18px; } .lb__next { right: 18px; }
.lb__prev img { transform: scaleX(-1); }
.lb__count {
  position: absolute; bottom: 30px; left: 0; right: 0; text-align: center;
  color: #d9d9d6; font-size: 12px; pointer-events: none;
}
@media (min-width: 640px) {
  .lb__nav { bottom: 50%; transform: translateY(50%); }
  .lb__prev { left: 28px; } .lb__next { right: 28px; }
}

/* Подпись этажа над планировкой */
.plan-label { font-size: 12px; margin: 0 0 .7em; }
.plan-label + .plan-card { margin-top: 0; }

/* Несколько планировок на одном месте (этажи) */
.plan-card.plan-multi { display: block; margin-bottom: 0; }
.plan-view { display: grid; }
.plan-view img.plan {
  grid-area: 1 / 1; align-self: center; justify-self: center;
  opacity: 0; transition: opacity .5s ease; pointer-events: none;
}
.plan-view img.plan.active { opacity: 1; pointer-events: auto; }
.plan-multi .gal-dots { margin-top: 4%; }
.plan-nav { display: flex; justify-content: flex-end; align-items: center; gap: 18px; margin: 4% 0 8%; }
.plan-arrow { background: none; border: 0; cursor: pointer; padding: 0; width: var(--arrow-w); }
.plan-arrow img { width: 100%; }
.plan-prev img { transform: scaleX(-1); }
.plan-prev:hover { transform: translateX(-4px); } .plan-next:hover { transform: translateX(4px); }

/* Примечание под проектом */
.project-note { font-size: 12px; margin: 6% 0 0; line-height: 1.5; }

/* Страница пакета: стрелки влево и вправо под картинкой */
.pkg-slider .pkg-nav { display: flex; justify-content: flex-end; align-items: center; gap: 18px; margin: 4% 0 0; }
.pkg-slider .pkg-arrow { position: static; display: block; right: auto; top: auto; margin: 0; width: var(--arrow-w); }
.pkg-slider .pkg-prev img { transform: scaleX(-1); }
.pkg-slider .pkg-prev:hover { transform: translateX(-4px); }
.pkg-slider .pkg-next:hover { transform: translateX(4px); }


/* Контакты в форме визиток */
.contacts .bcard {
  position: relative; width: 82%; margin: 0 auto 8%;
  background-color: #dcdcda;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .35  0 0 0 0 .35  0 0 0 .22 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  box-shadow: 0 1px 6px rgba(0,0,0,.10);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; aspect-ratio: 1.75 / 1; padding: 6% 4%;
}
.contacts .bcard p { margin: 0 0 .55em; line-height: 1.35; }
.contacts .bcard p:last-child { margin-bottom: 0; }
.contacts .bcard a { text-decoration: none; }
.contacts .bcard a:hover { text-decoration: underline; text-underline-offset: 4px; }
.bc-k { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #5a5a58; margin-bottom: .1em; }
.bc-name { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.bc-line { display: block; width: 66%; height: 0; border-top: 1.5px solid #1d1d1d; margin: .35em 0 .45em; }
.bcard--bottom .hw {
  font-family: "Shadows Into Light Two", "Bad Script", "Segoe Script", cursive;
  font-size: 18px; letter-spacing: .06em; line-height: 1.15; color: #1d1d1d;
}
.bcard--bottom .hw.plus { margin: .05em 0 .2em; }
.bcard--bottom .hw.eq { margin-top: .1em; }
@media (min-width: 640px) { .contacts .bcard { width: 62%; } }

/* Металлический футляр для визиток; визитки белые */
.contacts .case { width: 86%; margin: 4% auto 0; display: flex; flex-direction: column; align-items: stretch; }
.case__half {
  position: relative; padding: 7px; border-radius: 16px;
  background: linear-gradient(135deg, #fafafa 0%, #9a9a9a 22%, #f0f0f0 38%, #6f6f6f 58%, #e6e6e6 76%, #8c8c8c 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.6);
}
.case__in {
  border-radius: 11px; padding: 6% 5%;
  background: linear-gradient(160deg, #050505 0%, #1b1b1b 55%, #0a0a0a 100%);
  box-shadow: inset 0 2px 8px rgba(0,0,0,.9), inset 0 0 0 1px rgba(255,255,255,.08);
}
.case__hinge {
  align-self: center; width: 30%; height: 14px; margin: -2px 0; position: relative; z-index: 2;
  border-radius: 3px;
  background: linear-gradient(180deg, #f7f7f7 0%, #8d8d8d 45%, #e9e9e9 70%, #6a6a6a 100%);
  box-shadow: 0 1px 3px rgba(0,0,0,.35);
}
.case__clasp {
  position: absolute; left: 50%; top: -9px; transform: translateX(-50%); z-index: 2;
  width: 30%; height: 14px; border-radius: 3px;
  background: linear-gradient(180deg, #f7f7f7 0%, #8d8d8d 45%, #e9e9e9 70%, #6a6a6a 100%);
  box-shadow: 0 1px 3px rgba(0,0,0,.35);
}
/* визитки внутри футляра: белые, стопкой */
.case .bcard {
  width: 100%; margin: 0; background-color: #f3f3f1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 .12 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  box-shadow: 3px 3px 0 -1px #cfcfcc, 5px 5px 0 -2px #b9b9b6, 0 4px 10px rgba(0,0,0,.5);
}
.case .bc-k { color: #6a6a68; }
@media (min-width: 640px) { .contacts .case { width: 64%; } }

/* Футляр «1 в 1»: серебристый хром внутри, без чёрного */
.contacts .case { width: 80%; }
.case__half {
  padding: 4px; border-radius: 15px;
  background: linear-gradient(135deg, #f4f4f4 0%, #7a7a7a 22%, #dcdcdc 42%, #5c5c5c 62%, #d2d2d2 82%, #8a8a8a 100%);
  box-shadow: 0 1px 4px rgba(0,0,0,.28);
}
.case__in {
  border-radius: 11px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.20) 0%, rgba(255,255,255,0) 40%, rgba(0,0,0,.10) 100%),
    linear-gradient(90deg, #8f8f8f 0%, #c2c2c2 16%, #aeaeae 42%, #9d9d9d 68%, #6e6e6e 90%, #8b8b8b 100%);
  box-shadow: inset 0 0 14px rgba(0,0,0,.28), inset 0 0 0 1px rgba(60,60,60,.55);
}
.case__half--top .case__in { padding: 15% 7% 5% 4.5%; }
.case__half--bottom .case__in { padding: 4.5% 7% 6.5% 4.5%; }
.case__clasp { width: 14%; height: 13px; top: -8px; border-radius: 2px; background: linear-gradient(180deg, #f1f1f1 0%, #7a7a7a 40%, #cfcfcf 65%, #5a5a5a 100%); }
.case__hinge { width: 34%; height: 13px; border-radius: 2px; background: linear-gradient(180deg, #ededed 0%, #7c7c7c 45%, #cdcdcd 70%, #5e5e5e 100%); }
.case .bcard {
  background-color: #ebebe9;
  box-shadow: 4px 4px 0 -1px #d3d3d1, 7px 7px 0 -2px #bfbfbd, 0 3px 8px rgba(0,0,0,.30);
}
.case .bc-k { color: #66666a; }
@media (min-width: 640px) { .contacts .case { width: 62%; } }

/* Контакты: фото металлического футляра, тексты лежат прямо на карточках */
.contacts .cphoto { position: relative; width: 88%; margin: 3% auto 0; container-type: inline-size; }
.cphoto__img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.cphoto__top, .cphoto__bottom {
  position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #1d1d1d;
}
.cphoto__top { left: 10%; top: 13.5%; width: 77.5%; height: 34.4%; font-size: 3.6cqw; line-height: 1.95; }
.cphoto__bottom { left: 10%; top: 58.1%; width: 78.2%; height: 35.1%; }
.cphoto__top p { margin: 0; }
.cphoto__top a { text-decoration: none; color: inherit; }
.cphoto__top a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cphoto__bottom .hw { font-family: "Shadows Into Light Two", "Bad Script", "Segoe Script", cursive; font-size: 5.2cqw; line-height: 1.2; letter-spacing: .05em; }
.cphoto__bottom .hw.plus { margin: .05em 0 .15em; }
.cphoto__bottom .bc-name { font-size: 3.4cqw; letter-spacing: .08em; text-transform: uppercase; }
.cphoto__bottom .bc-line { width: 68%; border-top-width: 1.5px; margin: .45em 0 .5em; }
@media (min-width: 640px) { .contacts .cphoto { width: 64%; } }

/* Контакты: футляр по центру страницы */
.sheet > main.contacts {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; padding: 0;
}
.sheet > main.contacts .cphoto { margin: 0; pointer-events: auto; }

/* Контакты: шрифт 12 и футляр поменьше (проценты считаются от всей страницы) */
.contacts .cphoto { width: 62%; }
.cphoto__top { font-size: 12px; line-height: 1.85; white-space: normal; }
.cphoto__top p { max-width: 100%; }
.cphoto__bottom .hw { font-size: 12px; letter-spacing: .08em; }
.cphoto__bottom .bc-name { font-size: 12px; }
.cphoto__bottom .bc-line { margin: .5em 0 .55em; }
@media (min-width: 640px) { .contacts .cphoto { width: 35%; } }
@media (max-width: 520px) { .contacts .cphoto { width: 76%; } .cphoto__top { line-height: 1.7; } }

/* Страницы списка проектов: внизу переход на следующую / предыдущую */
.pager { display: flex; justify-content: space-between; align-items: center; margin: 9% 0 0; }
.pager__num { font-size: 12px; letter-spacing: .12em; }
.pager__arrow { display: block; width: var(--arrow-w); }
.pager__arrow img { width: 100%; }
.pager__prev img { transform: scaleX(-1); }
.pager__prev:hover { transform: translateX(-4px); } .pager__next:hover { transform: translateX(4px); }
@media (max-width: 520px) { .grid { gap: 6vw 6vw; } }

/* Список проектов на телефоне: 6 штук помещаются на экран без прокрутки */
@media (max-width: 520px) {
  .projects-title { margin-bottom: 5vw !important; }
  .grid { gap: 4vw 6vw; }
  .grid img, .grid .ph-tile { aspect-ratio: 5 / 6; }
  .grid figcaption { margin-top: .55em; font-size: 11.5px; }
  .pager { margin-top: 5vw; }
}
.sheet.has-pager { padding-bottom: 4vw; }
@media (max-width: 520px) { .pager { margin-top: 3.2vw; } .projects-title { margin-bottom: 4vw !important; } .sheet.has-pager { padding-bottom: 3vw; } }

/* Весь текст сайта — 12px (кроме логотипа «Âme» и рукописного «назад») */
.menu__btn, .menu li a, .tagline, .logo small, .grid figcaption, .packages figcaption,
.about__caption, .pkg-title, .pkg-meta, .pkg-panel h2, .item-title, .project-note, .plan-label {
  font-size: 12px !important;
}

/* «О нас»: текст ниже */
.about__text { margin-top: 18%; }
@media (max-width: 520px) { .about__text { margin-top: 22vw; } }

/* «О нас»: фото и подпись ниже */
.about__photo { margin-top: 8%; }
@media (max-width: 520px) { .about__photo { margin-top: 12vw; } }

/* «О нас»: текст чуть выше */
.about__text { margin-top: 11%; }
@media (max-width: 520px) { .about__text { margin-top: 11vw; } }

/* Услуги: картинки пакетов поменьше */
.packages .p1 img { width: 46vw; max-width: 340px; }
.packages .p2 img { width: 25vw; max-width: 180px; }
.packages .p3 img { width: 27vw; max-width: 200px; }
@media (max-width: 520px) {
  .packages .p1 img { width: 62vw; }
  .packages .p2 img { width: 36vw; }
  .packages .p3 img { width: 39vw; }
  .packages { gap: 6vw; }
}

/* Локальные шрифты (без Google Fonts, чтобы работало в России). Лицензия: SIL OFL */
@font-face{font-family:"Bad Script";font-weight:400;font-display:swap;src:url(../fonts/badscript-cyrillic.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Bad Script";font-weight:400;font-display:swap;src:url(../fonts/badscript-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212}
@font-face{font-family:"Jost";font-weight:400;font-display:swap;src:url(../fonts/jost-cyrillic.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Jost";font-weight:400;font-display:swap;src:url(../fonts/jost-latin.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212}
@font-face{font-family:"Shadows Into Light Two";font-weight:400;font-display:swap;src:url(../fonts/shadows-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212}
