/* =========================================================
   TERASUPASAULIS.LT
   TERASŲ IR LIEPTŲ GIDAS
   Landing Page
   V10.2 CLEAN
   2026-09-20
   ========================================================= */


/* =========================================================
   SHARED
   ========================================================= */

.tp-guide-hero,
.tp-guide-directions,
.tp-guide-hero *,
.tp-guide-directions * {
  box-sizing: border-box;
}


/* =========================================================
   ROW 1 — HERO
   ========================================================= */

.tp-guide-hero {
  position: relative;
  isolation: isolate;

  width: min(1280px, calc(100vw - 48px));
  height: clamp(410px, 28vw, 470px);

  margin: 14px auto 0;

  overflow: hidden;

  border-radius: 18px;

  background: #172126;

  box-shadow:
    0 18px 46px rgba(25, 35, 40, 0.10);
}


/* ---------- HERO IMAGE ---------- */

.tp-guide-hero__visual,
.tp-guide-hero__visual-inner,
.tp-guide-hero__picture {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;
}


.tp-guide-hero__visual {
  z-index: 0;
}


.tp-guide-hero__visual-inner {
  overflow: hidden;
}


.tp-guide-hero__picture {
  display: block;
}


.tp-guide-hero__picture img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center 52%;
}


/* ---------- HERO GRADIENT ---------- */

.tp-guide-hero::after {
  content: "";

  position: absolute;
  inset: 0;
  z-index: 1;

  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      rgba(10, 20, 23, 0.91) 0%,
      rgba(10, 20, 23, 0.78) 27%,
      rgba(10, 20, 23, 0.47) 45%,
      rgba(10, 20, 23, 0.12) 67%,
      rgba(10, 20, 23, 0.03) 100%
    );
}


/* ---------- HERO CONTENT ---------- */

.tp-guide-hero__content {
  position: relative;
  z-index: 3;

  width: min(55%, 675px);
  height: 100%;

  padding:
    clamp(32px, 3vw, 48px)
    clamp(34px, 3.2vw, 54px);

  display: flex;
  flex-direction: column;
  justify-content: center;

  color: #ffffff;
}


.tp-guide-hero__eyebrow {
  display: inline-flex;
  align-self: flex-start;

  margin: 0 0 15px;
  padding: 7px 13px;

  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;

  background: rgba(18, 28, 31, 0.35);

  color: #ffffff;

  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;

  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}


.tp-guide-hero__title {
  max-width: 650px;

  margin: 0 0 13px;

  color: #ffffff !important;

  font-size: clamp(36px, 3vw, 50px);
  font-weight: 750;
  line-height: 0.99;
  letter-spacing: -0.035em;
}


.tp-guide-hero__lead {
  max-width: 610px;

  margin: 0 0 17px;

  color: rgba(255, 255, 255, 0.91) !important;

  font-size: 15px;
  font-weight: 400;
  line-height: 1.58;
}


/* ---------- HERO BENEFITS ---------- */

.tp-guide-hero__benefits {
  display: flex;
  flex-wrap: wrap;

  gap: 8px 18px;

  margin: 0 0 19px;
}


.tp-guide-benefit {
  display: inline-flex;
  align-items: center;

  gap: 7px;

  color: #ffffff;

  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
}


.tp-guide-benefit__icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #ffffff;
  color: #f47721;

  font-size: 15px;
  font-weight: 800;

  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.12);
}


/* ---------- HERO BUTTONS ---------- */

.tp-guide-hero__actions {
  display: flex;
  flex-wrap: wrap;

  gap: 10px;
}


.tp-guide-btn {
  min-height: 44px;
  padding: 0 22px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 7px;

  font-size: 12px;
  font-weight: 750;
  line-height: 1;

  text-decoration: none !important;

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease;
}


.tp-guide-btn:hover {
  transform: translateY(-1px);
}


.tp-guide-btn--primary {
  border: 1px solid #f9781c;

  background: #f9781c;

  color: #ffffff !important;
}


.tp-guide-btn--primary:hover {
  border-color: #e96b12;

  background: #e96b12;

  color: #ffffff !important;

  box-shadow:
    0 7px 20px rgba(249, 120, 28, 0.24);
}


.tp-guide-btn--secondary {
  border: 1px solid rgba(255, 255, 255, 0.68);

  background: rgba(20, 27, 29, 0.30);

  color: #ffffff !important;

  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}


.tp-guide-btn--secondary:hover {
  border-color: #ffffff;

  background: rgba(255, 255, 255, 0.10);

  color: #ffffff !important;
}


.tp-guide-hero__all {
  display: inline-flex;
  align-self: flex-start;

  margin-top: 11px;

  color: rgba(255, 255, 255, 0.78) !important;

  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;

  text-decoration: none !important;
}


.tp-guide-hero__all:hover {
  color: #ffffff !important;
}


/* ---------- HERO LABEL ---------- */

.tp-guide-hero__visual-label {
  position: absolute;

  top: 17px;
  right: 18px;
  z-index: 4;

  padding: 7px 12px;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.92);
  color: #39434a;

  font-size: 10.5px;
  font-weight: 650;

  box-shadow:
    0 5px 18px rgba(20, 30, 35, 0.10);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}


/* ---------- HERO SIGNATURE ---------- */

.tp-guide-hero__signature {
  position: absolute;

  right: 26px;
  bottom: 20px;
  z-index: 4;

  max-width: 205px;

  transform: rotate(-4deg);

  color: rgba(255, 255, 255, 0.94);

  font-size: 21px;
  font-weight: 700;
  font-style: italic;
  line-height: 0.96;

  text-align: right;

  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.34);
}


/* =========================================================
   ROW 2 — DIRECTIONS
   ========================================================= */

.tp-guide-directions {
  position: relative;

  width: min(1280px, calc(100vw - 48px));
  margin: 0 auto;

  padding: 31px 24px 30px;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 8% 18%,
      rgba(232, 243, 234, 0.88),
      transparent 28%
    ),
    radial-gradient(
      circle at 91% 80%,
      rgba(227, 240, 228, 0.78),
      transparent 25%
    ),
    linear-gradient(
      180deg,
      #f5faf5 0%,
      #edf6ee 100%
    );
}


/* ---------- DECORATIVE LEAVES ---------- */

.tp-guide-directions::before {
  content: "";

  position: absolute;

  top: 20px;
  right: 7%;

  width: 180px;
  height: 110px;

  opacity: 0.30;

  pointer-events: none;

  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 130'%3E%3Cg fill='none' stroke='%2396b99b' stroke-width='2'%3E%3Cpath d='M18 111C57 92 90 68 119 28'/%3E%3Cpath d='M73 83C56 55 39 51 27 59C40 78 54 87 73 83Z'/%3E%3Cpath d='M101 53C81 28 65 28 54 38C69 56 84 61 101 53Z'/%3E%3Cpath d='M120 28C128 8 146 3 164 9C154 27 139 35 120 28Z'/%3E%3Cpath d='M85 76C111 69 131 76 141 94C114 99 95 92 85 76Z'/%3E%3C/g%3E%3C/svg%3E");
}


/* ---------- ROW 2 HEADER ---------- */

.tp-guide-directions__head {
  position: relative;
  z-index: 2;

  width: min(1280px, 100%);

  margin: 0 auto 22px;

  text-align: center;
}


.tp-guide-directions__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin: 0 0 9px;
  padding: 6px 12px;

  border: 1px solid #efc29f;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.78);
  color: #ef7622;

  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
}


.tp-guide-directions__head h2 {
  margin: 0 0 8px;

  color: #20272d;

  font-size: clamp(27px, 2.3vw, 36px);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.025em;
}


.tp-guide-directions__head p {
  max-width: 730px;

  margin: 0 auto;

  color: #6d777e;

  font-size: 14px;
  line-height: 1.55;
}


/* ---------- ROW 2 GRID ---------- */

.tp-guide-directions__grid {
  position: relative;
  z-index: 2;

  width: min(1280px, 100%);

  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 14px;
}


/* =========================================================
   ALL CARDS
   ========================================================= */

.tp-guide-card {
  position: relative;

  min-width: 0;

  overflow: hidden;

  border: 1px solid rgba(196, 205, 199, 0.72);
  border-radius: 16px;

  background: rgba(255, 255, 255, 0.92);

  box-shadow:
    0 8px 24px rgba(39, 51, 46, 0.045);

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}


@media (hover: hover) {

  .tp-guide-card:hover {
    transform: translateY(-2px);

    border-color: rgba(238, 157, 99, 0.50);

    box-shadow:
      0 14px 30px rgba(39, 51, 46, 0.08);
  }

}


/* ---------- CARD ICON ---------- */

.tp-guide-card__icon {
  position: relative;
  z-index: 3;

  width: 46px;
  height: 46px;
  flex: 0 0 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 13px;

  background: #fff0e5;
  color: #f47721;
}


.tp-guide-card__icon svg {
  width: 23px;
  height: 23px;
}


/* ---------- CARD CONTENT ---------- */

.tp-guide-card__content {
  position: relative;
  z-index: 3;

  min-width: 0;
}


.tp-guide-card h3 {
  margin: 0;

  color: #20272d;

  font-weight: 750;
  line-height: 1.18;
  letter-spacing: -0.015em;
}


.tp-guide-card p {
  color: #707a80;
}


.tp-guide-card__link {
  display: inline-flex;
  align-items: center;

  gap: 8px;

  color: #ee7522;

  font-weight: 700;

  white-space: nowrap;
}


/* =========================================================
   PRIMARY CARDS — TERASOS / LIEPTAI
   ========================================================= */

.tp-guide-card--primary {
  grid-column: span 2;

  min-height: 164px;

  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);

  align-items: start;

  gap: 13px;

  /*
    Teksto zona ~57 %
    tarpinė saugi zona ~3 %
    fotografija ~40 %
  */
  padding: 18px 43% 17px 18px;
}


.tp-guide-card--primary::after {
  content: "";

  position: absolute;

  top: 0;
  right: 0;
  bottom: 0;

  width: 40%;

  z-index: 0;

  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}


.tp-guide-card--primary::before {
  content: "";

  position: absolute;
  inset: 0;

  z-index: 1;

  pointer-events: none;
}


#terasos {
  background: #fff8f2;

  border-color: #ecd5c2;
}


#terasos::after {
  background-image:
    url("/image/catalog/gidas/korteles/gido-kortele-terasu-patarimai.jpg");
}


#terasos::before {
  background:
    linear-gradient(
      90deg,
      #fff8f2 0%,
      #fff8f2 53%,
      rgba(255, 248, 242, 0.94) 59%,
      rgba(255, 248, 242, 0.62) 68%,
      rgba(255, 248, 242, 0.16) 77%,
      rgba(255, 248, 242, 0) 84%
    );
}


#lieptai {
  background: #f4faf5;

  border-color: #d4e2d5;
}


#lieptai::after {
  background-image:
    url("/image/catalog/gidas/korteles/gido-kortele-lieptu-patarimai.jpg");
}


#lieptai::before {
  background:
    linear-gradient(
      90deg,
      #f4faf5 0%,
      #f4faf5 53%,
      rgba(244, 250, 245, 0.94) 59%,
      rgba(244, 250, 245, 0.62) 68%,
      rgba(244, 250, 245, 0.16) 77%,
      rgba(244, 250, 245, 0) 84%
    );
}


.tp-guide-card--primary .tp-guide-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;

  min-width: 0;
}


.tp-guide-card__label {
  display: inline-flex;
  align-self: flex-start;

  margin: 0 0 6px;
  padding: 4px 9px;

  border-radius: 999px;

  background: #fff0e5;
  color: #ef7521;

  font-size: 10px;
  font-weight: 750;
  line-height: 1;
}


.tp-guide-card--primary h3 {
  margin-bottom: 6px;

  font-size: 21px;
}


.tp-guide-card--primary p {
  max-width: 330px;

  margin: 0;

  font-size: 12.5px;
  line-height: 1.42;

  overflow-wrap: normal;
  word-break: normal;
}


.tp-guide-card--primary .tp-guide-card__link {
  margin-top: 10px;

  font-size: 12px;
}


/* =========================================================
   FOUR SMALL TOOL CARDS
   ========================================================= */

.tp-guide-card:not(.tp-guide-card--primary) {
  min-height: 96px;

  padding: 15px 17px;

  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);

  align-items: center;

  gap: 13px;
}


.tp-guide-card:not(.tp-guide-card--primary)
.tp-guide-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;

  gap: 7px;
}


.tp-guide-card:not(.tp-guide-card--primary) h3 {
  font-size: 16px;
}


.tp-guide-card:not(.tp-guide-card--primary) p {
  display: none;
}


.tp-guide-card:not(.tp-guide-card--primary)
.tp-guide-card__link {
  font-size: 11px;
  line-height: 1.2;
}


#video {
  border-color: #cee0d0;

  background:
    linear-gradient(
      135deg,
      #f8fcf8 0%,
      #edf7ee 100%
    );
}


#video .tp-guide-card__icon {
  background: #ffffff;

  color: #4f8e60;

  box-shadow:
    0 5px 16px rgba(56, 98, 66, 0.08);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

  .tp-guide-hero {
    width: calc(100vw - 32px);
    height: 410px;
  }


  .tp-guide-hero__content {
    width: 61%;

    padding: 34px;
  }


  .tp-guide-hero__title {
    font-size: 37px;
  }


  .tp-guide-hero::after {
    background:
      linear-gradient(
        90deg,
        rgba(10, 20, 23, 0.92) 0%,
        rgba(10, 20, 23, 0.77) 36%,
        rgba(10, 20, 23, 0.27) 68%,
        rgba(10, 20, 23, 0.05) 100%
      );
  }


  .tp-guide-directions {
    width: calc(100vw - 32px);

    padding-left: 16px;
    padding-right: 16px;
  }


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


  .tp-guide-card--primary {
    grid-column: span 1;

    min-height: 166px;

    padding-right: 41%;
  }


  .tp-guide-card--primary::after {
    width: 38%;
  }


  .tp-guide-card:not(.tp-guide-card--primary) {
    min-height: 94px;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

  /* ---------- HERO ---------- */

  .tp-guide-hero {
    width: calc(100vw - 32px);

    height: auto;
    min-height: 0;

    margin: 8px auto 0;

    border-radius: 18px;
  }


  .tp-guide-hero__content {
    width: 100%;
    height: auto;

    min-height: 0;

    padding: 27px 21px 22px;

    justify-content: flex-start;
  }


  .tp-guide-hero__picture img {
    object-position: center center;
  }


  .tp-guide-hero::after {
    background:
      linear-gradient(
        180deg,
        rgba(10, 19, 22, 0.36) 0%,
        rgba(10, 19, 22, 0.48) 27%,
        rgba(10, 19, 22, 0.65) 57%,
        rgba(10, 19, 22, 0.84) 100%
      ),
      linear-gradient(
        90deg,
        rgba(10, 19, 22, 0.22) 0%,
        rgba(10, 19, 22, 0.05) 100%
      );
  }


  .tp-guide-hero__eyebrow {
    margin-bottom: 16px;

    padding: 7px 12px;

    font-size: 11.5px;
  }


  .tp-guide-hero__title {
    max-width: 570px;

    margin-bottom: 13px;

    font-size: clamp(29px, 8.1vw, 35px);
    line-height: 1.02;
  }


  .tp-guide-hero__lead {
    max-width: none;

    margin-bottom: 15px;

    font-size: 14.5px;
    line-height: 1.5;
  }


  .tp-guide-hero__benefits {
    gap: 8px 12px;

    margin-bottom: 15px;
  }


  .tp-guide-benefit {
    font-size: 12.5px;
  }


  .tp-guide-benefit__icon {
    width: 23px;
    height: 23px;

    flex-basis: 23px;
  }


  .tp-guide-hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;

    width: 100%;

    gap: 8px;
  }


  .tp-guide-btn {
    width: 100%;

    min-height: 46px;

    padding: 0 10px;

    font-size: 12px;
  }


  .tp-guide-hero__all {
    margin-top: 10px;

    font-size: 11px;
  }


  .tp-guide-hero__visual-label,
  .tp-guide-hero__signature {
    display: none;
  }


  /* ---------- ROW 2 ---------- */

  .tp-guide-directions {
    width: calc(100vw - 32px);
    margin: 0 auto;

    padding: 27px 14px 25px;

    border-radius: 16px;
  }


  .tp-guide-directions::before {
    top: 8px;
    right: -24px;

    width: 145px;
    height: 100px;

    opacity: 0.24;
  }


  .tp-guide-directions__head {
    margin-bottom: 19px;

    padding: 0 8px;
  }


  .tp-guide-directions__eyebrow {
    margin-bottom: 8px;

    padding: 6px 11px;

    font-size: 10.5px;
  }


  .tp-guide-directions__head h2 {
    margin-bottom: 8px;

    font-size: 29px;
    line-height: 1.06;
  }


  .tp-guide-directions__head p {
    font-size: 13.5px;
    line-height: 1.48;
  }


  .tp-guide-directions__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 10px;
  }


  /* ---------- PRIMARY MOBILE ---------- */

  .tp-guide-card--primary {
    grid-column: 1 / -1;

    min-height: 166px;

    grid-template-columns: 44px minmax(0, 1fr);

    gap: 11px;

    /*
      mobile:
      tekstui daugiau vietos,
      fotografija mažesnė
    */
    padding:
      17px
      38%
      16px
      17px;

    border-radius: 16px;
  }


  .tp-guide-card--primary::after {
    width: 35%;
  }


  .tp-guide-card--primary .tp-guide-card__icon {
    width: 44px;
    height: 44px;

    flex-basis: 44px;
  }


  .tp-guide-card--primary .tp-guide-card__icon svg {
    width: 22px;
    height: 22px;
  }


  .tp-guide-card--primary h3 {
    margin-bottom: 5px;

    font-size: 20px;
  }


  .tp-guide-card--primary p {
    max-width: 100%;

    font-size: 11.5px;
    line-height: 1.36;
  }


  .tp-guide-card--primary .tp-guide-card__link {
    margin-top: 9px;

    font-size: 12px;
  }


  /* ---------- SMALL MOBILE CARDS ---------- */

  .tp-guide-card:not(.tp-guide-card--primary) {
    min-height: 108px;

    padding: 13px;

    grid-template-columns: 42px minmax(0, 1fr);

    gap: 10px;

    border-radius: 15px;
  }


  .tp-guide-card:not(.tp-guide-card--primary)
  .tp-guide-card__icon {
    width: 42px;
    height: 42px;

    flex-basis: 42px;

    border-radius: 12px;
  }


  .tp-guide-card:not(.tp-guide-card--primary)
  .tp-guide-card__icon svg {
    width: 21px;
    height: 21px;
  }


  .tp-guide-card:not(.tp-guide-card--primary)
  .tp-guide-card__content {
    gap: 7px;
  }


  .tp-guide-card:not(.tp-guide-card--primary) h3 {
    font-size: 15px;
    line-height: 1.15;
  }


  .tp-guide-card:not(.tp-guide-card--primary)
  .tp-guide-card__link {
    font-size: 11px;

    white-space: normal;
  }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

  .tp-guide-hero {
    width: calc(100vw - 24px);

    border-radius: 16px;
  }


  .tp-guide-hero__content {
    padding: 24px 16px 20px;
  }


  .tp-guide-hero__eyebrow {
    margin-bottom: 14px;

    font-size: 11px;
  }


  .tp-guide-hero__title {
    margin-bottom: 12px;

    font-size: 29px;
  }


  .tp-guide-hero__lead {
    margin-bottom: 14px;

    font-size: 13.5px;
  }


  .tp-guide-benefit {
    font-size: 12px;
  }


  .tp-guide-hero__benefits {
    gap: 7px 10px;

    margin-bottom: 14px;
  }


  .tp-guide-btn {
    min-height: 44px;

    font-size: 11.5px;
  }


  .tp-guide-directions {
    width: calc(100vw - 24px);
    margin: 0 auto;

    padding-left: 11px;
    padding-right: 11px;
  }


  .tp-guide-directions__grid {
    gap: 9px;
  }


  .tp-guide-card--primary {
    min-height: 160px;

    padding:
      14px
      37%
      14px
      14px;

    grid-template-columns: 40px minmax(0, 1fr);

    gap: 9px;
  }


  .tp-guide-card--primary::after {
    width: 34%;
  }


  .tp-guide-card--primary .tp-guide-card__icon {
    width: 40px;
    height: 40px;

    flex-basis: 40px;
  }


  .tp-guide-card--primary .tp-guide-card__icon svg {
    width: 20px;
    height: 20px;
  }


  .tp-guide-card--primary h3 {
    font-size: 18px;
  }


  .tp-guide-card--primary p {
    font-size: 10.8px;
    line-height: 1.36;
  }


  .tp-guide-card--primary .tp-guide-card__link {
    margin-top: 8px;

    font-size: 11px;
  }


  .tp-guide-card:not(.tp-guide-card--primary) {
    min-height: 104px;

    padding: 11px;

    grid-template-columns: 38px minmax(0, 1fr);

    gap: 8px;
  }


  .tp-guide-card:not(.tp-guide-card--primary)
  .tp-guide-card__icon {
    width: 38px;
    height: 38px;
  }


  .tp-guide-card:not(.tp-guide-card--primary)
  .tp-guide-card__icon svg {
    width: 19px;
    height: 19px;
  }


  .tp-guide-card:not(.tp-guide-card--primary) h3 {
    font-size: 14px;
  }


  .tp-guide-card:not(.tp-guide-card--primary)
  .tp-guide-card__link {
    font-size: 10.5px;
  }

}