/* ============================================
   ЛапаиХвост — общий файл стилей
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #1c1d22;
  --ink-soft: #4a4d55;
  --muted: #8a8f99;
  --line: #ececec;
  --brand: #2f7d5b;
  --brand-2: #3fa47a;
  --accent: #f2994a;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 6px rgba(24, 26, 32, 0.05);
  --shadow: 0 12px 30px -12px rgba(24, 26, 32, 0.18);
  --shadow-lg: 0 30px 60px -30px rgba(24, 26, 32, 0.28);
  --transition: 0.25s ease;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--brand);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--brand-2);
}
h1,
h2,
h3,
h4 {
  font-family: "Montserrat", "Inter", sans-serif;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(1.8rem, 2.4vw + 1rem, 2.8rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.4rem, 1.4vw + 1rem, 2rem);
  font-weight: 700;
  margin-top: 2.2rem;
  margin-bottom: 0.9rem;
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1.6rem;
  margin-bottom: 0.6rem;
}
p {
  margin-bottom: 1.1rem;
  color: var(--ink-soft);
}
ul,
ol {
  padding-left: 1.3rem;
  margin-bottom: 1.2rem;
  color: var(--ink-soft);
}
li {
  margin-bottom: 0.5rem;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
/* ============= HEADER ============= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}
.logo {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 1.1rem;
}
.nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width var(--transition);
}
.nav a:hover::after {
  width: 100%;
}
/* ============= HERO ============= */
.hero {
  padding: 70px 0 50px;
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(63, 164, 122, 0.18), transparent 60%),
    radial-gradient(900px 300px at 10% 10%, rgba(242, 153, 74, 0.15), transparent 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(47, 125, 91, 0.1);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.hero h1 {
  margin-bottom: 18px;
}
.hero-lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 26px;
}
.hero-stats {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.hero-stat b {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 1.6rem;
  color: var(--ink);
}
.hero-stat span {
  font-size: 0.9rem;
  color: var(--muted);
}
.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* ============= SECTIONS ============= */
.section {
  padding: 60px 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 32px;
  gap: 20px;
  flex-wrap: wrap;
}
.section-head p {
  color: var(--muted);
  max-width: 520px;
  margin: 0;
}
/* Категории */
.categories {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.category-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  border: 1px solid var(--line);
  transition: transform var(--transition), box-shadow var(--transition);
  color: var(--ink);
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  color: var(--ink);
}
.category-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.category-card b {
  display: block;
  font-family: "Montserrat", sans-serif;
}
.category-card span {
  font-size: 0.82rem;
  color: var(--muted);
}
/* Карточки статей */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.card-media {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-media img {
  transform: scale(1.06);
}
.card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}
.card h3 a {
  color: var(--ink);
}
.card h3 a:hover {
  color: var(--brand);
}
.card p {
  font-size: 0.94rem;
  margin-bottom: 16px;
  flex: 1;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.read-more {
  font-weight: 600;
  color: var(--brand);
}
/* ============= ARTICLE LAYOUT ============= */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 44px;
  padding: 40px 0 70px;
}
.article {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.article-meta {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 14px;
}
.article h1 {
  margin-bottom: 20px;
}
.article-lead {
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 22px;
}
.article-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 26px 0;
  box-shadow: var(--shadow-sm);
}
.article-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.article-image figcaption {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.85rem;
  background: var(--bg);
}
.article h2::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  background: var(--brand);
  border-radius: 2px;
  margin-bottom: 12px;
}
.callout {
  background: linear-gradient(135deg, rgba(47, 125, 91, 0.08), rgba(63, 164, 122, 0.05));
  border-left: 4px solid var(--brand);
  padding: 18px 22px;
  border-radius: 10px;
  margin: 20px 0;
  color: var(--ink);
}
/* ============= SIDEBAR ============= */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sidebar-widget {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px 22px;
  border: 1px solid var(--line);
}
.sidebar-widget h4 {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  margin-bottom: 14px;
  color: var(--ink);
}
.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.sidebar-list li:last-child {
  border-bottom: 0;
}
.sidebar-list a {
  color: var(--ink);
  font-size: 0.93rem;
  display: block;
}
.sidebar-list a:hover {
  color: var(--brand);
}
/* ============= AD BLOCKS ============= */
.ad {
  background: var(--surface);
  border: 1px dashed #d8d5cc;
  border-radius: 12px;
  padding: 18px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 22px 0;
}
.ad--header {
  margin: 20px 0 0;
}
.ad--sidebar {
  padding: 22px;
}
/* ============= FOOTER ============= */
.site-footer {
  background: #16181d;
  color: #c8ccd4;
  padding: 60px 0 30px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h5 {
  color: #fff;
  font-family: "Montserrat", sans-serif;
  margin-bottom: 14px;
  font-size: 1rem;
}
.site-footer p {
  color: #9aa0aa;
  font-size: 0.94rem;
}
.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a {
  color: #c8ccd4;
  font-size: 0.93rem;
}
.footer-links a:hover {
  color: var(--brand-2);
}
.footer-bottom {
  border-top: 1px solid #262a32;
  padding-top: 22px;
  text-align: center;
  color: #7a8090;
  font-size: 0.87rem;
}
/* ============= RESPONSIVE ============= */
@media (max-width: 960px) {
  .hero-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .categories {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .article {
    padding: 28px 22px;
  }
}
@media (max-width: 600px) {
  .hero {
    padding: 40px 0 30px;
  }
  .section {
    padding: 40px 0;
  }
  .cards,
  .categories {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .nav {
    gap: 14px;
  }
  .nav a {
    font-size: 0.88rem;
  }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* === Modern UI refresh added by ChatGPT === */
:root{
 --accent:#2f9e44;
 --accent2:#38b56a;
 --bg:#f5f7f8;
 --card:#fff;
 --text:#1f2937;
 --radius:16px;
}
body{
 background:var(--bg)!important;
 color:var(--text)!important;
 font-family:Inter,Segoe UI,Arial,sans-serif!important;
 line-height:1.6;
}
a{transition:.25s}
a:hover{color:var(--accent2)!important}
img{border-radius:12px;max-width:100%}
header,.header,.site-header{
 box-shadow:0 8px 24px rgba(0,0,0,.08);
 backdrop-filter:blur(8px);
}
article,.post,.card,.entry,.content,.widget,aside{
 background:var(--card);
 border-radius:var(--radius);
 box-shadow:0 10px 30px rgba(0,0,0,.06);
}
button,input[type=submit],.btn{
 background:var(--accent)!important;
 color:#fff!important;
 border:none;
 border-radius:12px;
 padding:12px 22px;
 transition:.25s;
}
button:hover,input[type=submit]:hover,.btn:hover{
 transform:translateY(-2px);
 background:var(--accent2)!important;
}
@media(max-width:768px){
 body{font-size:16px}
 article,.post,.card{border-radius:12px}
}
