/* ============================================================
   Яхта «Лиса» — стили
   ============================================================ */

:root {
  --ink:        #0b1f2a;
  --ink-soft:   #33454f;
  --sea:        #10485c;
  --teal:       #1c7c87;
  --brass:      #c9a227;
  --sand:       #f4eee4;
  --paper:      #fbf9f5;
  --line:       #ddd4c6;
  --white:      #ffffff;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", "PT Serif", serif;

  --wrap: 1180px;
  --radius: 4px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-family: var(--font-serif); font-weight: 400; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  color: var(--white);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease);
}
.site-header.is-stuck {
  background: rgba(251, 249, 245, .93);
  backdrop-filter: blur(12px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 76px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; letter-spacing: .16em; text-transform: uppercase;
}
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-text {
  display: flex; flex-direction: column; line-height: 1;
  font: 400 19px/1 var(--font-serif); letter-spacing: .18em;
}
.brand-text small {
  margin-top: 6px; font: 400 9px/1 var(--font-sans);
  letter-spacing: .28em; opacity: .62;
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  text-decoration: none; font-size: 14px; letter-spacing: .06em;
  text-transform: uppercase; opacity: .88; transition: opacity .2s;
}
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 currentColor; }
.nav-phone {
  padding: 9px 16px; border: 1px solid currentColor; border-radius: 999px;
  font-variant-numeric: tabular-nums; opacity: 1 !important;
}
.nav-toggle {
  display: none; width: 42px; height: 42px; padding: 11px 9px;
  background: none; border: 0; cursor: pointer; color: inherit;
}
.nav-toggle span {
  display: block; height: 1.5px; background: currentColor; margin: 4px 0;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding: 160px 0 12vh; color: var(--white); overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,20,28,.62) 0%, rgba(6,20,28,.18) 34%, rgba(6,20,28,.72) 100%),
    linear-gradient(90deg, rgba(6,20,28,.55), rgba(6,20,28,0) 62%);
}
.hero-inner { position: relative; max-width: 780px; }
.eyebrow {
  margin: 0 0 18px; font-size: 11px; letter-spacing: .3em;
  text-transform: uppercase; opacity: .78;
}
.hero h1 {
  font-size: clamp(52px, 10vw, 118px); letter-spacing: -.03em;
  margin: 0 0 22px;
}
.hero-lead { max-width: 34em; font-size: clamp(16px, 1.6vw, 19px); opacity: .9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 26px; width: 1px; height: 54px;
  background: rgba(255,255,255,.35); overflow: hidden; transform: translateX(-50%);
}
.hero-scroll span {
  display: block; width: 100%; height: 40%; background: var(--white);
  animation: scrollHint 2.4s var(--ease) infinite;
}
@keyframes scrollHint {
  0%   { transform: translateY(-110%); }
  60%  { transform: translateY(260%); }
  100% { transform: translateY(260%); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; text-decoration: none;
  font-size: 14px; letter-spacing: .05em; text-transform: uppercase;
  border: 1px solid transparent; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--white); color: var(--ink); }
.btn-primary:hover { background: var(--brass); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--sea); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; padding-bottom: 4px;
  border-bottom: 1px solid currentColor; transition: gap .25s var(--ease);
}
.link-arrow::after { content: "→"; }
.link-arrow:hover { gap: 18px; }

/* ---------- facts ---------- */
.facts { background: var(--ink); color: var(--white); padding: 34px 0; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fact { display: flex; flex-direction: column; gap: 4px; }
.fact-num { font: 400 30px/1.1 var(--font-serif); }
.fact-label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: .6; }

/* ---------- sections ---------- */
.section { padding: 104px 0; }
.section-alt { background: var(--sand); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2, .split-body h2, .cta-inner h2 { font-size: clamp(30px, 4vw, 46px); margin: 0 0 18px; }
.section-lead { color: var(--ink-soft); font-size: 17px; }
.section-more { margin-top: 46px; }
.eyebrow { color: inherit; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 2px rgba(11,31,42,.06);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(11,31,42,.4); }
.card-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #e8e2d8; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 8px; }
.card-date { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--teal); }
.card-title { font: 400 22px/1.25 var(--font-serif); }
.card-text { font-size: 15px; color: var(--ink-soft); }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 70px; align-items: center; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.ticks { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-soft); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--brass);
}

/* ---------- cta band ---------- */
.cta-band { background: var(--sea); color: var(--white); }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.cta-text { opacity: .8; margin: 0; max-width: 34em; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,.5); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.66); padding: 56px 0; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.site-footer .brand-text { color: var(--white); }
.footer-nav { display: flex; gap: 26px; }
.footer-nav a { text-decoration: none; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.footer-nav a:hover { color: var(--white); }
.footer-note { margin: 0; font-size: 12px; letter-spacing: .04em; }

/* ---------- page header (internal) ---------- */
.page-head {
  padding: 168px 0 64px; background: var(--ink); color: var(--white);
  position: relative; overflow: hidden;
}
.page-head::after {
  content: ""; position: absolute; inset: auto 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
}
.page-head h1 { font-size: clamp(38px, 6vw, 72px); margin: 0 0 20px; }
.page-head p { max-width: 46em; opacity: .82; margin: 0; }

/* ---------- gallery ---------- */
.years {
  position: sticky; top: 76px; z-index: 40;
  background: rgba(251,249,245,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.years-inner {
  display: flex; gap: 8px; overflow-x: auto; padding: 14px 0;
  scrollbar-width: none;
}
.years-inner::-webkit-scrollbar { display: none; }
.year-chip {
  flex: none; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--ink-soft); cursor: pointer;
  font: inherit; font-size: 13px; letter-spacing: .08em;
  transition: background .2s, color .2s, border-color .2s;
}
.year-chip:hover { border-color: var(--ink); color: var(--ink); }
.year-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }

.gallery { padding: 56px 0 104px; }
.day-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.day-card {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  background: #e8e2d8; border-radius: var(--radius); overflow: hidden;
  cursor: zoom-in; aspect-ratio: 4 / 3; color: var(--white); text-align: left;
}
.day-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .3s; }
.day-card:hover img { transform: scale(1.04); }
.day-card-cap {
  position: absolute; inset: auto 0 0; padding: 34px 16px 14px;
  background: linear-gradient(180deg, rgba(6,20,28,0), rgba(6,20,28,.82));
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  font-size: 13px; letter-spacing: .04em; pointer-events: none;
}
.day-card-cap b { font-weight: 500; font-variant-numeric: tabular-nums; }
.day-card-cap span { opacity: .75; font-size: 12px; }
.gallery-empty { padding: 60px 0; color: var(--ink-soft); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(6,16,22,.96); color: var(--white);
}
.lightbox.is-open { display: flex; flex-direction: column; }
.lb-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 18px 22px; font-size: 13px; letter-spacing: .08em;
}
.lb-count { font-variant-numeric: tabular-nums; opacity: .7; }
.lb-close {
  margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.1); color: var(--white); font-size: 22px; line-height: 1;
  cursor: pointer; transition: background .2s;
}
.lb-close:hover { background: rgba(255,255,255,.22); }
.lb-stage { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; padding: 0 12px 12px; min-height: 0; }
.lb-stage img {
  max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 2px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8);
}
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.1); color: var(--white); font-size: 20px; cursor: pointer;
  transition: background .2s;
}
.lb-nav:hover { background: rgba(255,255,255,.24); }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-foot { padding: 0 22px 22px; font-size: 12px; opacity: .55; letter-spacing: .06em; }

/* ---------- prose ---------- */
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 56px 0 18px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); }
.prose ul { color: var(--ink-soft); padding-left: 22px; }
.prose li { margin-bottom: 8px; }

.specs { width: 100%; border-collapse: collapse; margin: 8px 0 10px; }
.specs th, .specs td { text-align: left; padding: 15px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { font-weight: 400; color: var(--ink-soft); width: 46%; font-size: 15px; }
.specs td { font-size: 16px; }

.note {
  margin: 40px 0 0; padding: 22px 24px; border-left: 2px solid var(--brass);
  background: var(--sand); color: var(--ink-soft); font-size: 15px;
}

.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px; }
.contact-card {
  padding: 30px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.contact-card h3 { font-size: 20px; margin: 0 0 10px; }
.contact-card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.contact-card a { text-decoration: none; border-bottom: 1px solid var(--brass); }
.big-phone { font: 400 26px/1.2 var(--font-serif); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-media img { aspect-ratio: 4 / 3; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .section { padding: 76px 0; }
}

@media (max-width: 720px) {
  .nav {
    position: absolute; inset: 76px 0 auto; flex-direction: column; align-items: flex-start;
    gap: 0; padding: 8px 20px 24px; background: var(--paper); color: var(--ink);
    box-shadow: 0 20px 40px -24px rgba(11,31,42,.5);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-phone { margin-top: 14px; border: 1px solid var(--ink); text-align: center; justify-content: center; }
  .nav-toggle { display: block; }
  .cards { grid-template-columns: 1fr; }
  .hero { padding-top: 130px; min-height: 92svh; }
  .page-head { padding: 132px 0 52px; }
  .years { top: 66px; }
  .header-inner { min-height: 66px; }
  .lb-nav { width: 44px; height: 44px; }
  .lb-prev { left: 6px; } .lb-next { right: 6px; }
  .day-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
}

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

/* ============================================================
   Дневник
   ============================================================ */
.entry { padding: 128px 0 72px; }
.entry-wrap { max-width: 780px; }
.crumbs {
  display: flex; gap: 10px; align-items: center; margin-bottom: 34px;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
}
.crumbs a { text-decoration: none; border-bottom: 1px solid var(--line); }
.crumbs a:hover { border-color: var(--ink); }
.crumbs span:last-child { color: var(--brass); }
.entry-head { margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.entry-head h1 { font-size: clamp(30px, 4.6vw, 48px); margin: 0; }
.entry-body { font-size: 18px; }
.entry-body p { margin: 0 0 1.1em; color: var(--ink-soft); }
.entry-body img {
  width: 100%; height: auto; border-radius: var(--radius); margin: 6px 0 22px;
  background: #e8e2d8;
}
.entry-body a { color: var(--teal); }
.entry-body iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; margin: 12px 0 22px; }

.entry-comments { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); }
.entry-comments h2 { font-size: 24px; margin: 0 0 22px; }
.comment { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-meta { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.comment-text { color: var(--ink-soft); }

.entry-nav-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 64px; }
.entry-nav {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none;
  padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, background .2s;
}
.entry-nav:hover { border-color: var(--ink); background: var(--white); }
.entry-nav span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.entry-nav b { font: 400 16px/1.35 var(--font-serif); }
.entry-nav.next { text-align: right; align-items: flex-end; }
.entry-back { padding: 0 0 96px; max-width: 780px; margin: -32px auto 0; }

/* список записей */
.dl-year { margin-bottom: 56px; scroll-margin-top: 110px; }
.dl-year h2 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 4px; }
.dl-year-count { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 22px; }
.dl-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.dl-list li { border-bottom: 1px solid var(--line); }
.dl-list a {
  display: grid; grid-template-columns: 160px 1fr 40px; gap: 18px; align-items: baseline;
  padding: 16px 4px; text-decoration: none; transition: background .2s, padding-left .25s var(--ease);
}
.dl-list a:hover { background: var(--white); padding-left: 12px; }
.dl-date { font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.dl-title { font: 400 18px/1.3 var(--font-serif); }
.dl-count { font-size: 12px; color: var(--teal); text-align: right; }
.dl-count:not(:empty)::after { content: " фото"; font-size: 11px; opacity: .7; }

/* статические страницы */
.static-page { max-width: 780px; margin: 0 auto 64px; }
.static-page h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 18px; }
.pages-list { columns: 2; gap: 30px; }
.pages-list li { break-inside: avoid; margin-bottom: 10px; }

@media (max-width: 720px) {
  .entry { padding-top: 96px; }
  .dl-list a { grid-template-columns: 1fr; gap: 2px; }
  .dl-count { text-align: left; }
  .entry-nav-row { grid-template-columns: 1fr; }
  .pages-list { columns: 1; }
}

/* ============================================================
   Прогулки: маршруты, цены, причал
   ============================================================ */
.routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.route {
  position: relative; padding: 34px 30px 30px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.route:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -22px rgba(11,31,42,.35); }
.route-num {
  font: 400 13px/1 var(--font-sans); letter-spacing: .18em; color: var(--brass);
}
.route h3 { font-size: 24px; margin: 6px 0 0; }
.route-time {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); margin: 0 0 8px;
}
.route p:last-child { margin: 0; color: var(--ink-soft); font-size: 15px; }

.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 54px; }
.price-card {
  padding: 32px 34px; background: var(--white); border-radius: var(--radius);
  border-left: 3px solid var(--brass);
}
.price-label {
  margin: 0 0 8px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-soft);
}
.price-value { margin: 0; font: 400 40px/1.05 var(--font-serif); }
.price-note { margin: 8px 0 0; font-size: 14px; color: var(--ink-soft); }
.price-note span { font-size: 13px; opacity: .8; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.sub-head {
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  font-family: var(--font-sans); color: var(--teal); margin: 0 0 14px;
}
.two-col .ticks { margin-top: 0; }
.two-col .note { margin-top: 22px; }

.split-photo { margin-top: 26px; }
.split-photo img { width: 100%; border-radius: var(--radius); }

.big-place {
  font: 400 28px/1.3 var(--font-serif); color: var(--ink); margin-bottom: 16px;
}

.contact-card .link-arrow { margin-top: 8px; display: inline-flex; }

@media (max-width: 960px) {
  .routes { grid-template-columns: 1fr; }
  .price-grid, .two-col { grid-template-columns: 1fr; gap: 24px; }
  .big-place { font-size: 24px; }
}

/* ---------- 404 ---------- */
.notfound { padding: 170px 0 120px; min-height: 78svh; }
.notfound h1 { font-size: clamp(34px, 6vw, 64px); margin: 0 0 22px; max-width: 16em; }
.notfound-lead { color: var(--ink-soft); max-width: 38em; font-size: 18px; }
.notfound-lead code {
  font-size: 15px; background: var(--sand); padding: 2px 6px; border-radius: 3px;
}
.notfound-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 36px 0 28px; }
.notfound-note { color: var(--ink-soft); font-size: 15px; }
.notfound-note a { color: var(--teal); }

@media (max-width: 720px) { .notfound { padding-top: 120px; } }

/* фото в записях: превью -> полный размер */
.entry-body .photo-link { display: block; margin: 8px 0 4px; }
.entry-body .photo-link img { margin: 0; }
.entry-body .photo-link::after {
  content: "открыть в полном размере";
  display: block; margin: 6px 0 18px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal);
}

/* ---------- галерея «Фото вне дневника» ---------- */
.photo-year { margin-bottom: 56px; scroll-margin-top: 110px; }
.photo-year h2 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 4px; }
.photo-year-count {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 22px;
}
.photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px;
}
.photo-card {
  display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius);
  background: #e8e2d8; cursor: zoom-in;
}
.photo-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease), opacity .3s;
}
.photo-card:hover img { transform: scale(1.05); }

@media (max-width: 720px) {
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
}
