/* =========================================================
   MALİYET HESAP PROGRAMI — SAYFAYA ÖZEL
========================================================= */

.td-cost-page {
  background: #fff;
}


/* =========================================================
   HERO
========================================================= */

.td-cost-hero {
  overflow: hidden;
}

.td-cost-hero .td-inner-hero-content {
  max-width: 620px;
}

.td-cost-hero .td-inner-hero-content > p {
  max-width: 610px;
}

.td-btn-outline-light {
  min-height: 54px;
  padding: 0 26px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.td-btn-outline-light:hover {
  color: #1f3b5d;
  background: #fff;
}


/* =========================================================
   HERO VISUAL
========================================================= */

.td-cost-visual {
  width: min(100%, 590px);
  min-height: 430px;
  margin-left: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.td-cost-visual::before {
  content: "";
  position: absolute;
  inset: 13% 7% 7%;
  background: rgba(99, 178, 180, 0.28);
  border-radius: 50%;
  filter: blur(60px);
}

.td-cost-window {
  width: 88%;
  padding: 0 22px 22px;
  position: relative;
  z-index: 2;
  color: #173456;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  box-shadow: 0 34px 70px rgba(5, 18, 36, 0.32);
  transform: rotate(-1.3deg);
}

.td-cost-window-top {
  height: 57px;
  margin: 0 -22px 20px;
  padding: 0 22px;
  border-bottom: 1px solid #e8eef3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.td-cost-window-top > span {
  width: 9px;
  height: 9px;
  background: #cbd5df;
  border-radius: 50%;
}

.td-cost-window-top strong {
  margin-left: auto;
  color: #1c3a5f;
  font-size: 11px;
  font-weight: 800;
}

.td-cost-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
}

.td-cost-summary > div {
  padding: 14px;
  background: #f4f7f9;
  border: 1px solid #e7edf0;
  border-radius: 13px;
}

.td-cost-summary small {
  min-height: 29px;
  color: #8392a2;
  display: block;
  font-size: 9px;
  line-height: 1.4;
}

.td-cost-summary strong {
  color: #1b3c62;
  display: block;
  font-size: 18px;
  font-weight: 800;
}

.td-cost-chart {
  height: 120px;
  margin-top: 17px;
  padding: 17px 18px 12px;
  background:
    linear-gradient(to top, rgba(222, 231, 236, 0.55) 1px, transparent 1px);
  background-size: 100% 30px;
  border: 1px solid #e7edf0;
  border-radius: 15px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.td-cost-chart span {
  height: var(--h);
  flex: 1;
  background: linear-gradient(180deg, #77b6b8, #356f86);
  border-radius: 7px 7px 3px 3px;
}

.td-cost-list {
  margin-top: 16px;
  padding: 4px 15px;
  background: #f7f9fb;
  border: 1px solid #e7edf0;
  border-radius: 15px;
}

.td-cost-list > div {
  min-height: 55px;
  border-bottom: 1px solid #e6ecef;
  display: flex;
  align-items: center;
  gap: 10px;
}

.td-cost-list > div:last-child {
  border-bottom: 0;
}

.td-cost-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  background: #4f9698;
  border-radius: 50%;
  box-shadow: 0 0 0 5px #e7f3f3;
}

.td-cost-list p {
  margin: 0 auto 0 0;
}

.td-cost-list p strong,
.td-cost-list p small {
  display: block;
}

.td-cost-list p strong {
  color: #214161;
  font-size: 11px;
  font-weight: 800;
}

.td-cost-list p small {
  margin-top: 3px;
  color: #8997a6;
  font-size: 8px;
}

.td-cost-list em {
  color: #2f5f7c;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.td-cost-calculator {
  width: 205px;
  padding: 22px;
  position: absolute;
  right: -2px;
  bottom: 1px;
  z-index: 4;
  color: #193b61;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 24px 55px rgba(8, 25, 45, 0.32);
  transform: rotate(5deg);
}

.td-cost-calculator > span {
  color: #438b8e;
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.td-cost-calculator-screen {
  margin: 19px 0 15px;
  padding: 13px;
  background: #eef4f6;
  border: 1px solid #e0e8ec;
  border-radius: 13px;
}

.td-cost-calculator-screen small,
.td-cost-calculator-screen strong {
  display: block;
}

.td-cost-calculator-screen small {
  color: #8492a2;
  font-size: 8px;
}

.td-cost-calculator-screen strong {
  margin-top: 5px;
  color: #1f4268;
  font-size: 19px;
  font-weight: 800;
}

.td-cost-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.td-cost-keypad i {
  height: 24px;
  background: #edf2f4;
  border-radius: 7px;
}

.td-cost-calculator button {
  width: 100%;
  min-height: 36px;
  margin-top: 12px;
  color: #fff;
  background: linear-gradient(135deg, #315f7c, #438d8e);
  border: 0;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 800;
  pointer-events: none;
}

.td-cost-floating {
  padding: 12px 15px;
  position: absolute;
  z-index: 6;
  color: #244c6d;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(7, 21, 39, 0.25);
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  font-weight: 800;
}

.td-cost-floating i {
  color: #438f91;
  font-size: 16px;
}

.td-cost-floating-one {
  top: 12px;
  left: 42px;
}

.td-cost-floating-two {
  right: 5px;
  bottom: 35px;
}


/* =========================================================
   OVERVIEW
========================================================= */

.td-cost-overview {
  background: #fff;
}


/* =========================================================
   BENEFITS
========================================================= */

.td-cost-benefits {
  background: #f4f7f9;
}

.td-cost-benefit-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.td-cost-benefit-card {
  min-height: 285px;
  padding: 32px;
  position: relative;
  background: #fff;
  border: 1px solid var(--td-border);
  border-radius: 22px;
  transition: var(--td-transition);
}

.td-cost-benefit-card:hover {
  border-color: #69aeb0;
  box-shadow: 0 24px 55px rgba(24, 58, 91, 0.09);
  transform: translateY(-5px);
}

.td-cost-benefit-card > span {
  position: absolute;
  top: 34px;
  right: 32px;
  color: #a5b1bc;
  font-size: 11px;
  font-weight: 800;
}

.td-cost-benefit-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 35px;
  color: #3f8b8e;
  background: #eaf5f5;
  border-radius: 15px;
  display: grid;
  place-items: center;
}

.td-cost-benefit-icon i {
  font-size: 22px;
}

.td-cost-benefit-card h3 {
  margin: 0 0 13px;
  color: var(--td-dark);
  font-size: 20px;
  font-weight: 800;
}

.td-cost-benefit-card p {
  margin: 0;
  color: var(--td-text-soft);
  font-size: 13px;
  line-height: 1.75;
}


/* =========================================================
   FEATURES
========================================================= */

.td-cost-features {
  background: #fff;
}


/* =========================================================
   GALLERY
========================================================= */

.td-cost-gallery {
  background: #f4f7f9;
}

.td-cost-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.td-cost-gallery-item {
  min-height: 355px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e4ecef, #d7e4e8);
  border: 1px solid var(--td-border);
  border-radius: 22px;
  cursor: zoom-in;
}

.td-cost-gallery-item-wide {
  grid-column: span 2;
  min-height: 470px;
}

.td-cost-gallery-item img {
  width: 100%;
  height: 319px;
  object-fit: contain;
  object-position: top center;
  background: #fff;
  border-radius: 13px;
  display: block;
  transition: transform 0.55s ease;
}

.td-cost-gallery-item-wide img {
  height: 434px;
}

.td-cost-gallery-item::after {
  content: "";
  position: absolute;
  inset: 48% 0 0;
  background: linear-gradient(180deg, transparent, rgba(14, 33, 55, 0.76));
  pointer-events: none;
}

.td-cost-gallery-item:hover img {
  transform: scale(1.018);
}

.td-cost-gallery-item > span {
  position: absolute;
  left: 24px;
  bottom: 21px;
  z-index: 2;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 800;
}


/* =========================================================
   PROJECT INFO
========================================================= */

.td-cost-project-info {
  padding: 105px 0;
  background: #fff;
}

.td-cost-project-info-box {
  padding: 47px 50px;
  background: #203e62;
  border-radius: 25px;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 65px;
  align-items: center;
}

.td-cost-project-info-box > div > span {
  color: #8fcfd0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.td-cost-project-info-box h2 {
  max-width: 460px;
  margin: 16px 0 0;
  color: #fff;
  font-size: clamp(32px, 3vw, 46px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.8px;
}

.td-cost-project-info-box dl {
  margin: 0;
}

.td-cost-project-info-box dl > div {
  padding: 17px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 20px;
}

.td-cost-project-info-box dl > div:last-child {
  border-bottom: 0;
}

.td-cost-project-info-box dt {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 600;
}

.td-cost-project-info-box dd {
  margin: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.td-cost-project-info-box dd a {
  color: #fff;
}

.td-cost-project-info-box dd a i {
  margin-left: 7px;
  color: #8fcfd0;
}


/* =========================================================
   MODAL
========================================================= */

.td-cost-modal {
  padding: 75px 6vw;
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: auto;
  visibility: hidden;
  opacity: 0;
  background: rgba(12, 28, 48, 0.96);
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.td-cost-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.td-cost-modal-content {
  width: min(100%, 1350px);
  margin: 0 auto;
}

.td-cost-modal-content img {
  width: 100%;
  height: auto;
  background: #fff;
  border-radius: 18px;
  display: block;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.32);
}

.td-cost-modal-close {
  width: 46px;
  height: 46px;
  padding: 0;
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 2;
  color: #203e62;
  background: #fff;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.td-cost-modal-close i {
  font-size: 22px;
}

body.td-cost-modal-open {
  overflow: hidden;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1199px) {

  .td-cost-calculator {
    right: 0;
  }

  .td-cost-benefit-card {
    padding: 28px;
  }

}

@media (max-width: 991px) {

  .td-cost-visual {
    width: min(100%, 620px);
    margin: 20px auto 0;
  }

  .td-cost-window {
    width: calc(100% - 45px);
    margin-right: 45px;
  }

  .td-cost-benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .td-cost-project-info-box {
    grid-template-columns: 1fr;
    gap: 38px;
  }

}

@media (max-width: 767px) {

  .td-cost-hero .td-inner-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .td-cost-hero .td-inner-hero-actions .td-btn {
    width: 100%;
  }

  .td-cost-gallery-grid {
    grid-template-columns: 1fr;
  }

  .td-cost-gallery-item-wide {
    grid-column: span 1;
  }

  .td-cost-project-info-box {
    padding: 38px 30px;
  }

}

@media (max-width: 575px) {

  .td-cost-visual {
    min-height: 390px;
  }

  .td-cost-window {
    width: 100%;
    margin-right: 0;
    padding: 0 14px 16px;
  }

  .td-cost-window-top {
    margin: 0 -14px 16px;
    padding: 0 14px;
  }

  .td-cost-summary {
    gap: 7px;
  }

  .td-cost-summary > div {
    padding: 10px 8px;
  }

  .td-cost-summary small {
    font-size: 7px;
  }

  .td-cost-summary strong {
    font-size: 15px;
  }

  .td-cost-chart {
    height: 105px;
    gap: 7px;
  }

  .td-cost-calculator {
    width: 150px;
    padding: 15px;
    right: -4px;
    bottom: -8px;
  }

  .td-cost-list em {
    display: none;
  }

  .td-cost-floating {
    display: none;
  }

  .td-cost-benefit-grid {
    grid-template-columns: 1fr;
  }

  .td-cost-gallery-item,
  .td-cost-gallery-item-wide {
    min-height: 300px;
    padding: 12px;
  }

  .td-cost-gallery-item img,
  .td-cost-gallery-item-wide img {
    height: 276px;
  }

  .td-cost-project-info-box {
    padding: 32px 22px;
  }

  .td-cost-project-info-box dl > div {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .td-cost-modal {
    padding: 68px 10px 20px;
  }

  .td-cost-modal-close {
    top: 13px;
    right: 13px;
  }

}
