@font-face {
  font-family: 'Group Sans';
  src: url('assets/rubik-ru.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Group Sans';
  src: url('assets/rubik-titles.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Group Wordmark';
  src: url('assets/group-wordmark.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}
:root, .kuzmin-page {
  color-scheme: only light;
  font-family: 'Group Sans', Arial, sans-serif;
  background: #f3f3ec;
  color: #292a2e;
  text-align: center;
  -webkit-text-size-adjust: 100%;
}
.kuzmin-page { display: flow-root; min-height: 100vh; }
* { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #ffbe50; outline-offset: 4px; }
.skip { position: absolute; z-index: 5; top: -80px; left: 12px; padding: 12px; color: white; background: #292a2e; }
.skip:focus { top: 12px; }
.opening { padding: 29px 20px 0; }
.wordmark, .footer-brand {
  font-family: 'Group Wordmark', Georgia, serif;
  font-weight: 700;
  letter-spacing: normal;
  word-spacing: .1em;
}
.wordmark { color: #121312; font-size: 44px; line-height: 50px; }
.intro { max-width: 550px; min-height: 201px; margin: 16px auto 0; padding-top: 8px; color: #242426; font-size: 17px; line-height: 1.5; }
.intro p + p { margin-top: 23.25px; }
.city {
  width: min(760px, calc(100% - 40px));
  margin: 52px auto 0;
  padding: 5px 0 21px;
  border-bottom: 1px solid #b6b5ac;
  font-size: 23px;
  line-height: 30px;
  font-weight: 700;
  text-transform: uppercase;
}
.projects {
  width: min(1140px, calc(100% - 40px));
  margin: 79px auto 105px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 360 / 496;
  border-radius: 30px;
  background: #3d3026;
  color: #fff;
  box-shadow: 0 2px 11px rgba(30, 29, 25, .23);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .38);
}
.card::before, .photo { position: absolute; inset: 0; width: 100%; height: 100%; }
.photo { display: block; z-index: -2; object-fit: cover; transition: transform .3s ease; }
.card::before {
  content: '';
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.36), rgba(0,0,0,.32) 27%, rgba(0,0,0,.12) 55%, rgba(0,0,0,.44) 90%, rgba(0,0,0,.44));
}
.card--bafi::before {
  background: linear-gradient(to bottom, rgba(23,12,7,.47) 0%, rgba(23,12,7,.32) 29%, transparent 48%, rgba(23,12,7,.06) 66%, rgba(23,12,7,.73) 91%);
}
.card-text { padding: 36px 12px 0; }
.card h3 { font-size: 28px; line-height: 43px; font-weight: 700; text-transform: uppercase; }
.card-text p { margin: 15px auto 0; max-width: 250px; font-size: 18px; line-height: 24px; }
.project-link::after { content:''; position:absolute; z-index:1; inset:0; border-radius:30px; }
.project-link:focus-visible { outline: none; }
.project-link:focus-visible::after { box-shadow: inset 0 0 0 4px #ffbe50; }
.address { position:absolute; left:50%; bottom:12.6%; width:max-content; max-width:94%; transform:translateX(-50%); padding:7px; font-size:18px; line-height:24px; }
a.address { z-index:2; }
.address-caption { pointer-events:none; }
@media (hover:hover) {
  .card:has(.project-link:hover) .photo { transform:scale(1.028); }
  .address:hover, .footer-address:hover { text-decoration:underline; text-underline-offset:3px; }
}
footer { background: #090909; color: #f3f3ec; padding: 48px 24px; }
.footer-inner { max-width:1140px; margin:auto; display:flex; justify-content:space-between; align-items:center; text-align:left; gap:24px; }
.footer-brand { font-size:30px; line-height:1.1; }
.footer-address { font-size:14px; line-height:1.55; }
@media (min-width:960px) and (max-width:1199px) {
  .projects { width: min(calc(100% - 14px),946px); gap:18px; }
  .card-text { padding-top:39px; }
  .card h3 { font-size:24px; line-height:33px; }
  .card-text p { margin-top:14px; font-size:17px; }
}
@media (max-width:959px) {
  .projects { width:min(303px,calc(100% - 16px)); grid-template-columns:1fr; gap:65px; margin-bottom:76px; }
  .card { aspect-ratio:303/418; }
  .card-text { padding-top:43px; }
  .card h3 { font-size:24px; line-height:32px; }
  .card-text p { margin-top:13px; font-size:17px; }
  .address { bottom:12%; font-size:17px; }
}
@media (max-width:600px) {
  .opening { padding:24px 20px 0; }
  .wordmark { font-size:38px; line-height:46px; }
  .intro { min-height:0; margin-top:15px; padding:0; max-width:440px; font-size:16px; line-height:1.5; }
  .intro p + p { margin-top:20px; }
  .city { width:min(303px,calc(100% - 32px)); margin-top:36px; padding:4px 0 15px; font-size:20px; line-height:26px; }
  .projects { margin-top:45px; }
  .footer-inner { flex-direction:column; text-align:center; }
  footer { padding-block:33px; }
}
@media (prefers-reduced-motion:reduce) { .photo { transition:none; } }
