:root {
  --navy: #2f2e5c;
  --light-gray: #ececed;
  --dark-section: #2d2d2d;
  --sky: #abd2ea;
  --pink: #dab0cf;
  --plum: #64345f;
  --peach: #efa37e;
  --text: #2b2e59;
  --white: #ffffff;
}

/* Shared - Global reset, typography, and layout primitives */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", sans-serif;
  background: var(--light-gray);
  color: var(--text);
}

body.modal-open {
  overflow: hidden;
}

.container {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0 20px;
}

.narrow {
  width: min(100%, 1120px);
}

/* Shared - Site header and navigation */

.site-header {
  background: var(--navy);
  height: 60px;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
}

.header-back-slot {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.logo {
  width: 155px;
  height: auto;
  display: block;
}

.brand-link {
  display: inline-flex;
  line-height: 0;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 34px;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #f2f1fa;
  font-size: 22px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  width: 28px;
  height: 28px;
}

.menu-close-icon {
  display: none;
}

body.menu-open .menu-open-icon {
  display: none;
}

body.menu-open .menu-close-icon {
  display: inline;
}

.mobile-menu {
  display: none;
}

.menu a {
  color: #f2f1fa;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
}

.hero-intro {
  background: var(--light-gray);
  padding: 58px 0 54px;
}

/* Homepage - Hero intro section */

.intro-inner {
  max-width: 790px;
  text-align: center;
}

h1,
h2 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: -0.01em;
  font-weight: 800;
}

.hero-intro h1 {
  font-size: 66px;
  margin-bottom: 26px;
}

p {
  margin: 0;
  line-height: 1.55;
  font-size: 21px;
}

.hero-intro p {
  max-width: 740px;
  margin: 0 auto;
}

.note-wall {
  background: var(--dark-section);
  padding: 34px 0 46px;
}

/* Homepage - Animated note wall section */

.note-wall-inner {
  display: flex;
  justify-content: center;
}

.homepage-gif {
  width: 100%;
  display: block;
  max-width: 1180px;
  height: auto;
  object-fit: contain;
}

.news {
  background: var(--light-gray);
  padding: 34px 0 48px;
}

/* Homepage - Ajankohtaista (news) section */

.news h2,
.usage h2,
.cta-blue h2,
.social-band h2,
.cta-pink h2,
.history h2 {
  font-size: 63px;
  text-align: center;
  margin-bottom: 26px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}

.news-card {
  min-height: auto;
}

.news-image {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  background: #cbcbce;
  color: #aaaaae;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  overflow: hidden;
  border-radius: 4px;
}

.news-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
}

.news-date {
  font-size: 25px;
  font-weight: 500;
  margin-bottom: 6px;
}

.news-card h3 {
  font-size: 39px;
  line-height: 1.1;
  margin: 0 0 20px;
}

.pill-btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--navy);
  color: #f2f2fa;
  font-size: 18px;
  text-decoration: none;
  font-weight: 500;
}

.usage {
  background: var(--light-gray);
  padding: 38px 0 44px;
}

/* Homepage - Missa setelia voi kayttaa? section */

.usage-inner {
  padding: 18px 0 0;
}

.usage-inner > p {
  max-width: 930px;
  margin: 0 auto 28px;
  text-align: center;
}

.usage-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.usage-card {
  padding: 20px 24px 26px;
  text-align: center;
  color: #f6f6fb;
}

.usage-card img {
  width: 100%;
  height: clamp(120px, 18vw, 164px);
  object-fit: contain;
  object-position: center;
  display: block;
  margin-bottom: 20px;
}

.usage-card h3 {
  margin: 0 0 12px;
  font-size: 49px;
  line-height: 1.02;
}

.usage-card p {
  font-size: 23px;
  line-height: 1.42;
}

.usage-card.peach {
  color: var(--navy);
}

.navy {
  background: var(--navy);
}

.peach {
  background: var(--peach);
}

.plum {
  background: var(--plum);
}

.cta-blue {
  background: var(--sky);
  text-align: center;
  padding: 44px 0 40px;
}

/* Homepage - Tee oma seteli call-to-action section */

.cta-blue p,
.cta-pink p,
.social-band p,
.history p {
  max-width: 930px;
  margin: 0 auto 20px;
  text-align: center;
}

.social-band {
  background: var(--navy);
  color: #eaf0ff;
  text-align: center;
  padding: 44px 0 36px;
}

/* Shared/Homepage - Seuraa meita somessa section */

.social-band h2 {
  color: #bde3ff;
  margin-bottom: 20px;
}

.social-band p {
  color: #edf2ff;
}

.bold-line {
  font-weight: 700;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-icons img {
  width: 38px;
  height: 38px;
  display: block;
}

.cta-pink {
  background: var(--pink);
  text-align: center;
  padding: 44px 0 40px;
}

/* Homepage - Kiinnostaako keraily? section */

.history {
  background: var(--light-gray);
  padding: 44px 0 50px;
}

/* Homepage - Historiaa section */

.history-inner {
  max-width: 980px;
}

.quote {
  max-width: 980px;
  font-style: italic;
  font-weight: 500;
}

.history h3 {
  font-size: 37px;
  margin: 14px 0 16px;
  text-align: center;
}

.fanit-page .fanit-layout {
  background: var(--light-gray);
}

/* Fanit & keraily page - Hero and product cards */

.fanit-hero {
  padding: 48px 0 34px;
  text-align: center;
}

.fanit-hero-inner {
  max-width: 830px;
}

.fanit-hero h1 {
  font-size: 62px;
  color: var(--navy);
  margin-bottom: 14px;
}

.fanit-hero p {
  max-width: 740px;
  margin: 0 auto 12px;
  color: var(--text);
  line-height: 1.55;
}

.fanit-products {
  padding: 12px 0 38px;
}

.fanit-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.product-card {
  background: #ffffff;
  padding: 16px 16px 18px;
  box-shadow: 0 10px 30px rgba(45, 45, 75, 0.08);
}

.product-visual {
  aspect-ratio: 1 / 1;
  height: auto;
  margin-bottom: 14px;
  background: linear-gradient(180deg, #f8f8fb 0%, #ededf4 100%);
  position: relative;
  overflow: hidden;
}

.product-visual-box::before {
  content: "";
  position: absolute;
  inset: 24px 58px 24px 58px;
  background: linear-gradient(90deg, #6e2476 0 20%, #ffffff 20% 23%, #e6e6ea 23% 100%);
  border-radius: 2px;
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.14);
}

.product-visual-books {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  padding: 28px 16px;
}

.product-visual-books span {
  width: 26px;
  border-radius: 2px;
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.15);
}

.product-visual-books span:nth-child(1) { background: #156f48; }
.product-visual-books span:nth-child(2) { background: #6f492d; }
.product-visual-books span:nth-child(3) { background: #9c6c37; }
.product-visual-books span:nth-child(4) { background: #b3383b; }
.product-visual-books span:nth-child(5) { background: #2d2e32; }

.product-visual-note {
  display: grid;
  place-items: center;
}

.product-visual-note img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: none;
  display: block;
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.15);
}

.product-card h2 {
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 6px;
  text-align: left;
}

.product-card p {
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 14px;
  text-align: left;
}

.product-card .pill-btn {
  padding: 10px 18px;
  font-size: 14px;
}

.fanit-social {
  padding-top: 44px;
  padding-bottom: 42px;
}

.published-section {
  background: #6b2d5e;
  color: #ffffff;
  padding: 40px 0 46px;
}

/* Fanit & keraily page - Julkaistut setelit gallery */

.published-head {
  text-align: center;
  margin-bottom: 24px;
}

.published-head h2 {
  color: #f4d7e9;
  margin-bottom: 10px;
}

.published-head p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
}

.published-carousel {
  position: relative;
}

.published-viewport {
  width: 100%;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.published-viewport::-webkit-scrollbar {
  display: none;
}

.published-track {
  display: flex;
  gap: 0;
  align-items: flex-start;
  width: 100%;
  transform: translateX(0);
}

.published-page {
  flex: 0 0 100%;
  min-width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 18px;
  padding: 2px 0 6px;
}

.published-card {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  appearance: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.published-thumb {
  aspect-ratio: 1 / 1;
  background: #dcdcdc;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 75%;
  margin: 0 auto;
}

.published-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
}

.published-card-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
  min-height: 46px;
}

.published-card-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  line-clamp: 2;
  color: rgba(255, 255, 255, 0.96);
  text-transform: uppercase;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.published-card-meta {
  font-size: 12px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.78);
  text-transform: uppercase;
}

.published-card p {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.gallery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
}

.gallery-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.gallery-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.gallery-dots span.active {
  width: 8px;
  height: 8px;
  background: #f4d7e9;
}

.gallery-arrows {
  display: flex;
  gap: 10px;
}

.arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 0;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.arrow-btn img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.note-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 0s linear 180ms;
}

/* Fanit & keraily page - Note details modal */

.note-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 180ms ease, visibility 0s linear 0s;
}

.note-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 25, 28, 0.84);
}

.note-modal-panel {
  position: relative;
  width: min(100%, 1560px);
  max-height: min(92vh, 980px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  z-index: 1;
}

.note-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.note-modal-media {
  min-height: clamp(460px, 70vh, 820px);
  background: #d9d9dc;
  display: grid;
  place-items: center;
  padding: 48px;
}

.note-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.note-modal-content {
  background: #ffffff;
  padding: 88px 54px 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.note-modal-content h2 {
  color: var(--navy);
  font-size: clamp(2.2rem, 2.8vw, 4rem);
  margin-bottom: 24px;
}

.note-modal-details {
  display: grid;
  gap: 22px;
  margin: 0;
}

.note-modal-details div {
  display: grid;
  gap: 4px;
}

.note-modal-details dt {
  font-size: clamp(1rem, 1.25vw, 1.5rem);
  font-weight: 700;
  color: var(--navy);
}

.note-modal-details dd {
  margin: 0;
  font-size: clamp(0.95rem, 1.1vw, 1.3rem);
  color: var(--navy);
}

.note-modal-arrows {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: flex;
  gap: 16px;
  z-index: 2;
}

.note-modal-arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  background: #f4c2df;
  color: var(--navy);
  font-size: 28px;
  line-height: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.contact-section {
  background: var(--sky);
  padding: 42px 0 48px;
}

/* Shared pages - Ota yhteytta section and form */

.contact-inner {
  max-width: 680px;
  text-align: center;
}

.contact-inner h2 {
  color: var(--navy);
  margin-bottom: 12px;
}

.contact-inner > p {
  max-width: 620px;
  margin: 0 auto 24px;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.55;
}

.contact-form {
  text-align: left;
}

.form-row {
  margin-bottom: 14px;
}

.two-up {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-form label {
  display: block;
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 6px;
  border: 0;
  background: #ffffff;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .pill-btn {
  display: inline-block;
  margin: 8px auto 0;
}

.form-privacy-note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  text-align: center;
}

.form-privacy-note a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
}

.form-status {
  margin: 12px 0 0;
  min-height: 1.4em;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.form-status.is-success {
  color: #136f48;
}

.form-status.is-error {
  color: #9a1f47;
}

.fanit-page .social-band {
  background: var(--navy);
}

.design-page .design-layout {
  background: var(--light-gray);
}

/* Tee oma seteli page - Hero with stacked notes */

.design-hero {
  background: #efbfd6;
  padding: 56px 0 44px;
  text-align: left;
}

.design-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: center;
  max-width: 1120px;
}

.design-hero-copy {
  text-align: left;
  max-width: 560px;
  order: 2;
}

.design-hero-copy h1 {
  color: var(--navy);
  font-size: clamp(2.2rem, 3.6vw, 3.8rem);
  line-height: 1.05;
  margin-bottom: 18px;
}

.design-hero-copy p {
  max-width: 520px;
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--navy);
}

.design-hero-stack {
  position: relative;
  min-height: 360px;
  margin: 0 auto;
  width: min(100%, 520px);
  order: 1;
}

.design-page .design-hero img,
.design-page .design-gallery img {
  max-width: 100%;
  height: auto;
}

.hero-note {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(84%, 440px);
  aspect-ratio: 1.72 / 1;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 22px 44px rgba(25, 30, 48, 0.18);
  border: 6px solid rgba(255, 255, 255, 0.88);
  transform-origin: center center;
}

.hero-note-back {
  transform: translate(-62%, -50%) rotate(-12deg);
  z-index: 1;
}

.hero-note-mid {
  transform: translate(-50%, -50%) rotate(0deg);
  z-index: 2;
}

.hero-note-front {
  transform: translate(-38%, -50%) rotate(11deg);
  z-index: 3;
}

.design-gallery {
  background: #f6f6f7;
  padding: 8px 0 42px;
}

/* Tee oma seteli page - Note detail gallery section */

.gallery-inner {
  max-width: 1180px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.gallery-card {
  margin: 0 auto;
  background: #ffffff;
  border-radius: 18px;
  padding: 18px;
  aspect-ratio: 1.75 / 1;
  box-shadow: 0 14px 30px rgba(25, 30, 48, 0.12);
  width: min(100%, 820px);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

@media (max-width: 980px) {
  /* Tee oma seteli page - Tablet layout adjustments */
  .design-hero {
    padding: 44px 0 34px;
    text-align: center;
  }

  .design-hero-inner {
    grid-template-columns: 1fr;
  }

  .design-hero-copy {
    order: 1;
    text-align: center;
    margin: 0 auto;
  }

  .design-hero-copy p {
    margin: 0 auto;
  }

  .design-hero-stack {
    order: 2;
    min-height: 240px;
    width: min(100%, 420px);
  }

  .hero-note {
    width: min(90%, 320px);
    border-radius: 14px;
    border-width: 4px;
  }

  .hero-note-back {
    transform: translate(-56%, -50%) rotate(-8deg);
  }

  .hero-note-mid {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  .hero-note-front {
    transform: translate(-44%, -50%) rotate(8deg);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  /* Tee oma seteli page - Mobile gallery adjustments */
  .design-gallery {
    padding-bottom: 64px;
  }

  .gallery-card {
    aspect-ratio: auto;
    width: 100%;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
/* Shared/Homepage - duplicated base section styles kept for compatibility */
.history h2 {
  font-size: 63px;
  text-align: center;
  margin-bottom: 26px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}

.news-card {
  min-height: auto;
}

.news-image {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  background: #cbcbce;
  color: #aaaaae;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  overflow: hidden;
  border-radius: 4px;
}

.news-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
}

.news-date {
  font-size: 25px;
  font-weight: 500;
  margin-bottom: 6px;
}

.news-card h3 {
  font-size: 39px;
  line-height: 1.1;
  margin: 0 0 20px;
}

.pill-btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--navy);
  color: #f2f2fa;
  font-size: 18px;
  text-decoration: none;
  font-weight: 500;
}

.usage {
  background: var(--light-gray);
  padding: 38px 0 44px;
}

.usage-inner {
  padding: 18px 0 0;
}

.usage-inner > p {
  max-width: 930px;
  margin: 0 auto 28px;
  text-align: center;
}

.usage-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.usage-card {
  padding: 20px 24px 26px;
  text-align: center;
  color: #f6f6fb;
}

.usage-card img {
  width: 100%;
  height: clamp(120px, 18vw, 164px);
  object-fit: contain;
  object-position: center;
  display: block;
  margin-bottom: 20px;
}

.usage-card h3 {
  margin: 0 0 12px;
  font-size: 49px;
  line-height: 1.02;
}

.usage-card p {
  font-size: 23px;
  line-height: 1.42;
}

.usage-card.peach {
  color: var(--navy);
}

.navy {
  background: var(--navy);
}

.peach {
  background: var(--peach);
}

.plum {
  background: var(--plum);
}

.cta-blue {
  background: var(--sky);
  text-align: center;
  padding: 44px 0 40px;
}

.cta-blue p,
.cta-pink p,
.social-band p,
.history p {
  max-width: 930px;
  margin: 0 auto 20px;
  text-align: center;
}

.social-band {
  background: var(--navy);
  color: #eaf0ff;
  text-align: center;
  padding: 44px 0 36px;
}

.social-band h2 {
  color: #bde3ff;
  margin-bottom: 20px;
}

.social-band p {
  color: #edf2ff;
}

.bold-line {
  font-weight: 700;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-icons img {
  width: 38px;
  height: 38px;
  display: block;
}

.cta-pink {
  background: var(--pink);
  text-align: center;
  padding: 44px 0 40px;
}

.history {
  background: var(--light-gray);
  padding: 44px 0 50px;
}

.history-inner {
  max-width: 980px;
}

.quote {
  max-width: 980px;
  font-style: italic;
  font-weight: 500;
}

.history h3 {
  font-size: 37px;
  margin: 14px 0 16px;
  text-align: center;
}

.fanit-page .fanit-layout {
  background: var(--light-gray);
}

.fanit-hero {
  padding: 48px 0 34px;
  text-align: center;
}

.fanit-hero-inner {
  max-width: 830px;
}

.fanit-hero h1 {
  font-size: 62px;
  color: var(--navy);
  margin-bottom: 14px;
}

.fanit-hero p {
  max-width: 740px;
  margin: 0 auto 12px;
  color: var(--text);
  line-height: 1.55;
}

.fanit-products {
  padding: 12px 0 38px;
}

.fanit-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.product-card {
  background: #ffffff;
  padding: 16px 16px 18px;
  box-shadow: 0 10px 30px rgba(45, 45, 75, 0.08);
}

.product-visual {
  aspect-ratio: 1 / 1;
  height: auto;
  margin-bottom: 14px;
  background: linear-gradient(180deg, #f8f8fb 0%, #ededf4 100%);
  position: relative;
  overflow: hidden;
}

.product-visual-box::before {
  content: "";
  position: absolute;
  inset: 24px 58px 24px 58px;
  background: linear-gradient(90deg, #6e2476 0 20%, #ffffff 20% 23%, #e6e6ea 23% 100%);
  border-radius: 2px;
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.14);
}

.product-visual-books {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  padding: 28px 16px;
}

.product-visual-books span {
  width: 26px;
  border-radius: 2px;
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.15);
}

.product-visual-books span:nth-child(1) { background: #156f48; }
.product-visual-books span:nth-child(2) { background: #6f492d; }
.product-visual-books span:nth-child(3) { background: #9c6c37; }
.product-visual-books span:nth-child(4) { background: #b3383b; }
.product-visual-books span:nth-child(5) { background: #2d2e32; }

.product-visual-note {
  display: grid;
  place-items: center;
}

.product-visual-note img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: none;
  display: block;
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.15);
}

.product-card h2 {
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 6px;
  text-align: left;
}

.product-card p {
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 14px;
  text-align: left;
}

.product-card .pill-btn {
  padding: 10px 18px;
  font-size: 14px;
}

.fanit-social {
  padding-top: 44px;
  padding-bottom: 42px;
}

.published-section {
  background: #6b2d5e;
  color: #ffffff;
  padding: 40px 0 46px;
}

.published-head {
  text-align: center;
  margin-bottom: 24px;
}

.published-head h2 {
  color: #f4d7e9;
  margin-bottom: 10px;
}

.published-head p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
}

.published-carousel {
  position: relative;
}

.published-viewport {
  width: 100%;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.published-viewport::-webkit-scrollbar {
  display: none;
}

.published-track {
  display: flex;
  gap: 0;
  align-items: flex-start;
  width: 100%;
  transform: translateX(0);
}

.published-page {
  flex: 0 0 100%;
  min-width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 18px;
  padding: 2px 0 6px;
}

.published-card {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  appearance: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.published-thumb {
  aspect-ratio: 1 / 1;
  background: #dcdcdc;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 75%;
  margin: 0 auto;
}

.published-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
}

.published-card-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
  min-height: 46px;
}

.published-card-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  line-clamp: 2;
  color: rgba(255, 255, 255, 0.96);
  text-transform: uppercase;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.published-card-meta {
  font-size: 12px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.78);
  text-transform: uppercase;
}

.published-card p {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.gallery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
}

.gallery-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.gallery-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.gallery-dots span.active {
  width: 8px;
  height: 8px;
  background: #f4d7e9;
}

.gallery-arrows {
  display: flex;
  gap: 10px;
}

.arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 0;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.arrow-btn img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.note-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 0s linear 180ms;
}

.note-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 180ms ease, visibility 0s linear 0s;
}

.note-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 25, 28, 0.84);
}

.note-modal-panel {
  position: relative;
  width: min(100%, 1560px);
  max-height: min(92vh, 980px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  z-index: 1;
}

.note-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.note-modal-media {
  min-height: clamp(460px, 70vh, 820px);
  background: #d9d9dc;
  display: grid;
  place-items: center;
  padding: 48px;
}

.note-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.note-modal-content {
  background: #ffffff;
  padding: 88px 54px 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.note-modal-content h2 {
  color: var(--navy);
  font-size: clamp(2.2rem, 2.8vw, 4rem);
  margin-bottom: 24px;
}

.note-modal-details {
  display: grid;
  gap: 22px;
  margin: 0;
}

.note-modal-details div {
  display: grid;
  gap: 4px;
}

.note-modal-details dt {
  font-size: clamp(1rem, 1.25vw, 1.5rem);
  font-weight: 700;
  color: var(--navy);
}

.note-modal-details dd {
  margin: 0;
  font-size: clamp(0.95rem, 1.1vw, 1.3rem);
  color: var(--navy);
}

.note-modal-arrows {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: flex;
  gap: 16px;
  z-index: 2;
}

.note-modal-arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  background: #f4c2df;
  color: var(--navy);
  font-size: 28px;
  line-height: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.contact-section {
  background: var(--sky);
  padding: 42px 0 48px;
}

.contact-inner {
  max-width: 680px;
  text-align: center;
}

.contact-inner h2 {
  color: var(--navy);
  margin-bottom: 12px;
}

.contact-inner > p {
  max-width: 620px;
  margin: 0 auto 24px;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.55;
}

.contact-form {
  text-align: left;
}

.form-row {
  margin-bottom: 14px;
}

.two-up {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-form label {
  display: block;
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 6px;
  border: 0;
  background: #ffffff;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .pill-btn {
  display: inline-block;
  margin: 8px auto 0;
}

.fanit-page .social-band {
  background: var(--navy);
}

.design-benefits {
  padding: 14px 0 36px;
}

.benefits-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: center;
  background: #efbfd6;
  padding: 28px;
}

.benefits-visual img {
  width: 100%;
  display: block;
  object-fit: contain;
}

.benefits-copy h2 {
  color: var(--navy);
  text-align: left;
  margin-bottom: 16px;
  font-size: clamp(2rem, 3.2vw, 3.5rem);
}

.benefits-copy ul {
  margin: 0;
  padding-left: 22px;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.5;
}

.design-technical {
  background: #f6f6f7;
  padding: 42px 0 48px;
}

.tech-inner {
  max-width: 980px;
}

.tech-intro {
  text-align: center;
  margin-bottom: 18px;
}

.tech-intro h2 {
  color: var(--navy);
  margin-bottom: 12px;
}

.tech-intro p {
  max-width: 880px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.55;
}

.tech-figure {
  margin-top: 22px;
}

.tech-figure img {
  width: 100%;
  display: block;
  object-fit: contain;
}

.tech-figure-large {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.tech-strip-row {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 340px);
  gap: 26px;
  justify-content: center;
  margin-top: 20px;
}

.tech-figure-strip,
.tech-figure-scale {
  justify-self: center;
}

.tech-figure-strip {
  max-width: 180px;
}

.tech-figure-scale {
  max-width: 240px;
}

.tech-uv-grid {
  max-width: 760px;
  margin: 30px auto 0;
  display: grid;
  gap: 20px;
}

.tech-figure-uv {
  max-width: 100%;
}

.order-section {
  background: var(--navy);
  color: #eff4ff;
  padding: 40px 0 44px;
}

.order-inner {
  max-width: 780px;
}

.order-inner h2 {
  color: #bde3ff;
  margin-bottom: 16px;
  text-align: center;
}

.order-inner ol {
  margin: 0;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 980px) {
  .fanit-hero h1 {
    font-size: clamp(2.2rem, 4.6vw, 4rem);
  }

  .fanit-product-grid,
  .published-grid {
    grid-template-columns: 1fr;
  }

  .product-card h2 {
    font-size: clamp(1.35rem, 2.5vw, 2rem);
  }
}

.site-footer {
  background: #11112f;
  color: #f4f3fb;
  padding: 38px 0 22px;
}

/* Shared - Footer base layout */

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
  margin-bottom: 18px;
}

address {
  font-style: normal;
  line-height: 1.5;
  margin-bottom: 14px;
}

.legal {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.legal p {
  margin: 0;
  font-size: 14px;
}

.legal nav {
  display: flex;
  gap: 18px;
}

.legal a {
  color: #f4f3fb;
  font-size: 14px;
}

@media (max-width: 1280px) {
  /* Shared - Large tablet typography scaling */
  .hero-intro h1,
  .news h2,
  .usage h2,
  .cta-blue h2,
  .social-band h2,
  .cta-pink h2,
  .history h2 {
    font-size: clamp(2rem, 4.5vw, 4rem);
  }

  p {
    font-size: clamp(0.95rem, 1.4vw, 1.3rem);
  }

  .news-card h3,
  .usage-card h3 {
    font-size: clamp(1.35rem, 2.35vw, 3rem);
  }

  .usage-card p,
  .news-date,
  .pill-btn {
    font-size: clamp(0.9rem, 1.2vw, 1.45rem);
  }
}

@media (max-width: 980px) {
  /* Shared - Tablet layout compression */
  .header-right {
    margin-left: auto;
  }

  .menu {
    gap: 16px;
  }

  .note-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .news-grid,
  .usage-cards {
    grid-template-columns: 1fr;
  }

  .usage-inner {
    border: 0;
    padding: 0;
  }

  .legal {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  /* Shared - Global mobile navigation and section spacing */
  .container {
    padding: 0 12px;
  }

  .site-header {
    height: 68px;
  }

  .header-back-slot {
    width: 40px;
    height: 32px;
  }

  .logo {
    width: 138px;
  }

  .menu {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
    position: relative;
    z-index: 1001;
    font-size: 34px;
    width: 40px;
    height: 40px;
  }

  .mobile-menu {
    position: fixed;
    inset: 68px 0 0;
    display: block;
    background: var(--light-gray);
    z-index: 1000;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    will-change: transform;
    transition:
      transform 280ms ease,
      opacity 220ms ease,
      visibility 0s linear 280ms;
  }

  body.menu-open .mobile-menu {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
      transform 280ms ease,
      opacity 220ms ease,
      visibility 0s linear 0s;
  }

  .mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 54px;
    padding-top: 64px;
  }

  .mobile-menu-link {
    text-decoration: none;
    color: var(--text);
    font-size: 23px;
    font-weight: 500;
    line-height: 1.2;
  }

  .mobile-menu-link:last-child {
    color: #141414;
  }

  .hero-intro {
    padding: 18px 0 20px;
  }

  .hero-intro h1 {
    font-size: 26px;
    margin-bottom: 12px;
    line-height: 1.05;
  }

  p,
  .hero-intro p,
  .usage-inner > p,
  .cta-blue p,
  .cta-pink p,
  .social-band p,
  .history p {
    font-size: 12px;
    line-height: 1.4;
  }

  .note-wall {
    padding: 12px 0 16px;
  }

  .note-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
  }

  .note-cell {
    padding: 2px;
  }

  .news,
  .usage,
  .cta-blue,
  .social-band,
  .cta-pink,
  .history {
    padding: 20px 0;
  }

  .news h2,
  .usage h2,
  .cta-blue h2,
  .social-band h2,
  .cta-pink h2,
  .history h2 {
    font-size: 41px;
    margin-bottom: 12px;
    line-height: 1.06;
  }

  .news-grid {
    gap: 16px;
  }

  .news-card {
    min-height: auto;
  }

  .news-image {
    height: 90px;
    margin-bottom: 8px;
    font-size: 34px;
  }

  .news-date {
    font-size: 11px;
    margin-bottom: 4px;
  }

  .news-card h3 {
    font-size: 22px;
    margin: 0 0 10px;
    line-height: 1.12;
  }

  .pill-btn {
    font-size: 10px;
    padding: 6px 12px;
  }

  .usage {
    padding: 20px 0;
  }

  .usage-inner {
    padding-top: 6px;
  }

  .usage-cards {
    grid-template-columns: 1fr;
  }

  .usage-card {
    padding: 12px 12px 14px;
  }

  .usage-card img {
    height: clamp(96px, 34vw, 140px);
    margin-bottom: 8px;
  }

  .usage-card h3 {
    font-size: 36px;
    margin-bottom: 6px;
  }

  .usage-card p {
    font-size: 14px;
    line-height: 1.36;
  }

  .design-hero {
    padding: 20px 0 16px;
  }

  .design-hero h1 {
    font-size: 28px;
    margin-bottom: 10px;
  }

  .design-hero p,
  .benefits-copy ul,
  .tech-intro p,
  .order-inner ol {
    font-size: 12px;
    line-height: 1.45;
  }

  .benefits-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }

  .benefits-copy h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 30px;
  }

  .design-technical {
    padding: 24px 0 30px;
  }

  .tech-figure {
    margin-top: 16px;
  }

  .tech-strip-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tech-figure-strip,
  .tech-figure-scale {
    max-width: 180px;
  }

  .tech-uv-grid {
    margin-top: 18px;
  }

  .order-section {
    padding: 28px 0 32px;
  }

  .social-icons {
    margin-top: 8px;
    gap: 10px;
  }

  .social-icons img {
    width: 20px;
    height: 20px;
  }

  .history h3 {
    font-size: 24px;
    margin: 10px 0;
  }

  .site-footer {
    padding: 18px 0 14px;
  }

  .footer-logo {
    margin-bottom: 10px;
  }

  address {
    font-size: 10px;
    margin-bottom: 8px;
  }

  .legal {
    margin-top: 12px;
    padding-top: 10px;
    gap: 8px;
  }

  .legal p,
  .legal a {
    font-size: 9px;
  }

  .legal nav {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .fanit-hero {
    padding: 22px 0 18px;
  }

  .fanit-hero h1 {
    font-size: 30px;
    margin-bottom: 10px;
  }

  .fanit-hero p {
    margin-bottom: 10px;
  }

  .fanit-products {
    padding: 4px 0 24px;
  }

  .fanit-product-grid {
    gap: 18px;
  }

  .product-card {
    padding: 12px 12px 14px;
  }

  .product-visual {
    aspect-ratio: 1 / 1;
    height: auto;
  }

  .product-card h2 {
    font-size: 21px;
    margin-bottom: 6px;
  }

  .product-card p {
    font-size: 12px;
  }

  .published-section {
    padding: 20px 0 22px;
  }

  .published-head h2 {
    font-size: 26px;
    margin-bottom: 6px;
  }

  .published-head p {
    font-size: 11px;
  }

  .published-card {
    width: 100%;
  }

  .published-card-title {
    font-size: 11px;
    line-clamp: 2;
  }

  .published-card-meta {
    font-size: 11px;
  }

  .published-thumb {
    aspect-ratio: 1.18 / 1;
    width: 100%;
  }

  .note-modal {
    padding: 0;
  }

  .note-modal-panel {
    width: 100%;
    height: 100%;
    max-height: none;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(260px, 1fr) auto;
  }

  .note-modal-close {
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    font-size: 36px;
  }

  .note-modal-media {
    min-height: 0;
    aspect-ratio: auto;
    height: min(46vh, 420px);
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .note-modal-media img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
  }

  .note-modal-content {
    padding: 22px 28px 84px;
  }

  .note-modal-content h2 {
    font-size: 32px;
    margin-bottom: 18px;
  }

  .note-modal-details {
    gap: 14px;
  }

  .note-modal-details dt {
    font-size: 18px;
  }

  .note-modal-details dd {
    font-size: 16px;
  }

  .note-modal-arrows {
    right: 16px;
    bottom: 16px;
    gap: 12px;
  }

  .note-modal-arrow {
    width: 48px;
    height: 48px;
    font-size: 24px;
    line-height: 0;
  }

  .published-page {
    gap: 10px;
    padding: 0 0 4px;
  }

  .published-card-copy {
    min-height: 38px;
    margin-top: 8px;
    gap: 2px;
  }

  .gallery-footer {
    margin-top: 10px;
  }

  .contact-section {
    padding: 28px 0 32px;
  }

  .contact-inner {
    max-width: none;
  }

  .contact-inner > p {
    font-size: 12px;
    margin-bottom: 18px;
  }

  .two-up {
    grid-template-columns: 1fr;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 12px;
    padding: 8px 10px;
  }
}

.gallery-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 0 16px;
  flex-wrap: wrap;
}

/* Fanit & keraily page - Gallery search, paging, and empty state */

.gallery-search {
  flex: 1 1 150px;
}

.gallery-search input {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  font: inherit;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  box-shadow: 0 8px 22px rgba(17, 17, 47, 0.12);
}

.gallery-search input::placeholder {
  color: rgba(47, 46, 92, 0.58);
}

.gallery-results-count {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

.gallery-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gallery-page-button {
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #f4f3fb;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.gallery-page-button.active {
  background: #f4d7e9;
  color: var(--navy);
  border-color: #f4d7e9;
}

.gallery-page-ellipsis {
  color: rgba(255, 255, 255, 0.65);
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
}

.published-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 36px 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
}

@media (max-width: 768px) {
  /* Fanit & keraily page - Mobile gallery controls */
  .gallery-tools {
    flex-direction: column;
    align-items: stretch;
    margin: 0 0 2px;
    gap: 0;
  }

  .gallery-results-count {
    display: none;
  }

  .published-carousel {
    margin-top: 0;
  }

  .gallery-pages {
    gap: 6px;
  }

  .gallery-page-button {
    min-width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .published-empty {
    padding: 24px 12px;
    font-size: 14px;
  }
}

/* Shared - Final footer overrides used by all pages */
footer.site-footer {
  background: #2f2e5c !important;
  color: #f4f3fb !important;
  padding: 64px 0 40px !important;
}

footer.site-footer > .container.footer-top {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  width: min(100%, 1180px);
}

footer.site-footer > .container.footer-top * {
  text-align: center !important;
}

footer.site-footer > .container.footer-top .footer-logo {
  margin-bottom: 18px !important;
  display: inline-flex;
  justify-content: center;
}

footer.site-footer > .container.footer-top .footer-logo .logo {
  width: 220px;
  height: auto;
}

footer.site-footer > .container.footer-top address {
  font-style: normal;
  line-height: 1.5;
  margin-bottom: 26px;
  font-size: 18px;
  max-width: 520px;
}

footer.site-footer > .container.footer-top .social-icons {
  margin-top: 6px;
  gap: 22px;
  justify-content: center !important;
  align-items: center;
}

footer.site-footer > .container.footer-top .social-icons img {
  width: 44px;
  height: 44px;
  filter: brightness(0) invert(1);
}

footer.site-footer > .container.legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px;
  width: min(100%, 1180px);
}

footer.site-footer > .container.legal p,
footer.site-footer > .container.legal a {
  margin: 0;
  font-size: 15px;
  color: #f4f3fb;
}

footer.site-footer > .container.legal a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

footer.site-footer > .container.legal nav {
  display: flex;
  gap: 32px;
}

.design-page .design-gallery .gallery-card {
  display: grid;
  place-items: center;
}

/* Tee oma seteli page - Final image fit override */

.design-page .design-gallery .gallery-card img {
  width: 100%;
  height: auto;
  transform: none;
  object-fit: contain;
}

@media (max-width: 768px) {
  /* Shared - Footer mobile override */
  footer.site-footer {
    padding: 36px 0 24px !important;
  }

  footer.site-footer > .container.footer-top .footer-logo {
    margin-bottom: 12px;
  }

  footer.site-footer > .container.footer-top .footer-logo .logo {
    width: 170px;
  }

  footer.site-footer > .container.footer-top address {
    font-size: 14px;
    margin-bottom: 16px;
  }

  footer.site-footer > .container.footer-top .social-icons {
    gap: 14px;
    margin-top: 8px;
  }

  footer.site-footer > .container.footer-top .social-icons img {
    width: 32px;
    height: 32px;
  }

  footer.site-footer > .container.legal {
    margin-top: 18px;
    padding-top: 14px;
    flex-direction: column;
  }

  footer.site-footer > .container.legal nav {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Shared - Cookie settings modal (all pages) */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease, visibility 0s linear 160ms;
}

.cookie-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 160ms ease, visibility 0s linear 0s;
}

.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 35, 0.72);
}

.cookie-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  background: #ffffff;
  padding: 32px;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  text-align: left;
}

.cookie-modal-panel h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 28px;
}

.cookie-modal-panel p {
  margin: 0 0 20px;
  font-size: 16px;
  color: var(--text);
}

.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: #f1f1f4;
  color: var(--navy);
  font-size: 20px;
  cursor: pointer;
}

.cookie-options {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.cookie-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: var(--navy);
}

.cookie-option input {
  width: 18px;
  height: 18px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cookie-actions .cookie-btn {
  font-size: 14px;
}

@media (max-width: 600px) {
  .cookie-modal-panel {
    padding: 24px;
  }

  .cookie-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Blog - Loading, Error, and Empty States */

.loading-state,
.error-state,
.empty-state {
  text-align: center;
  padding: 40px 20px;
  font-size: 16px;
  color: var(--text);
}

.loading-state {
  color: #666;
}

.error-state {
  color: #d32f2f;
  background: #ffebee;
  border-radius: 8px;
  padding: 20px;
}

.empty-state {
  color: #666;
}

/* Blog - Responsive YouTube Embed */

.youtube-embed-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin: 24px 0;
}

.youtube-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Blog - Full Post Display */

.blog-posts-full-container {
  display: none; /* Hidden by default, can be toggled */
}

.blog-post-full {
  max-width: 800px;
  margin: 60px auto 40px;
  padding: 40px 20px;
  border-top: 2px solid var(--navy);
  scroll-margin-top: 80px; /* Offset for sticky header */
}

.blog-post-full:first-of-type {
  margin-top: 40px;
}

.blog-post-full img.blog-cover-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 24px;
  display: block;
}

.blog-post-header {
  margin-bottom: 28px;
}

.blog-post-header h2 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 12px 0;
  color: var(--navy);
  line-height: 1.2;
}

.blog-post-date {
  font-size: 14px;
  color: #666;
  margin: 0;
  font-weight: 500;
}

.blog-post-content {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}

.blog-post-content p {
  margin: 0 0 16px 0;
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4,
.blog-post-content h5,
.blog-post-content h6 {
  color: var(--navy);
  font-weight: 700;
  margin: 24px 0 12px 0;
  line-height: 1.3;
}

.blog-post-content h1 { font-size: 28px; }
.blog-post-content h2 { font-size: 24px; }
.blog-post-content h3 { font-size: 20px; }
.blog-post-content h4 { font-size: 18px; }
.blog-post-content h5 { font-size: 16px; }
.blog-post-content h6 { font-size: 14px; }

.blog-post-content a {
  color: #0066cc;
  text-decoration: none;
  border-bottom: 1px solid #0066cc;
}

.blog-post-content a:hover {
  text-decoration: underline;
}

.blog-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
  display: block;
}

.blog-post-content ul,
.blog-post-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.blog-post-content li {
  margin-bottom: 8px;
}

.blog-post-content blockquote {
  border-left: 4px solid var(--navy);
  padding: 12px 20px;
  margin: 20px 0;
  background: var(--light-gray);
  font-style: italic;
  color: #555;
}

.blog-post-content code {
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

.blog-post-content pre {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 16px 0;
}

.blog-post-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* Blog - Responsive Design */

@media (max-width: 980px) {
  .blog-post-full {
    padding: 32px 20px;
  }

  .blog-post-header h2 {
    font-size: 26px;
  }

  .blog-post-content {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .blog-post-full {
    margin: 40px auto 28px;
    padding: 24px 16px;
  }

  .blog-post-header h2 {
    font-size: 22px;
  }

  .blog-post-content h1 { font-size: 20px; }
  .blog-post-content h2 { font-size: 18px; }
  .blog-post-content h3 { font-size: 16px; }

  .blog-post-content {
    font-size: 14px;
  }

  .youtube-embed-wrapper {
    margin: 16px 0;
  }
}

@media (max-width: 640px) {
  .blog-post-full {
    margin: 28px auto 20px;
    padding: 16px 12px;
  }

  .blog-post-header h2 {
    font-size: 20px;
  }

  .loading-state,
  .error-state,
  .empty-state {
    padding: 24px 12px;
  }
}