/* ========== FONTS (self-hosted IBM Plex Sans) ========== */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-sans-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-sans-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ========== RESET & BASE ========== */
:root {
  --gold: #BB2632;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: #A3A3A3 #F2F2F2;
  scrollbar-width: thin;
  background-color: #fff;
}

body {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 400;
  color: #202020;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

ul, ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
}

input, textarea {
  border: none;
  outline: none;
  font-family: inherit;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 {
  font-weight: 500;
  color: #070707;
  line-height: 1.1;
}

h1 {
  font-size: clamp(36px, 4vw, 62px);
}

h2 {
  font-size: clamp(32px, 3.5vw, 40px);
}

h3 {
  font-size: clamp(20px, 2.5vw, 32px);
  line-height: clamp(25px, 2.7vw, 32px);
}

h4 {
  font-size: clamp(18px, 1.8vw, 20px);
  line-height: clamp(23.4px, 2.3vw, 26px);
}

.p1 {
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: clamp(21px, 2vw, 24px);
}

.p2 {
  font-size: clamp(13px, 1.2vw, 14px);
  line-height: clamp(18px, 1.8vw, 20px);
}

.p3 {
  font-size: clamp(11px, 1vw, 12px);
  line-height: clamp(16px, 1.5vw, 18px);
}

.medium { font-weight: 500; }
.color-gray { color: #6a6a6a; }
.color-white { color: #fff; }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  border-radius: 10px;
  padding: 0 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn .btn-content {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.4s ease;
}

.btn .btn-content img {
  width: auto;
  height: 20px;
  object-fit: contain;
}

.btn::before {
  content: "";
  z-index: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 100%;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.45s cubic-bezier(0.215, 0.61, 0.355, 1),
              border-radius 0s 0.45s,
              transform 0s 0.45s;
}

.btn:hover::before {
  opacity: 1;
  border-radius: 0;
  transform: translate(0);
  transition: border-radius 0.45s cubic-bezier(0.215, 0.61, 0.355, 1),
              transform 0.45s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.btn-gold {
  background: #BB2632;
}

.btn-gold .btn-content {
  color: #fff;
}

.btn-gold .btn-content img {
  filter: brightness(0) invert(1);
}

.btn-gold::before {
  background-color: #D63948;
}

.btn-dark {
  background: #070707;
}

.btn-dark .btn-content {
  color: #fff;
}

.btn-dark::before {
  background: #202020;
}

.btn-full {
  width: 100%;
}

/* ========== HEADER ========== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 20px 58px;
  height: 86px;
  gap: 20px;
  font-size: 15px;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.4s ease;
}

.head-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

header::before {
  content: none;
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(75px);
  -webkit-backdrop-filter: blur(75px);
  transition: all 0.4s ease;
}

header.is-scrolled {
  background: transparent;
}

header.is-scrolled::before {
  content: "";
}

.logo-link {
  flex-shrink: 0;
}

.site-logo {
  height: 44px;
  width: auto;
}

.head-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: #070707;
  font-weight: 400;
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: #070707;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-mobile-extras {
  display: none;
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.lang-link {
  color: #070707;
  transition: color 0.3s;
  cursor: pointer;
}

.lang-link.active {
  color: #BB2632;
}

.lang-link:hover {
  color: #BB2632;
}

.head-phone-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #070707;
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
  transition: opacity 0.3s;
}

.head-phone-link:hover {
  opacity: 0.7;
}

.head-phone-link img {
  width: 20px;
  height: 20px;
}

.icon-yellow {
  filter: brightness(0) saturate(100%) invert(20%) sepia(75%) saturate(2950%) hue-rotate(338deg) brightness(91%) contrast(96%);
}

.head-cta-btn {
  height: 46px;
  border-radius: 10px;
  width: fit-content;
}

.head-cta-btn .btn-content {
  font-size: 15px;
}

.head-phone-circle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #BB2632;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}

.head-phone-circle img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.head-phone-circle:hover {
  background: #D63948;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 2px;
  background: #070707;
  transition: transform 0.4s ease;
}

.hamburger span:nth-child(1) { transform-origin: 0 0; }
.hamburger span:nth-child(3) { transform-origin: 0 100%; }

header.nav-open .hamburger span:nth-child(1) {
  transform: rotate(45deg);
  width: calc(100% + 1px);
}

header.nav-open .hamburger span:nth-child(2) {
  transform: scaleY(0);
}

header.nav-open .hamburger span:nth-child(3) {
  transform: rotate(-45deg);
  width: calc(100% + 1px);
}

@media (max-width: 1280px) {
  header { padding-inline: 24px; }
}

@media (max-width: 1160px) {
  .hamburger { display: flex; }
  .head-cta-btn { display: none; }
  .head-phone-link { display: none; }
  .head-phone-circle { display: flex; }

  .head-nav {
    position: fixed;
    top: 86px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    padding: 32px 16px 24px;
    border-top: 1px solid #F2F2F2;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    gap: 16px;
    overflow-y: auto;
    z-index: 99;
  }

  header.nav-open .head-nav {
    transform: translateX(0);
  }

  header.nav-open.is-scrolled {
    background: #fff;
  }

  .nav-link {
    font-size: 16px;
  }

  .nav-mobile-extras {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: auto;
    padding-top: 32px;
    border-top: 1px solid #F2F2F2;
  }
}


@media (max-width: 768px) {
  header {
    height: 78px;
    padding: 16px 16px;
    gap: 0;
  }

  .head-nav {
    top: 78px;
    height: calc(100% - 78px);
  }

  .site-logo { height: 34px; }

  header.nav-open .head-phone-circle { display: none; }
}

/* ========== HERO SECTION ========== */
.hero-section {
  padding: 0;
}

.hero-bg {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 35%, rgba(0, 0, 0, 0.1) 55%, rgba(0, 0, 0, 0) 65%),
    url('../assets/picture/japan-hero.jpg') no-repeat center center / cover;
}

.hero-content {
  flex: 0 0 58.33%;
  width: 58.33%;
  padding: 80px 58px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 580px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.hero-content h1 {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}


.hero-features {
  display: flex;
  gap: 16px;
  margin-top: 48px;
}

.hero-features li {
  display: flex;
  align-items: center;
  padding: 18px 16px;
  gap: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  max-width: 252px;
}

.hero-icon-circle {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: #BB2632;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-icon-circle img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.hero-features li span {
  color: #fff;
  font-size: clamp(13px, 1.2vw, 14px);
  line-height: clamp(18px, 1.8vw, 20px);
}

.hero-form-wrap {
  flex: 0 0 41.67%;
  width: 41.67%;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 500px;
}

.form-header {
  margin-bottom: 8px;
}

.form-icon-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-icon-circle img {
  width: 20px;
  height: 20px;
}

@media (min-resolution: 2dppx) {
  .hero-bg {
    background:
      linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 35%, rgba(0, 0, 0, 0.1) 55%, rgba(0, 0, 0, 0) 65%),
      url('../assets/picture/japan-hero@2x.jpg') no-repeat center center / cover;
  }
}

@media (max-width: 1280px) {
  .hero-content { padding: 60px 24px; }
  .hero-form-wrap { padding: 32px 24px; }
}

@media (max-width: 1025px) {
  .hero-features {
    flex-direction: column;
    margin-top: 20px;
    gap: 8px;
  }
  .hero-features li {
    max-width: 70%;
    padding: 14px 12px;
  }
  .form-card { padding: 20px; gap: 16px; }
}

@media (max-width: 768px) {
  .hero-bg {
    flex-direction: column;
    background: none;
  }
  .hero-content {
    flex: none;
    width: 100%;
    padding: 48px 16px;
    min-height: auto;
    background:
      linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.55) 100%),
      url('../assets/picture/japan-hero_mob.jpg') no-repeat top center / cover;
  }
  .hero-content h1 {
    text-align: center;
    font-size: clamp(1.5rem, 7vw, 2.5rem);
  }
  .hero-features li { max-width: 100%; }
  .hero-form-wrap {
    flex: none;
    width: 100%;
    padding: 48px 16px;
    background: #f5f5f5;
  }
  .form-card {
    box-shadow: 0 2px 12px rgba(7, 7, 7, 0.08);
  }
}

/* ========== FORM STYLES ========== */
form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.form-field label {
  font-weight: 400;
}

.form-field input {
  display: flex;
  align-items: center;
  height: 54px;
  padding: 0 15px;
  border-radius: 6px;
  color: #070707;
  font-size: 16px;
  line-height: 24px;
  border: 1px solid transparent;
  transition: all 0.4s ease;
  background: #f2f2f2;
}

.form-field input::placeholder {
  color: #6a6a6a;
  font-size: 16px;
}

.form-field input:focus,
.form-field input:hover {
  border-color: #BB2632;
}

.form-field.is-invalid input {
  border-color: #e34d42;
}

.error-message {
  color: #e34d42;
  font-size: 13px;
  min-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.form-field.is-invalid .error-message {
  opacity: 1;
  transform: translateY(0);
}

.form-title {
  display: block;
  font-size: clamp(20px, 2.5vw, 32px);
  line-height: clamp(25px, 2.7vw, 32px);
  font-weight: 500;
  color: #070707;
  margin-bottom: 6px;
}

.form-subtitle {
  display: block;
  font-size: clamp(18px, 1.8vw, 20px);
  line-height: clamp(23.4px, 2.3vw, 26px);
  font-weight: 500;
  color: #070707;
}

.form-agreement {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: -8px;
}

.agreement-lock {
  flex-shrink: 0;
  margin-top: 1px;
  opacity: 0.5;
}

.icon-white {
  filter: brightness(0) invert(1);
}

@media (max-width: 1025px) {
  form { gap: 12px; }
}

/* ========== SECTIONS COMMON ========== */
section {
  padding: 80px 58px;
}

.section-inner {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 1280px) {
  section { padding-inline: 24px; }
}

@media (max-width: 768px) {
  section { padding: 48px 16px; }
}

/* ========== ABOUT SECTION ========== */
.about-section {
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.about-section {
  overflow: hidden;
}

.about-image {
  border-radius: 12px;
  overflow: visible;
  position: relative;
  background: url('../assets/picture/bg_section-about.jpg') no-repeat center top / cover;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  margin-top: -40px;
  margin-bottom: -40px;
}

@media (min-resolution: 2dppx) {
  .about-image {
    background-image: url('../assets/picture/bg_section-about@2x.jpg');
  }
}

.about-image-overlay {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-avatars {
  width: auto;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-desc {
  color: #6a6a6a;
}

.about-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid #F2F2F2;
}

.about-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #BB2632;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-circle img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.icon-circle.gold {
  background: #BB2632;
}

@media (max-width: 1025px) {
  .about-image-overlay {
    margin: 12px;
  }
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-image {
    order: 2;
    min-height: 350px;
    margin-top: 0;
    margin-bottom: 0;
    border-radius: 12px;
    background-image: url('../assets/picture/bg_section-about_mob.jpg');
  }
  .about-text {
    order: 1;
  }
  .about-image-overlay {
    margin: 12px;
    padding: 10px;
  }
}

/* ========== PROCEDURE SECTION ========== */
.procedure-section {
  background: #f5f5f5;
}

.procedure-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.procedure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.procedure-steps {
  display: flex;
  flex-direction: column;
}

.procedure-btn {
  width: fit-content;
  height: 46px;
}

.procedure-btn .btn-content {
  font-size: 15px;
}

.procedure-image {
  border-radius: 12px;
  overflow: hidden;
  background: url('../assets/picture/japan-procedure.jpg') no-repeat center center / cover;
  min-height: 100%;
}

@media (min-resolution: 2dppx) {
  .procedure-image {
    background-image: url('../assets/picture/japan-procedure@2x.jpg');
  }
}

.step-item {
  display: flex;
  gap: 16px;
  padding-bottom: 24px;
  position: relative;
}

.step-item::before {
  content: "";
  width: 1px;
  position: absolute;
  top: 0;
  left: 28px;
  height: 100%;
  background-color: #BB2632;
  transform: scaleY(0);
  transition: transform 0.4s linear;
  z-index: 0;
}

.step-item.last::before {
  content: none;
}

.step-item.animated::before {
  transform: scaleY(1);
}

.step-item.animated .step-circle {
  background: #BB2632;
  color: #fff;
}

.step-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid #BB2632;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 500;
  flex-shrink: 0;
  z-index: 1;
  transition: background 0.4s linear;
}

.step-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 14px;
}

.step-title {
  font-size: clamp(18px, 1.8vw, 20px);
  font-weight: 500;
  color: #070707;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .procedure-header {
    margin-bottom: 24px;
    text-align: left;
  }
  .procedure-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .procedure-image {
    order: -1;
    min-height: 300px;
    background-image: url('../assets/picture/japan-procedure_mob.jpg');
  }
  .procedure-btn {
    width: 100%;
  }
  .step-item { gap: 12px; padding-bottom: 12px; }
  .step-item::before { left: 23px; }
  .step-circle { width: 46px; height: 46px; font-size: 18px; }
  .step-text { padding-top: 10px; }
}

/* ========== PRICING SECTION ========== */
.pricing-section {
  background: #fff;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  background: #f5f5f5;
  border: 1px solid #F2F2F2;
  border-radius: 12px;
  padding: 32px;
  gap: 16px;
  position: relative;
}

.pricing-card.popular {
  background: #BB2632;
  border-color: #BB2632;
}

.pricing-card.popular h3,
.pricing-card.popular .pricing-card-title,
.pricing-card.popular .price,
.pricing-card.popular .pricing-card-top p,
.pricing-card.popular .deadline span,
.pricing-card.popular .pricing-features li span {
  color: #fff;
}

.pricing-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #BB2632;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pricing-card-icon.white {
  background: #fff;
}

.pricing-card-icon img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.pricing-card-icon.white img {
  filter: brightness(0) saturate(100%) invert(20%) sepia(75%) saturate(2950%) hue-rotate(338deg) brightness(91%) contrast(96%);
}

.pricing-card-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pricing-card .btn {
  margin-top: auto;
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 8px;
  background: #fefefe;
  font-size: clamp(11px, 1vw, 12px);
  color: #070707;
  font-weight: 500;
  align-self: flex-start;
}

.pricing-card-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-card-top h3,
.pricing-card-top .pricing-card-title {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.2;
  font-weight: 500;
}

.price {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 500;
  color: #070707;
  line-height: 1.1;
  margin: 8px 0;
}

.price span {
  font-size: 20px;
  font-weight: 400;
}

.deadline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.deadline img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  margin-top: auto;
  margin-bottom: 16px;
}

.pricing-card:not(.popular) .pricing-features {
  border-top-color: #e7e7e7;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pricing-features li img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

@media (max-width: 1100px) {
  .pricing-card { padding: 20px; }
}

@media (max-width: 768px) {
  .pricing-cards {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
  }
}

/* ========== INFO TEXT SECTIONS ========== */
.info-section {
  background: #fff;
}

.info-section.alt {
  background: #f5f5f5;
}

.info-block {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-block h2 {
  text-align: center;
  margin-bottom: 8px;
}

.info-block p {
  color: #6a6a6a;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: #f5f5f5;
  border-radius: 10px;
  line-height: 1.55;
}

.info-section.alt .info-list li {
  background: #fff;
}

.info-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #BB2632;
  flex-shrink: 0;
  margin-top: 9px;
}

.info-list li strong {
  color: #070707;
  font-weight: 500;
}

.info-cta-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .info-block h2 { text-align: left; }
  .info-list li { padding: 14px 16px; }
}

/* ========== NEED VISA SECTION (REDESIGN) ========== */
.info-need-visa {
  background: linear-gradient(180deg, #fafafa 0%, #f3f3f3 100%);
  position: relative;
  overflow: hidden;
}

.info-need-visa::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(187, 38, 50, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.info-need-visa::after {
  content: '';
  position: absolute;
  bottom: -140px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(187, 38, 50, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.need-visa-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
}

.need-visa-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(187, 38, 50, 0.08);
  color: #BB2632;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 4px;
}

.section-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #BB2632;
  border-radius: 50%;
}

.need-visa-content h2 {
  margin: 0;
  text-align: left;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
}

.need-visa-content .need-visa-lead {
  color: #2b2b2b;
  font-weight: 500;
}

.need-visa-content p {
  color: #4a4a4a;
  margin: 0;
}

.need-visa-content .info-cta-wrap {
  margin-top: 16px;
  align-self: flex-start;
}

.quick-answer-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(20, 20, 20, 0.08), 0 4px 16px rgba(20, 20, 20, 0.04);
  position: sticky;
  top: 110px;
}

.quick-answer-header {
  background: linear-gradient(135deg, #BB2632 0%, #8a1c25 100%);
  color: #fff;
  padding: 28px 28px 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  overflow: hidden;
}

.quick-answer-header::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.quick-answer-check {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.quick-answer-check img {
  filter: brightness(0) invert(1);
  width: 30px;
  height: 30px;
}

.quick-answer-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.quick-answer-yes {
  font-family: 'Tinos', serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  letter-spacing: 0.04em;
}

.quick-answer-subtitle {
  font-size: 14px;
  opacity: 0.92;
  font-weight: 500;
  line-height: 1.35;
}

.quick-answer-facts {
  list-style: none;
  padding: 8px 28px 4px;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.quick-answer-facts li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}

.quick-answer-facts li:last-child {
  border-bottom: none;
}

.quick-fact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(187, 38, 50, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quick-fact-icon img {
  width: 20px;
  height: 20px;
  filter: brightness(0) saturate(100%) invert(20%) sepia(75%) saturate(2950%) hue-rotate(338deg) brightness(91%) contrast(96%);
}

.quick-fact-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.quick-fact-label {
  font-size: 12px;
  color: #888;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.quick-fact-value {
  font-size: 15px;
  color: #070707;
  font-weight: 500;
  line-height: 1.4;
}

.quick-answer-note {
  margin: 0;
  padding: 14px 28px 22px;
  font-size: 13px;
  color: #888;
  line-height: 1.45;
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.quick-answer-note::before {
  content: 'i';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #BB2632;
  color: #fff;
  font-family: 'Tinos', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

@media (max-width: 900px) {
  .need-visa-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    max-width: 640px;
  }
  .quick-answer-card { position: static; }
}

@media (max-width: 768px) {
  .info-need-visa::before,
  .info-need-visa::after { display: none; }
  .need-visa-content h2 { font-size: 26px; }
  .quick-answer-header { padding: 22px 20px; gap: 14px; }
  .quick-answer-check { width: 52px; height: 52px; }
  .quick-answer-check img { width: 26px; height: 26px; }
  .quick-answer-yes { font-size: 30px; }
  .quick-answer-subtitle { font-size: 13px; }
  .quick-answer-facts { padding: 4px 20px 0; }
  .quick-answer-facts li { padding: 14px 0; gap: 12px; }
  .quick-fact-icon { width: 36px; height: 36px; }
  .quick-fact-value { font-size: 14px; }
  .quick-answer-note { padding: 14px 20px 20px; }
  .need-visa-content .info-cta-wrap { align-self: stretch; }
  .need-visa-content .info-cta-wrap .btn { width: 100%; }
}

/* ========== DOCUMENTS SECTION ========== */
.docs-section {
  background: #f5f5f5;
}

.docs-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  max-width: 760px;
}

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

.doc-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #F2F2F2;
}

.doc-item-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #BB2632;
  color: #fff;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

.doc-item p {
  line-height: 1.55;
  margin: 0;
}

.doc-item p strong {
  display: block;
  color: #070707;
  font-weight: 500;
  margin-bottom: 2px;
}

.docs-note {
  margin-top: 24px;
  padding: 20px 24px;
  background: #fff;
  border-radius: 12px;
  border-left: 4px solid #BB2632;
}

.docs-note h3 {
  margin-bottom: 8px;
  font-size: clamp(18px, 1.8vw, 20px);
  line-height: clamp(23.4px, 2.3vw, 26px);
}

.docs-note ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 20px;
  list-style: disc;
  color: #6a6a6a;
}

.docs-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

@media (max-width: 768px) {
  .docs-grid { grid-template-columns: 1fr; }
  .docs-note { padding: 16px 18px; }
}

/* ========== VISA TYPES SECTION ========== */
.types-section {
  background: #fff;
}

.types-mobile {
  display: none;
}

.types-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.type-card {
  background: #f5f5f5;
  border: 1px solid #F2F2F2;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  transition: transform 0.4s ease;
}

.type-card:hover {
  transform: scale(1.02);
}

.type-card-image {
  width: 200px;
  min-height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

.type-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.type-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.type-card-body h3,
.type-card-body .type-card-title {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.2;
  font-weight: 500;
}

.type-card-body .deadline {
  margin-top: auto;
  padding-top: 8px;
}

/* Vertical card for mobile swiper */
.type-card-vertical {
  flex-direction: column;
}

.type-card-vertical .type-card-image {
  width: 100%;
  min-height: 0;
  height: 200px;
}

.type-card-vertical .type-card-body {
  padding: 16px;
}

/* Carousel */
.types-carousel {
  position: relative;
  overflow: hidden;
  padding-bottom: 50px;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
  gap: 12px;
}

.carousel-slide {
  flex: 0 0 calc(87% - 6px);
  min-width: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.carousel-dot {
  width: 14px;
  height: 14px;
  background: #e7e7e7;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
}

.carousel-dot::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: border-color 0.4s ease;
}

.carousel-dot.active {
  background: #BB2632;
}

.carousel-dot.active::before {
  border-color: #BB2632;
}

@media (max-width: 768px) {
  .types-desktop {
    display: none;
  }
  .types-mobile {
    display: block;
    margin-top: 24px;
  }
}

/* ========== CONSULTATION SECTION ========== */
.consultation-section {
  padding: 0;
  background: #f5f5f5;
}

.consultation-top {
  padding: 126px 0 0;
  position: relative;
}

.consultation-top::before {
  content: "";
  background: url('../assets/picture/bg_consultant.png') no-repeat center bottom / contain;
  height: 100%;
  width: 490px;
  position: absolute;
  top: 0;
  right: 12%;
  z-index: 2;
}

.consultation-top .section-inner {
  padding: 80px 56px;
  background: #BB2632;
  position: relative;
  z-index: 0;
  overflow: hidden;
}

.consultation-top .section-inner::after {
  content: "";
  position: absolute;
  top: -80px;
  bottom: -80px;
  right: -60px;
  width: 68%;
  max-width: 720px;
  background-color: #0a0a0a;
  -webkit-mask: url('../assets/picture/japan-silhouette.svg') no-repeat center center / auto 140%;
          mask: url('../assets/picture/japan-silhouette.svg') no-repeat center center / auto 140%;
  opacity: 0.22;
  z-index: -1;
  pointer-events: none;
}

.consultation-content {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.consultation-content h2,
.consultation-content p,
.consultation-content .consultation-list li span {
  color: #fff;
}

@media (min-width: 769px) {
  .consultation-content h2 {
    white-space: nowrap;
  }
}

.consultation-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.consultation-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.consultation-check {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  background: #070707;
  display: flex;
  align-items: center;
  justify-content: center;
}

.consultation-check img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

@media (min-resolution: 2dppx) {
  .consultation-top::before {
    background-image: url('../assets/picture/bg_consultant@2x.png');
  }
}

@media (max-width: 1280px) {
  .consultation-top::before { right: 5%; }
  .consultation-top .section-inner { padding-inline: 24px; }
}

@media (max-width: 1025px) {
  .consultation-top { padding-top: 0; }
  .consultation-top::before { width: 390px; }
}

@media (max-width: 768px) {
  .consultation-top::before { content: none; }
  .consultation-top .section-inner {
    padding: 48px 16px;
    background: #BB2632;
  }
  .consultation-top .section-inner::after {
    right: -30px;
    width: 70%;
    max-width: 360px;
    opacity: 0.14;
  }
  .consultation-content { max-width: 100%; }
}

/* ========== SAMPLE DOCUMENTS SECTION ========== */
.sample-section {
  background: #fff;
}

.sample-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 16px 48px;
  align-items: start;
}

.sample-heading {
  display: flex;
  flex-direction: column;
  gap: 16px;
  grid-column: 1;
  grid-row: 1;
}

.sample-labels-wrap {
  grid-column: 1;
  grid-row: 2;
}

.sample-image {
  grid-column: 2;
  grid-row: 1 / 3;
}

.sample-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.sample-label {
  display: flex;
  align-items: center;
  gap: 12px;
  width: calc(50% - 6px);
  cursor: pointer;
  transition: all 0.3s;
}

.label-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #BB2632;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  flex-shrink: 0;
  transition: background 0.3s;
}

.sample-label:hover .label-circle,
.sample-label.active .label-circle {
  background: #BB2632;
}

.sample-image {
  border-radius: 12px;
  overflow: hidden;
  align-self: start;
}

.sample-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (max-width: 768px) {
  .sample-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 24px;
  }
  .sample-heading { grid-column: 1; grid-row: 1; }
  .sample-image { grid-column: 1; grid-row: 2; }
  .sample-labels-wrap { grid-column: 1; grid-row: 3; }
  .sample-label {
    width: calc(50% - 6px);
    gap: 8px;
  }
  .label-circle { width: 28px; height: 28px; font-size: 12px; }
}

/* ========== FAQ SECTION ========== */
.faq-section {
  background: #f5f5f5;
}

.faq-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  max-width: 600px;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.accordion-item {
  background: transparent;
  border: 1px solid #E7E7E7;
  border-radius: 12px;
  padding: 16px;
  transition: background 0.4s ease;
}

.accordion-item.active {
  background: #fff;
}

.accordion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 16px;
}

.accordion-question {
  flex: 1;
}

.accordion-toggle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #070707;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.4s ease;
}

.accordion-toggle img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  transition: transform 0.4s ease;
}

.accordion-item.active .accordion-toggle {
  background: #BB2632;
}

.accordion-item.active .accordion-toggle img {
  transform: rotate(180deg);
  filter: brightness(0);
}

.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}

.accordion-body > * {
  overflow: hidden;
}

.accordion-item.active .accordion-body {
  grid-template-rows: 1fr;
}

.accordion-body > div > p {
  padding-top: 16px;
}

.accordion-body > div > ul {
  padding-top: 8px;
}

.faq-q {
  font-size: clamp(18px, 1.8vw, 20px);
  line-height: clamp(23.4px, 2.3vw, 26px);
}

.faq-steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 12px;
}

@media (max-width: 768px) {
  .accordion-toggle {
    width: 46px;
    height: 46px;
  }
  .accordion-body > div > p { padding-top: 8px; }
  .accordion-body > div > ul { padding-top: 4px; }
}

/* ========== BOOK CONSULTATION SECTION ========== */
.book-section {
  padding: 0;
  background: #BB2632;
}

.book-inner {
  padding: 80px 56px;
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  z-index: 0;
  overflow: hidden;
}

.book-inner::after {
  content: "";
  position: absolute;
  top: -80px;
  bottom: -80px;
  right: -50px;
  width: 68%;
  max-width: 700px;
  background-color: #0a0a0a;
  -webkit-mask: url('../assets/picture/japan-silhouette.svg') no-repeat center center / auto 140%;
          mask: url('../assets/picture/japan-silhouette.svg') no-repeat center center / auto 140%;
  opacity: 0.22;
  z-index: -1;
  pointer-events: none;
}

.book-inner::before {
  content: "";
  background: url('../assets/picture/bg_book-consultant.png') no-repeat center bottom / contain;
  height: 100%;
  width: 435px;
  position: absolute;
  top: 0;
  right: 12%;
  z-index: 2;
}

.book-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
  position: relative;
  z-index: 3;
}

.book-content h2,
.book-content > p,
.book-content .form-field label,
.book-content .form-agreement p,
.book-content .form-agreement a {
  color: #fff;
}

.book-content .agreement-lock {
  filter: brightness(0) invert(1);
}

.book-contacts {
  display: flex;
  gap: 24px;
  margin-top: 8px;
}

.book-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: #fff;
  transition: opacity 0.3s;
}

.book-contact-item:hover {
  opacity: 0.7;
}

.book-contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #070707;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.book-contact-icon img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.book-form {
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.book-form-row {
  display: flex;
  gap: 16px;
}

.book-form-row .form-field {
  flex: 1;
}

.book-form .form-field input {
  background: #fff;
}

@media (min-resolution: 2dppx) {
  .book-inner::before {
    background-image: url('../assets/picture/bg_book-consultant@2x.png');
  }
}

@media (max-width: 1280px) {
  .book-inner {
    padding-inline: 24px;
  }
  .book-inner::before { right: 2%; }
}

@media (max-width: 768px) {
  .book-inner {
    padding: 48px 16px;
  }
  .book-inner::before { content: none; }
  .book-inner::after {
    right: -20px;
    width: 70%;
    max-width: 340px;
    opacity: 0.14;
  }
  .book-content { max-width: 100%; }
  .book-contacts { flex-direction: column; gap: 12px; }
  .book-form-row { flex-direction: column; gap: 12px; }
}

/* ========== FOOTER ========== */
footer {
  background: #070707;
  padding: 50px 58px 0;
  position: relative;
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 350px;
}

.footer-brand .site-logo {
  filter: none;
}

.footer-desc {
  color: #a3a3a3;
}

.footer-contacts {
  display: flex;
  gap: 48px;
}

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

.footer-contact-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-contact-label img {
  width: 20px;
  height: 20px;
}

.footer-label {
  color: #a3a3a3;
  font-size: 14px;
  line-height: 20px;
}

.footer-link {
  color: #fff;
  transition: opacity 0.3s;
}

.footer-link:hover {
  opacity: 0.7;
}

.footer-pages {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(163, 163, 163, 0.3);
}

.footer-pages-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-pages-list a {
  color: #a3a3a3;
  font-size: 13px;
  line-height: 1.8;
  transition: color 0.3s;
}

.footer-pages-list a:hover {
  color: #fff;
}

.footer-copyright {
  margin-top: 24px;
  padding: 24px 0;
  border-top: 1px solid #a3a3a3;
}

.footer-copyright .p3 {
  color: #a3a3a3;
}

@media (max-width: 1280px) {
  footer { padding-inline: 24px; }
}

@media (max-width: 768px) {
  footer {
    padding: 32px 16px 0;
  }
  .footer-grid {
    flex-direction: column;
    gap: 24px;
  }
  .footer-contacts {
    flex-direction: column;
    gap: 20px;
  }
  .footer-pages {
    margin-top: 20px;
    padding-top: 16px;
  }
  .footer-pages-list {
    gap: 4px 16px;
  }
  .footer-copyright {
    margin-top: 16px;
    padding: 20px 0;
  }
}

/* ========== MODAL ========== */
dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  z-index: 200;
  display: none;
  justify-content: center;
  align-items: center;
}

dialog[open] {
  display: flex;
  animation: modalZoom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

dialog::backdrop {
  background: rgba(7, 7, 7, 0.35);
  animation: modalFade 0.4s ease;
}

@keyframes modalZoom {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-container {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  width: 100%;
  max-width: 500px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 5;
  padding: 4px;
}

.modal-close img {
  width: 24px;
  height: 24px;
  filter: brightness(0) saturate(100%) invert(64%) sepia(9%) saturate(12%) hue-rotate(60deg) brightness(102%) contrast(85%);
}

.modal-form-view,
.modal-success-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #BB2632;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon img {
  filter: brightness(0) invert(1);
}

.success-extra {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.success-extra a {
  color: #BB2632;
  font-weight: 500;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .modal-container {
    width: calc(100% - 32px);
    max-width: 500px;
    padding: 48px 20px;
  }
  .modal-close {
    top: 19px;
    right: 19px;
  }
}

/* ========== MOBILE H2 CENTERING ========== */
@media (max-width: 768px) {
  h2 {
    text-align: center;
    font-size: clamp(22px, 5.5vw, 32px);
  }
}

/* ========== SCROLL REVEAL ANIMATIONS ========== */
@keyframes fadeInAndScale {
  from { opacity: 0; transform: scale(0.88) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.reveal > * {
  opacity: 0;
}

.reveal.is-visible > * {
  animation: fadeInAndScale 0.5s ease-out forwards;
}

.reveal.is-visible > *:nth-child(1) { animation-delay: 0.1s; }
.reveal.is-visible > *:nth-child(2) { animation-delay: 0.2s; }
.reveal.is-visible > *:nth-child(3) { animation-delay: 0.3s; }
.reveal.is-visible > *:nth-child(4) { animation-delay: 0.35s; }
.reveal.is-visible > *:nth-child(5) { animation-delay: 0.4s; }
.reveal.is-visible > *:nth-child(6) { animation-delay: 0.45s; }
.reveal.is-visible > *:nth-child(7) { animation-delay: 0.5s; }
.reveal.is-visible > *:nth-child(8) { animation-delay: 0.55s; }

@media (prefers-reduced-motion: reduce) {
  .reveal > * { opacity: 1; }
  .reveal.is-visible > * { animation: none; }
}

/* ========== TERMS & CONDITIONS ========== */
.terms-section {
  padding: 140px 0 80px;
}

.terms-section h1 {
  margin-bottom: 8px;
}

.terms-updated {
  margin-bottom: 40px;
}

.terms-section h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  text-align: left;
}

.terms-section p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.terms-list {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.terms-list li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.terms-section a {
  color: var(--gold);
  text-decoration: underline;
}

.terms-section a:hover {
  opacity: 0.8;
}

.agreement-link {
  text-decoration: underline;
  white-space: nowrap;
}

.nav-terms-link {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.6;
  text-align: center;
}

@media (max-width: 768px) {
  .terms-section {
    padding: 120px 0 60px;
  }
  .terms-section h2 {
    text-align: left;
  }
}

/* ========== TOURIST VISA SUBPAGE ========== */
.tv-breadcrumb {
  background: #fafafa;
  border-bottom: 1px solid #eee;
  padding: 14px 0;
}

.tv-breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #888;
}

.tv-breadcrumb-list a {
  color: #BB2632;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.tv-breadcrumb-list a:hover {
  opacity: 0.7;
}

.tv-breadcrumb-list span.sep {
  color: #ccc;
}

.tv-breadcrumb-list span.current {
  color: #2b2b2b;
}

.content-link {
  color: #BB2632;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(187, 38, 50, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
.content-link:hover,
.content-link:focus-visible {
  text-decoration-color: #BB2632;
  color: #8e1d27;
}

.tv-overview-section {
  padding-top: 80px;
  padding-bottom: 64px;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.tv-overview-section::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(187, 38, 50, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.tv-overview-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
}

.tv-overview-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tv-overview-content h2 {
  margin: 0;
  text-align: left;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
}

.tv-overview-content p {
  color: #4a4a4a;
  margin: 0;
}

.tv-overview-content .tv-overview-lead {
  color: #2b2b2b;
  font-weight: 500;
}

.tv-params-section {
  padding-top: 64px;
  padding-bottom: 64px;
  background: #f5f5f5;
}

.tv-params-section .section-inner {
  max-width: 1080px;
}

.tv-params-section h2 {
  text-align: center;
  margin-bottom: 12px;
}

.tv-params-intro {
  text-align: center;
  color: #6a6a6a;
  max-width: 720px;
  margin: 0 auto 32px;
}

.tv-table-wrap {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(20, 20, 20, 0.06);
}

.tv-params-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.tv-params-table th,
.tv-params-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
}

.tv-params-table tr:last-child th,
.tv-params-table tr:last-child td {
  border-bottom: none;
}

.tv-params-table th {
  width: 38%;
  font-weight: 500;
  color: #2b2b2b;
  background: #fafafa;
}

.tv-params-table td {
  color: #4a4a4a;
}

.tv-params-table td strong {
  color: #070707;
  font-weight: 500;
}

.tv-where-section {
  padding-top: 80px;
  padding-bottom: 80px;
  background: #fff;
}

.tv-where-section .section-inner {
  max-width: 1180px;
}

.tv-where-section h2 {
  text-align: center;
  margin-bottom: 12px;
}

.tv-where-intro {
  text-align: center;
  color: #6a6a6a;
  max-width: 760px;
  margin: 0 auto 32px;
}

.tv-consulate-table-wrap {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  overflow-x: auto;
  box-shadow: 0 12px 40px rgba(20, 20, 20, 0.05);
}

.tv-consulate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 640px;
}

.tv-consulate-table thead th {
  background: linear-gradient(135deg, #BB2632 0%, #8a1c25 100%);
  color: #fff;
  padding: 14px 18px;
  text-align: left;
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tv-consulate-table tbody td {
  padding: 16px 18px;
  border-bottom: 1px solid #f0f0f0;
  color: #4a4a4a;
  vertical-align: top;
}

.tv-consulate-table tbody tr:last-child td {
  border-bottom: none;
}

.tv-consulate-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.tv-consulate-table .tv-city {
  font-weight: 500;
  color: #070707;
  white-space: nowrap;
}

.tv-consulate-table .tv-country-flag {
  display: inline-block;
  margin-right: 6px;
}

.tv-special-section {
  padding-top: 80px;
  padding-bottom: 80px;
  background: #f5f5f5;
}

.tv-special-section h2 {
  text-align: center;
  margin-bottom: 12px;
}

.tv-special-intro {
  text-align: center;
  color: #6a6a6a;
  max-width: 720px;
  margin: 0 auto 32px;
}

.tv-special-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.tv-special-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 26px;
  box-shadow: 0 12px 40px rgba(20, 20, 20, 0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 4px solid #BB2632;
}

.tv-special-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(20, 20, 20, 0.08);
}

.tv-special-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(187, 38, 50, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tv-special-card-icon img {
  width: 22px;
  height: 22px;
  filter: brightness(0) saturate(100%) invert(20%) sepia(75%) saturate(2950%) hue-rotate(338deg) brightness(91%) contrast(96%);
}

.tv-special-card .tv-special-title {
  font-size: clamp(18px, 2vw, 20px);
  font-weight: 500;
  color: #070707;
  line-height: 1.3;
}

.tv-special-card p {
  color: #6a6a6a;
  margin: 0;
}

.tv-callout {
  margin: 32px auto 0;
  max-width: 920px;
  background: #fff;
  border-left: 4px solid #BB2632;
  border-radius: 12px;
  padding: 22px 28px;
  box-shadow: 0 8px 24px rgba(20, 20, 20, 0.04);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.tv-callout-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(187, 38, 50, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tv-callout-icon img {
  width: 20px;
  height: 20px;
  filter: brightness(0) saturate(100%) invert(20%) sepia(75%) saturate(2950%) hue-rotate(338deg) brightness(91%) contrast(96%);
}

.tv-callout-body p {
  margin: 0;
  color: #4a4a4a;
}

.tv-callout-body p strong {
  color: #070707;
  font-weight: 500;
}

.procedure-image.tv-procedure-image {
  background-image: url('../assets/picture/japan-tourist-visa.jpg');
}

@media (min-resolution: 2dppx) {
  .procedure-image.tv-procedure-image {
    background-image: url('../assets/picture/japan-tourist-visa@2x.jpg');
  }
}

@media (max-width: 768px) {
  .procedure-image.tv-procedure-image {
    background-image: url('../assets/picture/japan-tourist-visa_mob.jpg');
  }
}

@media (max-width: 1025px) {
  .tv-overview-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    max-width: 720px;
  }
  .tv-special-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .tv-overview-section { padding-top: 48px; padding-bottom: 40px; }
  .tv-overview-section::before { display: none; }
  .tv-overview-content h2 { font-size: 26px; }
  .tv-params-section,
  .tv-where-section,
  .tv-special-section { padding-top: 48px; padding-bottom: 48px; }
  .tv-params-table { font-size: 14px; }
  .tv-params-table th,
  .tv-params-table td { padding: 12px 16px; }
  .tv-params-table th { width: 42%; }
  .tv-special-grid { grid-template-columns: 1fr; }
  .tv-callout { padding: 18px 20px; gap: 12px; flex-direction: column; }
  .tv-callout-icon { width: 36px; height: 36px; }
  .tv-breadcrumb { padding: 12px 16px; }
  .tv-breadcrumb-list { font-size: 12px; }
}

/* ========== EMBASSY CARD (Consulates page) ========== */
.tv-embassy-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 16px 48px rgba(20, 20, 20, 0.08);
  border-top: 4px solid #BB2632;
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 36px;
}

.tv-embassy-card__title {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.25;
  font-weight: 500;
  color: #070707;
}

.tv-embassy-card__title-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(187, 38, 50, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tv-embassy-card__title-icon img {
  width: 22px;
  height: 22px;
  filter: brightness(0) saturate(100%) invert(20%) sepia(75%) saturate(2950%) hue-rotate(338deg) brightness(91%) contrast(96%);
}

.tv-embassy-card__row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tv-embassy-card__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
  font-weight: 500;
}

.tv-embassy-card__value {
  color: #2b2b2b;
  font-size: 15px;
  line-height: 1.55;
}

.tv-embassy-card__value a {
  color: #BB2632;
  font-weight: 500;
}

.tv-embassy-status {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(187, 38, 50, 0.06) 0%, rgba(187, 38, 50, 0.02) 100%);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #4a4a4a;
}

.tv-embassy-status::before {
  content: '!';
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #BB2632;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
}

@media (max-width: 768px) {
  .tv-embassy-card { padding: 24px 20px; grid-template-columns: 1fr; gap: 18px; }
}

/* ========== FAQ CATEGORY CHIPS (Popular questions page) ========== */
.tv-faq-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 24px auto 36px;
  max-width: 920px;
}

.tv-faq-categories a {
  padding: 8px 16px;
  border-radius: 99px;
  background: #fff;
  border: 1px solid #ececec;
  color: #2b2b2b;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
}

.tv-faq-categories a:hover {
  background: #BB2632;
  color: #fff;
  border-color: #BB2632;
}

.tv-faq-group {
  margin-top: 40px;
}

.tv-faq-group:first-of-type {
  margin-top: 0;
}

.tv-faq-group__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.3;
  font-weight: 500;
  color: #070707;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #BB2632;
}

.tv-faq-group__title-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(187, 38, 50, 0.08);
  color: #BB2632;
  font-size: 14px;
  font-weight: 500;
  flex-shrink: 0;
}

/* ========== DUAL-BLOCK (Digital nomad + Talent page) ========== */
.tv-dual-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}

.tv-dual-block__item {
  background: #fff;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 16px 48px rgba(20, 20, 20, 0.06);
}

.tv-dual-block__heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.tv-dual-block__heading-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #BB2632 0%, #8a1c25 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tv-dual-block__heading-icon img {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1);
}

.tv-dual-block__heading h2 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  text-align: left;
}

.tv-dual-block__lead {
  color: #4a4a4a;
  margin: 0 0 24px;
}

.tv-dual-block__item .tv-params-table th { width: 44%; }

.tv-dual-block__item .tv-table-wrap {
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(20, 20, 20, 0.04);
}

.tv-dual-block__item ul.info-list {
  margin: 0 0 8px;
}

@media (max-width: 768px) {
  .tv-dual-block { gap: 32px; }
  .tv-dual-block__item { padding: 24px 20px; }
  .tv-dual-block__heading { gap: 12px; }
  .tv-dual-block__heading-icon { width: 44px; height: 44px; }
  .tv-dual-block__heading-icon img { width: 20px; height: 20px; }
}

/* ========== FOOTER PAGES LIST tighter for 17 links ========== */
.footer-pages-list {
  gap: 4px 18px;
}

@media (min-width: 769px) {
  .footer-pages-list {
    columns: 2;
    column-gap: 32px;
  }
  .footer-pages-list li {
    break-inside: avoid;
  }
}
