/* KeverHosting homepage — modern layer on top of vps-modern.css */

/* ============ Shared buttons ============ */
.kh-btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none !important;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.kh-btn-primary {
  background: var(--kh-blue);
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(15, 27, 70, 0.18);
}
.kh-btn-primary:hover { background: var(--kh-blue-2); transform: translateY(-2px); }
.kh-btn-outline {
  background: transparent;
  color: var(--kh-ink) !important;
  border: 1px solid rgba(15, 27, 70, 0.25);
}
.kh-btn-outline:hover { border-color: var(--kh-blue); background: rgba(15, 27, 70, 0.04); }
.kh-btn-yellow {
  background: var(--kh-yellow);
  color: var(--kh-ink) !important;
}
.kh-btn-yellow:hover { background: var(--kh-yellow-2); transform: translateY(-2px); }
.kh-btn-link {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--kh-blue) !important;
  border-bottom: 1px solid rgba(15, 27, 70, 0.3);
  padding-bottom: 2px;
  text-decoration: none !important;
}
.kh-btn-link:hover { border-color: var(--kh-blue); }

/* ============ Hero ============ */
body.kh-home section.kh-home-hero {
  height: auto !important;
  min-height: 0;
  display: block;
  padding: 0;
  position: relative;
}
body.kh-home .kh-home-hero .container { position: relative; z-index: 1; }
.kh-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 78px 0 84px;
}
@media (min-width: 992px) {
  .kh-hero-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
    gap: 56px;
    padding: 96px 0 104px;
  }
}
/* style.css sets `h1 { font-size: 3em !important; margin: .2em 0 !important }` globally. */
.kh-hero-copy h1 {
  font-size: clamp(1.95rem, 3.3vw, 2.85rem) !important;
  line-height: 1.14;
  font-weight: 700;
  color: var(--kh-ink);
  margin: 0 !important;
}
.kh-hero-copy h1 span {
  color: var(--kh-ink);
  box-shadow: inset 0 -0.36em 0 rgba(247, 187, 55, 0.72);
}
.kh-hero-sub {
  margin: 20px 0 0;
  max-width: 30em;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.65;
  color: #2b3a63;
}
.kh-hero-sub b { color: var(--kh-ink); font-weight: 700; }
.kh-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
}

.kh-hero-search {
  background: var(--kh-card);
  border: 1px solid rgba(15, 27, 70, 0.08);
  border-radius: 18px;
  padding: 30px 28px 26px;
  box-shadow: 0 24px 60px rgba(15, 27, 70, 0.16);
}
.kh-hero-search h2 {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--kh-ink);
  margin: 0 0 6px;
}
.kh-hero-search > p {
  margin: 0 0 18px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--kh-muted);
}
.kh-hero-search form {
  display: flex;
  gap: 8px;
  margin: 0;
}
body.kh-home .kh-hero-search input[type="text"] {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--kh-border);
  border-radius: 10px;
  background: #fff;
  color: var(--kh-ink);
  font-size: 1rem;
}
body.kh-home .kh-hero-search input[type="text"]:focus {
  outline: none;
  border-color: var(--kh-blue);
  box-shadow: 0 0 0 3px rgba(15, 27, 70, 0.08);
}
body.kh-home .kh-hero-search button {
  height: 52px;
  padding: 0 24px;
  border: none;
  border-radius: 10px;
  background: var(--kh-yellow);
  color: var(--kh-ink);
  font-size: 1rem;
  font-weight: 700;
  transition: background 0.25s ease;
}
body.kh-home .kh-hero-search button:hover { background: var(--kh-yellow-2); }
.kh-hero-search-note {
  margin: 14px 0 0;
  font-size: 0.84rem;
  color: var(--kh-muted);
}
@media (max-width: 991px) {
  .kh-hero-grid { padding: 56px 0 60px; }
}
@media (max-width: 575px) {
  .kh-hero-copy h1 { font-size: 1.72rem !important; }
  .kh-hero-sub { font-size: 0.96rem; margin-top: 16px; }
  .kh-hero-actions { gap: 16px; margin-top: 24px; }
  .kh-hero-search { padding: 24px 20px 22px; }
  .kh-hero-search form { flex-direction: column; }
  body.kh-home .kh-hero-search button { width: 100%; }
}

/* ============ Trust strip ============ */
.kh-trust {
  background: var(--kh-blue);
  padding: 26px 0;
}
.kh-trust-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 12px;
  margin: 0;
  padding: 0;
}
@media (min-width: 768px) {
  .kh-trust-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.kh-trust-list li {
  text-align: center;
  position: relative;
}
@media (min-width: 768px) {
  .kh-trust-list li + li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: rgba(255, 255, 255, 0.16);
  }
}
.kh-trust-list strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--kh-yellow);
  line-height: 1.2;
}
.kh-trust-list span {
  display: block;
  margin-top: 4px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.78);
}

/* ============ Guided choice ============ */
.kh-paths {
  padding: 76px 0;
  background: #fff;
}
.kh-paths .section-title { margin-bottom: 12px; }
.kh-path-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin-top: 30px;
}
@media (min-width: 992px) {
  .kh-path-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
}
.kh-path-card {
  display: flex;
  flex-direction: column;
  background: var(--kh-card);
  border: 1px solid var(--kh-border);
  border-radius: 16px;
  padding: 30px 26px 26px;
  transition: transform 0.35s var(--kh-ease), box-shadow 0.35s var(--kh-ease), border-color 0.35s ease;
}
.kh-path-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--kh-shadow);
  border-color: var(--kh-accent-soft);
}
.kh-path-card .path-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-bottom: 16px;
}
.kh-path-card h3 {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--kh-ink);
  margin: 0 0 8px;
}
.kh-path-card .path-what {
  margin: 0 0 18px;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--kh-muted);
}
@media (min-width: 992px) {
  .kh-path-card .path-what { min-height: 4.8em; }
}
.kh-path-links {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  flex: 1;
  border-top: 1px solid var(--kh-border);
}
.kh-path-links li { border-bottom: 1px solid var(--kh-border); }
.kh-path-links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  text-decoration: none !important;
  transition: padding-left 0.25s var(--kh-ease);
}
.kh-path-links a:hover { padding-left: 6px; }
.kh-path-links a span {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--kh-ink);
}
.kh-path-links a em {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--kh-muted);
  text-align: right;
}
.kh-path-foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.kh-path-price {
  font-size: 0.86rem;
  color: var(--kh-muted);
}
.kh-path-price b {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--kh-ink);
  margin: 0 2px 0 4px;
}
.kh-path-cta {
  display: block;
  text-align: center;
  background: var(--kh-blue);
  color: #fff !important;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none !important;
  transition: background 0.25s ease;
}
.kh-path-cta:hover { background: var(--kh-blue-2); }

/* ============ Commercial terms ============ */
.kh-terms {
  padding: 76px 0;
  background: var(--kh-surface);
}
.kh-terms-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
}
@media (min-width: 992px) {
  .kh-terms-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 56px; align-items: start; }
}
.kh-terms-kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kh-muted);
  margin-bottom: 12px;
}
.kh-terms-lead h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.25;
  font-weight: 700;
  color: var(--kh-ink);
  margin: 0 0 16px;
}
.kh-terms-lead h2 span {
  box-shadow: inset 0 -0.42em 0 rgba(247, 187, 55, 0.45);
}
.kh-terms-lead p {
  margin: 0 0 26px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--kh-muted);
}
.kh-terms-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
}
@media (min-width: 576px) {
  .kh-terms-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 28px; }
}
.kh-terms-list li {
  position: relative;
  padding: 16px 0 16px 34px;
  border-bottom: 1px solid var(--kh-border);
}
.kh-terms-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--kh-yellow);
}
.kh-terms-list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 25px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--kh-ink);
  border-bottom: 2px solid var(--kh-ink);
  transform: rotate(-45deg);
}
.kh-terms-list h3 {
  font-size: 0.99rem;
  font-weight: 700;
  color: var(--kh-ink);
  margin: 0 0 4px;
}
.kh-terms-list p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--kh-muted);
}

/* ============ Infrastructure showcase ============ */
.kh-infra {
  padding: 76px 0;
  background: #fff;
}
.kh-infra .section-title { margin-bottom: 10px; }
.kh-infra-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-top: 26px;
}
@media (min-width: 992px) {
  .kh-infra-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; }
}
.kh-infra-media {
  background: var(--kh-surface);
  border: 1px solid var(--kh-border);
  border-radius: 18px;
  padding: 22px 18px;
}
.kh-infra-media svg { display: block; width: 100%; height: auto; }
.kh-infra-points {
  list-style: none;
  margin: 0;
  padding: 0;
}
.kh-infra-points li {
  position: relative;
  padding: 0 0 0 22px;
  margin-bottom: 24px;
}
.kh-infra-points li:last-child { margin-bottom: 0; }
.kh-infra-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--kh-yellow);
}
.kh-infra-points h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--kh-ink);
  margin: 0 0 6px;
}
.kh-infra-points p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--kh-muted);
}

/* Network diagram */
.kh-nw-anim { overflow: visible; }
.kh-nw-anim .nw-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  fill: var(--kh-muted);
}
.kh-nw-anim .nw-globe {
  fill: rgba(15, 27, 70, 0.05);
  stroke: rgba(15, 27, 70, 0.22);
  stroke-width: 1.5;
}
.kh-nw-anim .nw-globe-line {
  fill: none;
  stroke: rgba(15, 27, 70, 0.22);
  stroke-width: 1.5;
}
.kh-nw-anim .nw-wire {
  fill: none;
  stroke: rgba(15, 27, 70, 0.18);
  stroke-width: 2;
}
.kh-nw-anim .nw-wire--dashed { stroke-dasharray: 5 5; }
.kh-nw-anim .nw-shield-body {
  fill: rgba(15, 27, 70, 0.06);
  stroke: var(--kh-blue);
  stroke-width: 2;
}
.kh-nw-anim .nw-shield-tick {
  fill: none;
  stroke: var(--kh-yellow);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.kh-nw-anim .nw-shield-ring {
  fill: none;
  stroke: var(--kh-blue);
  stroke-width: 1.5;
  opacity: 0;
  transform-origin: 192px 132px;
  animation: khNwRing 3.2s ease-out infinite;
}
.kh-nw-anim .nw-pkt--ok {
  fill: var(--kh-blue);
  animation: khNwPass 3.2s linear infinite;
  animation-delay: calc(var(--i) * 0.4s);
}
.kh-nw-anim .nw-pkt--bad {
  fill: #d94a4a;
  animation: khNwBlock 3.2s ease-in infinite;
  animation-delay: calc(1.6s + var(--i) * 0.9s);
}
.kh-nw-anim .nw-rack-body {
  fill: #fff;
  stroke: rgba(15, 27, 70, 0.16);
  stroke-width: 1.5;
}
.kh-nw-anim .nw-node-body {
  fill: rgba(15, 27, 70, 0.04);
  stroke: rgba(15, 27, 70, 0.12);
  stroke-width: 1;
}
.kh-nw-anim .nw-node-bar { fill: rgba(15, 27, 70, 0.16); }
.kh-nw-anim .nw-node-led {
  fill: var(--kh-yellow);
  animation: khNwLed 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.3s);
}
.kh-nw-anim .nw-store-body {
  fill: rgba(15, 27, 70, 0.05);
  stroke: rgba(15, 27, 70, 0.2);
  stroke-width: 1.5;
}
.kh-nw-anim .nw-store-line {
  fill: none;
  stroke: rgba(15, 27, 70, 0.28);
  stroke-width: 2;
  stroke-linecap: round;
}
.kh-nw-anim .nw-store-dot {
  fill: var(--kh-yellow);
  animation: khNwLed 3.6s ease-in-out infinite;
}
@keyframes khNwPass {
  0% { transform: translateX(6px); opacity: 0; }
  12% { opacity: 1; }
  46% { transform: translateX(186px); opacity: 1; }
  54% { transform: translateX(198px); opacity: 1; }
  92% { transform: translateX(330px); opacity: 1; }
  100% { transform: translateX(340px); opacity: 0; }
}
@keyframes khNwBlock {
  0% { transform: translateX(6px) scale(1); opacity: 0; }
  15% { opacity: 1; }
  62% { transform: translateX(140px) scale(1); opacity: 1; }
  78%, 100% { transform: translateX(146px) scale(0.2); opacity: 0; }
}
@keyframes khNwRing {
  0% { transform: scale(0.72); opacity: 0.55; }
  70%, 100% { transform: scale(1.05); opacity: 0; }
}
@keyframes khNwLed {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

/* ============ Migration ============ */
.kh-migration {
  padding: 76px 0;
  background: var(--kh-surface);
}
.kh-migration-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}
@media (min-width: 992px) {
  .kh-migration-grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 52px; }
}
.kh-migration-media img {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  margin: 0 auto;
}
.kh-migration-copy h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.25;
  font-weight: 700;
  color: var(--kh-ink);
  margin: 0 0 14px;
}
.kh-migration-copy h2 span { color: var(--kh-blue-2); }
.kh-migration-copy > p {
  margin: 0 0 22px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--kh-muted);
}
.kh-migration-steps {
  list-style: none;
  counter-reset: khmig;
  margin: 0 0 28px;
  padding: 0;
}
.kh-migration-steps li {
  counter-increment: khmig;
  position: relative;
  padding: 0 0 0 42px;
  margin-bottom: 18px;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--kh-muted);
}
.kh-migration-steps li:last-child { margin-bottom: 0; }
.kh-migration-steps li::before {
  content: counter(khmig);
  position: absolute;
  left: 0;
  top: -2px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--kh-blue);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
}
.kh-migration-steps li b {
  display: block;
  color: var(--kh-ink);
  font-size: 0.99rem;
  margin-bottom: 3px;
}

/* ============ Domains ============ */
/* The legacy rules are id-scoped (#homepage-3 …), so the overrides need the id too. */
body#homepage-3.kh-home .homepage-2.domain-area.kh-domains {
  background-color: var(--kh-blue);
  background-image: none;
  padding: 66px 0 62px;
}
body.kh-home .kh-domains .section-title { margin-bottom: 0; }
body.kh-home .kh-domains h2.domain-heading-2 {
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 14px;
}
body.kh-home .kh-domains .section-title h2 span { color: var(--kh-yellow); }
body.kh-home .kh-domains .section-title p {
  max-width: 640px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.72) !important;
}
body.kh-home .kh-domains .domain-tld-prices {
  display: flex;
  justify-content: center;
  margin: 30px auto 0;
}
body.kh-home .kh-domains .domain-tld-prices ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
body.kh-home .kh-domains .domain-tld-prices li {
  width: auto !important;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.92rem;
}
body.kh-home .kh-domains .domain-tld-prices li::after { display: none; }
body.kh-home .kh-domains .domain-tld-prices li br { display: none; }
body.kh-home .kh-domains .domain-tld-style {
  color: var(--kh-yellow);
  font-weight: 700;
}
body.kh-home .kh-domains .domain-tld-prices .currency,
body.kh-home .kh-domains .domain-tld-prices li span:not(.domain-tld-style) {
  color: rgba(255, 255, 255, 0.86);
}
.kh-domains-foot {
  margin-top: 32px;
  text-align: center;
}
.kh-domains-note {
  display: block;
  margin-top: 14px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  .kh-nw-anim .nw-pkt,
  .kh-nw-anim .nw-shield-ring,
  .kh-nw-anim .nw-node-led,
  .kh-nw-anim .nw-store-dot {
    animation: none !important;
  }
  .kh-nw-anim .nw-pkt--bad { opacity: 0; }
  .kh-nw-anim .nw-pkt--ok { opacity: 1; transform: translateX(120px); }
}
