/* Оформление «Фовизм»: крупный гротеск, плашки кислотного розового, наклейки со смещённой тенью. */
:root {
  --pale: #FCE7F2;
  --blush: #FBD2EA;
  --pink: #FF2E9A;
  --pink-deep: #D6127A;
  --plum: #3A0020;
  --ink: #1C1117;
  --white: #FFFFFF;

  --display: "Unbounded", "Arial Black", sans-serif;
  --body: "Jost", sans-serif;
  --gutter: min(6rem, 6vw);
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-user-select: none;
  user-select: none;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--pale);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
}

img { max-width: 100%; }
p { margin: 0; }
a { color: inherit; }

/* Общие детали: плашки, наклейки, кнопка */
.f-pill {
  display: inline-block;
  padding: 5px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.f-pill--pink { background: var(--pink); border-color: var(--pink); color: var(--white); }

.f-sticker {
  display: inline-block;
  padding: 10px 18px;
  background: var(--pink);
  color: var(--white);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  border-radius: 10px;
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-3deg);
}
.f-sticker--small { font-size: 15px; padding: 8px 14px; }

.f-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  background: var(--ink);
  color: var(--pale);
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--pink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.f-button:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--pink); }
.f-button:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--pink); }

.f-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
}
.f-subtitle {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  text-transform: uppercase;
  margin: 0 0 20px;
}
mark {
  background: var(--pink);
  color: var(--white);
  padding: 0.05em 0.3em;
  border-radius: 0.25em;
  /* при переносе на новую строку плашка и скругления повторяются на каждом куске */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Шапка */
.f-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding: 24px var(--gutter);
}
.f-header--nav-only { justify-content: flex-end; }
.f-header__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
}
.f-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.f-nav a {
  padding: 7px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.f-nav a:hover { background: var(--ink); color: var(--pale); }
.f-nav a[aria-current="page"] { background: var(--pink); border-color: var(--pink); color: var(--white); }

.page {
  max-width: calc(1280px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 32px var(--gutter) 96px;
}

/* Главная */
.f-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 24px;
  min-height: calc(100vh - 92px);
  padding: 0 var(--gutter) 40px;
  overflow: hidden;
}
.f-hero__text { position: relative; z-index: 2; }
/* «Кухтевич» в Unbounded 900 = 7em шириной: размер считается от ширины колонки текста
   (≈ 57% от 88vw), чтобы фамилия не вылезала под картину. */
.f-hero__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.2rem, calc(7.1vw - 2px), 8.5rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 20px 0 28px;
}
.f-hero__title span { display: block; }
.f-hero__title-accent { color: var(--pink); }
.f-hero .f-sticker { margin-bottom: 36px; max-width: 30ch; }
.f-hero .f-button { display: flex; width: max-content; }

.f-hero__art { position: relative; display: flex; justify-content: center; align-items: center; }
.f-hero__art img {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  max-height: 72vh;
  object-fit: contain;
}
.f-blob {
  position: absolute;
  width: 92%;
  aspect-ratio: 1;
  background: var(--blush);
  border: 3px solid var(--ink);
  border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%;
  transform: rotate(-8deg);
}

/* Галерея (тёмная, как требовалось) */
.f-dark { background: var(--plum); color: var(--pale); }
.f-dark .f-header__name { color: var(--pale); }
.f-dark .f-nav a { border-color: var(--pale); color: var(--pale); }
.f-dark .f-nav a:hover { background: var(--pale); color: var(--plum); }
.f-dark .f-nav a[aria-current="page"] { background: var(--pink); border-color: var(--pink); color: var(--white); }

.f-page-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.f-note { margin: 18px 0 40px; color: var(--blush); }
.f-note a { color: var(--pale); text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.f-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.f-tile {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  border: 3px solid var(--pale);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.f-tile:hover { transform: translate(-4px, -4px) rotate(-1.2deg); box-shadow: 8px 8px 0 var(--pink); }
.f-tile:nth-child(even):hover { transform: translate(-4px, -4px) rotate(1.2deg); }
.f-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}
.f-tile__label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  background: var(--pale);
  color: var(--ink);
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
  transform: rotate(-2deg);
  pointer-events: none;
}

/* Обо мне */
.f-about {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 600px);
  justify-content: center;
  align-items: center;
  gap: 72px;
  margin-top: 48px;
}
.f-about__portrait { position: relative; }
.f-about__portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pink);
  border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%;
  transform: translate(14px, 14px) rotate(4deg);
}
.f-about__portrait img {
  position: relative;
  display: block;
  width: 100%;
  /* без height:auto атрибут height="800" перебивает aspect-ratio */
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 3px solid var(--ink);
  border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%;
}
.f-about__text p + p { margin-top: 16px; }
.f-lead { font-size: 22px; font-weight: 500; line-height: 1.4; }

.f-exhibitions { margin-top: 88px; }
.f-exhibitions ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.f-exhibitions li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 14px;
}
.f-year {
  flex: none;
  min-width: 118px;
  padding: 5px 12px;
  background: var(--ink);
  color: var(--pale);
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  text-align: center;
}

/* Контакты: сетка 2×2 карточек (иконка + название канала + контакт) и фото сбоку.
   Telegram — главный способ связи, его карточка залита розовым. */
.f-title--compact { font-size: clamp(2rem, 5vw, 4rem); }
.f-contacts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  align-items: center;
  gap: 64px;
}
.f-contacts__intro { margin: 12px 0 28px; font-size: 19px; max-width: 44ch; }
.f-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.f-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 18px 20px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.f-contact--primary { background: var(--pink); color: var(--white); }
.f-contact:hover { background: var(--ink); color: var(--pale); transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--pink); }
.f-contact img { flex: none; width: 56px; height: 56px; }
.f-contact__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.f-contact__label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}
.f-contact__value {
  font-weight: 600;
  font-size: 19px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.f-contacts__photo { position: relative; }
.f-contacts__photo img {
  display: block;
  width: 100%;
  max-height: 52vh;
  object-fit: cover;
  border: 3px solid var(--ink);
  border-radius: 48% 52% 44% 56% / 38% 40% 60% 62%;
}
.f-contacts__photo .f-sticker { position: absolute; right: -18px; bottom: 18px; }

@media (min-width: 1500px) {
  .f-contacts { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); }
  .f-contact { padding: 22px 24px; gap: 18px; }
  .f-contact img { width: 64px; height: 64px; }
  .f-contact__label { font-size: 12px; }
  .f-contact__value { font-size: 22px; }
  .f-contacts__intro { font-size: 21px; }
}

@media (max-width: 900px) {
  .f-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .f-about { grid-template-columns: 1fr; gap: 40px; margin-top: 32px; }
  .f-about__portrait { max-width: 300px; margin: 0 auto 14px; width: calc(100% - 20px); }
  .f-about__portrait::before { transform: translate(10px, 10px) rotate(4deg); }
  .f-contacts { grid-template-columns: 1fr; gap: 8px; }
  .f-contacts__photo { order: -1; width: 100%; max-width: 200px; margin: 16px auto 0; }
  .f-contacts__photo img { max-height: 24vh; }
  .f-contacts__photo .f-sticker { right: -24px; bottom: 10px; }
  .f-contacts__intro { font-size: 17px; margin: 12px 0 18px; }
  .f-contact-grid { grid-template-columns: 1fr; gap: 12px; }
  .f-contact { padding: 12px 16px; gap: 14px; border-radius: 16px; box-shadow: 4px 4px 0 var(--ink); }
  .f-contact img { width: 44px; height: 44px; }
  .f-contact__value { font-size: 17px; }
}

@media (max-width: 782px) {
  .page { padding-top: 16px; padding-bottom: 40px; }
  .f-header { padding: 16px var(--gutter); }
  .f-nav a { padding: 5px 12px; font-size: 14px; }
  .f-hero {
    grid-template-columns: 1fr;
    align-content: center;
    min-height: calc(100vh - 70px);
    min-height: calc(100dvh - 70px);
    gap: 8px;
    padding-bottom: 24px;
  }
  .f-hero__art { order: -1; }
  .f-hero__art img { max-height: 30vh; }
  .f-blob { width: 64%; }
  .f-hero__title { font-size: min(12.2vw, 4rem); margin: 12px 0 18px; }
  .f-hero .f-sticker { font-size: 15px; margin-bottom: 26px; }
  .f-button { padding: 14px 22px; font-size: 13px; }
  .f-exhibitions li { flex-direction: column; align-items: flex-start; gap: 8px; }
  .f-lead { font-size: 19px; }
}

/* Телефон: имя в две строки мелким кеглем + уменьшенные кнопки — вся шапка в одну строку до ~340px */
@media (max-width: 560px) {
  .f-header { flex-wrap: nowrap; gap: 10px; padding: 14px 16px; }
  .f-header__name { font-size: 11px; line-height: 1.15; flex: none; }
  .f-header__name span { display: block; }
  .f-nav { flex-wrap: nowrap; gap: 5px; }
  .f-nav a { padding: 5px 10px; font-size: 13px; border-width: 1.5px; white-space: nowrap; }
}
@media (max-width: 350px) {
  .f-header { gap: 8px; padding: 12px 14px; }
  .f-header__name { font-size: 10px; }
  .f-nav { gap: 4px; }
  .f-nav a { padding: 4px 8px; font-size: 12px; }
}

@media (max-width: 600px) {
  .f-grid { gap: 14px; }
  .f-tile { border-width: 2px; border-radius: 12px; }
  .f-tile__label { left: 8px; bottom: 8px; font-size: 11px; padding: 4px 7px; }
}
