:root {
  --paper: #f4f0e8;
  --surface: #fbfaf7;
  --ink: #25231f;
  --muted: #726d64;
  --line: #d8d1c5;
  --accent: #6d3e36;
  --max-width: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", Arial, sans-serif;
  line-height: 1.65;
}

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

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 22px 32px;
  background: rgba(244, 240, 232, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  text-decoration: none;
}

.brand-name,
.brand-role {
  display: block;
}

.brand-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 29px;
  font-weight: 600;
  line-height: 1;
}

.brand-role {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a,
.text-link,
.contact-links a,
footer a {
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.site-nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hero,
.section,
footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-right: 32px;
  padding-left: 32px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  align-items: center;
  gap: clamp(48px, 7vw, 110px);
  min-height: 82vh;
  padding-top: 72px;
  padding-bottom: 92px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.05;
}

h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(52px, 7vw, 96px);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(42px, 5vw, 68px);
}

h3 {
  margin-bottom: 8px;
  font-size: 28px;
}

.hero-text,
.section-heading > p:last-child,
.about-copy p,
.documents-placeholder p {
  color: var(--muted);
}

.hero-text {
  max-width: 600px;
  margin-bottom: 28px;
  font-size: 18px;
}

.text-link {
  font-weight: 600;
}

.hero-art {
  margin: 0;
}

.hero-art img {
  width: 100%;
  max-height: 760px;
  object-fit: cover;
  object-position: center 32%;
}

.section {
  padding-top: 110px;
  padding-bottom: 110px;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 56px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px 36px;
}

.art-card {
  min-width: 0;
}

.art-image {
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.art-image img {
  width: 100%;
  height: min(68vw, 690px);
  object-fit: contain;
  background: #ebe6dc;
  transition: transform 350ms ease;
}

.art-image:hover img,
.art-image:focus-visible img {
  transform: scale(1.015);
}

.art-info {
  padding-top: 18px;
}

.art-info h3 {
  font-size: 27px;
}

.art-info p {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 14px;
}

.art-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.badge {
  padding: 6px 10px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.award-note {
  color: var(--accent) !important;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(48px, 9vw, 130px);
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.about-copy {
  max-width: 690px;
}

.lead {
  color: var(--ink) !important;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 29px;
  line-height: 1.35;
}

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

.timeline article {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.year {
  color: var(--accent);
  font-weight: 600;
}

.timeline h3,
.timeline p {
  margin-bottom: 3px;
}

.timeline p {
  color: var(--muted);
}

.award-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 34px;
  max-width: 900px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.award-number {
  color: var(--accent);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 92px;
  line-height: 1;
}

.award-card p {
  color: var(--muted);
}

.documents-placeholder {
  margin-top: 58px;
  padding: 48px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.22);
}

.documents-placeholder > div {
  max-width: 720px;
}

.contacts-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 64px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  font-size: 18px;
}

footer {
  display: flex;
  justify-content: space-between;
  padding-top: 32px;
  padding-bottom: 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.lightbox {
  width: min(1200px, calc(100vw - 36px));
  max-width: none;
  max-height: calc(100vh - 36px);
  padding: 0;
  border: 0;
  background: var(--surface);
}

.lightbox::backdrop {
  background: rgba(22, 20, 18, 0.88);
}

.lightbox-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  min-height: 70vh;
}

.lightbox-content img {
  width: 100%;
  height: 82vh;
  object-fit: contain;
  background: #171615;
}

.lightbox-caption {
  align-self: end;
  padding: 44px 34px;
}

.lightbox-caption p {
  color: var(--muted);
}

.lightbox-close {
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(244, 240, 232, 0.92);
  color: var(--ink);
  font-size: 31px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
    padding: 18px 20px;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 14px;
    padding-top: 14px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero,
  .section,
  footer {
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 60px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-art {
    max-width: 700px;
  }

  .about-section,
  .contacts-section {
    grid-template-columns: 1fr;
  }

  .portrait-frame {
    max-width: 560px;
  }

  .contact-links {
    align-items: flex-start;
  }

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

  .lightbox-content img {
    height: 64vh;
  }
}

@media (max-width: 640px) {
  .gallery {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .art-image img {
    height: auto;
    max-height: 78vh;
  }

  .section {
    padding-top: 78px;
    padding-bottom: 78px;
  }

  .timeline article,
  .award-card {
    grid-template-columns: 1fr;
  }

  .award-number {
    font-size: 72px;
  }

  .documents-placeholder {
    padding: 30px 22px;
  }

  footer {
    gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .art-image img {
    transition: none;
  }
}




.winner-diploma {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  margin: 58px 0 0;
  padding: 42px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid var(--line);
/* Контейнер дипломов должен занимать всю ширину раздела */
.documents-placeholder > div {
  width: 100%;
  max-width: none;
}

.diplomas-section {
  width: 100%;
  margin-top: 40px;
}

.diplomas-section .section-heading {
  max-width: 100%;
  margin-bottom: 40px;
}

/* Ровно четыре диплома в одной строке */
.diplomas-grid {
  display: flex;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

.diploma-item {
  min-width: 0;
  width: 100%;
  margin: 0;

}

.diploma-link {
  display: block;
  width: 100%;
  padding: 6px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  text-decoration: none;
}

.diploma-link img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 210 / 297;
  object-fit: contain;
  background: #f2eee6;
}

.diploma-item figcaption {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.3;
  text-align: center;
}

.diploma-item figcaption span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 12px;
}

/* На планшете — два в ряд */
@media (max-width: 900px) {
  .diplomas-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* На телефоне — один */
@media (max-width: 520px) {
  .diplomas-grid {
    grid-template-columns: 1fr;
  }

  .diploma-item {
    max-width: 360px;
    margin-right: auto;
    margin-left: auto;
  }
}
}

.winner-diploma-image {
  display: block;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  text-decoration: none;
  transition:
    transform 200ms ease,
    border-color 200ms ease;
}

.winner-diploma-image:hover,
.winner-diploma-image:focus-visible {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.winner-diploma-image img {
  width: 100%;
  aspect-ratio: 297 / 210;
  object-fit: contain;
  background: #f2eee6;
}

.winner-diploma figcaption {
  margin: 0;
}

.winner-diploma figcaption h3 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 44px);
}

.winner-diploma figcaption > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 800px) {
  .winner-diploma {
    grid-template-columns: 1fr;
    padding: 28px;
  }
}

@media (max-width: 540px) {
  .winner-diploma {
    padding: 18px;
  }
}