:root {
  --ink: #102a28;
  --deep: #092f2d;
  --sea: #0d5d55;
  --mint: #bde7d2;
  --aqua: #7fd5cf;
  --foam: #f5f8f1;
  --sand: #e9ddc5;
  --coral: #e07b63;
  --white: #ffffff;
  --radius: 24px;
  --shadow: 0 24px 60px rgba(9, 47, 45, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--foam);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 72px);
  color: var(--white);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid currentColor;
  border-radius: 50% 50% 46% 54% / 56% 47% 53% 44%;
  font-family: Georgia, serif;
  font-style: italic;
}
.main-navigation { display: flex; gap: 26px; font-size: 14px; font-weight: 650; }
.main-navigation a { opacity: .8; transition: opacity .2s ease; }
.main-navigation a:hover, .main-navigation a:focus-visible { opacity: 1; }
.menu-button { display: none; border: 0; background: none; color: inherit; font-weight: 700; }

.hero { position: relative; min-height: 760px; height: min(90vh, 920px); overflow: hidden; color: var(--white); background: var(--deep); }
.hero picture, .hero picture img { position: absolute; inset: 0; height: 100%; }
.hero img { object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,24,23,.86) 0%, rgba(4,24,23,.44) 44%, rgba(4,24,23,.04) 72%), linear-gradient(0deg, rgba(4,24,23,.4), transparent 45%); }
.hero-content { position: relative; z-index: 2; width: min(680px, 86vw); padding: clamp(160px, 23vh, 225px) 0 0 clamp(20px, 8vw, 120px); }
.eyebrow { margin: 0 0 18px; color: var(--aqua); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow.dark { color: var(--sea); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.04em; }
h1 { margin-bottom: 22px; font-size: clamp(54px, 7vw, 102px); line-height: .92; }
h2 { margin-bottom: 22px; font-size: clamp(42px, 5vw, 72px); line-height: .98; }
h3 { margin-bottom: 10px; font-size: 25px; letter-spacing: -.03em; }
.hero-lead { max-width: 570px; margin-bottom: 34px; color: rgba(255,255,255,.82); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; }
.primary-button { display: inline-flex; padding: 15px 22px; border-radius: 999px; background: var(--mint); color: var(--deep); font-weight: 750; transition: transform .2s ease, background .2s ease; }
.primary-button:hover { transform: translateY(-2px); background: var(--white); }
.hero-caption { position: absolute; right: clamp(20px, 5vw, 72px); bottom: 28px; z-index: 2; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }

.section-shell { max-width: 1440px; margin: 0 auto; padding: 110px clamp(20px, 5vw, 72px); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .65fr); gap: 50px; align-items: end; margin-bottom: 52px; }
.section-heading > p, .section-heading.horizontal > p { max-width: 500px; color: #4f6764; font-size: 17px; line-height: 1.7; }
.section-heading h2 { margin-bottom: 0; }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.topic-card { position: relative; min-height: 330px; padding: 28px; overflow: hidden; border-radius: var(--radius); transition: transform .25s ease, opacity .25s ease, box-shadow .25s ease; }
.topic-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.topic-card.is-dimmed { opacity: .25; }
.topic-card.is-match { box-shadow: 0 0 0 4px var(--coral); transform: translateY(-5px); }
[data-search-item].is-match:not(.topic-card) { outline: 4px solid var(--coral); outline-offset: -4px; }
.topic-card h3 { margin-top: 150px; }
.topic-card p { max-width: 320px; color: rgba(16,42,40,.72); line-height: 1.55; }
.topic-number { font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.tone-mint { background: var(--mint); }
.tone-blue { background: #b8dbe3; }
.tone-coral { background: #efad98; }
.tone-sand { background: var(--sand); }
.tone-dark { background: var(--deep); color: var(--white); }
.tone-dark p { color: rgba(255,255,255,.68); }
.topic-action { position: relative; z-index: 2; display: inline-flex; margin-top: 12px; padding-bottom: 3px; border-bottom: 1px solid currentColor; font-size: 14px; font-weight: 750; }
.topic-card-image { padding: 0; color: var(--white); }
.topic-card-image img { height: 100%; object-fit: cover; }
.topic-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; background: linear-gradient(0deg, rgba(5,36,33,.84), transparent 70%); }
.topic-overlay h3 { margin-top: 14px; }
.topic-overlay p { margin-bottom: 0; color: rgba(255,255,255,.76); }

.feature-section { display: grid; grid-template-columns: 1.08fr .92fr; min-height: 690px; background: #e4eee6; }
.feature-image img { height: 100%; object-fit: cover; }
.feature-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(50px, 8vw, 120px); }
.feature-copy > p:not(.eyebrow) { max-width: 600px; color: #4f6764; font-size: 18px; line-height: 1.7; }
.check-list { display: grid; gap: 12px; margin: 18px 0 28px; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; border: 2px solid var(--coral); border-radius: 50%; }
.status-label { align-self: flex-start; padding: 9px 13px; border: 1px solid rgba(16,42,40,.22); border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.section-heading.horizontal { grid-template-columns: 1fr 1fr; }
.species-grid { display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 16px; }
.species-card { position: relative; min-height: 470px; overflow: hidden; border-radius: var(--radius); background: var(--deep); color: var(--white); }
.species-card picture, .species-card img { height: 100%; }
.species-card img { object-fit: cover; transition: transform .5s ease; }
.species-card:hover img { transform: scale(1.035); }
.species-card::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(3,25,24,.82)); }
.species-card div { position: absolute; z-index: 2; left: 26px; bottom: 20px; }
.species-card span { font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; opacity: .72; }
.species-card h3 { margin: 6px 0 0; }

.aquascape-section { padding: 110px clamp(20px, 5vw, 72px); color: var(--white); background: var(--deep); }
.aquascape-copy { display: grid; grid-template-columns: .5fr 1.2fr .9fr; gap: 50px; max-width: 1296px; margin: 0 auto 55px; align-items: start; }
.aquascape-copy h2 { grid-column: 2; }
.aquascape-copy > p:last-child { grid-column: 3; color: rgba(255,255,255,.68); font-size: 17px; line-height: 1.7; }
.aquascape-gallery { display: grid; grid-template-columns: 1.1fr .75fr .9fr; gap: 14px; max-width: 1600px; margin: 0 auto; }
.aquascape-gallery img { height: 520px; object-fit: cover; border-radius: 18px; }
.aquascape-gallery img:nth-child(2) { margin-top: 70px; height: 450px; }

.search-section { max-width: none; background: var(--coral); }
.search-panel { max-width: 1100px; margin: 0 auto; text-align: center; }
.search-panel .eyebrow { color: #5a2c20; }
.search-panel > p:not(.eyebrow):not(.search-result) { max-width: 720px; margin: 0 auto 32px; font-size: 18px; line-height: 1.65; }
.search-form { display: flex; max-width: 760px; margin: 0 auto 16px; padding: 7px; border-radius: 999px; background: var(--white); box-shadow: var(--shadow); }
.search-form input { flex: 1; min-width: 0; padding: 14px 20px; border: 0; outline: 0; background: transparent; }
.search-form button { padding: 13px 24px; border: 0; border-radius: 999px; color: var(--white); background: var(--deep); font-weight: 750; cursor: pointer; }
.search-result { min-height: 24px; margin: 0; color: rgba(16,42,40,.72); font-size: 14px; }

.site-footer { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 20px; padding: 38px clamp(20px, 5vw, 72px); color: rgba(255,255,255,.7); background: #051f1e; font-size: 13px; }
.footer-brand { color: var(--white); }
.site-footer p { margin: 0; text-align: center; }
.footer-note { text-align: right !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Материалы */
.article-page { background: #eef3ec; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.news-card { padding: 28px; border-radius: 20px; background: #eef3ec; }
.news-card h3 { margin: 20px 0; font-size: 26px; }
.news-card p { line-height: 1.6; }
.news-card a { color: #175c53; }
.news-shell { max-width: 900px; margin: auto; padding: 64px 24px 90px; }
.news-shell .article-body { max-width: none; }
.news-shell h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.13; overflow-wrap: anywhere; }
.news-meta { font-size: 13px !important; color: #58716c !important; line-height: 1.6; }
.news-lead { font-size: 21px !important; }
.news-photo { margin: 32px 0; }
.news-photo img { display: block; width: auto; max-width: 100%; height: auto; max-height: 560px; margin: auto; border-radius: 16px; }
.news-photo figcaption { margin-top: 14px; font-size: 12px; line-height: 1.6; color: #58716c; }
.news-back { margin-top: 40px; }
@media (max-width: 800px) { .news-grid { grid-template-columns: 1fr; } .news-shell { padding-top: 36px; } }
.article-header { position: relative; color: var(--white); background: var(--deep); }
.article-header .main-navigation a { opacity: .9; }
.article-hero { padding: 170px clamp(20px, 8vw, 120px) 90px; color: var(--white); background: linear-gradient(105deg, rgba(4,29,27,.98), rgba(8,61,56,.82)), url("assets/desktop/rocks-and-aquatic-plants.webp") center/cover; }
.article-hero-inner { max-width: 980px; }
.article-hero h1 { max-width: 900px; font-size: clamp(48px, 7vw, 92px); }
.article-hero .hero-lead { max-width: 760px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; color: rgba(255,255,255,.68); font-size: 13px; }
.article-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); gap: clamp(44px, 7vw, 100px); max-width: 1320px; margin: 0 auto; padding: 90px clamp(20px, 5vw, 72px) 120px; }
.article-body { max-width: 820px; }
.article-body h2 { margin: 64px 0 24px; font-size: clamp(36px, 4vw, 54px); }
.article-body h3 { margin-top: 34px; }
.article-body p, .article-body li { color: #38514e; font-size: 17px; line-height: 1.75; }
.article-body strong { color: var(--ink); }
.lead-box { padding: 28px 30px; border-left: 5px solid var(--coral); border-radius: 0 18px 18px 0; background: var(--white); box-shadow: 0 16px 42px rgba(9,47,45,.08); }
.lead-box p:last-child { margin-bottom: 0; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0; }
.choice-card { padding: 24px; border-radius: 18px; background: var(--white); }
.choice-card-wide { grid-column: 1 / -1; }
.choice-card h3 { margin: 0 0 10px; font-size: 21px; }
.filter-type-sketch { display: block; width: 100%; max-width: 280px; height: 150px; margin: 12px auto 4px; }
.choice-card .filter-sketch-caption { margin: 0 0 14px; color: var(--sea); font-size: 13px; text-align: center; }
.choice-card p { margin-bottom: 0; font-size: 15px; line-height: 1.6; }
.decision-list { display: grid; gap: 12px; padding: 0; list-style: none; }
.decision-list li { position: relative; padding: 20px 22px 20px 70px; border-radius: 16px; background: var(--white); }
.step-number { position: absolute; left: 20px; top: 20px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--white); background: var(--sea); font-weight: 800; }
.media-comparison { margin-top: 54px; }
.article-details { margin: 14px 0; border: 1px solid rgba(9,47,45,.14); border-radius: 18px; background: var(--white); overflow: hidden; }
.article-details > summary { padding: 22px 24px; color: var(--ink); font-size: 18px; font-weight: 750; line-height: 1.45; cursor: pointer; }
.article-details > summary:hover { background: rgba(39,135,128,.06); }
.article-details > summary:focus-visible { outline: 3px solid var(--sea); outline-offset: -4px; }
.article-details[open] > summary { background: rgba(39,135,128,.08); border-bottom: 1px solid rgba(9,47,45,.12); }
.details-content { padding: 8px 24px 24px; }
.details-content .media-comparison { margin-top: 24px; }
.details-content h2 { font-size: 25px; }
@media print { .article-details > .details-content { display: block !important; } }
.media-comparison h2 { margin-top: 0; }
.table-scroll { overflow-x: auto; margin: 24px 0 18px; border: 1px solid rgba(9,47,45,.12); border-radius: 18px; background: var(--white); }
.comparison-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.comparison-table th, .comparison-table td { padding: 16px 18px; border-bottom: 1px solid rgba(9,47,45,.1); text-align: left; vertical-align: top; }
.comparison-table th { color: var(--ink); background: rgba(39,135,128,.08); font-size: 14px; line-height: 1.4; }
.comparison-table td { color: #38514e; font-size: 15px; line-height: 1.55; }
.comparison-table tbody tr:last-child td { border-bottom: 0; }
.comparison-table a { color: var(--sea); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.media-sample { display: block; width: 104px; height: 52px; margin-top: 9px; overflow: visible; filter: drop-shadow(0 3px 3px rgba(9,47,45,.13)); }
.media-type { display: block; max-width: 150px; margin-top: 4px; color: #607470; font-size: 12px; font-weight: 650; line-height: 1.35; }
.filter-flow-diagrams { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 24px 0; }
.filter-flow-diagrams figure { margin: 0; padding: 12px; border-radius: 18px; background: var(--white); }
.filter-flow-diagrams svg { display: block; width: 100%; height: auto; }
.filter-flow-diagrams figcaption { padding: 0 12px 12px; color: #38514e; font-size: 14px; line-height: 1.5; }
.comparison-note { padding: 20px 22px; border-radius: 16px; background: rgba(39,135,128,.08); }
.package-note { margin-top: 14px; padding: 20px 22px; border-left: 4px solid var(--coral); border-radius: 4px 16px 16px 4px; background: var(--white); }
.package-note a { color: var(--sea); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.warning-box { margin: 38px 0; padding: 26px 28px; border-radius: 18px; color: var(--white); background: var(--deep); }
.warning-box p { margin: 0; color: rgba(255,255,255,.82); }
.source-list { padding-left: 22px; }
.source-list a { color: var(--sea); text-decoration: underline; text-underline-offset: 3px; }
.article-aside { align-self: start; position: sticky; top: 24px; display: grid; gap: 16px; }
.aside-card { padding: 24px; border-radius: 20px; background: var(--white); }
.aside-card h2 { margin-bottom: 14px; font-family: inherit; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.aside-card ul { display: grid; gap: 10px; margin: 0; padding-left: 19px; color: #4f6764; line-height: 1.5; }
.back-link { display: inline-flex; color: var(--sea); font-weight: 750; }

@media (max-width: 860px) {
  .article-shell { grid-template-columns: 1fr; }
  .article-aside { position: static; grid-row: 1; }
}

@media (max-width: 980px) {
  .main-navigation { display: none; position: absolute; top: 72px; right: 20px; flex-direction: column; width: 220px; padding: 22px; border-radius: 18px; color: var(--ink); background: var(--white); box-shadow: var(--shadow); }
  .main-navigation.is-open { display: flex; }
  .menu-button { display: block; }
  .section-heading, .section-heading.horizontal { grid-template-columns: 1fr; gap: 18px; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-section { grid-template-columns: 1fr; }
  .feature-image { height: 520px; }
  .species-grid { grid-template-columns: 1fr 1fr; }
  .species-card.wide { grid-column: 1 / -1; }
  .aquascape-copy { grid-template-columns: 1fr 1fr; }
  .aquascape-copy .eyebrow { grid-column: 1 / -1; }
  .aquascape-copy h2 { grid-column: 1; }
  .aquascape-copy > p:last-child { grid-column: 2; }
  .aquascape-gallery { grid-template-columns: 1fr 1fr; }
  .aquascape-gallery img:last-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .site-header { padding-top: 17px; }
  .hero { min-height: 700px; height: 92vh; }
  .hero-shade { background: linear-gradient(0deg, rgba(4,24,23,.88) 0%, rgba(4,24,23,.36) 72%, rgba(4,24,23,.24)); }
  .hero-content { position: absolute; bottom: 70px; padding: 0 20px; }
  .hero-caption { display: none; }
  .section-shell { padding-top: 78px; padding-bottom: 78px; }
  .topic-grid, .species-grid { grid-template-columns: 1fr; }
  .topic-card { min-height: 280px; }
  .species-card, .species-card.wide { grid-column: auto; min-height: 390px; }
  .feature-image { height: 360px; }
  .feature-copy { padding: 68px 22px; }
  .aquascape-section { padding-top: 78px; padding-bottom: 78px; }
  .aquascape-copy { grid-template-columns: 1fr; gap: 8px; }
  .aquascape-copy .eyebrow, .aquascape-copy h2, .aquascape-copy > p:last-child { grid-column: 1; }
  .aquascape-gallery { grid-template-columns: 1fr; }
  .aquascape-gallery img, .aquascape-gallery img:nth-child(2), .aquascape-gallery img:last-child { grid-column: auto; height: 360px; margin-top: 0; }
  .search-form { border-radius: 22px; flex-direction: column; }
  .search-form button { width: 100%; }
  .article-hero { padding-top: 130px; }
  .article-shell { padding-top: 56px; padding-bottom: 80px; }
  .choice-grid { grid-template-columns: 1fr; }
  .decision-list li { padding-left: 64px; }
  .site-footer { grid-template-columns: 1fr; text-align: left; }
  .site-footer p, .footer-note { text-align: left !important; }
}

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