:root {
  --paper: #f4f1e9;
  --card: #fffdf8;
  --ink: #171713;
  --muted: #6c6a63;
  --line: #dcd8cd;
  --gold: #e7b94f;
  --blue: #057fbd;
  --orange: #ef6c22;
}

/* ===== Reset & Global Layout ===== */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, "Noto Sans", sans-serif;
  overflow-wrap: break-word;
}
.wrap {
  width: min(1080px, calc(100% - 36px));
  margin: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
}
/* ===== Header & Navigation ===== */
header {
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 241, 233, 0.93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  width: 145px;
  height: 36px;
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.menu {
  display: flex;
  align-items: center;
  gap: 3px;
}
.menu a {
  padding: 9px 10px;
  border-radius: 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.menu a:hover,
.menu a.active {
  background: #e5e0d4;
  color: var(--ink);
}
.language-switcher {
  position: relative;
  flex: 0 0 auto;
}
.language-switcher summary {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.language-switcher summary::-webkit-details-marker {
  display: none;
}
.language-switcher summary::after {
  content: "▼";
  color: currentColor;
  font-size: 9px;
  line-height: 1;
}
.language-switcher[open] summary {
  border-color: #b9ad8d;
}
.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 230px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 18px 45px rgba(23, 23, 19, 0.16);
}
.language-menu a,
.language-menu > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 11px;
  border-radius: 9px;
  font-size: 13px;
}
.language-menu a:hover {
  background: #eee9de;
}
.language-menu [aria-current="page"] {
  background: #f2e5c4;
  color: #76540a;
  font-weight: 800;
}
.language-menu .unavailable {
  color: #99968d;
}
.language-menu small {
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.language-quick {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
}
.language-quick span,
.language-quick a {
  padding: 7px 8px;
  border-radius: 8px;
}
.language-quick span {
  background: #e5e0d4;
}
.mobile-nav {
  display: none;
}
/* ===== Page Hero ===== */
.hero {
  padding: 84px 0 70px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 55px;
  align-items: center;
}
.eyebrow {
  color: #8b650e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(50px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.065em;
  margin: 17px 0 24px;
}
.hero p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  max-width: 580px;
}
.hero-image {
  position: relative;
  min-height: 440px;
  display: grid;
  place-items: center;
}
.hero-image:before {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  background: var(--gold);
  opacity: 0.55;
  border-radius: 50%;
}
.hero-image img {
  position: relative;
  max-height: 500px;
  object-fit: contain;
  filter: drop-shadow(0 25px 22px rgba(30, 25, 15, 0.18));
}
.cta {
  display: inline-block;
  margin-top: 17px;
  background: var(--ink);
  color: #fff;
  padding: 14px 18px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 800;
}
.cta.gold {
  background: var(--gold);
  color: var(--ink);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.hero-actions .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 0;
}
.cta-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cta.secondary {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
}
.cta.whatsapp {
  background: #168c53;
}
.cta.telegram {
  background: #168dcc;
}
.cta.whatsapp,
.cta.telegram {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  animation: contact-pulse 2.8s ease-in-out infinite;
}
.cta.whatsapp::after,
.cta.telegram::after {
  position: absolute;
  z-index: 0;
  top: -45%;
  bottom: -45%;
  left: -45%;
  width: 28%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.68), transparent);
  transform: translateX(-180%) skewX(-18deg);
  animation: contact-shine 3.4s ease-in-out infinite;
  pointer-events: none;
}
.cta.whatsapp > *,
.cta.telegram > * {
  position: relative;
  z-index: 1;
}
.cta.telegram {
  animation-delay: 1.4s;
}
.cta.telegram::after {
  animation-delay: 1.4s;
}
.cta.whatsapp .cta-icon,
.cta.telegram .cta-icon {
  animation: contact-icon-float 2.8s ease-in-out infinite;
}
.cta.telegram .cta-icon {
  animation-delay: 1.4s;
}
@keyframes contact-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(22, 141, 204, 0);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(22, 141, 204, 0.14);
  }
}
@keyframes contact-icon-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}
@keyframes contact-shine {
  0%,
  58% {
    transform: translateX(-180%) skewX(-18deg);
  }
  78%,
  100% {
    transform: translateX(620%) skewX(-18deg);
  }
}
.cta.disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}
.hero .cta-note {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #168c53;
  color: #fff;
  box-shadow: 0 12px 28px rgba(11, 76, 44, 0.3);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.floating-whatsapp::after {
  position: absolute;
  top: -35%;
  bottom: -35%;
  left: -55%;
  width: 30%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  transform: translateX(-180%) skewX(-18deg);
  animation: contact-shine 3.4s ease-in-out infinite;
  pointer-events: none;
}
.floating-whatsapp svg {
  position: relative;
  z-index: 1;
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.floating-whatsapp.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  animation: floating-contact-pulse 2.8s ease-in-out infinite;
}
.floating-whatsapp:focus-visible {
  outline: 3px solid #10213a;
  outline-offset: 3px;
}
.download-cta-section {
  padding: 0 0 68px;
}
.download-cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 42px;
  align-items: center;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 16px 40px rgba(23, 23, 19, 0.07);
}
.download-cta-panel small {
  color: #8a681b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.download-cta-panel h2 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.04em;
}
.download-cta-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.download-cta-panel .hero-actions {
  margin-top: 0;
}
.download-cta-panel .cta-note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.5;
}
@keyframes floating-contact-pulse {
  0%,
  100% {
    box-shadow: 0 12px 28px rgba(11, 76, 44, 0.3), 0 0 0 0 rgba(22, 140, 83, 0.26);
  }
  50% {
    box-shadow: 0 12px 28px rgba(11, 76, 44, 0.3), 0 0 0 8px rgba(22, 140, 83, 0);
  }
}
/* ===== Homepage Topic Cards ===== */
.route-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding-bottom: 100px;
}
.route {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.route small {
  color: #956b0d;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
}
.route h2 {
  font-size: 29px;
  letter-spacing: -0.04em;
  margin: 25px 0 10px;
}
.route p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}
.route span {
  margin-top: 24px;
  font-size: 13px;
  font-weight: 800;
}
/* ===== Article Pages ===== */
.breadcrumb {
  padding-top: 32px;
  color: var(--muted);
  font-size: 12px;
}
.breadcrumb a {
  text-decoration: underline;
}
.article {
  padding: 35px 0 105px;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 70px;
}
.content {
  min-width: 0;
}
.content h2 {
  font-size: 35px;
  letter-spacing: -0.045em;
  margin: 52px 0 15px;
}
.content h2:first-child {
  margin-top: 0;
}
.content h3 {
  font-size: 21px;
  margin: 30px 0 9px;
}
.content p,
.content li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}
.content ul,
.content ol {
  padding-left: 22px;
}
.content li + li {
  margin-top: 7px;
}
.definition-section {
  margin: 0 0 52px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, #fffdf8, #ece7db);
}
.definition-section h2:first-child {
  margin-top: 0;
}
.definition-section .section-lead {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.65;
}
.definition-section .notice {
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.62);
}
.notice {
  background: #ece7db;
  border-left: 4px solid var(--gold);
  padding: 20px 22px;
  border-radius: 0 12px 12px 0;
  margin: 32px 0;
}
.notice strong {
  display: block;
  margin-bottom: 6px;
}
.notice p {
  margin: 0;
  font-size: 14px;
}
.app-details {
  margin: 28px 0 42px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.app-details table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}
.app-details caption {
  padding: 16px 18px;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
}
.app-details th,
.app-details td {
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.app-details th {
  color: #76540a;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.app-details tbody tr:nth-child(even) {
  background: #f7f3e9;
}
.app-details a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
}
.side {
  position: sticky;
  top: 100px;
  align-self: start;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 15px;
  padding: 20px;
}
.side strong {
  font-size: 13px;
}
.side a {
  display: block;
  color: var(--muted);
  font-size: 13px;
  padding-top: 13px;
}
.side a:hover {
  color: var(--ink);
}
/* ===== FAQ & Supporting Content ===== */
.faq {
  margin-top: 48px;
}
.faq details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.faq details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  font-weight: 800;
  cursor: pointer;
}
.faq details p {
  margin: 10px 0 0;
}
.updated {
  color: var(--muted);
  font-size: 12px;
  margin-top: 22px;
}
.feature-image {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  margin: 12px 0 28px;
}
/* ===== Footer ===== */
footer {
  border-top: 1px solid #292a27;
  padding: 0;
  background: #11120f;
  color: #aeada5;
  font-size: 13px;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.35fr 2fr;
  gap: clamp(55px, 9vw, 110px);
  padding: 72px 0 52px;
}
.footer-logo {
  display: block;
  width: 180px;
  margin-bottom: 24px;
}
.footer-logo img {
  display: block;
  width: 100%;
}
.footer-brand p {
  max-width: 350px;
  margin: 0;
  color: #93928b;
  font-size: 15px;
  line-height: 1.7;
}
.footer-directory {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}
.footer-group strong {
  display: block;
  margin-bottom: 17px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-group a {
  display: block;
  width: fit-content;
  padding: 5px 0;
  color: #cfcec8;
  font-size: 14px;
}
.footer-group a:hover {
  color: #fff;
}
.footer-editions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 24px 0;
  border-top: 1px solid #292a27;
}
.footer-editions strong {
  flex: 0 0 auto;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-editions p {
  margin: 0;
  text-align: right;
  line-height: 1.7;
}
.edition-active {
  color: var(--gold);
  font-weight: 700;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 27px;
  border-top: 1px solid #292a27;
  color: #74736d;
  font-size: 11px;
}
/* ===== Tablet Layout ===== */
@media (max-width: 960px) {
  .wrap {
    width: min(100% - 30px, 1080px);
  }
  .logo {
    width: 126px;
  }
  .menu {
    gap: 0;
  }
  .menu a {
    padding: 8px 7px;
  }
  .hero-grid {
    gap: 36px;
  }
  .article-layout {
    gap: 42px;
    grid-template-columns: minmax(0, 1fr) 220px;
  }
}

/* ===== Mobile Layout ===== */
@media (max-width: 760px) {
  .wrap {
    width: min(100% - 28px, 1080px);
  }
  header {
    height: auto;
  }
  header .wrap {
    min-height: 70px;
    position: relative;
    flex-wrap: nowrap;
    align-content: center;
  }
  .logo {
    order: 1;
    width: 116px;
    height: 30px;
  }
  .menu {
    display: none;
  }
  .mobile-nav {
    display: block;
    order: 3;
    width: auto;
    margin-left: 8px;
    padding: 0;
    border: 1px solid #28466d;
    border-radius: 10px;
    background: #10213a;
    box-shadow: none;
  }
  .mobile-nav summary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-height: 44px;
    padding: 0;
    color: #fff;
    font-size: 0;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
  }
  .mobile-nav summary::-webkit-details-marker {
    display: none;
  }
  .mobile-nav summary::before {
    content: "☰";
    color: var(--gold);
    font-size: 22px;
    font-weight: 700;
  }
  .mobile-nav[open] summary::before {
    content: "×";
  }
  .mobile-nav nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    display: grid;
    width: min(300px, calc(100vw - 28px));
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 10px;
    border: 1px solid #28466d;
    border-radius: 12px;
    background: #10213a;
    box-shadow: 0 16px 35px rgba(16, 33, 58, 0.28);
  }
  .mobile-nav a {
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
  }
  .mobile-nav a.active {
    border-color: var(--gold);
    background: var(--gold);
    color: #10213a;
  }
  .mobile-nav a:focus-visible,
  .mobile-nav summary:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
  }
  .language-switcher {
    display: block;
    order: 2;
    margin-left: auto;
  }
  .language-quick {
    display: none;
  }
  .hero {
    padding: 46px 0 42px;
  }
  .hero-grid,
  .article-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .download-cta-panel {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .hero-grid > * {
    min-width: 0;
  }
  .hero h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 11vw, 48px);
    line-height: 1.02;
    letter-spacing: -0.05em;
  }
  .hero p {
    font-size: 16px;
    line-height: 1.65;
  }
  .cta {
    min-height: 46px;
    padding: 14px 18px;
    text-align: center;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-image {
    min-height: 270px;
  }
  .hero-image:before {
    width: 230px;
    height: 230px;
  }
  .hero-image img {
    max-height: 320px;
  }
  .route-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: 64px;
  }
  .route {
    min-height: 0;
    padding: 22px;
  }
  .route h2 {
    margin-top: 20px;
    font-size: 26px;
    line-height: 1.1;
  }
  .article {
    padding: 28px 0 72px;
  }
  .side {
    display: none;
  }
  .content h2 {
    margin-top: 42px;
    font-size: 28px;
    line-height: 1.12;
    letter-spacing: -0.035em;
  }
  .content h3 {
    font-size: 20px;
    line-height: 1.25;
  }
  .content p,
  .content li {
    font-size: 16px;
    line-height: 1.72;
  }
  .content ul,
  .content ol {
    padding-left: 20px;
  }
  .notice {
    margin: 26px 0;
    padding: 17px 18px;
  }
  .faq {
    margin-top: 42px;
  }
  .faq summary {
    display: flex;
    min-height: 44px;
    align-items: center;
    line-height: 1.4;
  }
  .app-details {
    margin: 24px 0 36px;
    overscroll-behavior-inline: contain;
  }
  .app-details table {
    min-width: 540px;
  }
  .app-details th,
  .app-details td {
    padding: 12px 14px;
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 48px 0 38px;
  }
  .footer-directory {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 22px;
  }
  .footer-editions,
  .footer-bottom {
    display: block;
  }
  .footer-editions p {
    margin-top: 10px;
    text-align: left;
  }
  .footer-bottom span {
    display: block;
    margin-top: 8px;
  }
}

/* ===== Small Phone Layout ===== */
@media (max-width: 420px) {
  .wrap {
    width: calc(100% - 24px);
  }
  .logo {
    width: 108px;
  }
  .language-quick {
    gap: 3px;
  }
  .language-quick span,
  .language-quick a {
    padding: 7px 6px;
  }
  .mobile-nav nav {
    grid-template-columns: 1fr;
  }
  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }
  .hero {
    padding: 38px 0 36px;
  }
  .hero h1 {
    font-size: clamp(35px, 11vw, 40px);
  }
  .hero-image {
    min-height: 230px;
  }
  .hero-image:before {
    width: 200px;
    height: 200px;
  }
  .cta {
    display: block;
    width: 100%;
  }
  .hero-actions {
    grid-template-columns: 1fr;
  }
  .route {
    padding: 20px;
  }
  .footer-directory {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .app-details table {
    min-width: 500px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
