:root {
  --bg-color: #f5f5f7;
  --card-bg: rgba(255, 255, 255, 0.78);
  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  --accent-color: #0071e3;
  --accent-hover: #0077ed;
  --error-color: #ff3b30;
  --success-color: #34c759;
  --border-color: rgba(0, 0, 0, 0.1);
  --focus-ring: rgba(0, 113, 227, 0.3);
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.09);
}

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

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

button,
a,
input {
  font: inherit;
}

.background-elements {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.58;
  animation: float 10s ease-in-out infinite alternate;
}

.blob-1 {
  width: 420px;
  height: 420px;
  background: rgba(0, 113, 227, 0.18);
  top: -130px;
  right: -100px;
}

.blob-2 {
  width: 330px;
  height: 330px;
  background: rgba(52, 199, 89, 0.13);
  bottom: -100px;
  left: -110px;
  animation-delay: -5s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 50px) scale(1.08); }
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  width: 100%;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.topbar {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  opacity: 0.76;
}

.brand-link:hover {
  opacity: 1;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
}

.lang-btn {
  min-width: 44px;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-btn.active {
  background: var(--accent-color);
  color: #fff;
}

.lang-btn:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.center-layout {
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 36px 0 24px;
}

.hero-card,
.container,
.booking-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-card {
  width: 100%;
  max-width: 980px;
  padding: 46px;
}

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

.icon,
.hero-icon {
  width: 48px;
  height: 48px;
  color: var(--accent-color);
  margin-bottom: 16px;
}

.hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 27px;
  font-weight: 600;
}

.hero-icon svg {
  width: 26px;
  height: 26px;
}

h1 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 14px;
}

h2 {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.header p,
.hero-intro {
  max-width: 620px;
  margin: 0 auto;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.choice-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.68);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.choice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.09);
  border-color: rgba(0, 113, 227, 0.2);
  background: rgba(255, 255, 255, 0.86);
}

.choice-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 113, 227, 0.11);
  color: var(--accent-color);
}

.choice-icon svg {
  width: 28px;
  height: 28px;
}

.choice-card p {
  margin-top: 12px;
}

.choice-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--accent-color);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.choice-button::after {
  content: '→';
  font-size: 17px;
  line-height: 1;
}

.container {
  width: 100%;
  max-width: 440px;
  padding: 40px;
  overflow: hidden;
}

.view {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.apple-field {
  position: relative;
  width: 100%;
  height: 60px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  transition: all 0.2s ease;
}

.apple-field:focus-within {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px var(--focus-ring);
  background: #fff;
  transform: translateY(-1px);
}

.apple-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0 16px 0 54px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 17px;
  color: var(--text-primary);
  z-index: 2;
  transition: padding 0.25s cubic-bezier(0.2, 0, 0, 1);
  letter-spacing: 1px;
}

.apple-input::placeholder {
  color: transparent;
}

.apple-prefix {
  position: absolute;
  top: 0;
  left: 16px;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 17px;
  color: var(--text-primary);
  font-weight: 500;
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
  transition: padding 0.25s cubic-bezier(0.2, 0, 0, 1);
}

.apple-label {
  position: absolute;
  left: 54px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
  color: var(--text-secondary);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
  transform-origin: left top;
  z-index: 3;
}

.apple-input:focus,
.apple-input:not(:placeholder-shown) {
  padding-top: 18px;
}

.apple-input:focus ~ .apple-prefix,
.apple-input:not(:placeholder-shown) ~ .apple-prefix {
  padding-top: 18px;
}

.apple-input:focus ~ .apple-label,
.apple-input:not(:placeholder-shown) ~ .apple-label {
  top: 16px;
  left: 16px;
  transform: translateY(-50%) scale(0.72);
  color: var(--accent-color);
  font-weight: 500;
}

.primary-btn {
  width: 100%;
  min-height: 50px;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background-color: var(--accent-color);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.primary-btn:hover {
  background-color: var(--accent-hover);
}

.primary-btn:active {
  transform: scale(0.98);
}

.primary-btn:disabled {
  background-color: var(--text-secondary);
  cursor: not-allowed;
  transform: none;
}

.loader {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hidden {
  display: none !important;
}

.error-message {
  color: var(--error-color);
  font-size: 13px;
  margin-top: -16px;
  margin-bottom: 24px;
  padding: 10px 12px;
  background-color: rgba(255, 59, 48, 0.1);
  border-radius: 8px;
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.success-content {
  text-align: center;
}

.success-icon-wrapper {
  width: 64px;
  height: 64px;
  background-color: rgba(52, 199, 89, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 24px;
}

.success-icon {
  width: 32px;
  height: 32px;
  color: var(--success-color);
}

.success-content h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.success-content p {
  margin-bottom: 26px;
}

.alert-info {
  background-color: rgba(0, 113, 227, 0.1);
  color: var(--accent-color);
  padding: 16px;
  border-radius: 12px;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  text-align: left;
  margin-top: 24px;
  line-height: 1.4;
}

.alert-info svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-right: 12px;
  margin-top: 2px;
}

.booking-card {
  width: 100%;
  max-width: 980px;
  padding: 32px;
}

.booking-frame-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  margin-top: 24px;
}

.booking-frame {
  width: 100%;
  height: min(760px, calc(100vh - 260px));
  min-height: 600px;
  border: 0;
  display: block;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--accent-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.back-link:hover {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .page-shell {
    padding: 18px 16px;
  }

  .center-layout {
    align-items: flex-start;
    padding-top: 28px;
  }

  .hero-card,
  .container,
  .booking-card {
    padding: 28px;
    border-radius: 22px;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .choice-card {
    min-height: 230px;
  }

  .booking-frame {
    min-height: 650px;
    height: 680px;
  }
}

@media (max-width: 430px) {
  .hero-card,
  .container,
  .booking-card {
    padding: 24px;
  }

  .topbar {
    align-items: flex-start;
  }
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  opacity: 1;
}

.brand-logo {
  display: block;
  width: auto;
  height: 34px;
}

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