/* soloveyko.art — стили сайта */

@font-face { font-family: 'Gilroy'; src: url('/assets/fonts/Gilroy-Regular.woff2') format('woff2'), url('/assets/fonts/Gilroy-Regular.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('/assets/fonts/Gilroy-Medium.woff2') format('woff2'), url('/assets/fonts/Gilroy-Medium.woff') format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('/assets/fonts/Gilroy-Semibold.woff2') format('woff2'), url('/assets/fonts/Gilroy-Semibold.woff') format('woff'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('/assets/fonts/Gilroy-Bold.woff2') format('woff2'), url('/assets/fonts/Gilroy-Bold.woff') format('woff'); font-weight: 700; font-display: swap; }

:root {
  --paper: #ffffff;
  --stone: #f3f3f1;
  --ink: #262626;
  --muted: #71716c;
  --line: #e1e1dc;
  --berry: #ab1240;       /* цвет кольца из логотипа */
  --berry-dark: #8a0e33;

  --font: 'Gilroy', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1360px;
  --gutter: clamp(16px, 4vw, 48px);
  --gap: clamp(20px, 2.6vw, 36px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--berry); }
:focus-visible { outline: 2px solid var(--berry); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand-bird { width: 44px; height: 44px; transition: transform .4s cubic-bezier(.2,.7,.3,1.4); }
.brand:hover .brand-bird { transform: rotate(-12deg); }

.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); font-weight: 500; font-size: 16px; }
.site-nav > a { text-decoration: none; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.site-nav > a[aria-current] { border-bottom-color: var(--ink); }
.site-nav > a:hover { border-bottom-color: var(--berry); color: var(--ink); }
.lang-switch { display: flex; gap: 2px; margin-left: 8px; padding-left: clamp(14px, 2vw, 28px); border-left: 1px solid var(--line); }
.lang-switch a, .lang-switch span { padding: 4px 7px; text-decoration: none; color: var(--muted); border-radius: var(--radius); }
.lang-switch span[aria-current] { color: var(--ink); background: var(--stone); }
.lang-switch a:hover { color: var(--berry); }

.menu-toggle { display: none; }

@media (max-width: 760px) {
  .header-inner { height: 64px; }
  .brand-bird { width: 38px; height: 38px; }
  .brand-name { font-size: 17px; }
  .menu-toggle {
    display: flex; align-items: center; gap: 10px;
    background: none; border: 0; padding: 8px 0; font: 500 16px var(--font); color: var(--ink); cursor: pointer;
  }
  .menu-toggle-bars, .menu-toggle-bars::before { display: block; width: 20px; height: 1.5px; background: currentColor; position: relative; transition: transform .2s; }
  .menu-toggle-bars::before { content: ''; position: absolute; top: 6px; }
  .menu-toggle-bars { top: -3px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(-6px) rotate(-90deg); }
  .site-nav {
    position: fixed; inset: 64px 0 auto 0; background: var(--paper);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px;
    border-bottom: 1px solid var(--line); font-size: 22px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav > a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav > a[aria-current] { border-bottom-color: var(--line); color: var(--berry); }
  .lang-switch { margin: 18px 0 0; padding: 0; border: 0; font-size: 17px; }
}

/* ---------- Главная: первый экран ---------- */
.hero { padding-top: clamp(40px, 8vh, 96px); padding-bottom: clamp(56px, 10vh, 120px); }
.hero-intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: end; margin-bottom: clamp(40px, 7vh, 80px); }
.hero-name { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.hero-lead { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.45; color: var(--ink); max-width: 36em; }
.hero-lead p:last-child { margin-bottom: 0; }

.disciplines { position: relative; border-top: 1.5px solid var(--ink); }
.discipline {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 320px); gap: var(--gap); align-items: center;
  padding: clamp(18px, 2.6vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  position: relative; z-index: 1;
}
.discipline-name {
  font-size: clamp(40px, 8.4vw, 128px); font-weight: 700; line-height: 0.95; letter-spacing: -0.045em;
  transition: color .25s, transform .35s cubic-bezier(.2,.7,.2,1);
}
.discipline-meta { display: flex; flex-direction: column; gap: 4px; font-size: 15px; line-height: 1.4; color: var(--muted); }
.discipline-count { color: var(--ink); font-weight: 600; font-size: 17px; }
.discipline:hover { color: var(--ink); }
.discipline:hover .discipline-name { color: var(--berry); transform: translateX(clamp(8px, 1.4vw, 20px)); }

/* превью-картинка, которая следует за курсором */
.discipline-preview {
  position: fixed; left: 0; top: 0; width: 300px; aspect-ratio: 940 / 510;
  pointer-events: none; z-index: 0; opacity: 0;
  transform: translate(-50%, -50%) scale(.92);
  transition: opacity .2s, transform .25s;
  box-shadow: 0 20px 50px rgba(30, 20, 25, .18);
  background: var(--stone);
}
.discipline-preview img { width: 100%; height: 100%; object-fit: cover; }
.disciplines.is-previewing .discipline-preview { opacity: 1; transform: translate(-50%, -50%) scale(1); }

@media (max-width: 860px) {
  .hero-intro { grid-template-columns: 1fr; gap: 14px; }
  .discipline { grid-template-columns: 1fr; gap: 8px; }
  .discipline-meta { flex-direction: row; flex-wrap: wrap; gap: 4px 12px; }
  .discipline-preview { display: none; }
}

/* ---------- Заголовки секций ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head h2, .about h2, .contact h2 { font-size: clamp(32px, 4.2vw, 56px); letter-spacing: -0.035em; }
.link-strong { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; white-space: nowrap; }

/* ---------- Карточки проектов ---------- */
.card { min-width: 0; }
.card-link { display: block; text-decoration: none; }
.card-media { background: var(--stone); aspect-ratio: 940 / 510; overflow: hidden; border-radius: var(--radius); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card-link:hover .card-media img { transform: scale(1.035); }
.card-title { font-size: clamp(18px, 1.5vw, 21px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; margin-top: 16px; }
.card-link:hover .card-title { color: var(--berry); }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 0; font-size: 15px; color: var(--muted); }

.featured { padding-bottom: clamp(72px, 10vw, 140px); }
.featured-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) var(--gap); }
.card--f0 { grid-column: 1 / span 7; }
.card--f1 { grid-column: 8 / span 5; margin-top: clamp(40px, 9vw, 140px); }
.card--f2 { grid-column: 1 / span 5; }
.card--f3 { grid-column: 6 / span 7; margin-top: clamp(-80px, -4vw, 0px); }
@media (max-width: 860px) {
  .featured-grid { grid-template-columns: 1fr; }
  .featured-grid .card { grid-column: auto; margin-top: 0; }
}

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) var(--gap); padding-bottom: clamp(72px, 10vw, 140px); }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

/* ---------- Обо мне ---------- */
.about { background: var(--stone); padding: clamp(64px, 9vw, 130px) 0; }
.about-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 120px); }
.about h2 { margin-bottom: 28px; }
.prose { max-width: 40em; }
.prose p:last-child { margin-bottom: 0; }
.prose-lg { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; }
.skills h3 { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin: 14px 0 12px; }
.skill-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.skill { display: grid; grid-template-columns: 28px 1fr auto; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.skill-icon { width: 28px; height: 28px; }
.skill-name { font-weight: 500; }
.skill-level { display: flex; gap: 4px; }
.skill-level i { width: 18px; height: 6px; border-radius: 1px; background: var(--line); }
.skill-level i.on { background: var(--ink); }
@media (max-width: 860px) { .about-inner { grid-template-columns: 1fr; } }

/* ---------- Контакты ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); padding-top: clamp(64px, 9vw, 130px); padding-bottom: clamp(64px, 9vw, 130px); }
.contact h2 { margin-bottom: 24px; }
.contact-email { display: inline-block; margin-top: 28px; font-size: clamp(24px, 3vw, 40px); font-weight: 600; letter-spacing: -0.02em; text-decoration: none; border-bottom: 2px solid var(--ink); line-height: 1.2; word-break: break-word; }
.contact-email:hover { border-bottom-color: var(--berry); }
.contact-phone { display: block; margin-top: 16px; font-size: 20px; font-weight: 500; text-decoration: none; }
.socials { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 100px; text-decoration: none; font-weight: 500; font-size: 15px; }
.socials a:hover { border-color: var(--berry); }

.contact-form h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 18px; }
.field { display: block; margin-bottom: 20px; }
.field span { display: block; font-size: 15px; color: var(--muted); margin-bottom: 4px; }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1.5px solid var(--line); background: transparent;
  font: 400 19px/1.45 var(--font); color: var(--ink); padding: 8px 0; border-radius: 0; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field.has-error input, .field.has-error textarea { border-bottom-color: var(--berry); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.form-status { margin: 0; font-size: 15px; }
.form-status.is-error { color: var(--berry); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff; border: 0; border-radius: 100px;
  font: 600 16px var(--font); padding: 15px 30px; cursor: pointer; text-decoration: none;
  transition: background .2s;
}
.btn:hover { background: var(--berry); color: #fff; }
.btn:disabled { opacity: .6; cursor: progress; }

@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Портфолио ---------- */
.page-head { padding-top: clamp(32px, 6vh, 72px); padding-bottom: clamp(20px, 3vw, 32px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--berry); }
.page-title { font-size: clamp(44px, 7.4vw, 112px); letter-spacing: -0.045em; line-height: 0.95; }
.page-count { font-size: 0.24em; font-weight: 600; letter-spacing: 0; vertical-align: top; position: relative; top: 0.35em; color: var(--muted); margin-left: 0.15em; }
.page-lead { margin-top: 24px; font-size: 19px; color: var(--ink); }

.filters { padding-bottom: clamp(32px, 4vw, 52px); }
.filter-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.filter-row a { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; border-radius: 100px; font-weight: 500; white-space: nowrap; }
.filter-count { font-size: 0.78em; color: var(--muted); font-weight: 500; }
.filter-row--main { padding: 16px 0; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--line); gap: 6px 4px; }
.filter-row--main a { font-size: 18px; padding: 8px 16px; }
.filter-row--main a:hover { color: var(--berry); }
.filter-row--main a[aria-current] { background: var(--ink); color: #fff; }
.filter-row--main a[aria-current] .filter-count { color: rgba(255,255,255,.65); }
.filter-row--sub { padding-top: 16px; }
.filter-row--sub a { font-size: 15px; padding: 7px 14px; border: 1px solid var(--line); }
.filter-row--sub a:hover { border-color: var(--ink); color: var(--ink); }
.filter-row--sub a[aria-current] { border-color: var(--berry); color: var(--berry); }
.filter-row--sub + .filter-row--sub { padding-top: 10px; }
@media (max-width: 620px) {
  .filter-row--main { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
  .filter-row--main::-webkit-scrollbar { display: none; }
  .filter-row--main a { font-size: 16px; padding: 7px 13px; }
}
.empty { padding: 40px 0 120px; font-size: 19px; color: var(--muted); }

/* ---------- Проект ---------- */
.preview-bar { background: var(--berry); color: #fff; text-align: center; padding: 10px var(--gutter); font-weight: 500; font-size: 15px; }
.project-head { padding-top: clamp(32px, 6vh, 72px); padding-bottom: clamp(36px, 5vw, 64px); }
.project-title { font-size: clamp(36px, 5.6vw, 84px); letter-spacing: -0.04em; line-height: 1; max-width: 16em; }
.project-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); margin-top: clamp(28px, 4vw, 48px); align-items: start; }
.project-summary { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.45; margin: 0; max-width: 32em; }
.project-facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px var(--gap); grid-column: 2; }
.project-facts div { border-top: 1px solid var(--line); padding-top: 10px; }
.project-facts dt { font-size: 14px; color: var(--muted); }
.project-facts dd { margin: 2px 0 0; font-weight: 500; }
.project-facts a { text-decoration: none; border-bottom: 1px solid var(--line); }
.project-content { margin-top: clamp(28px, 4vw, 48px); font-size: 18px; }
@media (max-width: 860px) {
  .project-intro { grid-template-columns: 1fr; }
  .project-facts { grid-column: auto; }
}

.gallery { display: grid; gap: clamp(12px, 1.6vw, 24px); padding-bottom: clamp(56px, 8vw, 110px); }
.gallery-item { margin: 0; }
.gallery-item a { display: inline-block; vertical-align: top; max-width: 100%; cursor: zoom-in; background: var(--stone); border-radius: var(--radius); overflow: hidden; }
.gallery-item img { width: auto; max-width: 100%; height: auto; }
.gallery-item figcaption { font-size: 15px; color: var(--muted); margin-top: 10px; }

.next-project { padding-bottom: clamp(56px, 8vw, 110px); }
.next-link {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label thumb" "title thumb";
  gap: 6px var(--gap); align-items: end;
  border-top: 1.5px solid var(--ink); padding-top: 28px; text-decoration: none;
}
.next-label { grid-area: label; color: var(--muted); font-weight: 500; }
.next-title { grid-area: title; font-size: clamp(28px, 4.4vw, 64px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
.next-thumb { grid-area: thumb; width: clamp(120px, 22vw, 320px); aspect-ratio: 940 / 510; overflow: hidden; border-radius: var(--radius); background: var(--stone); }
.next-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.next-link:hover .next-title { color: var(--berry); }
.next-link:hover .next-thumb img { transform: scale(1.05); }

/* ---------- Просмотр изображений ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: #fafaf8;
  display: grid; grid-template-columns: 72px 1fr 72px; align-items: center;
  animation: lb-in .2s ease-out;
}
.lightbox[hidden] { display: none; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-stage { margin: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 0 56px; min-width: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb-caption { font-size: 15px; color: var(--muted); margin-top: 12px; min-height: 1em; }
.lb-close { position: absolute; top: 16px; right: var(--gutter); background: none; border: 0; font: 500 16px var(--font); color: var(--ink); cursor: pointer; padding: 8px 4px; border-bottom: 1.5px solid var(--ink); }
.lb-close:hover { color: var(--berry); border-color: var(--berry); }
.lb-prev, .lb-next { width: 56px; height: 56px; justify-self: center; border: 1px solid var(--line); background: var(--paper); border-radius: 50%; cursor: pointer; position: relative; }
.lb-prev::before, .lb-next::before { content: ''; position: absolute; top: 50%; left: 50%; width: 11px; height: 11px; border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.lb-prev::before { transform: translate(-30%, -50%) rotate(45deg); }
.lb-next::before { transform: translate(-70%, -50%) rotate(-135deg); }
.lb-prev:hover, .lb-next:hover { border-color: var(--ink); }
.lb-counter { position: absolute; top: 24px; left: var(--gutter); font-weight: 500; font-size: 15px; }
@media (max-width: 760px) {
  .lightbox { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { position: absolute; bottom: 14px; width: 48px; height: 48px; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { left: calc(50% + 12px); }
  .lb-stage { padding: 60px 0 80px; }
}

/* ---------- 404 ---------- */
.notfound { padding-top: clamp(60px, 14vh, 160px); padding-bottom: clamp(80px, 16vh, 180px); }
.notfound .page-lead { margin: 24px 0 32px; }

/* ---------- Подвал ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 8px 32px; padding-top: 28px; padding-bottom: 32px; font-size: 14px; color: var(--muted); }
.footer-link { margin-left: auto; color: var(--muted); }
@media (max-width: 620px) { .footer-link { margin-left: 0; } }

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