
:root{
  --navy-950: #0F1826;
  --navy-900: #14203A;
  --navy-800: #1B2A41;
  --navy-700: #24374F;
  --gold-500: #C9A227;
  --gold-300: #E7D9AD;
  --paper:    #F3EFE6;
  --paper-dim:#EFE8D6;
  --ink:      #171B22;
  --brick:    #8B3A3A;
  --line: rgba(201,162,39,0.35);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --max-w: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Кавер-лист / затирка бумаги --------------------- */
body::before{
  content:"";
  position: fixed;
  inset:0;
  pointer-events:none;
  opacity:.035;
  background-image:
    repeating-linear-gradient(0deg, #000 0 1px, transparent 1px 3px);
  z-index: 0;
}

/* ---------- Шапка / масштаб-полоса --------------------------- */
.masthead{
  background: var(--navy-900);
  color: var(--paper);
  border-bottom: 3px solid var(--gold-500);
  position: sticky;
  top:0;
  z-index: 50;
}
.coordinate-bar{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--gold-300);
  background: var(--navy-950);
  padding: 6px 0;
  opacity: .85;
}
.coordinate-bar .wrap{
  display:flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.masthead-main{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap: 14px;
  text-decoration:none;
  color: inherit;
}

.brand-logo-wrap {
  width: 80px;
  height: 80px;
  padding: 0px;
  background: var(--paper);
  border: 2px solid var(--gold-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.brand-logo {
  width: 82px;
  height: 82px;
  max-width: none;
  max-height: none;
  object-fit: contain;
  display: block;
  transform: translate(5px, -2px);
}
.brand-text .name{
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height:1;
}


nav.primary-nav ul{
  list-style:none;
  display:flex;
  gap: 28px;
  margin:0; padding:0;
}
nav.primary-nav a{
  text-decoration:none;
  font-size: 14px;
  letter-spacing: .03em;
  color: var(--paper);
  position: relative;
  padding: 4px 0;
}
nav.primary-nav a::after{
  content:"";
  position:absolute;
  left:0; right:100%;
  bottom:-2px;
  height:2px;
  background: var(--gold-500);
  transition: right .25s ease;
}
nav.primary-nav a:hover::after,
nav.primary-nav a[aria-current="page"]::after{ right:0; }
nav.primary-nav a[aria-current="page"]{ color: var(--gold-300); }


.publication-quote {
  margin: 26px 0;

  padding: 18px 24px;

  border-left: 3px solid var(--gold-500);

  color: var(--navy-900);

  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  line-height: 1.5;
}

.nav-toggle{
  display:none;

  width:50px;
  height:50px;

  padding:0;

  background:var(--paper);
  border:1px solid var(--paper);
  border-radius:4px;

  cursor:pointer;

  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;

  transition:
    background .2s ease,
    transform .15s ease;
}

.nav-toggle span{
  display:block;

  width:24px;
  height:2px;

  background:var(--navy-900);

  transition:.2s ease;
}

.nav-toggle:hover{
  background:var(--paper-dim);
}

.nav-toggle:active{
  transform:scale(.95);
}

@media (max-width:920px){
  .nav-toggle{
    display:flex;
  }
}
/* ---------- Route line — сигнатурный элемент --------------- */
.route-rail{
  position: relative;
  height: 46px;
  margin: 0 0 -1px;
  overflow: hidden;
  background: var(--navy-900);
}
.route-rail svg{ width:100%; height:100%; display:block; }
.route-rail .route-path{
  fill:none;
  stroke: var(--gold-500);
  stroke-width: 1.4;
  stroke-dasharray: 4 6;
  opacity:.6;
}
.route-rail .route-node{ fill: var(--gold-500); }
.route-rail .route-node.active{ fill: var(--paper); }
.route-rail .route-label{
  font-family: var(--font-mono);
  font-size: 9.5px;
  fill: var(--gold-300);
  letter-spacing: .06em;
}

/* ---------- Hero -------------------------------------------- */
.hero{
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--paper);
  padding: 72px 0 96px;
  position: relative;
  overflow:hidden;
}
.hero .wrap{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items:center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-300);
  display:flex;
  align-items:center;
  gap: 10px;
  margin-bottom: 18px;
}
.hero-eyebrow::before{
  content:"";
  width: 26px; height:1px; background: var(--gold-500);
}
.hero h1{
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.05;
  margin: 0 0 22px;
  font-weight: 600;
}
.hero h1 em{ font-style: italic; color: var(--gold-300); }
.hero p.lede{
  font-size: 18px;
  max-width: 46ch;
  color: rgba(243,239,230,.85);
  margin: 0 0 34px;
}
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; }

.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 13px 26px;
  border-radius: 2px;
  font-size: 14px;
  letter-spacing: .03em;
  text-decoration:none;
  border: 1px solid var(--gold-500);
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn-solid{ background: var(--gold-500); color: var(--navy-950); font-weight:600; }
.btn-solid:hover{ background: var(--gold-300); transform: translateY(-1px); }
.btn-outline{ color: var(--paper); }
.btn-outline:hover{ background: rgba(201,162,39,.12); transform: translateY(-1px); }

.hero-cover{
  position:relative;
  justify-self:end;
}
.hero-cover .frame{
  display: block;
  border: 1px solid var(--line);
  padding: 14px;
  background: rgba(255,255,255,.02);
  transform: rotate(1.2deg);
  text-decoration: none;
  color: inherit;
  width: fit-content;
}

.hero-cover .frame img{
  display: block;
  width: 280px;
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
}

.hero-cover .frame-label{
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--gold-300);
  letter-spacing: .08em;
  margin-top: 10px;
  text-align:center;
}

/* compass background mark */
.compass-mark{
  position:absolute;
  right: -80px; top: -80px;
  width: 420px; height:420px;
  opacity: .07;
  z-index:0;
}

/* ---------- Section headers ----------------------------------- */
.section{ padding: 20px 0; }
.section.alt{ background: var(--paper-dim); }
.section-head{
  display:flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
  border-bottom: 1px solid rgba(23,27,34,.15);
  padding-bottom: 20px;
}
.kicker{
  font-family:var(--font-mono);
  font-size:11.5px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--brick);
  display:block;
  margin-bottom:8px;
}

.about-grid h2{
  font-family:var(--font-display);
  font-size:clamp(26px,3vw,36px);
  margin:10px 0 20px;
}

.contacts-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:28px;
  font-family:var(--font-mono);
  font-size:14px;
}

.contacts-grid strong{
  display:block;
  font-family:var(--font-body);
  font-size:15px;
  margin-bottom:6px;
}

h1,
.section-head h2{
font-family: var(--font-display);
font-size: clamp(27px, 3.4vw, 40px);
margin: 0;
font-weight: 600;
}
.section-head .note{
  font-size: 14px;
  color: rgba(23,27,34,.6);
  max-width: 32ch;
  text-align:right;
}

/* ---------- Наши проекты ------------------------------------ */

.projects-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.project-album,
.about-info {
  min-width: 0;
}


/* ---------- Левая часть — проект ----------------------------- */

.project-album{
  min-width: 0;
}





/* ---------- Заголовки проектов ----------------------------- */

.project-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}

.project-subtitle {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 24px;
}


/* ---------- Текстовое окно ----------------------------- */

.project-text{
  border-left: 2px solid var(--gold-500);

  padding: 18px 22px;

  margin-bottom: 28px;

  background: rgba(201,162,39,.045);
}


.project-text p{
  margin: 0;

  font-size: 16px;

  line-height: 1.65;

  max-width: 58ch;
}


/* ---------- PDF / обложка ----------------------------- */

.project-pdf{
  display: inline-block;

  text-decoration: none;

  color: inherit;

  border: 1px solid var(--line);

  padding: 10px;

  background: rgba(255,255,255,.35);

  transition:
    transform .2s ease,
    box-shadow .2s ease;
}


.project-pdf img{
  display: block;

  width: 240px;

  max-width: 100%;

  height: auto;
}


.project-pdf span{
  display: block;

  margin-top: 12px;

  font-family: var(--font-mono);

  font-size: 10.5px;

  letter-spacing: .06em;

  text-transform: uppercase;

  color: var(--brick);

  text-align: center;
}


.project-pdf:hover{
  transform: translateY(-4px);

  box-shadow:
    0 14px 30px rgba(23,27,34,.16);
}


/* ---------- Правая часть — О журнале ------------------------- */

.about-info{
  min-width: 0;
}


.about-info > .project-label{
  margin-bottom: 20px;
}


.about-description{
  margin-bottom: 28px;
}


.about-description p{
  font-size: 17px;

  max-width: 58ch;

  margin: 0;
}


/* ---------- Статистика журнала ------------------------------- */

.about-stats{
  display: grid;

  gap: 22px;

  border-left: 2px solid var(--gold-500);

  padding-left: 24px;
}


.about-stats .stat b{
  font-family: var(--font-display);

  font-size: 30px;

  display: block;
}


.about-stats .stat span{
  font-family: var(--font-mono);

  font-size: 11.5px;

  letter-spacing: .06em;

  text-transform: uppercase;

  color: rgba(23,27,34,.6);
}

/* ---------- Author -------------------------------------------- */

.author-card{
  display:grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items:start;
  background: var(--navy-900);
  color: var(--paper);
  padding: 36px;
}

.author-photo{
  border: 1px solid var(--line);
  padding: 8px;
  transform: translateY(50px);
}

.author-photo img{
  width:100%;
  display:block;
}

.author-name{
  font-family: var(--font-display);
  font-size: 30px;
  margin: 0 0 4px;
}

.author-role{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold-300);
  letter-spacing:.05em;
  margin-bottom: 16px;
}

/* Текст автора — две колонки */
[data-author-bio]{
  column-count: 2;
  column-gap: 32px;
}

.author-card p{
  color: rgba(243,239,230,.85);
  max-width: none;
  line-height: 1.45;
  font-size: 14px;
  margin: 0 0 12px;
  break-inside: avoid;
}

@media (max-width: 800px){
  .author-card{
    grid-template-columns: 1fr;
  }

  [data-author-bio]{
    column-count: 1;
  }

  .author-photo{
    width: 200px;
  }
}


/* Планшет / небольшие экраны */
@media (max-width: 900px){
  [data-author-bio]{
    column-count: 1;
  }
}

/* Мобильная версия */
@media (max-width: 700px){
  .author-card{
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px;
  }

  .author-photo{
    width: 200px;
  }

  [data-author-bio]{
    column-count: 1;
  }
}


/* ---------- Cover grid (архив) ---------------------------------- */
.cover-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 28px;
}
.cover-card{
  color: inherit;
}
.cover-card .cover-frame{
  border: none;
  background: var(--gold-500);
  padding: 0px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cover-card:hover .cover-frame{
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(23,27,34,.18);
}
.cover-meta{ margin-top: 12px; }
.cover-meta .num{
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brick);
  letter-spacing:.06em;
}
.cover-meta .theme{
  font-family: var(--font-display);
  font-size: 16px;
  margin-top: 2px;
}

/* ---------- Filters ---------------------------------------------- */
.filter-bar{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.filter-chip{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  padding: 8px 16px;
  border: 1px solid rgba(23,27,34,.25);
  background: transparent;
  border-radius: 999px;
  cursor:pointer;
  color: var(--ink);
}
.filter-chip.active,
.filter-chip:hover{
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--paper);
}


/* ---------- Albums --------------------------------------------------- */
.album-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}
.album-card{
  cursor:pointer;
  background: var(--navy-900);
  color: var(--paper);
  overflow:hidden;
  position:relative;
}
.album-card .thumb-wrap{ overflow:hidden; }
.album-card img{
  width:100%; aspect-ratio: 3/2; object-fit: cover;
  transition: transform .35s ease;
}
.album-card:hover img{ transform: scale(1.06); }
.album-info{ padding: 18px 20px 22px; }
.album-info .date{
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold-300);
  letter-spacing: .06em;
}
.album-info h3{
  font-family: var(--font-display);
  font-size: 21px;
  margin: 6px 0 8px;
}
.album-info p{ font-size: 13.5px; color: rgba(243,239,230,.75); margin:0; }
.album-count{
  position:absolute; top:14px; right:14px;
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(15,24,38,.75);
  border: 1px solid var(--gold-500);
  color: var(--gold-300);
  padding: 4px 9px;
  border-radius: 999px;
}

/* ---------- Lightbox --------------------------------------------------- */
.lightbox{
  position: fixed; inset:0;
  background: rgba(15,24,38,.94);
  display:none;
  align-items:center;
  justify-content:center;
  z-index: 200;
  padding: 40px 20px;
}
.lightbox.open{ display:flex; }
.lightbox-inner{
  max-width: 960px;
  width:100%;
  color: var(--paper);
}
.lightbox-stage{
  position:relative;
  border: 1px solid var(--line);
  background: var(--navy-950);
}
.lightbox-stage img{ width:100%; max-height: 62vh; object-fit: contain; margin:0 auto; }
.lightbox-cap{
  display:flex;
  justify-content: space-between;
  align-items:center;
  padding: 16px 4px 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--gold-300);
}
.lightbox-close{
  position:absolute; top:-44px; right:0;
  background:none; border:1px solid var(--gold-500);
  color: var(--paper);
  width: 36px; height:36px;
  cursor:pointer;
  border-radius: 3px;
}
.lightbox-nav{
  background: none;
  border: 1px solid var(--gold-500);
  color: var(--paper);
  width: 44px; height: 44px;
  cursor: pointer;
  position:absolute;
  top:50%; transform: translateY(-50%);
  border-radius: 3px;
}
.lightbox-nav.prev{ left: -56px; }
.lightbox-nav.next{ right: -56px; }
@media (max-width: 760px){
  .lightbox-nav.prev{ left: 4px; }
  .lightbox-nav.next{ right: 4px; }
}

/* ---------- Footer ------------------------------------------------------ */
footer.site-footer{
  background: var(--navy-950);
  color: rgba(243,239,230,.7);
  padding: 52px 0 34px;
  margin-top: 60px;
}
footer .wrap{
  display:flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  align-items:flex-start;
}
footer .foot-brand{
  font-family: var(--font-display);
  color: var(--paper);
  font-size: 20px;
}
footer .foot-tagline{
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold-300);
  margin-top: 6px;
  letter-spacing:.06em;
}
footer .foot-nav ul{
  list-style:none; margin:0; padding:0;
  display:flex; gap: 24px; flex-wrap:wrap;
}
footer .foot-nav a{ text-decoration:none; font-size: 13.5px; }
footer .foot-nav a:hover{ color: var(--gold-300); }
footer .copyright{
  font-family: var(--font-mono);
  font-size: 11px;
  margin-top: 40px;
  opacity:.6;
}

/* ---------- Responsive --------------------------------------------------- */
@media (max-width: 920px){
  nav.primary-nav{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-900);
    border-bottom: 3px solid var(--gold-500);
    display: none;
    padding: 8px 0 20px;
  }


  nav.primary-nav.open{
    display: block;
  }

  nav.primary-nav ul{
    flex-direction: column;
    gap: 0;
  }

  nav.primary-nav li{
    border-top: 1px solid rgba(201,162,39,.15);
  }

  nav.primary-nav a{
    display: block;
    padding: 14px 28px;
  }

  nav.primary-nav a::after{
    display: none;
  }

.nav-toggle{
  display: flex;
}

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

  .hero-cover{
    justify-self: start;
     order: -1;
  }

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

  .author-photo{
    width: 200px;
  }

  .project-album{
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

:focus-visible{
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
}


/* ---------- Социальные сети ---------- */

.footer-main {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 48px;
  align-items: start;
}

.social-links {
  min-width: 180px;
}

.social-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--gold-300);
  margin-bottom: 12px;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  color: var(--paper);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11px;
  transition: .2s ease;
}

.social-list a:hover {
  border-color: var(--gold-500);
  color: var(--gold-300);
}

@media (max-width: 800px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .social-links {
    min-width: 0;
  }
}


.cover-pdf {
  display: block;
  text-decoration: none;
  color: inherit;
}


@media (max-width: 800px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}


/* ---------- Текстовые вырезки ---------- */

.clipping-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.clipping-card{
  position: relative;
  cursor: pointer;
  background: var(--navy-900);
  color: var(--paper);
  padding: 28px 26px 24px;
  border: 1px solid rgba(201,162,39,.25);
  min-height: 230px;

  transition:
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease;
}

.clipping-card:hover{
  transform: translateY(-5px);
  border-color: var(--gold-500);
  box-shadow: 0 18px 36px rgba(23,27,34,.22);
}

.clipping-number{
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold-300);
  letter-spacing: .08em;
  margin-bottom: 18px;
}

.clipping-title{
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 14px;
}

.clipping-text{
  font-size: 14px;
  line-height: 1.55;
  color: rgba(243,239,230,.78);

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;

  margin: 0;
}

.clipping-more{
  position: absolute;
  left: 26px;
  bottom: 20px;

  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;

  color: var(--gold-300);
}

.no-clippings{
  grid-column: 1 / -1;
  opacity: .6;
}


/* ---------- Окно текста вырезки ---------- */

.text-clipping-overlay{
  position: fixed;
  inset: 0;
  z-index: 300;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 30px 20px;

  background: rgba(15,24,38,.94);
}

.text-clipping-window{
  position: relative;

  width: 100%;
  max-width: 760px;
  max-height: 85vh;
  overflow-y: auto;

  background: var(--paper);
  color: var(--ink);

  padding: 52px 56px 42px;

  border-top: 4px solid var(--gold-500);

  box-shadow: 0 30px 80px rgba(0,0,0,.4);
}

.text-clipping-close{
  position: absolute;
  top: 16px;
  right: 16px;

  width: 36px;
  height: 36px;

  background: none;
  border: 1px solid var(--navy-900);

  color: var(--ink);

  cursor: pointer;
  font-size: 16px;
}

.text-clipping-number{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--brick);
  text-transform: uppercase;

  margin-bottom: 16px;
}

.text-clipping-window h2{
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;

  margin: 0 0 24px;
}

.text-clipping-window p{
  font-size: 17px;
  line-height: 1.7;
  max-width: 65ch;
}

.text-clipping-counter{
  margin-top: 30px;

  font-family: var(--font-mono);
  font-size: 11px;

  color: rgba(23,27,34,.55);
}

.text-clipping-navigation{
  display: flex;
  justify-content: space-between;
  gap: 16px;

  margin-top: 28px;
  padding-top: 20px;

  border-top: 1px solid rgba(23,27,34,.15);
}

.text-clipping-navigation button{
  background: none;
  border: 1px solid var(--navy-900);

  padding: 9px 14px;

  font-family: var(--font-mono);
  font-size: 11px;

  cursor: pointer;
}

.text-clipping-navigation button:hover{
  background: var(--navy-900);
  color: var(--paper);
}


@media (max-width: 600px){

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

  .text-clipping-window{
    padding: 46px 26px 30px;
  }

  .text-clipping-window h2{
    font-size: 30px;
  }

}

/* =========================================================
   ПУБЛИКАЦИИ
   ========================================================= */

.publication-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fill, minmax(280px, 1fr));

  gap: 28px;
}


/* ---------- Карточка ---------- */

.publication-card {
  position: relative;

  background: var(--navy-900);
  color: var(--paper);

  border: 1px solid rgba(201,162,39,.25);

  overflow: hidden;
}


/* ---------- Фотография ---------- */

.publication-image-wrap {
  position: relative;

  aspect-ratio: 16 / 10;

  overflow: hidden;

  background: var(--navy-950);
}

.publication-image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}


/* ---------- Информация ---------- */

.publication-info {
  padding: 20px 22px 22px;
}


.publication-title {
  font-family: var(--font-display);

  font-size: 23px;
  line-height: 1.18;

  margin: 0;
}



/* ---------- Читать ---------- */

.publication-read {
  display: inline-block;

  margin-top: 18px;

  padding: 8px 14px;

  border: 1px solid var(--gold-500);

  color: var(--gold-300);

  font-family: var(--font-mono);

  font-size: 10.5px;

  letter-spacing: .06em;

  text-transform: uppercase;

  transition:
    background-color .2s ease,
    color .2s ease;
}


.publication-card:hover .publication-read {
  background: var(--gold-500);
  color: var(--navy-950);
}


/* =========================================================
   ОКНО ПУБЛИКАЦИИ
   ========================================================= */

.publication-lightbox {
  position: fixed;
  inset: 0;

  z-index: 400;

  display: none;

  align-items: center;
  justify-content: center;

  padding: 30px 20px;

  background: rgba(15,24,38,.96);
}


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


.publication-lightbox-window {
  position: relative;

  width: 100%;
  max-width: 900px;

  max-height: 90vh;

  overflow-y: auto;

  padding: 30px 40px 44px;

  background: var(--paper);
  color: var(--ink);

  border-top: 4px solid var(--gold-500);

  box-shadow:
    0 30px 80px rgba(0,0,0,.4);
}


/* ---------- Фотография внутри статьи ---------- */

.publication-lightbox-image-wrap {
  width: 100%;

  margin-bottom: 30px;

  background: var(--navy-950);
}


.publication-lightbox-image-wrap img {
  display: block;

  width: 100%;
  max-height: 480px;

  object-fit: cover;
}


/* ---------- Заголовок ---------- */

.publication-lightbox-window h2 {
  font-family: var(--font-display);

  font-size: clamp(30px, 4vw, 46px);

  line-height: 1.1;

  margin: 0 0 28px;
}


/* ---------- Текст ---------- */

.publication-lightbox-text {
  font-size: 17px;

  line-height: 1.75;

  max-width: 70ch;
}


.publication-lightbox-text p {
  margin: 0 0 18px;
}

/* ---------- Цитата в публикации ---------- */

.publication-lightbox-text blockquote.publication-quote {
  margin: 28px 0;

  padding: 18px 24px;

  border-left: 3px solid var(--gold-500);

  color: var(--navy-900);

  font-family: var(--font-display);

  font-size: 21px;

  font-style: italic !important;

  font-weight: 500;

  line-height: 1.5;
}


/* ---------- Закрыть ---------- */

.publication-lightbox-close {
  position: absolute;

  top: 14px;
  right: 14px;

  width: 36px;
  height: 36px;

  background: var(--paper);

  border: 1px solid var(--navy-900);

  color: var(--ink);

  cursor: pointer;

  font-size: 16px;

  z-index: 2;

  transition:
    background-color .2s ease,
    color .2s ease;
}


.publication-lightbox-close:hover {
  background: var(--navy-900);
  color: var(--paper);
}


/* =========================================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ========================================================= */

@media (max-width: 700px) {

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


  .publication-lightbox {
    padding: 20px 12px;
  }


  .publication-lightbox-window {
    max-height: 92vh;

    padding: 24px 24px 32px;
  }


  .publication-lightbox-image-wrap {
    margin-bottom: 24px;
  }


  .publication-lightbox-image-wrap img {
    max-height: 320px;
  }


  .publication-lightbox-window h2 {
    font-size: 30px;

    padding-right: 30px;
  }


  .publication-lightbox-text {
    font-size: 16px;

    line-height: 1.7;
  }

}


/* =========================================================
   ФОТО И ВИДЕО
   ========================================================= */

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}


/* ---------- Карточка альбома ---------- */

.media-card {
  background: var(--navy-900);
  color: var(--paper);

  border: 1px solid rgba(201,162,39,.25);

  /* Карточка НЕ является кнопкой */
  cursor: default;

  /* Никаких эффектов движения */
  transform: none;
  box-shadow: none;

  overflow: hidden;
}


/* Карточка остаётся статичной при наведении */

.media-card:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(201,162,39,.25);
}


/* ---------- Превью ---------- */

.media-thumb {
  position: relative;

  aspect-ratio: 16 / 10;

  overflow: hidden;

  background: var(--navy-950);
}


/* Изображение НЕ увеличивается */

.media-thumb img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transform: none;
}


/* Никакого zoom при наведении */

.media-card:hover .media-thumb img {
  transform: none;
}


/* ---------- Тип материала ---------- */

.media-badge {
  position: absolute;

  top: 12px;
  left: 12px;

  padding: 5px 9px;

  background: rgba(15,24,38,.82);

  border: 1px solid var(--gold-500);

  color: var(--gold-300);

  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .08em;
}





/* ---------- Информация ---------- */

.media-info {
  padding: 18px 20px 20px;
}

.media-title {
  font-family: var(--font-display);

  font-size: 21px;
  line-height: 1.2;
}

.media-description {
  margin-top: 8px;

  font-size: 13.5px;
  line-height: 1.5;

  color: rgba(243,239,230,.72);
}


/* =========================================================
   КНОПКИ АЛЬБОМА
   ========================================================= */

.media-actions {
  display: flex;
  flex-direction: column;

  gap: 10px;

  margin-top: 22px;
}

.media-actions button {
  width: 100%;
  min-height: 52px;

  padding: 14px 18px;

  border: 1px solid var(--gold-500);
  border-radius: 4px;

  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;

  cursor: pointer;

  transition:
    background-color .2s ease,
    color .2s ease,
    transform .2s ease;
}


/* ---------- Кнопка «Фотографии» ---------- */

.media-actions .media-open {
  background: var(--gold-500);
  color: var(--navy-950);
}


/* ---------- Кнопка «Видео» ---------- */

.media-actions .media-video-button {
  background: transparent;
  color: var(--paper);
}


/* ---------- Наведение только на кнопки ---------- */

@media (hover: hover) {

  .media-actions .media-open:hover {
    background: var(--paper);
    color: var(--navy-950);
  }

  .media-actions .media-video-button:hover {
    background: var(--gold-500);
    color: var(--navy-950);
  }

}


/* ---------- Нажатие ---------- */

.media-actions button:active {
  transform: scale(.98);
}


/* =========================================================
   ОКНО ФОТО
   ========================================================= */

.media-lightbox {
  position: fixed;
  inset: 0;

  display: none;

  align-items: center;
  justify-content: center;

  padding: 30px 70px;

  background: rgba(15,24,38,.96);

  z-index: 400;
}

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

.media-lightbox-window {
  position: relative;

  width: 100%;
  max-width: 1100px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 20px;
}

.media-lightbox-stage {
  max-width: 900px;
  width: 100%;

  text-align: center;
}

.media-lightbox-stage img {
  display: block;

  width: 100%;
  max-height: 78vh;

  object-fit: contain;

  border: 1px solid var(--line);
  background: var(--navy-950);
}

.media-lightbox-caption {
  margin-top: 14px;

  font-family: var(--font-display);
  font-size: 20px;

  color: var(--paper);
}

.media-lightbox-counter {
  margin-top: 6px;

  font-family: var(--font-mono);
  font-size: 11px;

  color: var(--gold-300);
}


/* ---------- Кнопки окна фото ---------- */

.media-lightbox-close,
.media-lightbox-prev,
.media-lightbox-next {
  background: none;

  border: 1px solid var(--gold-500);

  color: var(--paper);

  cursor: pointer;
}

.media-lightbox-close {
  position: absolute;

  top: -45px;
  right: 0;

  width: 36px;
  height: 36px;
}

.media-lightbox-prev,
.media-lightbox-next {
  flex-shrink: 0;

  width: 48px;
  height: 48px;

  font-size: 22px;
}


/* Hover только для кнопок */

.media-lightbox-close:hover,
.media-lightbox-prev:hover,
.media-lightbox-next:hover {
  background: var(--gold-500);
  color: var(--navy-950);
}


/* =========================================================
   ОКНО ВИДЕО
   ========================================================= */

.video-lightbox {
  position: fixed;
  inset: 0;

  display: none;

  align-items: center;
  justify-content: center;

  padding: 30px 20px;

  background: rgba(15,24,38,.96);

  z-index: 400;
}

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

.video-lightbox-window {
  position: relative;

  width: 100%;
  max-width: 1000px;

  background: var(--navy-950);

  border: 1px solid var(--line);

  padding: 20px;
}

.video-lightbox-window video {
  display: block;

  width: 100%;
  max-height: 75vh;

  background: #000;
}

.video-lightbox-close {
  position: absolute;

  top: -45px;
  right: 0;

  width: 36px;
  height: 36px;

  background: none;

  border: 1px solid var(--gold-500);

  color: var(--paper);

  cursor: pointer;
}

.video-lightbox-close:hover {
  background: var(--gold-500);
  color: var(--navy-950);
}

.video-lightbox-caption {
  margin-top: 12px;

  color: var(--gold-300);

  font-family: var(--font-display);
  font-size: 20px;
}


/* =========================================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ========================================================= */

@media (max-width: 700px) {

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

  .media-lightbox {
    padding: 30px 12px;
  }

  .media-lightbox-window {
    gap: 8px;
  }

  .media-lightbox-prev,
  .media-lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .media-lightbox-caption {
    font-size: 17px;
  }

  .video-lightbox-window {
    padding: 10px;
  }

}



.project-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 28px;

    min-height: 50px;
    padding: 12px 24px;

    border: 1px solid var(--gold-500);

    background: var(--gold-500);
    color: var(--navy-950);

    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;

    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .06em;

    box-shadow: 0 6px 16px rgba(23,27,34,.12);

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.project-button:hover {
    background: var(--navy-900);
    color: var(--paper);

    transform: translateY(-2px);

    box-shadow: 0 10px 22px rgba(23,27,34,.18);
}

/* =========================================================
   КНОПКИ «СТАТЬ УЧАСТНИКОМ» И «СТАТЬ ПАРТНЕРОМ»
   ========================================================= */

.projects-grid {
    align-items: stretch;
}

.project-album,
.about-info {
    display: flex;
    flex-direction: column;
}

.project-album .project-button {
    margin-top: auto;
}

.about-info .project-right-content {
    flex: 1;
}

.about-info .project-right-main {
    display: flex;
    flex-direction: column;
}

.about-info .project-right-main .project-button {
    margin-top: auto;
}

.project-album .project-button,
.about-info .project-button {
    width: 190px;
    min-height: 50px;
}


/* =========================================================
   ФОРМА ЗАЯВКИ
   ========================================================= */

.contact-modal {
    position: fixed;
    inset: 0;

    z-index: 500;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 30px 20px;

    background: rgba(15, 24, 38, .88);
}

.contact-modal.open {
    display: flex;
}


.contact-modal-window {
    position: relative;

    width: 100%;
    max-width: 560px;
    max-height: 90vh;

    overflow-y: auto;

    padding: 42px 44px 44px;

    background: var(--paper);
    color: var(--ink);

    border-top: 4px solid var(--gold-500);

    box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
}


.contact-modal-close {
    position: absolute;

    top: 14px;
    right: 14px;

    width: 36px;
    height: 36px;

    background: var(--paper);

    border: 1px solid var(--navy-900);

    color: var(--ink);

    font-size: 22px;
    line-height: 1;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease;
}

.contact-modal-close:hover {
    background: var(--navy-900);
    color: var(--paper);
}


.contact-modal-kicker {
    margin-bottom: 8px;

    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .12em;

    text-transform: uppercase;

    color: var(--brick);
}


.contact-modal-window h2 {
    margin: 0 0 10px;

    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);

    line-height: 1.1;
}


.contact-modal-description {
    margin: 0 0 28px;

    color: rgba(23, 27, 34, .65);

    font-size: 15px;
}


.contact-form {
    display: flex;
    flex-direction: column;

    gap: 18px;
}


.contact-form label {
    display: flex;
    flex-direction: column;

    gap: 7px;
}


.contact-form label span {
    font-family: var(--font-mono);

    font-size: 10.5px;

    letter-spacing: .06em;

    text-transform: uppercase;

    color: rgba(23, 27, 34, .65);
}


.contact-form input,
.contact-form textarea {
    width: 100%;

    padding: 12px 14px;

    border: 1px solid rgba(23, 27, 34, .25);

    border-radius: 0;

    background: rgba(255, 255, 255, .45);

    color: var(--ink);

    font-family: var(--font-body);
    font-size: 15px;

    outline: none;

    transition:
        border-color .2s ease,
        background .2s ease;
}


.contact-form textarea {
    resize: vertical;

    min-height: 110px;
}


.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--gold-500);

    background: var(--paper);
}


.contact-form-submit {
    width: 100%;

    min-height: 50px;

    margin-top: 6px;

    padding: 12px 20px;

    border: 1px solid var(--gold-500);

    background: var(--gold-500);

    color: var(--navy-950);

    font-family: var(--font-mono);

    font-size: 11px;

    font-weight: 500;

    letter-spacing: .07em;

    text-transform: uppercase;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}


.contact-form-submit:hover {
    background: var(--navy-900);

    color: var(--paper);

    transform: translateY(-2px);
}


/* Мобильная версия */

@media (max-width: 600px) {

    .contact-modal {
        padding: 15px;
    }

    .contact-modal-window {
        max-height: 94vh;

        padding: 38px 24px 30px;
    }

}


/* =========================================================
   РЕЗУЛЬТАТ ОТПРАВКИ ЗАЯВКИ
   ========================================================= */

.application-message {
    position: fixed;
    inset: 0;

    z-index: 600;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(15, 24, 38, .88);
}


.application-message-window {
    width: 100%;
    max-width: 520px;

    padding: 44px;

    background: var(--paper);

    color: var(--ink);

    border-top: 4px solid var(--gold-500);

    box-shadow: 0 30px 80px rgba(0,0,0,.4);
}


.application-message-window h2 {
    margin: 0 0 14px;

    font-family: var(--font-display);

    font-size: 40px;

    line-height: 1.1;
}


.application-message-window p {
    margin: 0 0 28px;

    font-size: 16px;

    line-height: 1.6;
}


.application-message-window .project-button {
    margin-top: 0;
}


@media (max-width: 600px) {

    .application-message-window {
        padding: 32px 24px;
    }

}

textarea {
    width: 100%;

    min-height: 120px;
    padding: 10px 12px;

    border: 1px solid rgba(23,27,34,.2);

    background: var(--paper);

    color: var(--ink);

    font: inherit;

    resize: vertical;
}

textarea:focus {
    outline: 2px solid var(--gold-500);
    outline-offset: 1px;
}

.latest-themes {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.latest-themes-title {
    margin-bottom: 10px;

    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;

    color: var(--gold-500);
}

.latest-themes ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

.latest-themes li {
    position: relative;

    margin-bottom: 8px;
    padding-left: 16px;

    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.45;

    color: var(--ink);
}

.latest-themes li::before {
    content: "—";

    position: absolute;
    left: 0;

    color: var(--gold-500);
}

.hero-topics {
    margin-top: 26px;
}

.hero-topics-title {
    margin-bottom: 12px;

    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;

    color: var(--gold-500);
}

.hero-topics ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

.hero-topics li {
    position: relative;

    margin-bottom: 8px;
    padding-left: 18px;

    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
}

.hero-topics li::before {
    content: "—";

    position: absolute;
    left: 0;

    color: var(--gold-500);
}

.hero-topics-heading {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  font-weight: 500;
}

/* ---------- Основные темы ---------- */

.topics-admin {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.topic-admin-item {
    padding: 18px;

    background: #faf9f5;

    border: 1px solid rgba(23,27,34,.12);
    border-left: 3px solid var(--gold-500);
}

.topic-admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin-bottom: 16px;
}

.topic-admin-header strong {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
}

.topic-remove {
    padding: 6px 10px;

    border: 1px solid rgba(139,58,58,.35);

    background: transparent;
    color: var(--brick);

    font-family: var(--font-mono);
    font-size: 10px;

    cursor: pointer;

    transition: .2s ease;
}

.topic-remove:hover {
    background: var(--brick);
    color: #fff;
}

.topic-admin-field {
    display: flex;
    flex-direction: column;

    margin-top: 14px;
}

.topic-admin-field label {
    margin-bottom: 7px;
}

.topic-admin-field input,
.topic-admin-field textarea {
    width: 100%;

    padding: 10px 12px;

    border: 1px solid rgba(23,27,34,.2);

    background: #fff;

    color: var(--ink);

    font: inherit;
}

.topic-admin-field textarea {
    min-height: 100px;

    resize: vertical;

    line-height: 1.5;
}

.topic-admin-field input:focus,
.topic-admin-field textarea:focus {
    outline: 2px solid var(--gold-500);
    outline-offset: 1px;
}

.button-add-topic {
    align-self: flex-start;

    background: transparent;
    color: var(--ink);
}

.button-add-topic:hover {
    background: var(--navy-900);
    color: var(--paper);
}

.copyright {
    display: block;
    text-align: left;
}

.project-album-cover {
  margin: 28px 0 24px;
  width: 100%;
}

.project-album-cover img {
  display: block;
  width: 100%;
  max-width: 350px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 700px) {

  .project-album-cover {
    margin: 24px 0 22px;
  }

  .project-album-cover img {
    width: 100%;
    max-width: 250px;
  }

}

/* Убираем статистику журнала */
.about-stats {
    display: none !important;
}

/* =========================================================
   БЛОК «НАШИ ПРОЕКТЫ» — ДВЕ КОЛОНКИ
   ========================================================= */

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.project-album,
.about-info {
    min-width: 0;
    display: block;
}

.project-right-content {
    display: block !important;
    width: 100%;
}

.project-right-main {
    width: 100% !important;
}

/* Статистику полностью скрываем */
.about-stats {
    display: none !important;
}


/* Обложка */
.project-album-cover {
    margin: 28px 0 24px;
}

.project-album-cover img {
    display: block;
    width: 250px;
    max-width: 100%;
    height: auto;
}


/* На телефоне — одна колонка */
@media (max-width: 800px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .project-album-cover img {
        width: 250px;
        max-width: 100%;
    }
}

/* =========================================================
   НАШИ ПРОЕКТЫ — ФИНАЛЬНОЕ ВЫРАВНИВАНИЕ
   ========================================================= */

.projects-grid {
    align-items: start;
}

.project-album,
.about-info {
    display: block;
    min-width: 0;
}

/* Убираем растягивание правой части */
.about-info .project-right-content {
    display: block;
}

/* Текст справа */
.about-info .project-right-main {
    width: 100%;
    display: block;
}

/* Обложка фотоальбома */
.project-album-cover {
    margin: 24px 0 24px;
}

.project-album-cover img {
    display: block;
    width: 250px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Кнопки больше не прижимаются к низу */
.project-album .project-button,
.about-info .project-button {
    margin-top: 28px;
}

/* На мобильном */
@media (max-width: 800px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .project-album-cover img {
        width: 250px;
    }
}

.project-subtitle-spaced {
    margin-top: 34px;
    margin-bottom: 24px;
}

/* =========================================================
   ФИНАЛЬНОЕ ВЫРАВНИВАНИЕ БЛОКА «НАШИ ПРОЕКТЫ»
   ========================================================= */

.projects-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}

.project-album,
.about-info {
    display: block;
    min-width: 0;
    height: auto;
}

.project-album-cover {
    margin: 24px 0;
}

.project-album-cover img {
    display: block;
    width: 250px;
    max-width: 100%;
    height: auto;
}

.about-description {
    margin: 0 0 28px;
}

.about-description p {
    margin: 0;
}

.project-album .project-button,
.about-info .project-button {
    margin-top: 28px;
}

@media (max-width: 800px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* =========================================================
   НАШИ ПРОЕКТЫ — ДВЕ КОЛОНКИ НА ПК
   ========================================================= */

.projects-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 64px !important;
    width: 100% !important;
    align-items: start !important;
}

.projects-grid > .project-album {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
}

.projects-grid > .about-info {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Заголовки обеих колонок начинаются с одной высоты */

.projects-grid .project-title {
    margin-top: 0 !important;
}

.projects-grid .project-subtitle {
    margin-top: 0 !important;
}

/* Фотоальбом */

.project-album-cover img {
    width: 250px;
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ========================================================= */

@media (max-width: 800px) {

    .projects-grid {
        grid-template-columns: 1fr !important;
        gap: 48px !important;
    }

    .projects-grid > .project-album {
        grid-column: 1 !important;
        grid-row: auto !important;
    }

    .projects-grid > .about-info {
        grid-column: 1 !important;
        grid-row: auto !important;
    }

}

.project-album-cover {
    margin-top: 28px;
    padding: 8px;
    border: 1px solid var(--gold-500);
    background: var(--paper);
}

.project-album-cover img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* =========================================================
   МОБИЛЬНАЯ ВЕРСИЯ — СНАЧАЛА ОБЛОЖКА, ПОТОМ ОСНОВНЫЕ ТЕМЫ
   ========================================================= */
@media (max-width: 700px) {

    .hero .wrap {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .hero .wrap > div:first-child {
        order: 2 !important;
    }

    .hero .wrap > .hero-cover {
        order: 1 !important;
    }

}

/* =========================================================
   НАВИГАЦИОННЫЕ КНОПКИ В НАШИХ ПРОЕКТАХ
   ========================================================= */

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
    align-items: center;
}

/* Все кнопки внутри блока имеют нормальную ширину */
.project-actions .project-button {
    margin-top: 0;
    white-space: nowrap;
}

/* Кнопки перехода по сайту — БЕЛЫЕ */
.project-actions .project-button-secondary {
    background: var(--paper) !important;
    color: var(--navy-900) !important;
    border: 1px solid var(--gold-500) !important;
}

/* При наведении */
.project-actions .project-button-secondary:hover {
    background: transparent !important;
    color: var(--paper) !important;
    border: 1px solid var(--gold-500) !important;
}


/* =========================================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ========================================================= */

@media (max-width: 700px) {

    .project-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 10px;
    }

    .project-actions .project-button {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        white-space: nowrap;
    }

    /* Навигационные кнопки ВСЕГДА белые */
    .project-actions .project-button-secondary {
        background: var(--paper) !important;
        color: var(--navy-900) !important;
        border: 1px solid var(--gold-500) !important;
    }

}

/* =========================================================
   АКТУАЛЬНЫЙ НОМЕР — ФИНАЛЬНАЯ АДАПТАЦИЯ
   ========================================================= */

@media (min-width: 769px) {

    .hero > .wrap {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 320px;
        align-items: start;
        gap: 70px;
    }

    .hero-cover {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
        align-self: start;
    }

}


/* На мобильном обложка выводится только в своём обычном месте */

@media (max-width: 768px) {

    .hero > .wrap {
        display: grid;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-cover {
        grid-column: 1;
        grid-row: auto;
        width: 100%;
        margin: 0;
        justify-self: start;
    }

}

.about-description {
    border-left: 2px solid var(--gold-500);
    padding: 18px 22px;
    background: rgba(201,162,39,.045);
}

/* =========================================================
   НИЖНЯЯ СТРОКА ФУТЕРА
   ========================================================= */

.copyright-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.copyright-age {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--gold-500);
    border: 1px solid var(--gold-500);
    padding: 3px 6px;
    line-height: 1;
}

.copyright-owner {
    margin-top: 7px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--paper-dim);
}

/* =========================================================
   Согласие на обработку персональных данных
   ========================================================= */

.contact-form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-600);
}

.contact-form-consent input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    flex: 0 0 auto;
    cursor: pointer;
}

.contact-form-consent span {
    display: block;
}

.contact-form-consent a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-form-consent a:hover {
    color: var(--gold-500);
}