:root {
  --bg-dark: #0b1b26;
  --bg-light: #f6f7f9;
  --accent: #1c8ad4;
  --accent-soft: rgba(28, 138, 212, 0.12);
  --text-dark: #0f1b24;
  --text-light: #f1f4f7;
  --muted: #6b7a86;
  --border: rgba(15, 27, 36, 0.1);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-dark);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  background: var(--bg-light);
  line-height: 1.6;
  scroll-behavior: smooth;
}

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

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(11, 27, 38, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 10;
}

.site-header {
  background: radial-gradient(circle at top left, rgba(28, 138, 212, 0.25), transparent 55%), var(--bg-dark);
  color: var(--text-light);
  padding: 140px 0 80px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap:24px;
  padding: 16px 0;
}

.main-nav .logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.main-nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-toggle {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--accent);
}

.hero {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
  margin-top: 32px;
}

.hero-text h1 {
  font-size: clamp(2.1rem, 2vw + 1.5rem, 3rem);
  line-height: 1.3;
  margin: 0 0 16px;
}

.hero-text p {
  margin: 0 0 24px;
  max-width: 32ch;
  color: rgba(241, 244, 247, 0.85);
}

.cta {
  background: var(--accent);
  color: var(--text-light);
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cta::after {
  content: "→";
  font-size: 1.1em;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(28, 138, 212, 0.25);
}

.hero-card {
  background: rgba(15, 27, 36, 0.55);
  padding: 32px;
  border-radius: 16px;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-card h2 {
  margin: 0;
}

.hero-card p {
  margin: 0;
  color: rgba(241, 244, 247, 0.88);
}

.hero-card li + li {
  margin-top: 10px;
}

main section {
  padding: 80px 0;
}

.section-dark {
  background: #eef3f8;
}

.section-light {
  background: var(--bg-light);
}

h2 {
  margin: 0 0 28px;
  font-size: 2rem;
}

h3 {
  margin-top: 0;
}

.two-column {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 12px 40px rgba(15, 27, 36, 0.08);
}

.info-card h3 {
  margin-bottom: 16px;
}

.info-card span {
  font-weight: 600;
  display: inline-block;
  min-width: 90px;
}

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

.card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(12, 34, 49, 0.12);
}

.profile-section {
  position: relative;
  overflow: hidden;
}

.profile-section::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -140px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  pointer-events: none;
}

.profile-layout {
  position: relative;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.profile-content h2 {
  margin-bottom: 20px;
}

.profile-lead {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--text-dark);
  margin-top: 0;
}

.profile-content p {
  color: var(--muted);
}

.profile-content .profile-lead {
  color: var(--text-dark);
}

.profile-highlights {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-highlights li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: 0 8px 26px rgba(12, 34, 49, 0.07);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.highlight-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}

.highlight-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.profile-image {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(12, 34, 49, 0.22);
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  flex-direction: column;
}

.profile-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  display: block;
}

.profile-image figcaption {
  padding: 16px 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

.validation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
  counter-reset: expertise;
}

.validation-item {
  position: relative;
  min-height: 150px;
  padding: 28px 0 30px 64px;
  border-top: 1px solid rgba(15, 27, 36, 0.2);
}

.validation-item::before {
  counter-increment: expertise;
  content: "0" counter(expertise);
  position: absolute;
  top: 26px;
  left: 0;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.validation-item:nth-last-child(-n + 2) {
  border-bottom: 1px solid rgba(15, 27, 36, 0.2);
}

.validation-item h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.validation-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.validation-icon {
  display: none;
}

.section-lead {
  max-width: 48ch;
  color: var(--muted);
  margin-bottom: 36px;
}

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

.gallery-grid figure {
  margin: 0;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 10px 36px rgba(12, 34, 49, 0.12);
  display: flex;
  flex-direction: column;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.gallery-grid figcaption {
  padding: 16px 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-action {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.cta-button {
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
}

.dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(11, 27, 38, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.dialog-overlay[hidden] {
  display: none;
}

.dialog-panel {
  position: relative;
  background: var(--bg-light);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(12, 34, 49, 0.4);
  width: min(940px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: rgba(15, 27, 36, 0.08);
  color: var(--text-dark);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}

.dialog-close:hover,
.dialog-close:focus-visible {
  background: rgba(15, 27, 36, 0.16);
}

.dialog-header {
  text-align: center;
  margin-bottom: 28px;
}

.dialog-header h2 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 1.2vw + 1.1rem, 1.9rem);
}

.dialog-source {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.sprog-table {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sprog-col {
  border-radius: 14px;
  padding: 24px 20px;
  color: #fff;
}

.sprog-col--good {
  background: #16b326;
}

.sprog-col--bad {
  background: #e01b1b;
}

.sprog-col-title {
  margin: 0 0 16px;
  text-align: center;
  font-size: 1.15rem;
}

.sprog-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.sprog-col li {
  line-height: 1.5;
}

.sprog-col em {
  font-style: italic;
  opacity: 0.92;
}

.contact-section {
  gap: 48px;
}

.contact-facts {
  margin-top: 28px;
  display: grid;
  gap: 12px;
  font-size: 0.98rem;
}

.contact-facts p {
  margin-top:0;
  margin-bottom:0;
}

.contact-facts span {
  display: inline-block;
  min-width: 90px;
  font-weight: 600;
  color: var(--text-dark);
}

.contact-facts a {
  color: var(--accent);
  font-weight: 600;
}

.contact-image {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(12, 34, 49, 0.18);
  background: #fff;
  display: flex;
  flex-direction: column;
}

.contact-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.contact-image figcaption {
  padding: 16px 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.partners-section {
  position: relative;
  padding: 64px 0 72px;
}

.partners-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1100px, 92%);
  height: 1px;
  background: var(--border);
  transform: translateX(-50%);
}

.partners-hero {
  margin-bottom: 28px;
}

.partners-hero h2 {
  max-width: 640px;
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 1.2vw + 1.45rem, 2.45rem);
  line-height: 1.2;
}

.partners-hero .section-lead {
  margin-bottom: 0;
}

.partners-network {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.partner-card {
  width: 100%;
  min-height: 120px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  color: var(--text-dark);
  box-shadow: 0 8px 28px rgba(12, 34, 49, 0.08);
  cursor: pointer;
  display: grid;
  align-content: start;
  gap: 8px;
  text-align: left;
  font: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.partner-card:hover,
.partner-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(28, 138, 212, 0.28);
  box-shadow: 0 14px 34px rgba(12, 34, 49, 0.13);
  outline: none;
}

.partner-card:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 3px;
}

.partner-city,
.partner-dialog-city {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.partner-name {
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.partner-cue {
  align-self: end;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.partner-cue::after {
  content: " →";
  color: var(--accent);
}

.partner-dialog-panel .dialog-header {
  text-align: left;
  margin-bottom: 24px;
  padding-right: 44px;
}

.partner-dialog-panel .dialog-header h2 {
  margin: 6px 0 0;
}

.partner-detail-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.partner-detail-list div {
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.partner-detail-list dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.partner-detail-list dd {
  margin: 0;
  color: var(--text-dark);
  font-weight: 600;
}

.partner-detail-list a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(28, 138, 212, 0.28);
  text-underline-offset: 3px;
}

.site-footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 40px 0;
}

.footer-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  align-items: start;
}

.footer-grid .logo {
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-grid p {
  max-width:360px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-note {
  text-align: center;
  margin-top: 24px;
  color: rgba(241, 244, 247, 0.6);
  font-size: 0.85rem;
}

.video-section {
  align-items: center;
  gap: 48px;
}

.video-wrapper {
  max-width: 640px;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(12, 34, 49, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
}

.video-wrapper video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

section[id] {
  scroll-margin-top: 120px;
}

@media (max-width: 900px) {
  .profile-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .profile-image {
    order: -1;
  }
}

@media (max-width: 700px) {
  .main-nav {
    position: relative;
    min-height: 64px;
    gap: 16px;
  }

  .main-nav .logo {
    max-width: calc(100% - 62px);
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 5px;
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
  }

  .nav-toggle > span:not(.sr-only) {
    width: 19px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-toggle[aria-expanded="true"] > span:nth-of-type(2) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] > span:nth-of-type(3) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] > span:nth-of-type(4) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav ul {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    gap: 0;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(11, 27, 38, 0.98);
    box-shadow: 0 18px 36px rgba(11, 27, 38, 0.28);
  }

  .main-nav ul.is-open {
    display: grid;
  }

  .main-nav li,
  .main-nav li a {
    display: block;
  }

  .main-nav li a {
    padding: 12px 14px;
    border-radius: 8px;
  }

  .main-nav li a:hover,
  .main-nav li a:focus-visible {
    background: rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 112px 0 48px;
  }

  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
    margin-top: 20px;
  }

  .hero-card {
    min-height: 0;
    margin: 0;
    padding: 0;
    align-self: start;
    gap: 12px;
    background: transparent;
  }

  .hero-card ul {
    margin: 0;
    padding-left: 1.2rem;
  }

  .hero-card li + li {
    margin-top: 10px;
  }

  /*.hero-card {
    order: -1;
  }*/

  .video-section {
    gap: 32px;
  }

  .contact-image img {
    height: 260px;
  }

  .profile-highlights,
  .validation-grid {
    grid-template-columns: 1fr;
  }

  .validation-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .validation-item:last-child {
    border-bottom: 1px solid rgba(15, 27, 36, 0.2);
  }

  .sprog-table {
    grid-template-columns: 1fr;
  }

  .dialog-panel {
    padding: 32px 20px;
  }
}


.competence-expertise {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
}

.subsection-title {
  margin-bottom: 24px;
  font-size: 1.45rem;
}

.practical-section {
  position: relative;
}

.practical-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px;
}

.practical-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 36px rgba(12, 34, 49, 0.08);
}

.practical-card h3 {
  margin-bottom: 12px;
}

.practical-card p {
  color: var(--muted);
}

.practical-card ol {
  margin: 18px 0 0;
  padding-left: 1.35rem;
}

.practical-card li + li {
  margin-top: 10px;
}

.practical-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.practical-action {
  min-height: auto;
  padding: 12px 18px;
  justify-content: center;
  text-align: center;
}

.video-card.practical-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: auto;
  padding: 12px 18px;
  overflow: visible;
}

.video-card.practical-action .video-card-label,
.video-card.practical-action .video-card-details {
  display: none;
}

.video-card.practical-action strong {
  font-size: 1rem;
}

.video-link-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--accent);
}

.video-link-icon svg {
  width: 100%;
  height: 100%;
}

.video-link-sign {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  padding: 8px 12px;
  border-radius: 7px;
  background: var(--accent);
  color: var(--text-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) rotate(2deg) scale(0.92);
  transform-origin: bottom right;
  transition: opacity 0.18s ease, transform 0.24s cubic-bezier(0.2, 0.8, 0.3, 1.25);
}

.video-link-sign::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 100%;
  border: 7px solid transparent;
  border-top-color: var(--accent);
  border-bottom: 0;
}

.video-card.practical-action:hover .video-link-sign,
.video-card.practical-action:focus-visible .video-link-sign {
  opacity: 1;
  transform: translateY(0) rotate(-2deg) scale(1);
}

.practical-gallery {
  margin-top: 48px;
}

.video-card {
  display: grid;
  gap: 4px;
  padding: 24px 28px;
  border-radius: 18px;
  background: var(--bg-dark);
  color: var(--text-light);
  box-shadow: 0 12px 30px rgba(12, 34, 49, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover,
.video-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(12, 34, 49, 0.26);
}

.video-card-label {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.video-card strong {
  font-size: 1.05rem;
}

.video-card > span:last-child {
  color: rgba(241, 244, 247, 0.78);
}

.dialog-panel--info {
  width: min(680px, 100%);
}

.dialog-panel--info > p {
  color: var(--muted);
  line-height: 1.65;
}

.dialog-list {
  margin: 24px 0 0;
  padding-left: 1.35rem;
}

.dialog-list li + li {
  margin-top: 12px;
}

@media (max-width: 760px) {
  .practical-grid,
  .practical-actions {
    grid-template-columns: 1fr;
  }

  .practical-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .practical-action,
  .video-card.practical-action {
    width: 100%;
    min-height: 56px;
  }

  .partners-section {
    padding: 52px 0 60px;
  }

  .partners-network {
    grid-template-columns: 1fr;
  }

  .partner-card {
    min-height: 0;
  }

  .partner-card:hover,
  .partner-card:focus-visible {
    transform: translateY(-2px);
  }
}

.bottom-smiley {
  position: fixed;
  z-index: 20;
  right: 32px;
  bottom: 28px;
  width: 78px;
  height: 78px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ffd34e;
  box-shadow: 0 12px 28px rgba(11, 27, 38, 0.28);
  cursor: pointer;
  transition: transform 0.42s cubic-bezier(0.2, 0.8, 0.35, 1);
  animation: smiley-wander 5.2s ease-in-out infinite;
}

.bottom-smiley:hover,
.bottom-smiley:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.smiley-face {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.smiley-eye {
  position: absolute;
  top: 25px;
  width: 11px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-dark);
}

.smiley-eye--left { left: 22px; }
.smiley-eye--right { right: 22px; }

.smiley-eye i {
  display: block;
  width: 5px;
  height: 5px;
  margin: 3px;
  border-radius: 50%;
  background: #fff;
  animation: smiley-look 5.2s ease-in-out infinite;
}

.smiley-mouth {
  position: absolute;
  left: 50%;
  bottom: 17px;
  width: 31px;
  height: 14px;
  border: 4px solid var(--bg-dark);
  border-top: 0;
  border-radius: 0 0 30px 30px;
  transform: translateX(-50%);
  transition: height 0.18s ease, border-radius 0.18s ease;
}

.bottom-smiley:hover .smiley-mouth,
.bottom-smiley:focus-visible .smiley-mouth {
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-dark);
}

@keyframes smiley-wander {
  0%, 100% { transform: translateX(0) rotate(-3deg); }
  25% { transform: translateX(-30px) rotate(-7deg); }
  55% { transform: translateX(20px) rotate(5deg); }
  78% { transform: translateX(5px) rotate(2deg); }
}

@keyframes smiley-look {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  55% { transform: translateX(3px); }
  78% { transform: translateX(1px); }
}

.page-spin body {
  animation: page-spin 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes page-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .bottom-smiley,
  .smiley-eye i,
  .page-spin body {
    animation: none;
  }
}

@media (max-width: 640px) {
  .bottom-smiley {
    right: 18px;
    bottom: 18px;
    width: 64px;
    height: 64px;
  }

  .smiley-eye { top: 20px; }
  .smiley-eye--left { left: 18px; }
  .smiley-eye--right { right: 18px; }
  .smiley-mouth { bottom: 13px; }
}

.bottom-smiley.smiley--entering {
  animation: smiley-enter 0.75s cubic-bezier(0.18, 0.9, 0.28, 1.15) both;
}

.bottom-smiley.smiley--escape-left {
  animation: smiley-escape-left 0.38s cubic-bezier(0.2, 0.8, 0.35, 1) both;
}

.bottom-smiley.smiley--escape-right {
  animation: smiley-escape-right 0.38s cubic-bezier(0.2, 0.8, 0.35, 1) both;
}

@keyframes smiley-enter {
  0% { transform: translateX(calc(-100vw + 10px)) rotate(-720deg); opacity: 0; }
  78% { transform: translateX(8px) rotate(-15deg); opacity: 1; }
  100% { transform: translateX(0) rotate(0deg); opacity: 1; }
}

@keyframes smiley-escape-left {
  to { transform: translateX(-115px) translateY(-12px) rotate(-16deg); }
}

@keyframes smiley-escape-right {
  to { transform: translateX(115px) translateY(-12px) rotate(16deg); }
}

html.smiley-pink {
  --bg-dark: #5b1737;
  --bg-light: #fff4f8;
  --accent: #e92f7a;
  --accent-soft: #ffd5e5;
  --muted: #805168;
  --border: #f3b6cf;
}

.smiley-pink .section-dark {
  background: #ffe0eb;
}

.smiley-pink .section-light {
  background: #fff6fa;
}

.smiley-pink .card,
.smiley-pink .gallery-grid figure,
.smiley-pink .contact-image {
  border-color: #f3b6cf;
  box-shadow: 0 16px 38px rgba(121, 21, 69, 0.14);
}

.smiley-finale {
  position: fixed;
  z-index: 200;
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  margin: -39px 0 0 -39px;
  pointer-events: none;
  animation: smiley-grand-finale 1.8s cubic-bezier(0.58, 0, 0.22, 1) both;
}

@keyframes smiley-grand-finale {
  0% { transform: rotate(0deg) scale(1); opacity: 1; }
  42% { transform: rotate(360deg) scale(24); opacity: 1; }
  65% { transform: rotate(500deg) scale(24); opacity: 1; }
  100% { transform: rotate(900deg) scale(0); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .smiley-finale {
    animation: none;
  }
}
