:root {
  --ink: #14213d;
  --muted: #627083;
  --line: #e5e9ef;
  --brand: #0069b4;
  --accent: #f28c22;
  --bg: #f6f8fb;
  --panel: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: 0;
}

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

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

.topbar {
  background: #0f1f35;
  color: #dce6f2;
  font-size: 13px;
}

.topbar__inner,
.header__inner,
.section,
.footer__inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar__inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar__whatsapp,
.whatsapp-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar__whatsapp {
  color: white;
}

.topbar__whatsapp img,
.whatsapp-contact img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header__inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 470px;
}

.brand__logo {
  width: auto;
  height: 46px;
  object-fit: contain;
  object-position: left center;
}

.brand__logo--second {
  height: 46px;
  padding-left: 16px;
  border-left: 1px solid #d7dde6;
}

.brand__fallback {
  display: none;
  font-weight: 700;
  line-height: 1.2;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a,
.nav button,
.admin-link {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.nav a:hover,
.nav button:hover,
.admin-link:hover,
.nav a.is-active {
  color: var(--brand);
  background: #eef6fc;
}

.lang-toggle {
  border: 1px solid var(--line) !important;
  font-weight: 700 !important;
}

.hero {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: #101927;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 800ms ease;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 18, 35, 0.82), rgba(7, 18, 35, 0.2) 58%, rgba(7, 18, 35, 0.72)),
    linear-gradient(0deg, rgba(7, 18, 35, 0.72), rgba(7, 18, 35, 0) 48%);
  z-index: 1;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  position: relative;
  z-index: 2;
  min-height: 610px;
  display: grid;
  align-content: center;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  color: white;
}

.hero__copy {
  max-width: 640px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: #ffb55c;
  margin-bottom: 16px;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  font-size: 56px;
  line-height: 1.08;
}

.hero p {
  margin: 20px 0 30px;
  font-size: 20px;
  line-height: 1.7;
  color: #e9f1fa;
}

.hero__actions,
.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  border: 1px solid transparent;
}

.button--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero__dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.hero__dots button {
  width: 34px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero__dots button.is-active {
  background: #ffffff;
}

.section {
  padding: 76px 0;
}

.section--white {
  background: var(--panel);
  width: 100%;
  max-width: none;
  padding-left: calc((100% - min(1180px, calc(100% - 40px))) / 2);
  padding-right: calc((100% - min(1180px, calc(100% - 40px))) / 2);
}

.section__head {
  margin-bottom: 30px;
}

.section h2 {
  margin: 0;
  font-size: 32px;
}

.section__head p,
.page-hero p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card,
.case-card,
.reason,
.news-item,
.contact-panel,
.admin-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-card {
  min-height: 210px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card h3,
.case-card h3,
.reason h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.service-card p,
.case-card p,
.reason li,
.news-item p,
.contact-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.service-card span {
  color: var(--brand);
  font-weight: 700;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.case-card {
  overflow: hidden;
}

.case-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.case-card div {
  padding: 22px;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.reason {
  padding: 26px;
}

.reason ul {
  margin: 0;
  padding-left: 18px;
}

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

.about-block,
.news-list {
  min-width: 0;
}

.about-block p {
  color: var(--muted);
  line-height: 1.9;
  font-size: 16px;
}

.news-item {
  padding: 18px 20px;
  margin-bottom: 12px;
}

.news-item time {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}

.news-item h3 {
  margin: 8px 0 0;
  font-size: 18px;
}

.page-hero {
  background: #10213a;
  color: white;
  padding: 72px 0;
}

.page-hero p {
  color: #d8e3ef;
}

.contact-panel {
  padding: 28px;
}

.footer {
  background: #0f1f35;
  color: #dce6f2;
  padding: 48px 0 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  margin-bottom: 34px;
}

.footer h3 {
  margin: 0 0 16px;
  color: white;
}

.footer p,
.footer a {
  color: #bac8d8;
  line-height: 1.8;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 18px;
  color: #aab9c9;
  font-size: 13px;
}

.admin-main {
  width: min(1180px, calc(100% - 40px));
  margin: 40px auto 80px;
}

.login-page {
  min-height: calc(100vh - 36px);
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background:
    linear-gradient(90deg, rgba(15, 31, 53, 0.88), rgba(15, 31, 53, 0.52)),
    url("https://images.unsplash.com/photo-1774929104680-bf61cc6f845d?auto=format&fit=crop&fm=jpg&q=80&w=2400") center / cover;
}

.login-card {
  width: min(440px, 100%);
  background: white;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.login-card .brand {
  min-width: 0;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.login-card h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.login-card p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.login-card label {
  display: block;
  margin: 14px 0 6px;
  color: var(--muted);
}

.login-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  font: inherit;
}

.login-card input:disabled,
.login-card button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.security-notice {
  margin: 14px 0;
  padding: 12px;
  border: 1px solid #f4c7c3;
  border-radius: 6px;
  background: #fff4f2;
  color: #b42318;
  line-height: 1.6;
}

.captcha-box {
  margin-top: 12px;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.captcha-row canvas {
  width: 138px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f3f7fb;
}

.button--small {
  padding: 10px 12px;
  min-height: 0;
}

.login-error {
  display: none;
  margin-top: 12px;
  color: #b42318;
}

.login-card .button--ghost {
  color: var(--ink);
  border-color: var(--line);
  background: white;
}

.admin-panel {
  padding: 24px;
  margin-bottom: 18px;
}

.admin-panel h2 {
  margin: 0 0 16px;
}

.admin-panel label {
  display: block;
  margin: 14px 0 6px;
  color: var(--muted);
  font-size: 14px;
}

.admin-panel input,
.admin-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  font: inherit;
}

.admin-panel textarea {
  min-height: 92px;
  resize: vertical;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.password-panel p {
  margin-top: -6px;
  color: var(--muted);
}

.branch-head {
  margin-top: 32px;
}

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

.branch-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: white;
}

.branch-card h3 {
  margin: 0 0 12px;
}

.branch-card p {
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.7;
}

.admin-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
}

@media (max-width: 900px) {
  .header__inner,
  .topbar__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
  }

  .brand {
    min-width: 0;
  }

  .brand__logo,
  .brand__logo--second {
    height: 42px;
    max-width: 46vw;
  }

  .hero,
  .hero__content {
    min-height: 560px;
  }

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

  .service-grid,
  .case-grid,
  .reason-grid,
  .split,
  .admin-grid,
  .branch-grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .topbar__inner,
  .header__inner,
  .section,
  .footer__inner,
  .hero__content,
  .admin-main {
    width: min(100% - 24px, 1180px);
  }

  .nav a,
  .nav button,
  .admin-link {
    padding: 9px 8px;
    font-size: 14px;
  }

  .brand {
    min-width: 0;
    flex-wrap: wrap;
  }

  .brand__logo,
  .brand__logo--second {
    height: 38px;
    max-width: 100%;
  }

  .brand__logo--second {
    padding-left: 0;
    border-left: 0;
  }

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

  .hero p {
    font-size: 17px;
  }
}
