:root {
  --bg: #0d1424;
  --bg-soft: #151f35;
  --card: #1b2741;
  --text: #e9eef8;
  --muted: #a8b5cf;
  --line: #2b3a5d;
  --accent: #b87a19;
  --accent-2: #39bdf8;
  --ok: #22c55e;
  --danger: #ef4444;
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #0a1120 0%, var(--bg) 35%, #0b1120 100%);
  line-height: 1.55;
}

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

.top-strip {
  background: #0a1020;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.top-strip .container {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  flex-wrap: wrap;
}

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

.phone-link {
  text-decoration: none;
  color: #d5e4ff;
  border: 1px solid #2f446e;
  background: #101b31;
  border-radius: 8px;
  padding: 4px 10px;
  font-weight: 700;
  display: inline-block;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.top-strip .phone-link::after,
.footer .phone-link::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 52%;
  height: 100%;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  transform: skewX(-20deg);
  transition: left 0.38s ease;
}

.top-strip .phone-link:hover {
  transform: translateY(-2px);
  border-color: #5f84bf;
  background: #142644;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.28);
}

.top-strip .phone-link:hover::after {
  left: 135%;
}

.footer .phone-link:hover {
  transform: translateY(-2px);
  border-color: #5f84bf;
  background: #142644;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.28);
}

.footer .phone-link:hover::after {
  left: 135%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 20, 36, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.logo {
  color: var(--text);
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.logo span {
  color: var(--accent);
}

.logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #3a517f;
  background: #0f1a2f;
  padding: 2px;
  margin-right: 10px;
}

.menu-btn {
  margin-left: auto;
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
}

.links {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.links a {
  text-decoration: none;
  color: var(--text);
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 600;
}

.links a:hover,
.links a.active {
  background: #16243f;
  border-color: #355081;
}

.btn-call {
  text-decoration: none;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
}

.hero {
  margin: 18px 0;
  min-height: 460px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(8, 14, 24, 0.93), rgba(8, 14, 24, 0.64) 56%, rgba(8, 14, 24, 0.3));
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: clamp(24px, 5vw, 54px);
}

.eyebrow {
  margin: 0 0 10px;
  display: inline-block;
  background: rgba(57, 189, 248, 0.15);
  border: 1px solid #2f78ab;
  color: #d2f0ff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
}

.hero-content p {
  margin: 0;
  color: #d6e1f5;
  font-size: 18px;
  max-width: 62ch;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  border-radius: 10px;
  padding: 11px 16px;
  border: 1px solid transparent;
  font-weight: 700;
}

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

.btn.ghost {
  border-color: #5d739d;
  color: #eaf1ff;
}

.hero-dots {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-dots button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(132, 168, 224, 0.65);
  background: rgba(164, 186, 221, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.hero-dots button.is-active {
  background: linear-gradient(135deg, #48c8ff, #ffbf66);
  border-color: rgba(255, 212, 133, 0.95);
  transform: scale(1.08);
}

.section {
  margin: 16px 0;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.section h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 34px);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.kpi {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #14213a;
  text-align: center;
  padding: 14px;
}

.kpi strong {
  display: block;
  color: var(--accent-2);
  font-size: 30px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.card {
  border: 1px solid var(--line);
  background: #132038;
  border-radius: 12px;
  padding: 14px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
  overflow: hidden;
}

.card-media {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: center center;
  border-radius: 10px;
  border: 1px solid #39527f;
  margin-bottom: 10px;
}

.card-media.alt-1 { filter: hue-rotate(20deg) saturate(1.15); }
.card-media.alt-2 { filter: hue-rotate(-16deg) saturate(1.1); }
.card-media.alt-3 { filter: contrast(1.08) saturate(0.95); }

.card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card:hover {
  transform: translateY(-4px);
  border-color: #4b6da6;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.28);
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(57, 189, 248, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.card:hover::after {
  opacity: 1;
}

.key-directions .card {
  max-height: 330px;
}

.key-directions .card-media {
  object-fit: contain;
  border: 0;
  margin: 4px auto 14px;
  display: block;
}

/* Recolored restored guard icon to match the same cool palette */
.key-directions .card:first-child .card-media {
  filter: hue-rotate(-18deg) saturate(0.88) brightness(0.97);
}

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

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-item {
  border: 1px solid #3a517f;
  border-radius: 12px;
  background: rgba(57, 189, 248, 0.08);
  padding: 12px;
  font-weight: 600;
  color: #d8eafd;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  text-align: center;
}

.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.24);
  border-color: #5f84bf;
}

.feature-media {
  width: 100%;
  height: 120px;
  object-fit: cover;
  object-position: center center;
  border-radius: 10px;
  border: 1px solid #4a679b;
  margin: 0 0 10px;
  display: block;
}

.feature-item span {
  display: block;
}

.service-list .feature-media {
  width: auto;
  height: 150px;
  object-fit: contain;
  border: 0;
  background: transparent;
  margin: 4px auto 14px;
}

.feature-row:not(.service-list) .feature-media {
  width: auto;
  height: 150px;
  object-fit: contain;
  border: 0;
  background: transparent;
  margin: 4px auto 14px;
}

.steps {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.doc-list {
  display: grid;
  gap: 8px;
}

.doc-list a {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #14213a;
  padding: 10px 12px;
}

.doc-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 10px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.doc-item:hover {
  transform: translateY(-2px);
  border-color: #4b6da6;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.22);
}

.doc-thumb {
  width: 88px;
  height: 58px;
  object-fit: cover;
  object-position: center center;
  border-radius: 8px;
  border: 1px solid #3a517f;
}

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  border: 1px solid var(--line);
  background: #14213a;
  border-radius: 10px;
  padding: 10px 12px;
}

.faq summary {
  font-weight: 700;
  cursor: pointer;
}

.faq p {
  margin: 8px 0 0;
  color: var(--muted);
}

.calculator {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}

.calc-box,
.result-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #14213a;
  padding: 14px;
}

.field {
  margin: 10px 0;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: #c8d4eb;
  font-weight: 600;
}

.field select,
.field input[type="range"] {
  width: 100%;
}

select {
  border: 1px solid #3f5f96;
  border-radius: 10px;
  background: #1a2a47;
  color: #e8efff;
  padding: 10px;
}

input[type="range"] {
  accent-color: var(--accent);
}

.result-box strong {
  font-size: 34px;
  color: #ffd393;
}

.result-note {
  color: var(--muted);
  font-size: 14px;
}

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

.tariff-price {
  margin-top: 0;
  font-size: 24px;
  font-weight: 800;
  color: #ffd393;
}

.tariff .price-details {
  margin-top: auto;
}

.price-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.price-list ul {
  margin-top: 8px;
  padding-left: 18px;
}

.price-note {
  margin-top: 12px;
  color: #d6e1f5;
  border-left: 3px solid var(--accent);
  padding-left: 10px;
}

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

.complex-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #132038;
  padding: 14px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.complex-card h3 {
  margin: 0 0 8px;
}

.complex-card p {
  margin: 4px 0;
  color: var(--muted);
}

.complex-card picture {
  display: block;
  margin-bottom: 10px;
}

.complex-card picture .card-media {
  margin-bottom: 0;
}

.complex-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.28);
  border-color: #4b6da6;
}

.complex-meta {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #3f5f96;
  color: #dce8ff;
  font-size: 14px;
}

.contact-details-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 12px;
}

.billing-toggle {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  background: #132038;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  margin-bottom: 14px;
}

.bill-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  border-radius: 9px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

.bill-btn.is-active {
  background: #1b2d4b;
  border-color: #4166a0;
}

.interactive {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.interactive:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

.price-details {
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  background: #0f1a2f;
}

.price-details summary {
  cursor: pointer;
  font-weight: 700;
}

.price-details ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

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

.price-tile {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #132038;
  padding: 12px;
  display: grid;
  gap: 4px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.price-tile:hover {
  transform: translateY(-3px);
  border-color: #4b6da6;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.24);
}

.price-tile strong {
  color: #e8efff;
}

.price-tile span {
  color: #ffd393;
  font-weight: 700;
}

.section-banner {
  position: relative;
  overflow: hidden;
}

.section-banner img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #3a517f;
}

.section-banner .overlay-text {
  position: absolute;
  left: 20px;
  bottom: 18px;
  right: 20px;
  background: rgba(11, 18, 32, 0.72);
  border: 1px solid #4b648f;
  border-radius: 12px;
  padding: 10px 12px;
  color: #deebff;
}

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

.contact-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #132038;
  padding: 14px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: #4b6da6;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.24);
}

.contact-grid .contact-card:hover,
.contact-details-split .contact-card:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: none;
}

.contact-media {
  width: 100%;
  height: 120px;
  object-fit: cover;
  object-position: center center;
  border-radius: 10px;
  border: 1px solid #3a517f;
  margin-bottom: 10px;
}

.contact-card h3 {
  margin: 0 0 8px;
}

.compact-contacts {
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr);
}

.contact-list-card {
  display: grid;
  gap: 10px;
  align-content: start;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  align-content: start;
}

.contact-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #32496f;
  border-radius: 10px;
  background: rgba(17, 29, 51, 0.72);
}

.contact-role {
  color: #d7e5ff;
  font-weight: 600;
}

.contact-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #f2f7ff;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid #4f76b3;
  border-radius: 999px;
  padding: 7px 12px;
  background: linear-gradient(135deg, #1a335d, #244781);
  box-shadow: 0 8px 16px rgba(7, 16, 33, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.contact-action:hover {
  transform: translateY(-1px);
  border-color: #6fa3f2;
  background: linear-gradient(135deg, #20417a, #2e5eac);
  box-shadow: 0 10px 18px rgba(11, 24, 48, 0.42);
}

.contact-address {
  margin: 0;
  color: #d7e5ff;
  border: 1px solid #32496f;
  border-radius: 10px;
  background: rgba(17, 29, 51, 0.72);
  padding: 10px 12px;
}

.contact-list-mail li {
  justify-content: center;
}

iframe {
  width: 100%;
  min-height: 340px;
  border: 0;
  border-radius: 12px;
}

.cta {
  display: grid;
  grid-template-columns: 1.5fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #435b87;
  border-radius: 14px;
  padding: 18px;
  background: linear-gradient(120deg, rgba(57, 189, 248, 0.14), rgba(184, 122, 25, 0.14));
}

.cta h2 {
  margin: 0;
}

.cta p {
  margin: 6px 0 0;
  color: #d4deee;
}

.footer {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding: 18px 0 26px;
  color: var(--muted);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  gap: 10px;
}

.footer-phones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.footer-meta {
  display: grid;
  gap: 6px;
  text-align: center;
}

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

.footer-label {
  font-weight: 700;
  color: #d4deee;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 16, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
}

.modal.is-open {
  display: flex;
}

.modal-box {
  width: min(520px, 100%);
  background: #111b31;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.modal-head h3 {
  margin: 0;
}

.close-modal {
  background: #1f2d4a;
  color: #eaf1ff;
  border: 1px solid #3f5f96;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}

.form-field {
  margin: 10px 0;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 10px;
  background: #172746;
  border: 1px solid #3f5f96;
  border-radius: 10px;
  color: #edf3ff;
  font-family: inherit;
}

.submit-btn {
  margin-top: 8px;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 11px 14px;
  font-weight: 800;
  cursor: pointer;
}

.success-msg {
  display: none;
  margin-top: 10px;
  color: #96f0a8;
  font-weight: 700;
}

.success-msg.is-show {
  display: block;
}

.floating-messengers {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 90;
  display: grid;
  gap: 12px;
}

.messenger-btn {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  box-shadow: none;
  border: 0;
  background: transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.messenger-btn:hover {
  transform: translateY(-3px) scale(1.04);
}

.messenger-icon {
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
}

.section,
.card,
.feature-item,
.kpi {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.section.in-view,
.card.in-view,
.feature-item.in-view,
.kpi.in-view {
  opacity: 1;
  transform: translateY(0);
}

.card.in-view:hover {
  transform: translateY(-4px);
}

.feature-item.in-view:hover {
  transform: translateY(-3px);
}

.kpi.in-view:hover {
  transform: translateY(-3px);
}

@media (max-width: 980px) {
  .kpi-grid,
  .feature-row,
  .calculator,
  .contact-grid,
  .cta {
    grid-template-columns: 1fr;
  }

  .compact-contacts {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .menu-btn {
    display: inline-block;
  }

  .links {
    display: none;
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
  }

  .links.open {
    display: flex;
  }

  .links a {
    border-color: var(--line);
    background: #15233f;
  }

  .floating-messengers {
    right: 12px;
    bottom: 12px;
    gap: 10px;
  }

  .messenger-btn {
    width: 56px;
    height: 56px;
    font-size: 13px;
  }

  .messenger-icon {
    width: 52px;
    height: 52px;
  }

  .complex-grid,
  .price-tiles {
    grid-template-columns: 1fr;
  }

  .complex-card,
  .price-tile {
    padding: 10px;
  }

  .contact-list li {
    flex-direction: column;
    align-items: flex-start;
  }
}
