:root {
  --bg: #faf8f5;
  --bg-elevated: #ffffff;
  --ink: #1a1a1a;
  --ink-muted: #5c5c5c;
  --accent: #1b4332;
  --accent-soft: #95d5b2;
  --hero-accent: #e85d04;
  --line: #e8e4df;
  --shadow: 0 24px 60px rgba(28, 25, 23, 0.08);
  --radius-lg: 20px;
  --radius-md: 12px;
  --header-h: 72px;
  --font: "Noto Sans KR", "DM Sans", system-ui, sans-serif;
  --font-display: "Noto Serif KR", "Noto Sans KR", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  height: 34px;
  width: auto;
  max-width: min(180px, 52vw);
}

@media (max-width: 400px) {
  .brand-logo {
    height: 30px;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav > a {
  color: var(--ink-muted);
  transition: color 0.2s ease;
}

.site-nav > a:hover {
  color: var(--accent);
}

.nav-item--dropdown {
  position: relative;
}

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-trigger:hover,
.nav-item--dropdown.is-open .nav-trigger {
  color: var(--accent);
}

.nav-chevron {
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  margin-left: 0.15em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-0.05em);
  transition: transform 0.2s ease;
}

.nav-item--dropdown.is-open .nav-chevron {
  transform: rotate(225deg) translateY(0.1em);
}

.nav-dropdown {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 60;
}

.nav-item--dropdown.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.65rem 1.15rem;
  color: var(--ink);
  font-size: 0.88rem;
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown a:hover {
  background: rgba(27, 67, 50, 0.06);
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.site-header.is-open .nav-toggle-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.site-header.is-open .nav-toggle-bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

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

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1.25rem 1.25rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    gap: 0;
    display: none;
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav > a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav > a:last-of-type {
    border-bottom: 0;
  }

  .nav-item--dropdown {
    border-bottom: 1px solid var(--line);
  }

  .nav-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 0.85rem 0;
    text-align: left;
  }

  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 0.5rem 0.75rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-item--dropdown.is-open .nav-dropdown {
    max-height: 320px;
  }

  .nav-item--dropdown:not(.is-open) .nav-dropdown {
    padding-top: 0;
    padding-bottom: 0;
  }

  .nav-dropdown a {
    padding: 0.55rem 0;
  }
}

.hero-carousel {
  position: relative;
  padding: 2rem 0 3.5rem;
  overflow: hidden;
}

.hero-carousel__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, #fffefb 0%, #faf6f0 45%, #f3efe8 100%);
  pointer-events: none;
}

.hero-carousel__bg::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 120%;
  background: radial-gradient(ellipse 80% 50% at 70% 20%, rgba(255, 255, 255, 0.9), transparent 55%),
    radial-gradient(ellipse 60% 40% at 10% 60%, rgba(255, 255, 255, 0.5), transparent 50%);
  opacity: 0.9;
}

.hero-carousel__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' fill-opacity='0.35' d='M0,192L48,197.3C96,203,192,213,288,197.3C384,181,480,139,576,138.7C672,139,768,181,864,197.3C960,213,1056,203,1152,176C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: 100% 38%;
  opacity: 0.7;
}

.hero-carousel__inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hero-carousel__viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  box-shadow: 0 32px 80px rgba(26, 26, 26, 0.07);
  border: 1px solid rgba(232, 228, 223, 0.9);
}

.hero-carousel__track {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.33, 1, 0.68, 1);
}

.section-lead a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-slide {
  scroll-margin-top: calc(var(--header-h) + 16px);
  flex: 0 0 100%;
  min-width: 0;
}

.hero-slide__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2rem;
  align-items: center;
  min-height: min(520px, 70vh);
  padding: 2.5rem 2.5rem 2.5rem 3rem;
}

.hero-slide__copy {
  max-width: 420px;
}

.hero-slide__badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.2rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  background: rgba(27, 67, 50, 0.08);
  border-radius: 4px;
}

.hero-slide__name {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--hero-accent);
}

.hero-slide__efficacy {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.hero-slide__detail {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

.hero-slide__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 1.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-slide__cta::after {
  content: "›";
  font-size: 1.1em;
  line-height: 1;
  opacity: 0.9;
}

.hero-slide__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(27, 67, 50, 0.28);
}

.hero-slide__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-slide__visual img {
  width: 100%;
  max-width: 440px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.08));
}

.hero-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: background 0.2s, border-color 0.2s;
}

.hero-carousel__arrow:hover {
  background: #fff;
  border-color: var(--accent-soft);
}

.hero-carousel__arrow--prev {
  left: 0.35rem;
}

.hero-carousel__arrow--next {
  right: 0.35rem;
}

.hero-carousel__arrow::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 auto;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.hero-carousel__arrow--prev::before {
  transform: rotate(45deg) translate(2px, -2px);
}

.hero-carousel__arrow--next::before {
  transform: rotate(-135deg) translate(-2px, 2px);
}

.hero-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
}

.hero-carousel__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #cfc9c0;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.hero-carousel__dots button[aria-selected="true"] {
  background: var(--accent);
  transform: scale(1.25);
}

@media (max-width: 900px) {
  .hero-slide__grid {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 2rem 1.5rem 2.25rem;
    text-align: center;
  }

  .hero-slide__copy {
    max-width: none;
    order: 1;
  }

  .hero-slide__visual {
    order: 0;
  }

  .hero-slide__visual img {
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-slide__cta {
    width: 100%;
    justify-content: center;
  }

  .hero-carousel__arrow {
    top: auto;
    bottom: 5.5rem;
    transform: none;
  }

  .hero-carousel__arrow--prev {
    left: 0.5rem;
  }

  .hero-carousel__arrow--next {
    right: 0.5rem;
  }
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

.section--intro {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.section-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--ink-muted);
}

.section-lead {
  margin: 0;
  max-width: 52ch;
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

#products {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.section-head p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.product-all {
  padding-top: 1rem;
}

.product-all-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.product-all-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-all-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.product-all-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.product-all-name {
  line-height: 1.35;
}

.footer-legal {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  opacity: 0.75;
}

.spotlight {
  padding-top: 0;
}

.spotlight-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.spot-card {
  scroll-margin-top: calc(var(--header-h) + 16px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(231, 226, 217, 0.8);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.spot-media {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.spot-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.spot-card:hover .spot-media img {
  transform: scale(1.04);
}

.spot-body {
  padding: 2rem 2.5rem 2rem 0;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(149, 213, 178, 0.35);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.spot-body h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin: 0 0 1rem;
  line-height: 1.25;
}

.benefit {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

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

  .spot-body {
    padding: 1.5rem 1.5rem 2rem;
  }

  .spot-media {
    aspect-ratio: 16 / 10;
  }
}

.recommend {
  background: linear-gradient(180deg, transparent, rgba(149, 213, 178, 0.12));
  border-radius: var(--radius-lg);
  max-width: 1160px;
}

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

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

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

.rec-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 1rem 1rem 1.25rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

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

.rec-thumb {
  height: 140px;
  border-radius: 10px;
  margin-bottom: 0.85rem;
  background-image: var(--thumb);
  background-size: cover;
  background-position: center;
}

.rec-card h3 {
  font-size: 1rem;
  margin: 0 0 0.4rem;
  line-height: 1.35;
}

.rec-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.partners {
  padding-bottom: 2rem;
}

.partner-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.partner-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem 1.5rem;
  min-width: 220px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.partner-card:hover {
  border-color: var(--accent-soft);
  box-shadow: var(--shadow);
}

.partner-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.partner-meta {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.nav-anchors {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

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

.anchor-block {
  scroll-margin-top: calc(var(--header-h) + 12px);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.35rem;
}

.anchor-block h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.anchor-block p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

@media (max-width: 800px) {
  .anchor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.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;
}

.site-footer {
  background: #1b4332;
  color: #ecfdf5;
  padding: 3rem 1.25rem 2rem;
  margin-top: 2rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

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

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

.footer-brand {
  margin: 0 0 0.25rem;
  font-family: "DM Sans", var(--font);
  letter-spacing: 0.2em;
  font-size: 1rem;
}

.footer-tag {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.85;
}

.site-footer h4 {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.site-footer p {
  margin: 0;
  font-size: 0.95rem;
}

.footer-copy {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(236, 253, 245, 0.15);
  font-size: 0.8rem;
  opacity: 0.7;
  text-align: center;
}

.lang-switcher {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.55rem 0.45rem 0.55rem 0.6rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 14px 0 0 14px;
  box-shadow: -4px 8px 24px rgba(0, 0, 0, 0.08);
}

.lang-switcher__btn {
  --lang-flag-frost: rgba(250, 248, 245, 0.48);
  --lang-flag-active: rgba(27, 67, 50, 0.78);
  appearance: none;
  margin: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  color: #141414;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 0.72rem 1rem;
  min-width: 3.85rem;
  min-height: 3.15rem;
  border-radius: 10px;
  cursor: pointer;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.95), 0 0 6px rgba(255, 255, 255, 0.9), 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.lang-switcher__btn[data-lang="ko"] {
  --lang-flag: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2027%2018%27%3E%3Crect%20fill%3D%27%23fff%27%20width%3D%2727%27%20height%3D%2718%27%2F%3E%3Ccircle%20cx%3D%2713.5%27%20cy%3D%279%27%20r%3D%274.5%27%20fill%3D%27none%27%20stroke%3D%27%23c60c30%27%20stroke-width%3D%279%27%20stroke-dasharray%3D%2714.137%2028.274%27%20transform%3D%27rotate%28-33%2013.5%209%29%27%2F%3E%3Ccircle%20cx%3D%2713.5%27%20cy%3D%279%27%20r%3D%274.5%27%20fill%3D%27none%27%20stroke%3D%27%23003799%27%20stroke-width%3D%279%27%20stroke-dasharray%3D%2714.137%2028.274%27%20stroke-dashoffset%3D%2714.137%27%20transform%3D%27rotate%28-33%2013.5%209%29%27%2F%3E%3C%2Fsvg%3E");
}

.lang-switcher__btn[data-lang="en"] {
  --lang-flag: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2019%2010%27%3E%3Crect%20fill%3D%27%23B22234%27%20width%3D%2719%27%20height%3D%2710%27%2F%3E%3Cpath%20fill%3D%27%23FFF%27%20d%3D%27M0%201h19v1H0zm0%202h19v1H0zm0%202h19v1H0zm0%202h19v1H0z%27%2F%3E%3Crect%20fill%3D%27%23002266%27%20width%3D%277.6%27%20height%3D%275.4%27%2F%3E%3C%2Fsvg%3E");
}

.lang-switcher__btn[data-lang="id"] {
  --lang-flag: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%203%202%27%3E%3Crect%20fill%3D%27%23CE1126%27%20width%3D%273%27%20height%3D%271%27%2F%3E%3Crect%20fill%3D%27%23FFFFFF%27%20y%3D%271%27%20width%3D%273%27%20height%3D%271%27%2F%3E%3C%2Fsvg%3E");
}

.lang-switcher__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(var(--lang-flag-frost), var(--lang-flag-frost)), var(--lang-flag);
  background-size: cover;
  background-position: center;
  transform: scale(1.12);
  transition: filter 0.15s ease, opacity 0.15s ease;
}

.lang-switcher__btn:hover {
  border-color: rgba(27, 67, 50, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.lang-switcher__btn[aria-pressed="true"] {
  color: #fff;
  border-color: rgba(27, 67, 50, 0.55);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45), 0 0 12px rgba(0, 0, 0, 0.25);
  box-shadow: 0 4px 16px rgba(27, 67, 50, 0.35);
}

.lang-switcher__btn[aria-pressed="true"]::before {
  background-image: linear-gradient(var(--lang-flag-active), var(--lang-flag-active)), var(--lang-flag);
}

.lang-switcher__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .lang-switcher {
    top: auto;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    transform: none;
    flex-direction: row;
    border-right: 1px solid var(--line);
    border-radius: 14px;
    right: 0.65rem;
    padding: 0.45rem;
    gap: 0.35rem;
  }
}
