/* ==========================================================================
   Следуй за фокусом — стили основного сайта (прототип)
   Не связан с phototrainer.css. Подключается только на страницах сайта.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Source+Sans+3:wght@400;500;600&display=swap");

:root {
  --gf-page: #0f1217;
  --gf-bg: #12161c;
  --gf-bg-elevated: #161a20;
  --gf-surface: #1a1f26;
  --gf-surface-2: #20262f;
  --gf-ink: #e8eaed;
  --gf-ink-soft: #dfe3e8;
  --gf-muted: #9aa3ad;
  --gf-faint: #6b7380;
  --gf-line: #2c333c;
  --gf-line-soft: rgba(255, 255, 255, 0.06);
  --gf-accent: #4db6a5;
  --gf-accent-soft: rgba(77, 182, 165, 0.16);
  --gf-accent-strong: #6fd0bf;
  --gf-focus: #4db6a5;
  --gf-radius: 10px;
  --gf-radius-sm: 8px;
  --gf-container: 1120px;
  --gf-header-h: 3.75rem;
  --gf-font-display: "Manrope", sans-serif;
  --gf-font-body: "Source Sans 3", sans-serif;
  --gf-shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.28);
  --gf-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.gf-site {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--gf-font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--gf-ink-soft);
  background:
    radial-gradient(90% 50% at 12% -10%, rgba(77, 182, 165, 0.07), transparent 52%),
    radial-gradient(70% 40% at 90% 0%, rgba(77, 182, 165, 0.04), transparent 45%),
    var(--gf-page);
}

body.gf-site main {
  flex: 1 1 auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gf-accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #8fddd0;
}

:focus-visible {
  outline: 2px solid var(--gf-focus);
  outline-offset: 3px;
}

.gf-container {
  width: min(var(--gf-container), 100% - 2rem);
  margin-inline: auto;
}

.gf-section {
  padding: 4.5rem 0;
}

.gf-section--tight {
  padding: 3.25rem 0;
}

/* Главная: плотнее между блоками */
body.gf-home .gf-section {
  padding: 2.5rem 0;
}

body.gf-home .gf-section--tight {
  padding: 2rem 0;
}

body.gf-home .gf-section__more {
  margin-top: 1.25rem;
}

.gf-section__head {
  max-width: 38rem;
  margin-bottom: 2rem;
}

.gf-section__head h2 {
  margin: 0 0 0.65rem;
  font-family: var(--gf-font-display);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--gf-ink);
}

.gf-section__head p {
  margin: 0;
  color: var(--gf-muted);
}

.gf-section__more {
  margin: 1.75rem 0 0;
}

.gf-section__more a {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(111, 208, 191, 0.45);
}

.gf-section__more a:hover {
  border-bottom-color: var(--gf-accent-strong);
}

/* -------------------------------------------------------------------------- */
/* Header                                                                     */
/* -------------------------------------------------------------------------- */

.gf-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--gf-line);
  background: rgba(18, 22, 28, 0.92);
  backdrop-filter: blur(12px);
}

.gf-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--gf-header-h);
  padding: 0.4rem 0;
}

.gf-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--gf-ink);
  text-decoration: none;
  min-width: 0;
}

.gf-brand:hover {
  color: var(--gf-ink);
}

.gf-brand__mark {
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
}

.gf-brand__text {
  font-family: var(--gf-font-display);
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
  white-space: nowrap;
}

.gf-menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--gf-line);
  border-radius: var(--gf-radius-sm);
  background: var(--gf-surface);
  cursor: pointer;
}

.gf-menu-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: #b8c0ca;
  transition: transform 180ms var(--gf-ease), opacity 180ms ease;
}

.gf-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.gf-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.gf-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.gf-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 0.35rem;
}

/* CMS: <!-- CMS:render info --> → <ul><li><a data-menu-item> */
.gf-nav > ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gf-nav > ul > li {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gf-nav > ul > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: transparent;
  color: var(--gf-muted);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.gf-nav > ul > li > a:hover,
.gf-nav > ul > li.is-current > a,
.gf-nav > ul > li.is-active > a,
.gf-nav > ul > li > a.is-active {
  color: var(--gf-ink);
  background: rgba(255, 255, 255, 0.04);
}

.gf-nav > ul > li > a[href="/phototrainer/"] {
  color: var(--gf-accent-strong);
}

.gf-nav > ul > li > a[href="/phototrainer/"]:hover,
.gf-nav > ul > li.is-current > a[href="/phototrainer/"] {
  color: #8fddd0;
  background: var(--gf-accent-soft);
}

.gf-nav > ul > li.has-children > a::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.7;
}

.gf-nav > ul > li.has-children > ul {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  min-width: 15.5rem;
  margin: 0;
  padding: 0.45rem;
  list-style: none;
  border: 1px solid var(--gf-line);
  border-radius: var(--gf-radius);
  background: #171c23;
  box-shadow: var(--gf-shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms var(--gf-ease), visibility 160ms;
  z-index: 20;
}

/* Только по клику (.is-open). Hover специально не используем —
   иначе после перехода на страницу меню остаётся открытым под курсором. */
.gf-nav > ul > li.has-children.is-open > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.gf-nav > ul > li.has-children > ul > li > a {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  color: var(--gf-ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  white-space: normal;
}

.gf-nav > ul > li.has-children > ul > li > a:hover,
.gf-nav > ul > li.has-children > ul > li.is-current > a {
  background: rgba(255, 255, 255, 0.04);
  color: var(--gf-ink);
}

.gf-mobile-menu {
  display: none;
  border-top: 1px solid var(--gf-line);
  background: #12161c;
}

.gf-mobile-menu.is-open {
  display: block;
}

.gf-mobile-menu__inner {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0 1.1rem;
}

.gf-mobile-menu__inner > ul {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

.gf-mobile-menu__inner > ul > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.8rem 0.85rem;
  border-radius: var(--gf-radius-sm);
  color: var(--gf-ink-soft);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
}

.gf-mobile-menu__inner > ul > li.is-current > a,
.gf-mobile-menu__inner > ul > li > a:hover {
  color: var(--gf-ink);
  background: rgba(255, 255, 255, 0.04);
}

.gf-mobile-menu__inner > ul > li > a[href="/phototrainer/"] {
  color: var(--gf-accent-strong);
}

.gf-mobile-menu__inner > ul > li.has-children > ul {
  display: none;
  margin: 0.15rem 0 0.35rem;
  padding: 0.25rem 0 0.25rem 0.75rem;
  list-style: none;
  border-left: 1px solid var(--gf-line);
}

.gf-mobile-menu__inner > ul > li.has-children.is-open > ul {
  display: grid;
  gap: 0.15rem;
}

.gf-mobile-menu__inner > ul > li.has-children > ul a {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  color: var(--gf-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.gf-mobile-menu__inner > ul > li.has-children > ul a:hover,
.gf-mobile-menu__inner > ul > li.has-children > ul li.is-current > a {
  color: var(--gf-ink);
  background: rgba(255, 255, 255, 0.04);
}

/* Футер: CMS-меню секций */
.gf-footer__col > ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.gf-footer__col > ul ul {
  display: none;
}

/* -------------------------------------------------------------------------- */
/* Buttons                                                                    */
/* -------------------------------------------------------------------------- */

.gf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--gf-radius-sm);
  border: 1px solid transparent;
  font-family: var(--gf-font-display);
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms var(--gf-ease);
}

.gf-btn:active {
  transform: translateY(1px);
}

.gf-btn--primary {
  background: var(--gf-accent);
  color: #081114;
}

.gf-btn--primary:hover {
  background: var(--gf-accent-strong);
  color: #081114;
}

.gf-btn--ghost {
  background: transparent;
  border-color: rgba(244, 246, 242, 0.55);
  color: #f4f6f2;
}

.gf-btn--ghost:hover {
  border-color: rgba(244, 246, 242, 0.9);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.gf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* -------------------------------------------------------------------------- */
/* Home: hero                                                                 */
/* -------------------------------------------------------------------------- */

.gf-hero {
  position: relative;
  min-height: clamp(28rem, 62vh, 36rem);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.gf-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  /* Изображение уже подготовлено с тёмной зоной слева под текст */
  background:
    url("/assets/img/hero.png") right center / cover no-repeat,
    #0b0e13;
}

.gf-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Мягкий уход в фон страницы снизу — без резкого края */
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 58%,
    rgba(15, 18, 23, 0.35) 78%,
    rgba(15, 18, 23, 0.75) 90%,
    var(--gf-page) 100%
  );
  pointer-events: none;
}

.gf-hero__content {
  width: min(var(--gf-container), 100% - 2rem);
  margin: 0 auto;
  padding: 4.5rem 0 4rem;
  max-width: 38rem;
  justify-self: start;
  margin-inline: max(1rem, calc((100% - var(--gf-container)) / 2));
  animation: gf-rise 700ms var(--gf-ease) both;
}

.gf-hero__brand {
  margin: 0 0 1.15rem;
  font-family: var(--gf-font-display);
  font-size: clamp(2.2rem, 5.15vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  color: #fff;
}

.gf-hero__lead {
  margin: 0 0 1.15rem;
  font-family: var(--gf-font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.22;
  color: #fff;
}

.gf-hero__lead span {
  display: block;
  color: var(--gf-accent);
}

.gf-hero__text {
  margin: 0 0 1.85rem;
  max-width: 34rem;
  color: rgba(244, 246, 242, 0.88);
  font-size: 1.08rem;
  line-height: 1.55;
}

.gf-hero .gf-actions {
  gap: 0.85rem;
}

.gf-hero .gf-btn {
  min-height: 3rem;
  padding-inline: 1.25rem;
}

@keyframes gf-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -------------------------------------------------------------------------- */
/* About                                                                      */
/* -------------------------------------------------------------------------- */

.gf-about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2.5rem 1.25rem;
  align-items: center;
}

.gf-about__label {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gf-accent);
}

.gf-about h2 {
  margin: 0 0 1rem;
  font-family: var(--gf-font-display);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--gf-ink);
}

.gf-about p {
  margin: 0 0 1rem;
  color: var(--gf-muted);
  font-size: 1.08rem;
}

.gf-about__aside {
  /* Диаметр и яркость фото синхронизируются с диафрагмой в aperture.js */
  --gf-aperture-photo-size: 65%;
  --gf-aperture-brightness: 0.7;
  position: relative;
  margin: 0;
  width: 16.8rem;
  height: 16.8rem;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  justify-self: start;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 50%, #1c242e 0%, #12161c 62%, #0c1015 100%);
  box-shadow: none;
  overflow: hidden;
  cursor: ew-resize;
  touch-action: none;
}

.gf-about__photo {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  display: block;
  width: var(--gf-aperture-photo-size);
  height: var(--gf-aperture-photo-size);
  min-height: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  background: #0c1015;
  filter: brightness(var(--gf-aperture-brightness));
  will-change: filter;
}

.gf-aperture {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.gf-aperture__svg {
  width: 100%;
  height: 100%;
  display: block;
}

.gf-aperture__ring {
  fill: none;
  stroke: rgba(77, 182, 165, 0.4);
  stroke-width: 3;
}

.gf-aperture__ring--inner {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1.5;
}

.gf-aperture__blade {
  fill: url(#gf-blade-grad);
  stroke: rgba(77, 182, 165, 0.18);
  stroke-width: 1;
}

/* -------------------------------------------------------------------------- */
/* Event cards                                                                */
/* -------------------------------------------------------------------------- */

.gf-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.gf-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.25rem 1.25rem 1.35rem;
  border: 1px solid var(--gf-line);
  border-radius: var(--gf-radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%), var(--gf-surface);
  transition: border-color 180ms ease, transform 180ms var(--gf-ease);
}

.gf-card:hover {
  border-color: rgba(77, 182, 165, 0.35);
  transform: translateY(-2px);
}

.gf-card__kind {
  margin: 0 0 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gf-accent);
}

.gf-card h3 {
  margin: 0 0 0.55rem;
  font-family: var(--gf-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gf-ink);
}

.gf-card__title-link {
  color: inherit;
  text-decoration: none;
}

.gf-card__title-link:hover {
  color: var(--gf-accent-strong);
}

.gf-card--placeholder {
  opacity: 0.55;
}

.gf-muted-note {
  margin: 0;
  color: var(--gf-muted);
  max-width: 36rem;
}

.gf-card__meta {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  color: var(--gf-faint);
}

.gf-card p {
  margin: 0;
  color: var(--gf-muted);
  flex: 1 1 auto;
}

/* -------------------------------------------------------------------------- */
/* Directions                                                                 */
/* -------------------------------------------------------------------------- */

.gf-directions {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.gf-direction {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--gf-line);
  border-radius: var(--gf-radius);
  background: var(--gf-surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 180ms ease, transform 180ms var(--gf-ease);
}

.gf-direction:nth-child(4),
.gf-direction:nth-child(5) {
  grid-column: span 3;
}

.gf-direction:hover {
  border-color: rgba(77, 182, 165, 0.4);
  transform: translateY(-2px);
  color: inherit;
}

.gf-direction__media {
  aspect-ratio: 16 / 9;
  background-color: var(--gf-bg-elevated);
  overflow: hidden;
}

.gf-direction__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gf-direction__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.15rem 1.2rem 1.25rem;
  flex: 1 1 auto;
}

.gf-direction h3 {
  margin: 0;
  font-family: var(--gf-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gf-ink);
}

.gf-direction p {
  margin: 0;
  color: var(--gf-muted);
  font-size: 0.98rem;
  flex: 1 1 auto;
}

.gf-direction__more {
  margin-top: 0.55rem;
  font-weight: 650;
  color: var(--gf-accent-strong);
  font-size: 0.95rem;
}

/* -------------------------------------------------------------------------- */
/* Phototrainer teaser                                                        */
/* -------------------------------------------------------------------------- */

.gf-pt-teaser {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(77, 182, 165, 0.28);
  border-radius: calc(var(--gf-radius) + 4px);
  background:
    radial-gradient(70% 80% at 85% 20%, rgba(77, 182, 165, 0.14), transparent 55%),
    linear-gradient(135deg, #161b22 0%, #12161c 55%, #10151b 100%);
  padding: clamp(1.5rem, 3vw, 2.4rem);
}

.gf-pt-teaser__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.75rem 2rem;
  align-items: center;
}

.gf-pt-teaser__label {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gf-accent);
}

.gf-pt-teaser h2 {
  margin: 0 0 0.85rem;
  font-family: var(--gf-font-display);
  font-size: clamp(1.55rem, 2.5vw, 2.05rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--gf-ink);
}

.gf-pt-teaser__text {
  margin: 0 0 1.35rem;
  color: var(--gf-muted);
  max-width: 32rem;
}

.gf-pt-teaser__media {
  margin: 0;
  border: 1px solid var(--gf-line);
  border-radius: var(--gf-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%),
    #171c24;
  box-shadow: inset 0 0 0 1px var(--gf-line-soft);
  overflow: hidden;
  min-height: 16rem;
  padding: 1rem 1rem 0.85rem;
}

/* Мини-панель ползунков в тизере */
.gf-pt-mini {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
}

.gf-pt-mini__meter {
  padding: 0.7rem 0.8rem 0.75rem;
  border: 1px solid var(--gf-line);
  border-radius: var(--gf-radius-sm);
  background: rgba(0, 0, 0, 0.22);
}

.gf-pt-mini__meter-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.gf-pt-mini__meter-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gf-faint);
}

.gf-pt-mini__meter-ev {
  font-family: var(--gf-font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gf-accent-strong);
}

.gf-pt-mini__meter[data-status="underexposed"] .gf-pt-mini__meter-ev,
.gf-pt-mini__meter[data-status="overexposed"] .gf-pt-mini__meter-ev {
  color: #e8c27a;
}

.gf-pt-mini__meter-scale {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
  font-size: 0.65rem;
  color: var(--gf-faint);
}

.gf-pt-mini__meter-bar {
  position: relative;
  height: 0.35rem;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(232, 194, 122, 0.35),
    rgba(77, 182, 165, 0.55) 50%,
    rgba(232, 194, 122, 0.35)
  );
}

.gf-pt-mini__meter-zero {
  position: absolute;
  left: 50%;
  top: -2px;
  bottom: -2px;
  width: 1px;
  background: rgba(255, 255, 255, 0.45);
  transform: translateX(-50%);
}

.gf-pt-mini__meter-pointer {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(77, 182, 165, 0.55);
  transform: translate(-50%, -50%);
  transition: left 160ms var(--gf-ease);
}

.gf-pt-mini__meter-note {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--gf-muted);
}

.gf-pt-mini__params {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.gf-pt-mini__param-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.gf-pt-mini__param-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gf-faint);
}

.gf-pt-mini__param-value {
  font-family: var(--gf-font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gf-ink);
}

.gf-pt-mini__row {
  display: grid;
  grid-template-columns: 2rem 1fr 2rem;
  gap: 0.4rem;
  align-items: center;
}

.gf-pt-mini__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--gf-line);
  border-radius: 8px;
  background: var(--gf-surface-2);
  color: var(--gf-ink-soft);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.gf-pt-mini__step:hover:not(:disabled) {
  border-color: rgba(77, 182, 165, 0.45);
  color: var(--gf-accent-strong);
  background: var(--gf-accent-soft);
}

.gf-pt-mini__step:disabled {
  opacity: 0.35;
  cursor: default;
}

.gf-pt-mini__slider {
  position: relative;
  height: 1.6rem;
  display: flex;
  align-items: center;
}

.gf-pt-mini__track {
  position: absolute;
  inset: 50% 0 auto;
  height: 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-50%);
  overflow: hidden;
}

.gf-pt-mini__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(77, 182, 165, 0.45), var(--gf-accent));
  transition: width 120ms linear;
}

.gf-pt-mini__thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--gf-accent);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: left 120ms linear;
  z-index: 1;
}

.gf-pt-mini__input {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0;
  appearance: none;
  background: transparent;
  height: 1.6rem;
  cursor: pointer;
}

.gf-pt-mini__input::-webkit-slider-thumb {
  appearance: none;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: transparent;
  border: 0;
}

.gf-pt-mini__input::-moz-range-thumb {
  width: 1rem;
  height: 1rem;
  border: 0;
  background: transparent;
}

.gf-pt-mini__hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--gf-faint);
}

/* -------------------------------------------------------------------------- */
/* Gallery                                                                    */
/* -------------------------------------------------------------------------- */

.gf-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}

.gf-gallery__item {
  display: block;
  grid-column: span 2;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--gf-radius-sm);
  border: 1px solid var(--gf-line);
  background-color: var(--gf-surface);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 220ms var(--gf-ease), border-color 180ms ease;
}

.gf-gallery__item:focus-visible {
  outline: 2px solid var(--gf-accent, #4db6a5);
  outline-offset: 2px;
}

.gf-gallery__item:nth-child(4),
.gf-gallery__item:nth-child(5) {
  grid-column: span 3;
}

.gf-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gf-gallery__item:hover {
  transform: scale(1.015);
  border-color: rgba(77, 182, 165, 0.35);
}

/* -------------------------------------------------------------------------- */
/* Final CTA                                                                  */
/* -------------------------------------------------------------------------- */

.gf-final {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.gf-final h2 {
  margin: 0 0 0.85rem;
  font-family: var(--gf-font-display);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  color: var(--gf-ink);
}

.gf-final p {
  margin: 0 0 1.5rem;
  color: var(--gf-muted);
  font-size: 1.08rem;
}

.gf-final .gf-actions {
  justify-content: center;
}

/* -------------------------------------------------------------------------- */
/* Inner page                                                                 */
/* -------------------------------------------------------------------------- */

.gf-page {
  padding: 2.25rem 0 4.5rem;
}

.gf-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}

.gf-breadcrumbs {
  margin: 0 0 1.15rem;
}

.gf-breadcrumbs .cms-breadcrumbs,
.gf-breadcrumbs nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin: 0;
  font-size: 0.9rem;
  color: var(--gf-faint);
}

.gf-breadcrumbs a {
  color: var(--gf-muted);
  text-decoration: none;
}

.gf-breadcrumbs a:hover,
.gf-breadcrumbs a.hover\:text-orange-300:hover {
  color: var(--gf-accent-strong);
}

.gf-breadcrumbs span {
  color: var(--gf-faint);
}

.gf-breadcrumbs .text-white {
  color: var(--gf-ink);
}

.gf-page__title {
  margin: 0 0 0.9rem;
  font-family: var(--gf-font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--gf-ink);
}

.gf-page__intro {
  margin: 0 0 2rem;
  max-width: 42rem;
  font-size: 1.18rem;
  color: #c5ccd5;
}

.gf-prose {
  max-width: 42rem;
  line-height: 1.5;
}

.gf-prose > * + *,
.gf-prose article > * + *,
.gf-prose section + section {
  margin-top: 1rem;
}

.gf-prose section > * + * {
  margin-top: 0.7rem;
}

.gf-prose h1 {
  margin: 0 0 0.85rem;
  font-family: var(--gf-font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--gf-ink);
}

.gf-prose h2 {
  margin: 2rem 0 0.7rem;
  font-family: var(--gf-font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--gf-ink);
}

.gf-prose h3 {
  margin: 1.5rem 0 0.55rem;
  font-family: var(--gf-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--gf-ink);
}

.gf-prose p,
.gf-prose li {
  color: var(--gf-muted);
  line-height: 1.5;
}

.gf-prose ul,
.gf-prose ol {
  margin: 0.35rem 0 0.55rem;
  padding-left: 1.65rem;
}

.gf-prose ul {
  list-style: none;
}

.gf-prose ul > li {
  position: relative;
  padding-left: 0.55rem;
}

.gf-prose ul > li::before {
  content: "";
  position: absolute;
  left: -1.05rem;
  top: 0.52em;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 1px;
  background: var(--gf-accent);
}

.gf-prose ol {
  list-style: decimal;
}

.gf-prose li + li {
  margin-top: 0.18rem;
}

.gf-prose header,
.gf-prose section,
.gf-prose footer,
.gf-prose article {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.gf-prose blockquote,
.gf-quote {
  margin: 2rem 0;
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--gf-accent);
  border-radius: 0 var(--gf-radius-sm) var(--gf-radius-sm) 0;
  background: rgba(77, 182, 165, 0.06);
  color: var(--gf-ink-soft);
  font-family: var(--gf-font-body);
  font-size: 1em;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.65;
}

.gf-prose blockquote p {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.gf-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Шапка/подвал на странице фототренажёра — те же, что на всём сайте.
   Не переопределяем ширину контейнера, шрифты и высоту header. */

.gf-related {
  margin-top: 2.75rem;
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--gf-line);
  border-radius: var(--gf-radius);
  background: var(--gf-surface);
}

.gf-related h2 {
  margin: 0 0 0.85rem;
  font-family: var(--gf-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gf-ink);
}

.gf-related ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.gf-related a {
  text-decoration: none;
  color: var(--gf-ink-soft);
  font-weight: 500;
}

.gf-related a:hover {
  color: var(--gf-accent-strong);
}

.gf-page-cta {
  margin-top: 2.5rem;
  padding: 1.5rem 1.5rem;
  border: 1px solid rgba(77, 182, 165, 0.28);
  border-radius: var(--gf-radius);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(77, 182, 165, 0.12), transparent 55%),
    var(--gf-bg-elevated);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.gf-page-cta h2 {
  margin: 0 0 0.35rem;
  font-family: var(--gf-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gf-ink);
}

.gf-page-cta p {
  margin: 0;
  color: var(--gf-muted);
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                     */
/* -------------------------------------------------------------------------- */

.gf-footer {
  margin-top: auto;
  border-top: 1px solid var(--gf-line);
  background: #101319;
  color: var(--gf-faint);
  font-size: 0.92rem;
}

.gf-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
  gap: 2rem 2.5rem;
  padding: 2.4rem 0 1.75rem;
}

.gf-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
  color: var(--gf-ink);
  text-decoration: none;
  font-family: var(--gf-font-display);
  font-weight: 650;
}

.gf-footer__brand img {
  width: 1.35rem;
  height: 1.35rem;
  opacity: 0.85;
}

.gf-footer__about {
  margin: 0;
  max-width: 22rem;
  line-height: 1.55;
}

.gf-footer__contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.55rem;
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.gf-footer__phone {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  color: var(--gf-ink-soft);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.gf-footer__phone-code {
  color: #b0b8c2;
}

.gf-footer__phone-area {
  color: var(--gf-accent-strong);
}

.gf-footer__phone-num {
  color: var(--gf-ink-soft);
}

.gf-footer__phone:hover,
.gf-footer__phone:hover .gf-footer__phone-code,
.gf-footer__phone:hover .gf-footer__phone-num {
  color: var(--gf-accent-strong);
}

.gf-footer__phone:hover .gf-footer__phone-area {
  color: var(--gf-accent-strong);
}

.gf-footer__contacts-sep {
  color: var(--gf-faint);
}

.gf-footer__contacts-link {
  color: #b0b8c2;
  font-weight: 400;
  text-decoration: none;
  text-underline-offset: 0.18em;
}

.gf-footer__contacts-link:hover {
  color: var(--gf-accent-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.gf-footer h3 {
  margin: 0 0 0.75rem;
  font-family: var(--gf-font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8b95a1;
}

.gf-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.gf-footer a {
  color: #9aa3ad;
  text-decoration: none;
}

.gf-footer a:hover {
  color: var(--gf-accent-strong);
}

/* -------------------------------------------------------------------------- */
/* Cookie notice                                                              */
/* -------------------------------------------------------------------------- */

.gf-cookie {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: min(28rem, calc(100vw - 2rem));
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--gf-line);
  border-radius: var(--gf-radius);
  background: rgba(18, 22, 28, 0.94);
  box-shadow: var(--gf-shadow-soft);
  backdrop-filter: blur(10px);
}

.gf-cookie[hidden] {
  display: none;
}

.gf-cookie__mark {
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  margin-top: 0.15rem;
}

.gf-cookie__aperture {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.gf-cookie__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
}

.gf-cookie__text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--gf-muted);
}

.gf-cookie__text a {
  color: var(--gf-accent-strong);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.gf-cookie__text a:hover {
  color: #8fddd0;
}

.gf-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.gf-cookie__btn {
  flex: 0 0 auto;
  min-height: 2.25rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(77, 182, 165, 0.35);
  border-radius: var(--gf-radius-sm);
  background: var(--gf-accent-soft);
  color: var(--gf-accent-strong);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.gf-cookie__btn:hover {
  background: rgba(77, 182, 165, 0.28);
  border-color: rgba(77, 182, 165, 0.55);
  color: #8fddd0;
}

.gf-cookie__btn--ghost {
  background: transparent;
  border-color: var(--gf-line);
  color: var(--gf-muted);
  font-weight: 500;
}

.gf-cookie__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--gf-ink-soft);
}

@media (max-width: 520px) {
  .gf-cookie {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    width: auto;
  }

  .gf-cookie__btn {
    flex: 1 1 auto;
  }
}

/* Legal pages + contact form */
.gf-legal__meta {
  margin: 0 0 0.35rem;
  color: var(--gf-faint);
  font-size: 0.84rem;
}

.gf-legal__article {
  max-width: 46rem;
  padding-bottom: 3rem;
}

.gf-form {
  position: relative;
  display: grid;
  gap: 0.95rem;
  margin-top: 1rem;
  max-width: 32rem;
}

.gf-form__field {
  display: grid;
  gap: 0.35rem;
}

.gf-form__field label {
  color: var(--gf-ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
}

.gf-form__field input,
.gf-form__field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--gf-line);
  border-radius: var(--gf-radius-sm);
  background: var(--gf-surface);
  color: var(--gf-ink);
  font: inherit;
}

.gf-form__field input:focus,
.gf-form__field textarea:focus {
  outline: 2px solid rgba(77, 182, 165, 0.35);
  outline-offset: 1px;
  border-color: rgba(77, 182, 165, 0.55);
}

.gf-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.gf-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.15rem 0 0;
  color: var(--gf-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  cursor: pointer;
}

.gf-form__consent input {
  margin-top: 0.2rem;
  flex: 0 0 auto;
}

.gf-form__status {
  margin: 0;
  color: var(--gf-accent-strong);
  font-size: 0.9rem;
}

.gf-form__status.is-error {
  color: #e8a0a0;
}

.gf-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.95rem 0 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #6b7380;
  font-size: 0.84rem;
}

.gf-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.15rem;
}

.gf-footer__cookie-settings {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #9aa3ad;
  font: inherit;
  font-size: inherit;
  cursor: pointer;
  text-align: left;
}

.gf-footer__cookie-settings:hover {
  color: var(--gf-accent-strong);
}

.gf-proto-note {
  margin: 0;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid rgba(77, 182, 165, 0.2);
  background: rgba(77, 182, 165, 0.08);
  color: #a8c9c2;
  font-size: 0.82rem;
  text-align: center;
}

.gf-proto-note a {
  color: var(--gf-accent-strong);
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .gf-about {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gf-about__aside {
    width: 14.5rem;
    height: 14.5rem;
    margin-inline: auto;
    justify-self: center;
  }

  .gf-pt-teaser__grid {
    grid-template-columns: 1fr;
  }

  .gf-directions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gf-direction,
  .gf-direction:nth-child(4),
  .gf-direction:nth-child(5) {
    grid-column: span 1;
  }

  .gf-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .gf-footer__brand-block {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .gf-menu-toggle {
    display: flex;
  }

  .gf-nav--desktop {
    display: none;
  }

  .gf-brand__text {
    font-size: 0.96rem;
  }

  .gf-hero {
    align-items: end;
    min-height: clamp(26rem, 58vh, 32rem);
  }

  .gf-hero__media {
    /* На узком экране держим фотографа и собор в кадре */
    background-position: 72% center;
  }

  .gf-hero__media::after {
    background: linear-gradient(
      180deg,
      transparent 0%,
      transparent 45%,
      rgba(15, 18, 23, 0.4) 72%,
      rgba(15, 18, 23, 0.82) 88%,
      var(--gf-page) 100%
    );
  }

  .gf-hero__content {
    margin-inline: auto;
    width: min(var(--gf-container), 100% - 1.5rem);
    padding: 3rem 0 2.75rem;
  }

  .gf-hero__brand {
    font-size: clamp(1.95rem, 8.6vw, 2.45rem);
  }

  .gf-section {
    padding: 3.25rem 0;
  }

  body.gf-home .gf-section {
    padding: 2rem 0;
  }

  body.gf-home .gf-section--tight {
    padding: 1.75rem 0;
  }

  .gf-cards,
  .gf-directions {
    grid-template-columns: 1fr;
  }

  .gf-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gf-gallery__item,
  .gf-gallery__item:nth-child(4),
  .gf-gallery__item:nth-child(5) {
    grid-column: span 1;
  }

  .gf-footer__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 2rem;
  }

  .gf-page__title {
    font-size: clamp(1.55rem, 7vw, 1.95rem);
  }

  .gf-prose h1 {
    font-size: clamp(1.55rem, 7vw, 1.95rem);
  }

  .gf-page__intro {
    font-size: 1.08rem;
  }

  .gf-page-cta {
    align-items: stretch;
  }

  .gf-page-cta .gf-btn {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .gf-container {
    width: min(var(--gf-container), 100% - 1.5rem);
  }

  .gf-actions {
    flex-direction: column;
  }

  .gf-actions .gf-btn {
    width: 100%;
  }

  .gf-hero__text {
    font-size: 1rem;
  }

  .gf-gallery {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .gf-hero__content,
  .gf-card,
  .gf-direction,
  .gf-gallery__item,
  .gf-btn,
  .gf-nav > ul > li.has-children > ul {
    animation: none !important;
    transition: none !important;
  }
}
