/* Четыре Лапы — palette from brand assets (orange + pink) */
:root {
  --color-orange: #f28e2b;
  --color-orange-dark: #d97316;
  --color-orange-soft: #fff4ec;
  --color-pink: #e87190;
  --color-pink-bright: #f07fb0;
  --color-pink-soft: #ffe8f0;
  --color-teal: #20b2aa;
  --color-text: #16161a;
  --color-text-muted: #5a5a66;
  --color-bg: #fffaf7;
  --color-white: #ffffff;
  --color-ink: #141418;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 12px 40px rgba(242, 142, 43, 0.14);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --font: "Manrope", system-ui, sans-serif;
  --header-h: 72px;
  --transition: 0.22s ease;
  --icon-size: 1.35rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: var(--color-orange-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-pink-bright);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.container--narrow {
  width: min(760px, 92vw);
}

.container--wide {
  width: min(1200px, 94vw);
}

/* Icons (Lucide) */
.icon {
  width: var(--icon-size);
  height: var(--icon-size);
  stroke-width: 1.75;
  flex-shrink: 0;
}

.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--color-orange-soft), var(--color-pink-soft));
  color: var(--color-orange-dark);
}

.icon-wrap--dark {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-pink);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 247, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(242, 142, 43, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, 92vw);
  margin-inline: auto;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-text);
  text-decoration: none;
}

.logo:hover {
  color: var(--color-orange);
}

.logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.logo-text {
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem 0.85rem;
}

.site-nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 0.35rem 0.2rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--color-orange-dark);
}

.site-nav .nav-cta {
  background: linear-gradient(135deg, var(--color-orange), #ff9a4d);
  color: var(--color-white) !important;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(242, 142, 43, 0.38);
}

.site-nav .nav-cta:hover {
  filter: brightness(1.06);
  color: var(--color-white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 24px;
  background: var(--color-orange);
  border-radius: 2px;
}

@media (max-width: 1020px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    background: var(--color-white);
    border-bottom: 1px solid rgba(242, 142, 43, 0.15);
    box-shadow: var(--shadow-soft);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .site-nav .nav-cta {
    text-align: center;
    margin-top: 0.5rem;
    border: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.45rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-orange), #ff8f4d);
  color: var(--color-white);
  box-shadow: 0 6px 24px rgba(242, 142, 43, 0.42);
}

.btn-primary:hover {
  color: var(--color-white);
}

.btn-ghost {
  background: var(--color-white);
  color: var(--color-orange-dark);
  border: 2px solid rgba(242, 142, 43, 0.35);
}

.btn .icon {
  width: 1.15rem;
  height: 1.15rem;
}

/* Home hero */
.hero-home {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 3rem;
  overflow: hidden;
}

.hero-home__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 85% 15%, rgba(232, 113, 144, 0.2), transparent 55%),
    radial-gradient(ellipse 60% 45% at 10% 85%, rgba(242, 142, 43, 0.16), transparent 50%),
    linear-gradient(180deg, var(--color-orange-soft) 0%, var(--color-bg) 50%);
  z-index: 0;
}

.hero-home__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-home__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-home__actions {
    justify-content: center;
  }

  .hero-home__chips {
    justify-content: center;
  }
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-pink);
  margin: 0 0 0.65rem;
}

.hero-home h1 {
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(115deg, var(--color-orange), var(--color-pink-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.08rem;
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
  max-width: 36em;
}

.hero-home__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-home__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
}

.hero-home__chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(242, 142, 43, 0.2);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}

.hero-home__chips .icon {
  width: 1rem;
  height: 1rem;
  color: var(--color-orange);
}

.hero-home__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: var(--color-white);
}

.hero-home__visual figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* Page hero (inner pages) */
.page-hero {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem;
  background: linear-gradient(180deg, var(--color-orange-soft), var(--color-bg));
  border-bottom: 1px solid rgba(242, 142, 43, 0.1);
}

.page-hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.page-hero p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 52ch;
}

.breadcrumb {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  text-decoration: none;
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-orange);
}

/* Sections */
.section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section-title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.section-lead {
  margin: 0 0 1.75rem;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 65ch;
}

.section-lead--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Card grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

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

  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.card h3 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--color-orange-dark);
}

.card__link .icon {
  width: 1rem;
  height: 1rem;
}

/* Link grid home */
.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

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

/* Prose (long reads) */
.prose {
  font-size: 1.02rem;
  color: var(--color-text);
}

.prose h2 {
  font-size: 1.35rem;
  margin: 2.25rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.prose h3 {
  font-size: 1.12rem;
  margin: 1.5rem 0 0.5rem;
}

.prose p,
.prose li {
  color: var(--color-text-muted);
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose code,
.section-lead code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.88em;
  background: rgba(0, 0, 0, 0.06);
  padding: 0.15em 0.45em;
  border-radius: 6px;
}

.callout {
  border-left: 4px solid var(--color-pink-bright);
  padding: 1rem 1.25rem;
  background: var(--color-pink-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}

.callout--warn {
  border-left-color: var(--color-orange);
  background: var(--color-orange-soft);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.08);
  margin: 1.5rem 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--color-white);
}

.data-table th,
.data-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  vertical-align: top;
}

.data-table th {
  background: var(--color-orange-soft);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-orange-dark);
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* Quote / example post */
.post-example {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  border: 1px dashed rgba(232, 113, 144, 0.45);
  margin: 1rem 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.post-example strong {
  color: var(--color-text);
}

/* Split media */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

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

.figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--color-white);
}

.figure figcaption {
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* Gallery video */
.gallery-video {
  margin: 0 auto 1.75rem;
  max-width: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #000;
}

.gallery-video video {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-card);
}

.gallery-item img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

.gallery-item .meta {
  padding: 0.85rem 1rem 1.1rem;
}

.gallery-item .meta strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

.gallery-item .meta span {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

/* Innovations */
.innov-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

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

.innov-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(242, 142, 43, 0.15);
  box-shadow: var(--shadow-card);
}

.innov-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
}

.innov-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.innov-num {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--color-pink);
}

/* Footer */
.site-footer {
  background: var(--color-ink);
  color: #9b9ba8;
  padding: 2.5rem 0;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  color: #ececf0;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.footer-note {
  margin: 0;
  font-size: 0.82rem;
  max-width: 420px;
}

.footer-note a {
  color: var(--color-pink-bright);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-nav a {
  color: #b4b4c0;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--color-orange);
}

/* Utilities */
.mt-0 {
  margin-top: 0;
}

.text-center {
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
