:root {
  --ink: #172029;
  --muted: #63707d;
  --line: #dfe6ea;
  --paper: #ffffff;
  --soft: #f5f7f8;
  --red: #c7352b;
  --teal: #237f7b;
  --gold: #bb8a32;
  --shadow: 0 18px 50px rgba(16, 26, 34, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
}

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(223, 230, 234, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
}

.brand-logo {
  display: block;
  width: 210px;
  height: 52px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  color: #3f4c56;
  font-size: 15px;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--red);
}

.currency-switcher {
  display: inline-grid;
  grid-template-columns: auto minmax(104px, 128px);
  align-items: center;
  gap: 8px;
  min-width: max-content;
  color: #3f4c56;
  font-size: 13px;
  font-weight: 800;
}

.currency-switcher span {
  color: var(--muted);
}

.currency-switcher select {
  min-height: 40px;
  padding: 0 10px;
  border-color: rgba(199, 53, 43, 0.24);
  background: #fff8f7;
  font-weight: 800;
}

.icon-button,
.menu-toggle {
  display: none;
}

.primary,
.secondary,
.service-card button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.primary {
  color: #fff;
  background: var(--red);
  padding: 0 22px;
  box-shadow: 0 10px 22px rgba(199, 53, 43, 0.22);
}

.primary:hover {
  background: #aa2b23;
}

.primary.small {
  min-height: 40px;
  padding: 0 18px;
}

.primary.full {
  width: 100%;
}

.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(23, 32, 41, 0.42);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: clamp(42px, 8vw, 96px) clamp(20px, 6vw, 80px);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(13, 20, 26, 0.84) 0%, rgba(13, 20, 26, 0.58) 40%, rgba(13, 20, 26, 0.18) 78%),
    linear-gradient(0deg, rgba(13, 20, 26, 0.24), rgba(13, 20, 26, 0.04));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  font-size: clamp(58px, 11vw, 118px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 610px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

.hero-actions,
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-stats {
  gap: 18px;
  margin-top: 34px;
}

.hero-stats span {
  min-width: 132px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.hero-stats strong {
  display: block;
  font-size: 26px;
}

.quick-search {
  position: relative;
  z-index: 3;
  margin-top: -42px;
  padding: 0 clamp(18px, 5vw, 64px);
}

.search-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: #3e4a54;
  font-size: 14px;
  font-weight: 700;
}

select,
input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.section {
  padding: clamp(64px, 9vw, 108px) clamp(18px, 5vw, 64px);
}

.tinted {
  background: var(--soft);
}

.section-head {
  max-width: 780px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-head.inline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  text-align: left;
}

.section-head h2,
.copy-block h2,
.modal-panel h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.18;
  letter-spacing: 0;
}

.section-head p:not(.eyebrow),
.copy-block p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.service-grid,
.program-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.service-card,
.program-card,
.order-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.service-card {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  padding: 24px;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  background: var(--teal);
  border-radius: 8px;
  font-weight: 800;
}

.service-card h3,
.program-card h3,
.order-card h3 {
  margin: 18px 0 10px;
  font-size: 22px;
}

.service-card p,
.program-card p,
.package span {
  color: var(--muted);
  line-height: 1.7;
}

.service-card button {
  margin-top: auto;
  color: var(--red);
  background: #fff3f2;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab {
  min-height: 38px;
  padding: 0 14px;
  color: #3f4c56;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

.tab.active {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}

.program-grid {
  grid-template-columns: repeat(3, 1fr);
}

.program-card {
  min-height: 265px;
  padding: 22px;
}

.program-meta,
.program-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.program-meta span,
.program-tags span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #eef5f5;
  color: #2d6664;
  font-size: 12px;
  font-weight: 800;
}

.program-tags span {
  background: #f7efe3;
  color: #8a641f;
}

.program-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.program-foot strong {
  font-size: 20px;
}

.program-foot button {
  min-width: 92px;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: clamp(30px, 6vw, 72px);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

.copy-block {
  max-width: 690px;
}

.steps,
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.steps span,
.feature-list span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 700;
}

.order-card {
  padding: 24px;
  box-shadow: var(--shadow);
}

.package {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 12px;
}

.package.active {
  border-color: rgba(199, 53, 43, 0.38);
  background: #fff7f6;
}

.package strong,
.package span {
  display: block;
}

.seo-section {
  background: #f8fafb;
}

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

.seo-grid article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.seo-grid h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.seo-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 36px clamp(18px, 5vw, 64px);
  color: rgba(255, 255, 255, 0.72);
  background: #111920;
}

.site-footer strong,
.site-footer a {
  color: #fff;
}

.mobile-nav {
  display: none;
}

.order-modal {
  width: min(520px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.order-modal::backdrop {
  background: rgba(8, 14, 18, 0.58);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 28px;
}

.close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  cursor: pointer;
  font-size: 24px;
}

@media (max-width: 980px) {
  .site-header {
    gap: 14px;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 220px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
  }

  .site-header > .primary.small {
    display: none;
  }

  .currency-switcher {
    margin-left: auto;
  }

  .search-panel,
  .service-grid,
  .program-grid,
  .seo-grid,
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .search-panel .primary {
    grid-column: span 2;
  }

  .section-head.inline {
    display: block;
  }
}

@media (max-width: 680px) {
  body {
    padding-bottom: 64px;
  }

  .site-header {
    min-height: 64px;
    padding: 10px 16px;
    gap: 10px;
  }

  .brand-logo {
    width: 148px;
    height: 38px;
  }

  .currency-switcher {
    grid-template-columns: 1fr;
    gap: 2px;
    min-width: 94px;
    margin-left: auto;
    font-size: 11px;
  }

  .currency-switcher select {
    min-height: 36px;
    padding: 0 8px;
  }

  .hero {
    min-height: 720px;
    padding: 38px 18px 78px;
    align-items: end;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(13, 20, 26, 0.92) 0%, rgba(13, 20, 26, 0.68) 56%, rgba(13, 20, 26, 0.24) 100%);
  }

  .hero h1 {
    font-size: 64px;
  }

  .hero-stats span {
    flex: 1 1 120px;
  }

  .quick-search {
    margin-top: 0;
    padding: 18px;
    background: var(--soft);
  }

  .search-panel,
  .service-grid,
  .program-grid,
  .seo-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .search-panel .primary {
    grid-column: auto;
  }

  .section {
    padding: 56px 18px;
  }

  .section-head {
    text-align: left;
  }

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

  .program-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .program-foot button {
    width: 100%;
  }

  .site-footer {
    display: block;
  }

  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 62px;
    border-top: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 -12px 28px rgba(16, 26, 34, 0.12);
  }

  .mobile-nav a,
  .mobile-nav button {
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-weight: 800;
  }

  .mobile-nav button {
    color: var(--red);
  }
}
