/* Amino Care — educational multi-page site */
:root {
  --ink: #1a2e2b;
  --ink-soft: #3d5550;
  --muted: #5c736d;
  --paper: #f4f7f5;
  --paper-deep: #e8efeb;
  --teal: #0d5c54;
  --teal-deep: #084540;
  --seafoam: #5aada0;
  --seafoam-light: #a8d9d1;
  --sand: #c9a66b;
  --sand-soft: #e8d5b0;
  --coral: #c45c4a;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(8, 69, 64, 0.12);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --max: 1100px;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--teal);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--coral);
}

/* Atmosphere */
.bg-wash {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(90, 173, 160, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(201, 166, 107, 0.18), transparent 50%),
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(13, 92, 84, 0.08), transparent 55%),
    var(--paper);
}

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(244, 247, 245, 0.85);
  border-bottom: 1px solid rgba(13, 92, 84, 0.1);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--teal-deep);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--teal), var(--seafoam));
  display: grid;
  place-items: center;
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(13, 92, 84, 0.25);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  color: var(--teal-deep);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.nav-telegram {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.85rem;
  border-radius: 999px;
  background: #229ed9;
  color: white !important;
  text-decoration: none !important;
  font-size: 0.84rem;
  font-weight: 650;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(34, 158, 217, 0.28);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-telegram:hover {
  background: #1b8bc2;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(34, 158, 217, 0.35);
}

.nav-telegram svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex-shrink: 0;
}

.nav-telegram .nav-tg-label {
  display: inline;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  list-style: none;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 550;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(13, 92, 84, 0.1);
  color: var(--teal-deep);
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
  display: grid;
  gap: 2rem;
  align-items: end;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.brand-line {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--teal-deep);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 0.85rem;
  max-width: 28ch;
}

.hero-lede {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 42ch;
  margin-bottom: 1.5rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--teal);
  color: white;
  box-shadow: 0 8px 24px rgba(13, 92, 84, 0.28);
}

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

.btn-ghost {
  background: transparent;
  color: var(--teal-deep);
  border: 1.5px solid rgba(13, 92, 84, 0.3);
}

.btn-ghost:hover {
  background: rgba(13, 92, 84, 0.08);
  color: var(--teal-deep);
}

.hero-visual {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  max-height: 420px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: float-in 0.9s ease both;
  background: #05080f;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.02);
  transition: transform 8s ease;
}

.hero-visual:hover img {
  transform: scale(1.06);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5, 20, 18, 0.82) 0%,
    rgba(5, 20, 18, 0.25) 42%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1.35rem 1.4rem 1.45rem;
  color: rgba(255, 255, 255, 0.95);
  font-family: var(--font-display);
}

.hero-caption strong {
  display: block;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.hero-caption span {
  font-family: var(--font-body);
  font-size: 0.9rem;
  opacity: 0.88;
  font-weight: 500;
}

/* Page header (inner pages) */
.page-hero {
  padding: 1.75rem 0 0.75rem;
  animation: rise 0.7s ease both;
}

.crumb {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

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

.crumb a:hover {
  color: var(--teal);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--teal-deep);
  line-height: 1.15;
  margin-bottom: 0.55rem;
  max-width: 22ch;
}

.page-hero .lede {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 58ch;
  margin-bottom: 0;
}

/* Content sections */
.section {
  padding: 1.15rem 0;
  animation: rise 0.75s ease both;
}

.page-hero + .section {
  padding-top: 0.85rem;
}

.section + .section {
  animation-delay: 0.08s;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 600;
  color: var(--teal-deep);
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.section h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin: 1.5rem 0 0.5rem;
}

.section p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
  max-width: 68ch;
}

.section ul,
.section ol {
  margin: 0 0 1.25rem 1.25rem;
  color: var(--ink-soft);
  max-width: 65ch;
}

.section li {
  margin-bottom: 0.45rem;
}

.section li strong {
  color: var(--ink);
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.feature {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem;
  border: 1px solid rgba(13, 92, 84, 0.08);
  box-shadow: 0 4px 20px rgba(8, 69, 64, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

a.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  color: inherit;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
  background: linear-gradient(135deg, rgba(90, 173, 160, 0.25), rgba(13, 92, 84, 0.15));
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
  color: var(--teal-deep);
}

.feature p {
  font-size: 0.92rem;
  margin: 0;
  color: var(--muted);
}

/* Callout */
.callout {
  background: linear-gradient(135deg, var(--teal-deep), var(--teal));
  color: white;
  border-radius: 22px;
  padding: 1.75rem 1.85rem;
  margin: 2rem 0;
  box-shadow: var(--shadow);
}

.callout h2,
.callout h3 {
  color: white;
  margin-top: 0;
}

.callout p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0.75rem;
}

.callout a {
  color: var(--sand-soft);
}

/* Split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(13, 92, 84, 0.08);
}

.panel.accent {
  background: linear-gradient(160deg, rgba(90, 173, 160, 0.15), rgba(201, 166, 107, 0.12));
  border-color: transparent;
}

.panel h3 {
  margin-top: 0;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(13, 92, 84, 0.1);
  background: white;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(13, 92, 84, 0.08);
}

th {
  background: rgba(13, 92, 84, 0.08);
  color: var(--teal-deep);
  font-weight: 650;
}

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

/* Pathway strip */
.pathway {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.pathway span {
  background: white;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(13, 92, 84, 0.15);
  color: var(--teal-deep);
}

.pathway .arrow {
  color: var(--seafoam);
  border: none;
  background: none;
  padding: 0 0.15rem;
  font-size: 1.1rem;
}

/* Next / related */
.related {
  margin: 3rem 0 2rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(13, 92, 84, 0.12);
}

.related h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--teal-deep);
  margin-bottom: 1rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.related-link {
  display: block;
  padding: 1.1rem 1.2rem;
  background: white;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid rgba(13, 92, 84, 0.1);
  transition: border-color 0.2s, transform 0.2s;
}

.related-link:hover {
  border-color: var(--seafoam);
  transform: translateY(-2px);
  color: inherit;
}

.related-link strong {
  display: block;
  color: var(--teal-deep);
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.related-link span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Contact CTA */
.contact-cta {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  padding: 0 1.25rem;
}

.contact-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem 1.65rem;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(13, 92, 84, 0.08), rgba(90, 173, 160, 0.18));
  border: 1px solid rgba(13, 92, 84, 0.12);
}

.contact-cta-copy h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--teal-deep);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.contact-cta-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 42ch;
}

.btn-telegram {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  background: #229ed9;
  color: white !important;
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none !important;
  box-shadow: 0 8px 22px rgba(34, 158, 217, 0.28);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-telegram:hover {
  background: #1b8bc2;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(34, 158, 217, 0.35);
}

.btn-telegram svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 2rem;
  background: var(--teal-deep);
  color: rgba(255, 255, 255, 0.8);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 2rem;
}

.site-footer h4 {
  font-family: var(--font-display);
  color: white;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.site-footer a:hover {
  color: var(--seafoam-light);
}

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  opacity: 0.85;
  line-height: 1.5;
}

.footer-telegram {
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.15rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: white !important;
  font-weight: 600;
  width: fit-content;
}

.footer-telegram:hover {
  background: rgba(34, 158, 217, 0.35);
  color: white !important;
}

.footer-telegram svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-note {
  max-width: var(--max);
  margin: 1.75rem auto 0;
  padding: 1rem 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.disclaimer {
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--paper-deep);
  padding: 1rem 1.15rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  max-width: 68ch;
}

/* Step explainers */
.steps {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
  counter-reset: howto;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.15rem;
  align-items: start;
  background: var(--white);
  border: 1px solid rgba(13, 92, 84, 0.1);
  border-radius: 18px;
  padding: 1.25rem 1.3rem;
  box-shadow: 0 4px 18px rgba(8, 69, 64, 0.04);
}

.step-num {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--seafoam));
  flex-shrink: 0;
}

.step h3 {
  margin: 0.15rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--teal-deep);
}

.step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.media-block {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.25rem 1.5rem;
  align-items: start;
  margin: 0.35rem 0 0.75rem;
}

.media-block.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.media-block.reverse .media-copy {
  order: 2;
}

.media-block.reverse .media-frame {
  order: 1;
}

.media-copy h2 {
  margin-top: 0;
}

.media-frame {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #0b2e2a;
  align-self: start;
}

.media-frame img {
  width: 100%;
  height: 260px;
  max-height: 280px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.media-frame figcaption {
  padding: 0.65rem 0.9rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(8, 69, 64, 0.92);
}

.simple-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
}

.flow-card {
  background: white;
  border-radius: 16px;
  padding: 1rem 0.9rem;
  text-align: center;
  border: 1px solid rgba(13, 92, 84, 0.1);
}

.flow-card strong {
  display: block;
  font-family: var(--font-display);
  color: var(--teal-deep);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.flow-card span {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

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

  .media-block.reverse .media-copy,
  .media-block.reverse .media-frame {
    order: initial;
  }

  .media-frame img {
    height: 220px;
  }

  .simple-flow {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .simple-flow {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes drift {
  from {
    transform: translate(0, 0) rotate(0deg);
  }
  to {
    transform: translate(4%, -3%) rotate(4deg);
  }
}

.fade-up {
  animation: rise 0.8s ease both;
}

/* Mobile */
@media (max-width: 900px) {
  .hero-grid,
  .split,
  .feature-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: block;
  }

  .nav-actions {
    margin-left: auto;
  }

  .nav-telegram .nav-tg-label {
    display: none;
  }

  .nav-telegram {
    padding: 0.5rem 0.65rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(244, 247, 245, 0.98);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1.25rem;
    border-bottom: 1px solid rgba(13, 92, 84, 0.1);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.65rem 0.75rem;
    font-size: 0.95rem;
  }

  .hero-visual {
    max-height: 280px;
    aspect-ratio: 16 / 10;
  }
}
