.calc-home {
  min-height: 100vh;
  background: #f3f4f7;
  padding: 18px 12px 28px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.calc-home__inner {
  max-width: 760px;
  margin: 0 auto;
}

.calc-card {
  width: 100%;
  background: #fff;
  border-radius: 28px;
  border: 1px solid #e7e9ee;
  padding: 26px;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06);
  box-sizing: border-box;
}

.calc-card__top {
  margin-bottom: 22px;
}

.calc-divider,
.calc-subtitle {
  display: none;
}

.calc-title {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 700;
  line-height: 1.15;
}

.calc-search-wrap {
  position: relative;
  margin-top: 18px;
}

.calc-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

.calc-search-input {
  width: 100%;
  height: 86px;
  border-radius: 20px;
  border: 1px solid #cb0e0f;
  background: #fff;
  padding: 0 20px 0 72px;
  font-size: clamp(18px, 1.9vw, 30px);
  color: #111827;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.calc-search-input:focus {
  border-color: #e11d48;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.calc-search-input::placeholder {
  color: #9ca3af;
}

.calc-links {
  margin-bottom: 20px;
}

.calc-links > * + * {
  margin-top: 14px;
}

.calc-link-card {
  width: 100%;
  min-height: 120px;
  border-radius: 20px;
  border: 1px solid #cb0e0f;
  background: #fff;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.03);
  text-decoration: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.calc-link-card:hover {
  border-color: #fecaca;
  box-shadow: 0 6px 14px rgba(239, 68, 68, 0.08);
  transform: translateY(-1px);
}

.calc-link-content {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.calc-link-icon-box {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  background: #fef0f1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.calc-link-copy {
  min-width: 0;
}

.calc-link-title {
  margin: 0 0 4px;
  color: #111827;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 600;
  line-height: 1.25;
}

.calc-link-subtitle {
  margin: 0;
  color: #6b7280;
  font-size: clamp(14px, 1.45vw, 18px);
  font-weight: 400;
  line-height: 1.35;
}

.calc-link-arrow {
  width: 24px;
  height: 24px;
  color: #ef4444;
  flex-shrink: 0;
}

.calc-pf {
  font-size: clamp(28px, 2.4vw, 34px);
  line-height: 1;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: #ef4444;
}

.calc-kwh {
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 700;
  color: #ef4444;
  letter-spacing: -0.01em;
}

.calc-expanders > * + * {
  margin-top: 12px;
}

.calc-toggle {
  width: 100%;
  min-height: 108px;
  border-radius: 18px;
  border: 1px solid #cb0e0f;
  background: #fff;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-sizing: border-box;
  text-align: left;
}

.calc-toggle__title {
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 600;
  color: #111827;
  line-height: 1.25;
  display: block;
}

.calc-toggle__text {
  margin-top: 4px;
  font-size: clamp(14px, 1.45vw, 18px);
  font-weight: 400;
  color: #6b7280;
  line-height: 1.35;
  display: block;
}

.calc-toggle__icon {
  width: 24px;
  height: 24px;
  color: #ef4444;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.calc-toggle__icon.is-rotated {
  transform: rotate(180deg);
}

.calc-panel {
  display: none;
  border-radius: 16px;
  border: 1px solid #cb0e0f;
  background: #fff;
  padding: 16px 18px;
}

.calc-panel.is-open {
  display: block;
}

.calc-panel__text {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

.calc-desktop-only {
  display: none !important;
}

@media (max-width: 1279px) {
  .calc-card {
    border-radius: 24px;
  }

  .calc-title {
    font-size: clamp(24px, 3.4vw, 34px);
  }

  .calc-search-input {
    height: 72px;
    font-size: 21px;
    padding-left: 62px;
  }

  .calc-search-icon {
    width: 24px;
    height: 24px;
    left: 18px;
  }

  .calc-link-card {
    min-height: 108px;
  }

  .calc-link-icon-box {
    width: 64px;
    height: 64px;
  }

  .calc-link-title {
    font-size: 20px;
  }

  .calc-link-subtitle {
    font-size: 15px;
  }

  .calc-toggle {
    min-height: 98px;
  }

  .calc-toggle__title {
    font-size: 20px;
  }

  .calc-toggle__text {
    font-size: 15px;
  }
}

@media (max-width: 767px) {
  .calc-home {
    padding: 10px 8px 18px;
  }

  .calc-card {
    border-radius: 16px;
    padding: 14px;
  }

  .calc-card__top {
    margin-bottom: 14px;
  }

  .calc-title {
    font-size: 15px;
  }

  .calc-search-wrap {
    margin-top: 10px;
  }

  .calc-search-input {
    height: 46px;
    border-radius: 12px;
    padding: 0 12px 0 42px;
    font-size: 14px;
  }

  .calc-search-icon {
    width: 18px;
    height: 18px;
    left: 14px;
  }

  .calc-links {
    margin-bottom: 14px;
  }

  .calc-links > * + * {
    margin-top: 10px;
  }

  .calc-link-card {
    min-height: 76px;
    border-radius: 14px;
    padding: 12px 14px;
  }

  .calc-link-content {
    gap: 12px;
  }

  .calc-link-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .calc-link-icon-box svg {
    width: 22px;
    height: 22px;
  }

  .calc-link-title {
    font-size: 12px;
    margin-bottom: 2px;
  }

  .calc-link-subtitle {
    font-size: 9px;
  }

  .calc-link-arrow {
    width: 18px;
    height: 18px;
  }

  .calc-pf,
  .calc-kwh {
    font-size: 15px;
  }

  .calc-expanders > * + * {
    margin-top: 10px;
  }

  .calc-toggle {
    min-height: 74px;
    border-radius: 14px;
    padding: 12px 14px;
  }

  .calc-toggle__title {
    font-size: 12px;
  }

  .calc-toggle__text {
    font-size: 9px;
    margin-top: 2px;
  }

  .calc-toggle__icon {
    width: 18px;
    height: 18px;
  }

  .calc-panel {
    border-radius: 12px;
    padding: 12px 14px;
  }

  .calc-panel__text {
    font-size: 12px;
  }
}

@media (min-width: 1025px) {
  .calc-home {
    padding: 28px 18px 44px;
    background: linear-gradient(180deg, #f8f8fa 0%, #f3f4f7 100%);
  }

  .calc-home::before {
    content: "";
    position: absolute;
    left: -80px;
    top: 240px;
    width: 320px;
    height: 320px;
    background-image: radial-gradient(circle, rgba(239, 68, 68, 0.16) 1.5px, transparent 1.5px);
    background-size: 14px 14px;
    opacity: 0.28;
    pointer-events: none;
  }

  .calc-home::after {
    content: "";
    position: absolute;
    right: -130px;
    top: 190px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background-image: repeating-radial-gradient(circle at center, rgba(239, 68, 68, 0.1) 0 1px, transparent 1px 14px);
    opacity: 0.22;
    pointer-events: none;
  }

  .calc-home__inner {
    max-width: 1240px;
    position: relative;
    z-index: 1;
  }

  .calc-card {
    max-width: 1220px;
    border-radius: 30px;
    padding: 34px 32px 30px;
    border-color: #f1dfe0;
    box-shadow: 0 18px 44px rgba(17, 24, 39, 0.08);
  }

  .calc-card__top {
    margin-bottom: 18px;
    text-align: center;
  }

  .calc-title {
    font-size: clamp(24px, 2.1vw, 30px);
  }

  .calc-divider {
    margin: 8px auto 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .calc-divider__line {
    width: 54px;
    height: 1px;
    background: #ef4444;
    opacity: 0.6;
  }

  .calc-divider__icon {
    color: #ef4444;
    font-size: 13px;
    line-height: 1;
  }

  .calc-subtitle {
    display: block;
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    font-weight: 400;
  }

  .calc-search-wrap {
    max-width: 760px;
    margin: 16px auto 0;
  }

 .calc-search-input {
    height: 40px;
    border-radius: 11px;
    border-color: #cb0e0f;
    padding-left: 54px;
    font-size: 16px;
}

  .calc-search-icon {
    width: 20px;
    height: 20px;
    left: 20px;
  }

  .calc-links {
    margin-bottom: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .calc-links > * + * {
    margin-top: 0;
  }

  .calc-expanders {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .calc-expanders > * + * {
    margin-top: 0;
  }

  .calc-desktop-only {
    display: flex !important;
  }

  .calc-link-card {
    min-height: 208px;
    border-radius: 16px;
    border-color: #f1d6d7;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.05);
    padding: 16px 14px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .calc-link-content {
    width: 100%;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
  }

  .calc-link-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    margin: 0 auto;
  }

  .calc-link-icon-box svg {
    width: 26px;
    height: 26px;
  }

  .calc-pf,
  .calc-kwh {
    font-size: 18px;
  }

  .calc-link-copy {
    text-align: center;
  }

  .calc-link-title,
  .calc-toggle__title {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.3;
  }

  .calc-link-subtitle,
  .calc-toggle__text {
    font-size: 14px;
    margin: 0;
    line-height: 1.45;
  }

  .calc-link-arrow {
    width: 30px;
    height: 30px;
    border-radius: 9999px;
    border: 1px solid #cb0e0f;
    color: #ef4444;
    padding: 7px;
    margin-top: auto;
  }
}
