/* Home page specific styles */

#site-root {
  color: #007788;
}

#site-root .page-header .title {
  color: #2ca073;
}

#site-root .container.p h2,
#site-root .container h3,
#site-root .container h4,
#site-root .container h5,
#site-root .container h6 {
  color: #d62828 !important;
}

/* Layout width */
.gt-shortcuts-strip > .container,
#main > .container.p {
  width: calc(100% - 30px) !important;
  max-width: none !important;
}

.gt-shortcuts-strip > .container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Hero */
.home-hero {
  background: linear-gradient(180deg, #f7fbfa 0%, #ffffff 100%);
  border: 1px solid #e7efec;
  border-radius: 14px;
  padding: 28px 24px;
  margin: 26px 0 22px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

.home-hero h1 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 34px;
  line-height: 1.2;
  text-transform: none;
}

.home-hero .lead {
  font-size: 18px;
  line-height: 1.6;
  color: #4b5a57;
  margin-bottom: 18px;
}

.mini-note {
  margin-top: 14px;
  font-size: 14px;
  color: #64736f;
}

/* CTA */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.cta-row a {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.cta-primary {
  background: #1f7a53;
  color: #fff !important;
}

.cta-secondary {
  background: #f4f7f6;
  border: 1px solid #dbe7e2;
  color: #2d4b42 !important;
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0 18px;
}

.service-card {
  background: #fff;
  border: 1px solid #e4ece8;
  border-radius: 12px;
  padding: 18px 18px 16px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
  height: 100%;
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.3;
}

.service-card p {
  margin-bottom: 10px;
  color: #4f5d59;
  line-height: 1.55;
}

.service-card a {
  font-weight: 700;
  text-decoration: none;
}

.section-box {
  background: #fbfcfc;
  border: 1px solid #e7efec;
  border-radius: 12px;
  padding: 22px 22px 12px;
  margin: 24px 0;
}

.check-list {
  padding-left: 18px;
  margin-bottom: 8px;
}

.check-list li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Final CTA block */
.home-cta-final {
  text-align: center;
  background: #f7fbfa;
  border: 1px solid #e2ece7;
  border-radius: 14px;
  padding: 24px 20px;
  margin: 28px 0 10px;
}

.home-cta-final p {
  max-width: 760px;
  margin: 0 auto 14px;
  color: #50625c;
  line-height: 1.6;
}

.home-cta-final .cta-row {
  justify-content: center;
}

.home-cta-final .cta-row a.cta-primary {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  background: #1f7a53;
  color: #fff !important;
}

/* Shortcuts strip */
.gt-shortcuts-strip {
  padding: 12px 0 8px;
  background: #fff;
}

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

.gt-shortcut-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e4ece8;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.16s ease, transform 0.16s ease;
}

.gt-shortcut-card:hover {
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.gt-shortcut-card img {
  display: block;
  width: 100%;
  height: 108px;
  object-fit: cover;
  background: #f3f4f6;
}

.gt-shortcut-card span {
  display: block;
  padding: 12px 8px 13px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  color: #2f3e39;
  text-align: center;
}

/* Mobile megamenu */
@media (max-width: 991px) {
  .header .primary .navbar .navbar-collapse .nav > li.parent.megamenu > a {
    position: relative;
    padding-right: 46px !important;
  }

  .header .primary .navbar .navbar-collapse .nav > li.parent.megamenu > .sub {
    display: none !important;
  }

  .header .primary .navbar .navbar-collapse .nav > li.parent.megamenu.mobile-open > .sub {
    display: block !important;
  }

  .header .primary .navbar .navbar-collapse .nav > li.parent.megamenu > a::before,
  .header .primary .navbar .navbar-collapse .nav > li.parent.megamenu > a::after {
    content: "";
    position: absolute;
    background: #1e1e1e;
    right: 14px;
    top: 50%;
    pointer-events: none;
  }

  .header .primary .navbar .navbar-collapse .nav > li.parent.megamenu > a::before {
    width: 14px;
    height: 2px;
    margin-top: -1px;
  }

  .header .primary .navbar .navbar-collapse .nav > li.parent.megamenu > a::after {
    width: 2px;
    height: 14px;
    margin-top: -7px;
    right: 20px;
  }

  .header .primary .navbar .navbar-collapse .nav > li.parent.megamenu.mobile-open > a::after {
    display: none;
  }

  .header .primary .navbar .navbar-collapse .nav > li.parent.megamenu > .sub {
    position: relative !important;
    left: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    border-radius: 0 !important;
  }

  .header .primary .navbar .navbar-collapse .nav .megamenu > .sub .promo-block {
    display: none !important;
  }

  .header .primary .navbar .navbar-collapse .nav .megamenu > .sub .sub-wrapper,
  .header .primary .navbar .navbar-collapse .nav .megamenu > .sub .sub-list {
    display: block !important;
    width: 100% !important;
  }

  .header .primary .navbar .navbar-collapse .nav .megamenu > .sub .box {
    float: none !important;
    width: 100% !important;
    padding: 0 0 12px !important;
  }

  .header .primary .navbar .navbar-collapse .nav .megamenu > .sub .box.closed ul {
    display: none !important;
  }

  .header .primary .navbar .navbar-collapse .nav .megamenu > .sub .box.mobile-box-open ul {
    display: block !important;
  }

  .header .primary .navbar .navbar-collapse .nav .megamenu > .sub .box > .title {
    position: relative;
    cursor: pointer;
    margin: 0;
    padding: 10px 34px 10px 0 !important;
    color: #c62828;
    line-height: 1.35;
  }

  .header .primary .navbar .navbar-collapse .nav .megamenu > .sub .box > .title::before,
  .header .primary .navbar .navbar-collapse .nav .megamenu > .sub .box > .title::after {
    content: "";
    position: absolute;
    background: #7a7a7a;
  }

  .header .primary .navbar .navbar-collapse .nav .megamenu > .sub .box > .title::before {
    width: 12px;
    height: 2px;
    right: 8px;
    top: 50%;
    margin-top: -1px;
  }

  .header .primary .navbar .navbar-collapse .nav .megamenu > .sub .box > .title::after {
    width: 2px;
    height: 12px;
    right: 13px;
    top: 50%;
    margin-top: -6px;
  }

  .header .primary .navbar .navbar-collapse .nav .megamenu > .sub .box.mobile-box-open > .title::after {
    display: none;
  }

  .header .primary .navbar .navbar-collapse .nav .megamenu > .sub .box > .title .open-sub,
  .header .primary .navbar .navbar-collapse .nav .megamenu > .sub .box > .title span.open-sub {
    display: none !important;
  }

  .header .primary .navbar .navbar-collapse .nav .megamenu > .sub .box ul {
    margin-top: 6px;
  }

  .header .primary .navbar .navbar-collapse .nav .megamenu > .sub li a {
    display: block;
    width: 100% !important;
    padding: 6px 0 6px 14px;
    line-height: 1.35;
  }

  .gt-shortcuts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Header cleanup */
.phone-active,
.phone-header {
  display: none !important;
}

.header .header-icons {
  min-height: 0;
}

@media (max-width: 1199px) {
  .gt-shortcuts-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .gt-shortcuts-strip > .container,
  #main > .container.p {
    width: auto !important;
    max-width: none !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .gt-shortcuts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .gt-shortcut-card img {
    height: 88px;
  }

  .gt-shortcut-card span {
    font-size: 12px;
    padding: 9px 6px 10px;
  }

  .home-hero {
    padding: 20px 18px;
  }

  .home-hero h1 {
    font-size: 28px;
  }

  .cta-row {
    flex-direction: column;
  }

  .cta-row a {
    text-align: center;
  }
}
