/* Рыбалка на заре — оформление сайта. Светлая тема, без внешних шрифтов. */
:root {
  --bg: #fbfaf6;
  --paper: #ffffff;
  --ink: #22303a;
  --muted: #66727c;
  --line: #e4e1d8;
  --accent: #155e75;
  --accent-dark: #0f4759;
  --accent-soft: #e3f1f5;
  --sun: #f0b429;
  --max: 960px;
  --radius: 10px;
  --serif: Georgia, "Times New Roman", "PT Serif", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; font-weight: 700; color: #1b2730; margin: 1.6em 0 0.5em; }
h1 { font-size: 2.1rem; margin-top: 0.4em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; margin: 0 0 1.2em; }
li { margin-bottom: 0.35em; }
blockquote {
  margin: 1.4em 0; padding: 0.6em 1.2em;
  border-left: 4px solid var(--sun); background: #fff8e6; border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}
table { border-collapse: collapse; width: 100%; margin: 1em 0 1.5em; font-size: 0.95rem; }
th, td { border: 1px solid var(--line); padding: 0.45em 0.7em; text-align: left; vertical-align: top; }
th { background: var(--accent-soft); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Шапка */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; }
.brand-tag { font-size: 0.78rem; color: var(--muted); }
.site-nav { display: flex; gap: 4px; }
.site-nav a { padding: 8px 12px; border-radius: 6px; text-decoration: none; color: var(--ink); font-weight: 500; }
.site-nav a:hover, .site-nav a.active { background: var(--accent-soft); color: var(--accent-dark); }
.nav-toggle { display: none; border: 1px solid var(--line); background: var(--paper); border-radius: 6px; padding: 8px 12px; font: inherit; cursor: pointer; }

/* Главная */
.hero { position: relative; margin: 24px 0 8px; border-radius: var(--radius); overflow: hidden; background: #000; }
.hero img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; opacity: 0.82; max-height: 520px; }
.hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 36px; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0)); }
.hero-text h1 { color: #fff; margin: 0 0 0.3em; font-size: 2.6rem; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.hero-text p { max-width: 640px; font-size: 1.05rem; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.btn { display: inline-block; background: var(--sun); color: #2b2000; padding: 10px 20px; border-radius: 6px;
  text-decoration: none; font-weight: 600; border: 0; font: inherit; cursor: pointer; }
.btn:hover { background: #e0a51d; color: #2b2000; }
.intro { margin: 22px 0 10px; font-size: 1.08rem; }
.intro p { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }

.video-block { margin: 30px 0; }
.video-block video { width: 100%; border-radius: var(--radius); background: #000; aspect-ratio: 16 / 9; }
.video-caption { color: var(--muted); font-size: 0.95rem; margin-top: 10px; }

.feed-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 0.85rem; cursor: pointer; color: var(--ink); }
.chip:hover { border-color: var(--accent); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 18px 0 40px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card.hidden { display: none; }
.card-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .3s ease; }
.card:hover .card-img img { transform: scale(1.03); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 0.2em 0 0.3em; font-size: 1.25rem; }
.card-body h3 a { color: #1b2730; text-decoration: none; }
.card-body h3 a:hover { color: var(--accent); }
.card-body p { margin: 0; color: #3b4852; font-size: 0.97rem; }
.card-body .more { margin-top: auto; padding-top: 8px; font-weight: 600; text-decoration: none; }
.meta { color: var(--muted); font-size: 0.86rem; margin: 0; }
.meta a { color: var(--muted); }
.cat { color: var(--accent-dark); font-weight: 600; }

/* Статья */
.post { max-width: 760px; margin: 28px auto 20px; }
.post-head { margin-bottom: 22px; }
.post-head h1 { margin: 0.3em 0 0.4em; }
.lead { font-size: 1.15rem; color: #38454f; }
.post h2 { margin-top: 1.5em; padding-bottom: 0.2em; border-bottom: 1px solid var(--line); }
.post figure, .page figure { margin: 1.6em 0; }
.post figure img, .page figure img { border-radius: var(--radius); width: 100%; }
figcaption { color: var(--muted); font-size: 0.88rem; margin-top: 8px; }
.post video { width: 100%; border-radius: var(--radius); background: #000; margin: 0.4em 0 0.2em; }
.post .tip { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 0.7em 1.1em; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.4em 0; }
.post .tip p:last-child { margin-bottom: 0; }
.post-foot { margin-top: 2.2em; padding-top: 1em; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.related { max-width: 760px; margin: 0 auto 50px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 24px 14px; }
.related h2 { margin-top: 0.6em; font-size: 1.25rem; }
.related ul { list-style: none; padding: 0; }
.related li { padding: 6px 0; border-top: 1px dashed var(--line); }
.related li:first-child { border-top: 0; }

/* Страницы */
.page { max-width: 760px; margin: 28px auto 50px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.form label { display: block; font-weight: 600; margin: 14px 0 4px; font-size: 0.95rem; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; padding: 9px 11px; border: 1px solid #c8c4b8; border-radius: 6px; background: var(--paper); color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.form .btn { margin-top: 16px; }
.form-note { margin-top: 14px; padding: 10px 14px; background: #fff8e6; border: 1px solid #f1dfa8; border-radius: 6px; font-size: 0.95rem; }
.notfound h1 { font-size: 2.4rem; }
.about-photo { float: right; width: 320px; margin: 0 0 16px 24px; }
.about-photo img { border-radius: var(--radius); }
.timeline { list-style: none; padding: 0; }
.timeline li { padding: 8px 0 8px 18px; border-left: 3px solid var(--accent-soft); margin: 0; }
.timeline b { color: var(--accent-dark); }

/* Страница источников фото */
.credits table { font-size: 0.88rem; }
.credits td, .credits th { padding: 0.4em 0.6em; }
.credits code { font-family: Consolas, "Liberation Mono", Menlo, monospace; font-size: 0.86em; background: var(--accent-soft); padding: 1px 5px; border-radius: 4px; word-break: break-all; }
.credits td a { word-break: break-word; }

/* Подвал */
.site-footer { background: #1f2d36; color: #c9d3da; margin-top: 30px; font-size: 0.9rem; }
.footer-inner { padding: 26px 20px 30px; }
.site-footer a { color: #ffd466; }
.footer-copy { font-weight: 600; color: #fff; margin-bottom: 0.4em; }
.footer-links { margin-bottom: 0.6em; }
.footer-note { color: #9fb0bb; margin: 0; }

/* Телефон */
@media (max-width: 720px) {
  body { font-size: 16px; }
  h1 { font-size: 1.7rem; }
  .hero-text { padding: 18px 16px; }
  .hero-text h1 { font-size: 1.7rem; }
  .hero-text p { font-size: 0.95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .cards { grid-template-columns: 1fr; gap: 18px; }
  .two-col { grid-template-columns: 1fr; gap: 10px; }
  .credits table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .about-photo { float: none; width: 100%; margin: 0 0 16px; }
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; width: 100%; flex-direction: column; padding-bottom: 10px; }
  .site-nav.open { display: flex; }
  .site-header { position: static; }
  .header-inner { min-height: 60px; }
  .brand-name { font-size: 1.2rem; }
}
@media (max-width: 420px) {
  .brand-tag { display: none; }
  .wrap { padding: 0 14px; }
}
@media print {
  .site-header, .site-footer, .related, .nav-toggle { display: none; }
}
