/* ==========================================================
   Фотолика — сайт-портфолио
   Цвета перенесены со старого сайта fotolika.ru
   ========================================================== */

/* Фирменный шрифт со старого сайта — файлы лежат в папке font/
   (внутри это Cuprum; подключаем под именем "fotolika") */
@font-face {
  font-family: "fotolika";
  src: url("../font/fotolika.eot");
  src: url("../font/fotolika.eot?#iefix") format("embedded-opentype"),
       url("../font/fotolika.woff") format("woff"),
       url("../font/fotolika.otf") format("opentype"),
       url("../font/fotolika.ttf") format("truetype"),
       url("../font/fotolika.svg#fotolika") format("svg");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f1f2ed;          /* фон старого сайта */
  --ink: #483f73;         /* глубокий фиолетовый заголовков */
  --text: #444444;        /* основной текст старого сайта */
  --muted: #77718c;       /* приглушённый сиренево-серый */
  --line: #ddd9e6;        /* светло-сиреневые линии */
  --dark: #453d72;        /* тёмные секции — глубокий фиолетовый */
  --dark-2: #514884;      /* подложки в тёмных секциях */
  --accent: #f16d1a;      /* фирменный оранжевый */
  --red: #ee432e;         /* красная кнопка записи */
  --pink: #fe1759;        /* розовый акцент-подписи */
  --lav: #a79ecd;         /* лавандовое меню старого сайта */
  --soft: #d8d4eb;        /* мягкий сиреневый фон */
  --white: #fff;
  --radius: 18px;
  --shadow: 0 24px 60px -30px rgba(72, 63, 115, .45);
  --font-display: "fotolika", "Segoe UI", Arial, sans-serif;
  --font-body: "fotolika", "Segoe UI", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 18px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

section { padding: clamp(30px, 9vw, 30px) 0; }
.section--tight { padding-top: 0; }

/* ---------- Типографика ---------- */

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .72rem;
  color: var(--pink);
  font-weight: 700;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 30px;
  color: var(--ink);
}

.section-title em {
  font-style: italic;
  color: var(--accent);
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-block;
  padding: 16px 34px;
  background: var(--accent);
  color: var(--white);
  border: 1px solid var(--accent);
  border-radius: 100px;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  transition: .35s ease;
}

.btn:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.btn--small { padding: 11px 24px; font-size: .84rem; }

/* ---------- Шапка ---------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 18px 0;
  transition: .4s ease;
}

.header.is-scrolled {
  background: rgba(241, 242, 237, .7);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 14px 0;
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 34px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: .02em;
}

.logo span { color: var(--accent); font-style: italic; }

.logo--img { font-size: 0; line-height: 0; }
.logo--img img { height: 88px; width: auto; }

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.nav__link {
  text-decoration: none;
  color: var(--ink);
  font-size: 1.03rem;
  font-weight: 600;
  position: relative;
  padding: 4px 0;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s ease;
}

.nav__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  margin-left: auto;
}

.burger span {
  width: 26px; height: 2px;
  background: var(--ink);
  transition: .3s;
}

/* ---------- Герой ---------- */

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  padding: 130px 0 70px;
  position: relative;
  overflow: hidden;
  gap: 40px;
}

.hero .container { position: relative; z-index: 2; }

.hero__inner {
  grid-column: 1;
  width: min(1180px, 92%);
  margin-inline: auto;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: .72rem;
  color: var(--pink);
  font-weight: 700;
  margin-bottom: 22px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  font-weight: 600;
  line-height: 1.02;
  margin-bottom: 26px;
  color: var(--ink);
}

.hero__title em { font-style: italic; color: var(--accent); }

.hero__text {
  max-width: 460px;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 38px;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__photo {
  grid-column: 2;
  grid-row: 1;
  height: min(78vh, 720px);
  border-radius: 200px 200px var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(160deg, var(--soft), var(--lav));
}

.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

.hero__scroll {
  position: absolute;
  left: 4%;
  bottom: 26px;
  font-size: .68rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}

/* ---------- Обо мне ---------- */

.about__inner {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.about__photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
  background: linear-gradient(160deg, var(--soft), var(--lav));
}

.about__photo img { width: 100%; height: 100%; object-fit: cover; }

.about__photo--empty { min-height: 380px; }

.about__body { margin-top: 30px; }

.about__body p { color: var(--muted); margin-bottom: 24px; font-size: 1.0rem; line-height: 1.7; }

.about__facts {
  list-style: none;
  display: flex;
  gap: 44px;
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.about__facts strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--accent);
  line-height: 1;
}

.about__facts span { font-size: .9rem; color: var(--muted); }

/* ---------- Галерея студии (страница «О фотостудии») ---------- */

.about__gallery {
  margin-top: -130px;
}

.about__gallery .grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.about__gallery .grid__item,
.about__gallery .grid__item:nth-child(3n+2) {
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, var(--soft), var(--lav));
  border: 1px solid var(--line);
}

.about__gallery .grid__item::after {
  background: linear-gradient(to top, rgba(72, 63, 115, .45), transparent 55%);
}

.about__gallery-hint {
  margin-top: 14px;
  font-size: .8rem;
  color: var(--muted);
  text-align: center;
}

.about__gallery-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  font-style: italic;
  color: var(--ink);
  text-align: center;
  margin-bottom: 14px;
}

.about__gallery-title--second {
  margin-top: 34px;
}

/* ---------- Съёмки в других студиях (страница «О фотостудии») ---------- */

.studio-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
}

.studio-intro {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 900px;
}

.studio + .studio { margin-top: 44px; }

.studio__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}

.grid.studio-gallery {
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.grid.studio-gallery .grid__item,
.grid.studio-gallery .grid__item:nth-child(3n+2) {
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, var(--soft), var(--lav));
  border: 1px solid var(--line);
}

/* ---------- Тёмные секции ---------- */

.section--dark {
  background: var(--dark);
  color: #efeaff;
}

.section--dark .section-title { color: #fff; }

.section--dark .section-eyebrow { color: var(--lav); }

/* ---------- Портфолио ---------- */

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter {
  padding: 10px 24px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: transparent;
  color: #efeaff;
  font-family: var(--font-body);
  font-size: .86rem;
  cursor: pointer;
  transition: .3s;
}

.filter:hover { border-color: var(--accent); }

.filter.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  cursor: zoom-in;
  background: var(--dark-2);
}

.grid__item:nth-child(3n+2) { aspect-ratio: 4 / 4.4; }

.grid__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.7,.3,1);
}

.grid__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(69, 61, 114, .55), transparent 45%);
  opacity: 0;
  transition: .4s;
}

.grid__item:hover img { transform: scale(1.06); }
.grid__item:hover::after { opacity: 1; }

.grid__item.is-hidden { display: none; }

/* ---------- Услуги ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 32px;
  position: relative;
  transition: .4s ease;
}

.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.card--accent {
  background: var(--dark);
  border-color: var(--dark);
  color: #efeaff;
}

.card.card--accent h3,
.card.card--accent .card__h { color: #fff; }
.card.card--accent p, .card.card--accent li { color: #ece7ff; }

.card__num {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: .1em;
}

.card h3,
.card .card__h {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  margin: 14px 0 12px;
  color: var(--ink);
}

.card p { color: var(--muted); font-size: .94rem; margin-bottom: 18px; }

.card ul {
  list-style: none;
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.card li {
  padding: 7px 0 7px 22px;
  position: relative;
  border-top: 1px dashed var(--line);
}

.card--accent li { border-top-color: rgba(255,255,255,.14); }

.card li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.card__price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
  font-weight: 600;
}

.card__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.card__meta .btn { align-self: center; }

/* ---------- Выделяющиеся услуги (баннеры над карточками) ---------- */

.service-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 30px;
}

.service-feature {
  display: grid;
  grid-column: span 2;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 26px;
  background: linear-gradient(120deg, #453d72 0%, #5a4f99 55%, #6d5fb8 100%);
  border-radius: var(--radius);
  padding: 28px 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: .4s ease;
}

.service-feature::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241,109,26,.35) 0%, transparent 70%);
  top: -120px;
  right: -60px;
  pointer-events: none;
}

.service-feature:hover { transform: translateY(-4px); box-shadow: 0 30px 70px -30px rgba(72,63,115,.6); }

.service-feature__link {
  display: block;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.service-feature__tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border-radius: 100px;
  padding: 5px 14px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.service-feature__h {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: #fff;
}

.service-feature__text {
  font-size: .92rem;
  color: #ece7ff;
  max-width: 520px;
  margin: 0 0 16px;
}

.service-feature__meta {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.service-feature__price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffb37b;
}

.service-feature__btn { background: var(--accent); border-color: var(--accent); }

/* Галерея внутри баннера: квадрат 3×3 */
.service-feature__gallery {
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  position: relative;
  z-index: 1;
  justify-self: end;
  width: 100%;
}

.service-feature__gallery .grid__item {
  aspect-ratio: 1 / 1;
  border-radius: 11px;
}

.service-feature__gallery .grid__item:nth-child(3n+2) { aspect-ratio: 1 / 1; }

/* Баннер «Портфолио» в шапке страницы услуги/статьи */
.portfolio-banner {
  grid-column: auto;
  max-width: 870px;
  margin: 30px auto 0;
  padding: 28px 32px;
  grid-template-columns: minmax(0, 1fr) 340px;
  text-align: left;
}

.portfolio-banner .service-feature__body {
  position: relative;
  z-index: 1;
}

.portfolio-banner .service-feature__tag { margin-bottom: 10px; }
.portfolio-banner .service-feature__h { font-size: 1.55rem; }
.portfolio-banner .service-feature__text { max-width: 470px; font-size: .96rem; margin-bottom: 14px; }

/* ---------- Подарочный сертификат ---------- */

.gift-feature {
  background: linear-gradient(150deg, #372f5e 0%, #4a3f80 60%, #5b4e9e 100%);
  border-radius: var(--radius);
  padding: 34px 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  align-items: stretch;
  transition: .4s ease;
}

.gift-feature::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 23, 89, .28) 0%, transparent 70%);
  bottom: -120px;
  left: -80px;
  pointer-events: none;
}

.gift-feature:hover { transform: translateY(-4px); box-shadow: 0 30px 70px -30px rgba(72,63,115,.6); }

.gift-feature__link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  position: relative;
  z-index: 1;
  width: 100%;
}

.gift-feature__icon {
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 18px;
}

.gift-feature__h {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0 0 12px;
  color: #fff;
}

.gift-feature__text {
  font-size: .92rem;
  color: #ece7ff;
  margin: 0 0 24px;
  flex-grow: 1;
}

.gift-feature__btn { margin-top: auto; background: var(--accent); border-color: var(--accent); }

/* ---------- Прайс услуги ---------- */

.service-price {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 26px 0 26px;
  background: var(--soft);
}

.service-price__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
}

.service-price__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}

.service-price__note {
  display: block;
  font-family: var(--font-body);
  font-size: .84rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
}

.service-price__cost {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.service-price__hint {
  margin-top: 16px;
  font-size: .86rem;
  color: var(--muted);
}

/* ---------- Цитата ---------- */

.section--accent { background: var(--soft); }

.quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  font-style: italic;
  line-height: 1.35;
  text-align: center;
  max-width: 900px;
  margin-inline: auto;
  color: var(--ink);
}

.quote cite {
  display: block;
  margin-top: 24px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: .85rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pink);
}

/* ---------- Контакты ---------- */

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
}

.contact__info {
  display: flex;
  flex-direction: column;
}

.contact__info > p { color: var(--muted); margin-bottom: 30px; }

.contact__list {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact__list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: .9rem;
}

.contact__list li span { color: var(--muted); }

.contact__list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.contact__list a:hover { color: var(--pink); }

.contact__list b {
  color: var(--ink);
  font-weight: 700;
  text-align: right;
}

/* ---------- Карта (схема проезда) ---------- */

.map {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow);
}

.map__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.map__text {
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 16px;
}

.map__frame {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.map__open {
  display: inline-block;
  margin-top: 16px;
  color: var(--accent);
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  transition: .3s;
}

.map__open:hover { color: var(--red); }

/* ---------- Печать фотографий ---------- */

.print__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.print__body p { color: var(--muted); margin-bottom: 26px; }

.print__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.print__tags li {
  padding: 9px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  transition: .3s;
}

.print__tags li:hover { border-color: var(--accent); }

.print__prices {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 42px);
  box-shadow: var(--shadow);
}

.print__prices h3,
.print__prices-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
}

.prices { list-style: none; }

.prices li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
  font-size: .95rem;
}

.prices li:last-child { border-bottom: 0; }

.prices span { color: var(--text); }

.prices b {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.print__note {
  margin-top: 18px;
  font-size: .8rem;
  color: var(--muted);
}

/* ---------- Статьи ---------- */

.articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.article {
  display: flex;
  flex-direction: column;
  background: var(--dark-2);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: .4s ease;
}

.article:hover {
  transform: translateY(-6px);
  border-color: var(--lav);
  box-shadow: var(--shadow);
}

.article__img {
  aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, var(--lav), var(--soft));
  overflow: hidden;
}

.article__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.article:hover .article__img img { transform: scale(1.05); }

.article__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 26px 28px;
  flex: 1;
}

.article__meta {
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lav);
  font-weight: 700;
}

.article h3,
.article .article__h {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
}

.article p { font-size: .88rem; color: #cec8e8; }

.article__more {
  margin-top: auto;
  padding-top: 14px;
  color: var(--accent);
  font-size: .86rem;
  font-weight: 700;
  transition: .3s;
}

.article:hover .article__more { color: var(--white); }

/* ---------- Страница статьи ---------- */

.article-hero {
  padding-top: clamp(110px, 15vh, 180px);
  padding-bottom: 10px;
  text-align: center;
}

.article-meta-line {
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pink);
  font-weight: 700;
  margin-top: -16px;
}

.article-lead {
  max-width: 880px;
  margin: 20px auto 0;
  font-size: 1.12rem;
  color: var(--muted);
  text-align: center;
}

.article-content {
  max-width: 760px;
  margin: 20px auto 0;
  padding: 10px 0;
  text-align: left;
}

.article-content p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
  margin: 34px 0 12px;
}

.article-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 10px;
}

.article-content h2:first-child { margin-top: 0; }

.article-cta {
  background: linear-gradient(120deg, #453d72 0%, #5a4f99 60%, #6d5fb8 100%);
  border-radius: var(--radius);
  padding: 26px 30px;
  color: #fff;
  font-size: 1.12rem;
  line-height: 1.65;
  text-align: center;
  margin: 24px 0 26px;
}

.article-cta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.article-cta a {
  color: inherit;
  text-decoration: underline;
}

/* Галерея фото, поднятая в шапку страницы */
.article-hero__gallery {
  max-width: 760px;
  margin: 30px auto 0;
}

.article-cover {
  display: block;
  width: 100%;
  max-width: 760px;
  margin: 30px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.article-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.article-img {
  border-radius: var(--radius);
  max-width: 100%;
  height: auto;
}

.article-img--right {
  float: right;
  width: 44%;
  margin: 8px 0 18px 24px;
}

.grid.article-gallery {
  margin: 12px 0 16px;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.grid.article-gallery .grid__item,
.grid.article-gallery .grid__item:nth-child(3n+2) {
  aspect-ratio: 1 / 1;
}

/* ---------- Портфолио ---------- */

.portfolio-gallery .grid.article-gallery {
  margin: 0 0 48px;
}

.article-back {
  display: inline-block;
  margin: 36px auto 0;
  color: var(--ink);
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  transition: .3s;
}

.article-back:hover { color: var(--accent); }

.article-body { padding-top: 0; text-align: center; }
.article-hero .section-title { margin-bottom: 14px; }

/* ---------- Внутренние страницы ---------- */

.page-hero {
  padding-top: clamp(115px, 15vh, 185px);
  padding-bottom: clamp(4px, 1vw, 12px);
}

.page-hero .section-title { margin-bottom: 10px; }

.page-hero__lead {
  width: 100%;
  max-width: none;
  color: var(--muted);
  font-size: 1.0rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.nav__link.is-active { color: var(--accent); }
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }

.seo-block { border-top: 1px solid var(--line); }

.seo-block__inner { max-width: 960px; }

.seo-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 18px;
}

.seo-block p { color: var(--muted); margin-bottom: 18px; font-size: 1.0rem; line-height: 1.7; }

.seo-placeholder {
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 26px 30px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.9;
}

/* ---------- Главная: анонсы разделов ---------- */

.home-first { padding-top: clamp(110px, 14vh, 170px); }

.promo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.promo__card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px;
  text-decoration: none;
  color: inherit;
  transition: .4s ease;
}

.promo__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.promo__card h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ink);
}

.promo__card p { color: var(--muted); font-size: .92rem; }

.promo__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--soft);
  color: var(--ink);
  transition: .4s ease;
}

.promo__icon svg { width: 30px; height: 30px; }

.promo__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.promo__card:hover .promo__icon {
  background: var(--accent);
  color: #fff;
}

.promo__card span:not(.promo__icon) {
  margin-top: auto;
  padding-top: 12px;
  color: var(--accent);
  font-weight: 700;
  font-size: .86rem;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}

.mini-grid a {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--lav), var(--soft));
  transition: .4s ease;
}

.mini-grid a:hover { transform: translateY(-4px); }

.mini-grid img { width: 100%; height: 100%; object-fit: cover; }

.home-cta { text-align: center; }

.home-cta p {
  color: var(--muted);
  max-width: 560px;
  margin: -10px auto 30px;
}

/* ---------- Подвал ---------- */

.footer {
  background: var(--dark);
  color: #cec8e8;
  padding: 40px 0;
}

.footer .logo { color: #fff; }
.footer .logo span { color: var(--accent); }
.footer .logo--img img { height: 40px; }

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: .86rem;
}

.footer__inner a { color: #efeaff; }

.footer__socials { display: flex; gap: 14px; }

.footer__socials a {
  color: #efeaff;
  text-decoration: none;
  font-size: .78rem;
  letter-spacing: .12em;
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 100px;
  transition: .3s;
}

.footer__socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.footer__nav a {
  color: #cec8e8;
  text-decoration: none;
  font-size: .95rem;
  transition: .3s;
}

.footer__nav a:hover { color: var(--accent); }

/* ---------- Лайтбокс ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(35, 30, 62, .95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 6vw;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}

.lightbox button {
  position: absolute;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: .3s;
}

.lightbox button:hover { background: var(--accent); border-color: var(--accent); }

.lightbox__close { top: 26px; right: 26px; }
.lightbox__prev  { left: 26px; top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 26px; top: 50%; transform: translateY(-50%); }

/* ---------- Анимации появления ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================
   Адаптив
   ========================================================== */

@media (max-width: 1180px) {
  .logo--img img { height: 64px; }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 120px;
  }

  .hero__inner, .hero__photo { grid-column: 1; }

  .hero__photo {
    grid-row: auto;
    height: 56vh;
    border-radius: var(--radius);
  }

  .hero__scroll { display: none; }

  .about__inner,
  .contact__inner { grid-template-columns: 1fr; }

  /* В одноколоночной раскладке отрицательный отступ уводил галерею на текст */
  .about__gallery { margin-top: 0; }

  .cards { grid-template-columns: 1fr; }

  .print__inner { grid-template-columns: 1fr; }

  .articles__grid { grid-template-columns: repeat(2, 1fr); }

  .promo { grid-template-columns: repeat(2, 1fr); }

  .mini-grid { grid-template-columns: repeat(3, 1fr); }

  .header__cta { display: none; }
  .nav { gap: 18px; }

  .logo--img img { height: 52px; }

  .grid { grid-template-columns: repeat(2, 1fr); }

  .service-features { grid-template-columns: 1fr; }

  .service-feature { grid-column: auto; grid-template-columns: 1fr; gap: 22px; padding: 26px 24px; }

  .service-feature__gallery { grid-template-columns: repeat(3, 1fr); }

  .grid.studio-gallery { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    inset: 0 0 auto;
    top: 0;
    flex-direction: column;
    background: var(--bg);
    padding: 118px 8% 34px;
    gap: 6px;
    box-shadow: 0 20px 40px -20px rgba(72,63,115,.4);
    transform: translateY(-110%);
    transition: transform .45s ease;
    z-index: -1;
  }

  .nav.is-open { transform: none; }

  .nav__link {
    font-size: 1.25rem;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .header__cta { display: none; }
  .burger { display: flex; }

  .logo--img img { height: 48px; }

  .burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.is-open span:nth-child(2) { opacity: 0; }
  .burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .grid { grid-template-columns: 1fr; }

  .service-feature { padding: 22px 18px; }

  .service-feature__gallery { grid-template-columns: repeat(3, 1fr); gap: 6px; }

  .grid.studio-gallery { grid-template-columns: repeat(3, 1fr); gap: 6px; }

  .gift-feature { padding: 28px 22px; }

  .articles__grid { grid-template-columns: 1fr; }

  .grid.article-gallery {
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
  }

  .grid.article-gallery .grid__item,
  .grid.article-gallery .grid__item:nth-child(3n+2) {
    aspect-ratio: 1 / 1;
  }

  .article-img--right {
    float: none;
    display: block;
    width: 100%;
    margin: 8px 0 18px;
  }

  .promo { grid-template-columns: 1fr; }

  .mini-grid { grid-template-columns: repeat(2, 1fr); }

  .about__facts { gap: 26px; flex-wrap: wrap; }

  .footer__inner { flex-direction: column; text-align: center; }

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