/*
 * Mehir hesaplama aracı (Views/Shared/Components/MehirCalculator).
 * Figma 1920px genişliğinde çizildi: --u = tasarımdaki 1px. Masaüstünde site gibi 1vw ile ölçeklenir,
 * 991px altında sabit piksele döner.
 */
.mc {
    --u: calc(1vw / 19.2);
    --mc-green: #03a85a;
    --mc-primary: #05d671;
    --mc-dark: #066b40;
    --mc-track: #dcf4e6;
    --mc-text: #242424;
    --mc-label: #3a3a3a;
    --mc-control: #39393e;
    --mc-border: #b2b2b2;
    --mc-muted: #6b7280;
    /* Figma'daki fontlar; Google Fonts bağlantısı sayfa görünümlerinde (StylesBottom). */
    --mc-font-manrope: "Manrope", sans-serif;
    --mc-font-montserrat: "Montserrat", sans-serif;
    --mc-font-inter: "Inter", sans-serif;
    /* SF Pro web fontu olarak dağıtılamıyor; Apple cihazlarda sistem fontu olarak gelir, diğerlerinde Inter'e düşer. */
    --mc-font-sf: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", sans-serif;
    padding: calc(80 * var(--u)) 0;
    scroll-margin-top: 4em;
    color: var(--mc-text);
    font-family: var(--mc-font-manrope);
    font-size: calc(16 * var(--u));
    line-height: 1.3;
}

.mc *,
.mc *::before,
.mc *::after {
    box-sizing: border-box;
}

:where(.mc) button,
:where(.mc) input,
:where(.mc) select {
    font: inherit;
    color: inherit;
}

.mc button {
    cursor: pointer;
}

.mc img {
    display: block;
    max-width: none;
}

.mc .container-large {
    max-width: calc(1748 * var(--u) + 5em);
}

/* ---------- Aşama düzeni: giriş (intro + form) ve sonuç (form + özet) ---------- */

.mc__stage {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: calc(41 * var(--u));
}

.mc__intro {
    position: relative;
    display: flex;
    align-items: center;
    gap: calc(46 * var(--u));
    width: calc(992 * var(--u));
    flex: none;
}

.mc__intro::after {
    content: "";
    position: absolute;
    left: calc(41 * var(--u));
    right: 0;
    bottom: calc(-4.5 * var(--u));
    height: calc(9 * var(--u));
    background: #155331;
}

.mc__intro-media {
    width: calc(584 * var(--u));
    height: calc(701 * var(--u));
    flex: none;
}

.mc__intro-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mc__intro-content {
    width: calc(324 * var(--u));
    flex: none;
}

.mc__intro-title {
    font-family: var(--mc-font-sf);
    margin: 0;
    color: var(--mc-green);
    font-size: calc(60 * var(--u));
    font-weight: 700;
    line-height: calc(70 * var(--u));
    letter-spacing: 0;
}

.mc__intro-text {
    font-family: var(--mc-font-sf);
    margin: calc(21 * var(--u)) 0 0;
    color: #767676;
    font-size: calc(30 * var(--u));
    line-height: calc(30 * var(--u));
}

.mc__cta {
    font-family: var(--mc-font-sf);
    width: 100%;
    height: calc(70 * var(--u));
    margin-top: calc(42 * var(--u));
    border: 0;
    border-radius: calc(38 * var(--u));
    background: var(--mc-green);
    color: #fff !important;
    font-size: calc(22 * var(--u));
    font-weight: 800;
    letter-spacing: .02em;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.mc__cta:hover {
    background: #029450;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -12px rgba(3, 168, 90, .8);
}

.mc__card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(716 * var(--u));
    flex: none;
    padding: calc(40 * var(--u));
    border: 2px solid #e6e6e6;
    border-radius: calc(30 * var(--u));
    background: linear-gradient(159deg, #f9fafb 13%, #fff 43%);
}

.mc__form {
    display: flex;
    flex-direction: column;
    gap: calc(36 * var(--u));
    width: calc(635 * var(--u));
    flex: none;
}

.mc__divider,
.mc__summary,
.mc__banner {
    display: none;
}

.mc.is-result .mc__intro {
    display: none;
}

.mc.is-result .mc__card {
    width: 100%;
    animation: mc-fade-in .45s ease both;
}

.mc.is-result .mc__divider {
    display: block;
    align-self: center;
    width: calc(5 * var(--u));
    height: calc(608 * var(--u));
    border-radius: calc(5 * var(--u));
    background: #ededed;
}

.mc.is-result .mc__summary {
    display: flex;
    animation: mc-fade-in .45s ease .1s both;
}

.mc.is-result .mc__banner {
    display: flex;
    animation: mc-fade-in .45s ease .2s both;
}

@keyframes mc-fade-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Form ---------- */

.mc__title {
    margin: 0;
    color: var(--mc-text);
    font-size: calc(40 * var(--u));
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0;
}

.mc__title--summary {
    font-family: var(--mc-font-montserrat);
    font-weight: 700;
}

.mc__title span {
    color: var(--mc-green);
}

.mc__subtitle {
    margin: calc(20 * var(--u)) 0 0;
    font-size: calc(20 * var(--u));
    font-weight: 500;
    line-height: calc(24 * var(--u));
}

.mc__label {
    font-family: var(--mc-font-montserrat);
    display: block;
    color: var(--mc-label);
    font-size: calc(15 * var(--u));
    font-weight: 700;
    line-height: calc(24 * var(--u));
    text-transform: uppercase;
}

.mc__field > .mc__label {
    margin-bottom: calc(12 * var(--u));
}

.mc__types {
    display: flex;
    gap: calc(12 * var(--u));
}

.mc__type {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: calc(10 * var(--u));
    height: calc(50 * var(--u));
    padding: 0 calc(10 * var(--u));
    border: 1px solid var(--mc-border);
    border-radius: calc(30 * var(--u));
    background: #fff;
    color: var(--mc-control);
    font-size: calc(17 * var(--u));
    font-weight: 700;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.mc__type img {
    width: auto;
    height: calc(24 * var(--u));
}

.mc__type[data-mc-type="cash"] img {
    height: calc(21.5 * var(--u));
}

.mc__type:hover {
    border-color: var(--mc-primary);
}

.mc__type[aria-pressed="true"] {
    border-color: var(--mc-primary);
    box-shadow: inset 0 0 0 .5px var(--mc-primary);
}

.mc__field-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: calc(12 * var(--u));
    margin-bottom: calc(10 * var(--u));
}

.mc__field-head--plain {
    align-items: center;
    margin-bottom: calc(10 * var(--u));
}

.mc__field-head .mc__label {
    padding-bottom: calc(2 * var(--u));
}

.mc__value-group {
    display: flex;
    gap: calc(8 * var(--u));
}

.mc__value {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: calc(3 * var(--u));
    min-width: calc(168 * var(--u));
    height: calc(40 * var(--u));
    padding: 0 calc(15 * var(--u));
    border: 1px solid var(--mc-border);
    border-radius: calc(12 * var(--u));
    background: #fff;
    color: var(--mc-label);
    font-size: calc(20 * var(--u));
    transition: border-color .2s ease;
}

.mc__value:focus-within {
    border-color: var(--mc-primary);
}

.mc__value-prefix {
    font-weight: 700;
}

.mc__value-prefix:empty {
    display: none;
}

.mc__value-input {
    width: calc(120 * var(--u));
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-weight: 800 !important;
    text-align: right;
}

.mc__value-suffix {
    color: #5e5e5e;
    font-size: calc(16 * var(--u));
    font-weight: 500;
}

.mc__currency {
    height: calc(40 * var(--u));
    padding: 0 calc(10 * var(--u));
    border: 1px solid var(--mc-border);
    border-radius: calc(12 * var(--u));
    background: #fff;
    color: var(--mc-label);
    font-size: calc(16 * var(--u)) !important;
    font-weight: 700;
}

.mc__only-cash,
.mc.is-cash .mc__only-metal {
    display: none;
}

.mc.is-cash .mc__only-cash {
    display: block;
}

/* Kaydırıcı: ince yeşil ray, dolgu --mc-fill ile, koyu yeşil ok tutamaç. */
.mc__range {
    --mc-fill: 0%;
    --mc-track-h: calc(6 * var(--u));
    display: block;
    width: 100%;
    height: calc(26 * var(--u));
    margin: 0;
    background: transparent;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.mc__range--thick {
    --mc-track-h: calc(8 * var(--u));
}

.mc__range:focus {
    outline: none;
}

.mc__range::-webkit-slider-runnable-track {
    height: var(--mc-track-h);
    border-radius: calc(6 * var(--u));
    background: linear-gradient(to right, var(--mc-primary) var(--mc-fill), var(--mc-track) var(--mc-fill));
}

.mc__range::-moz-range-track {
    height: var(--mc-track-h);
    border-radius: calc(6 * var(--u));
    background: linear-gradient(to right, var(--mc-primary) var(--mc-fill), var(--mc-track) var(--mc-fill));
}

.mc__range::-webkit-slider-thumb {
    width: calc(39 * var(--u));
    height: calc(26 * var(--u));
    margin-top: calc((var(--mc-track-h) - 26 * var(--u)) / 2);
    border: 0;
    border-radius: calc(13 * var(--u));
    background: var(--mc-dark) url("/assets/svg/calculator/thumb.svg") center / calc(21 * var(--u)) calc(12 * var(--u)) no-repeat;
    -webkit-appearance: none;
    appearance: none;
}

.mc__range::-moz-range-thumb {
    width: calc(39 * var(--u));
    height: calc(26 * var(--u));
    border: 0;
    border-radius: calc(13 * var(--u));
    background: var(--mc-dark) url("/assets/svg/calculator/thumb.svg") center / calc(21 * var(--u)) calc(12 * var(--u)) no-repeat;
}

.mc__range:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(5, 214, 113, .35);
}

.mc__range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: calc(2 * var(--u));
    color: #131316;
    font-size: calc(16 * var(--u));
    font-weight: 600;
    line-height: calc(18 * var(--u));
}

.mc__alloc-total {
    font-family: var(--mc-font-montserrat);
    color: var(--mc-primary);
    font-size: calc(15 * var(--u));
    font-weight: 700;
}

.mc.is-alloc-invalid .mc__alloc-total {
    color: #e5484d;
}

.mc__allocs {
    display: flex;
    gap: calc(5 * var(--u));
}

.mc__alloc {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-between;
    gap: calc(8 * var(--u));
    height: calc(58 * var(--u));
    padding: 0 calc(12 * var(--u)) 0 calc(15 * var(--u));
    border: 1px solid var(--mc-primary);
    border-radius: calc(30 * var(--u));
    background: #fff;
    cursor: text;
}

.mc.is-alloc-invalid .mc__alloc {
    border-color: #f3b7b9;
}

.mc__alloc-name {
    display: flex;
    align-items: center;
    gap: calc(8 * var(--u));
    color: var(--mc-control);
    font-size: calc(18 * var(--u));
    font-weight: 700;
    white-space: nowrap;
}

.mc__alloc-name img {
    width: auto;
    height: calc(16 * var(--u));
}

.mc__alloc-name img[src$="bes.svg"] {
    height: calc(26 * var(--u));
}

.mc__alloc-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(65 * var(--u));
    height: calc(34 * var(--u));
    flex: none;
    border-radius: calc(9 * var(--u));
    background: #cdffe1;
    color: var(--mc-control);
    font-size: calc(16 * var(--u));
    font-weight: 700;
}

.mc__alloc-badge input {
    width: 2.1em;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-weight: 700 !important;
    text-align: right;
}

.mc__alloc:focus-within .mc__alloc-badge {
    box-shadow: 0 0 0 2px var(--mc-primary);
}

.mc__age {
    display: flex;
    align-items: center;
    gap: calc(16 * var(--u));
}

.mc__age .mc__range {
    flex: 1;
}

.mc__age-input {
    width: calc(142 * var(--u));
    height: calc(44 * var(--u));
    flex: none;
    border: 1.5px solid var(--mc-primary);
    border-radius: calc(18 * var(--u));
    outline: 0;
    background: #fff;
    color: var(--mc-control) !important;
    font-size: calc(24 * var(--u)) !important;
    font-weight: 700 !important;
    text-align: center;
}

/* ---------- Özet ---------- */

.mc__summary {
    scroll-margin-top: 90px;
    flex-direction: column;
    gap: calc(21 * var(--u));
    width: calc(825 * var(--u));
    flex: none;
    align-self: stretch;
    justify-content: space-between;
}

.mc__summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: calc(16 * var(--u));
}

.mc__assumptions-link {
    font-family: var(--mc-font-inter);
    display: flex;
    align-items: center;
    gap: calc(8 * var(--u));
    padding: 0;
    border: 0;
    background: none;
    color: var(--mc-muted) !important;
    font-size: calc(15 * var(--u)) !important;
    font-weight: 700;
    white-space: nowrap;
}

.mc__assumptions-link img {
    width: calc(18 * var(--u));
    height: calc(18 * var(--u));
}

.mc__assumptions-link:hover {
    color: var(--mc-dark) !important;
}

.mc__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(15 * var(--u));
}

.mc__stat {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: calc(105 * var(--u));
    padding: calc(20 * var(--u)) calc(30 * var(--u));
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: calc(30 * var(--u));
    background: #f8f9f4;
}

.mc__stat--primary {
    min-height: calc(140 * var(--u));
    border: 2px solid var(--mc-dark);
    border-radius: calc(33 * var(--u));
}

.mc__stat-head {
    font-family: var(--mc-font-montserrat);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: calc(27 * var(--u));
    color: var(--mc-muted);
    font-size: calc(18 * var(--u));
    font-weight: 600;
}

.mc__stat-head > img {
    width: calc(40 * var(--u));
    height: calc(40 * var(--u));
}

.mc__stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(40 * var(--u));
    height: calc(40 * var(--u));
    margin: calc(-7 * var(--u)) 0;
    flex: none;
    border-radius: 50%;
    background: #def7e6;
}

.mc__stat-icon img {
    width: calc(15 * var(--u));
    height: auto;
}

.mc__stat-icon--outlined {
    width: calc(47 * var(--u));
    height: calc(47 * var(--u));
    margin: 0;
    border: 1px solid #57a07e;
}

.mc__stat-icon--outlined img {
    width: calc(19 * var(--u));
}

.mc__stat-value {
    font-family: var(--mc-font-inter);
    color: #111827;
    font-size: calc(24 * var(--u));
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.mc__stat--primary .mc__stat-value {
    color: #063c2a;
    font-size: calc(36 * var(--u));
}

.mc__options {
    display: flex;
    align-items: flex-end;
    gap: calc(15 * var(--u));
}

.mc__option {
    width: calc(321 * var(--u));
    flex: none;
}

.mc__option--wide {
    width: auto;
    flex: 1;
}

.mc__option--wide .mc__option-label {
    font-family: var(--mc-font-inter);
    font-weight: 700;
}

.mc__option-label {
    font-family: var(--mc-font-montserrat);
    margin-bottom: calc(8 * var(--u));
    color: #9ca3af;
    font-size: calc(15 * var(--u));
    font-weight: 600;
}

.mc__segments {
    display: flex;
    height: calc(37 * var(--u));
    padding: 2px;
    border-radius: calc(30 * var(--u));
    background: #f3f4f6;
}

.mc__segment {
    font-family: var(--mc-font-inter);
    position: relative;
    flex: 1;
    padding: 0 calc(4 * var(--u));
    border: 0;
    border-radius: calc(28 * var(--u));
    background: transparent;
    color: #444b55 !important;
    font-size: calc(15 * var(--u)) !important;
    font-weight: 600;
    letter-spacing: -.016em;
    white-space: nowrap;
    transition: color .2s ease;
}

.mc__segments--small .mc__segment {
    font-size: calc(12 * var(--u)) !important;
}

.mc__segments--small .mc__segment + .mc__segment::before {
    content: "";
    position: absolute;
    left: 0;
    top: 30%;
    bottom: 30%;
    width: 1px;
    background: rgba(60, 60, 67, .3);
}

.mc__segment[aria-pressed="true"] {
    background: linear-gradient(to bottom, #05d671, #12b76a);
    box-shadow: 0 3px 4px rgba(0, 0, 0, .12), 0 3px .5px rgba(0, 0, 0, .04);
    color: #131316 !important;
}

.mc__segments--small .mc__segment[aria-pressed="true"] {
    font-size: calc(13 * var(--u)) !important;
}

.mc__segment[aria-pressed="true"]::before,
.mc__segment[aria-pressed="true"] + .mc__segment::before {
    display: none;
}

.mc__breakdown {
    display: flex;
    flex-direction: column;
    gap: calc(24 * var(--u));
    padding: calc(30 * var(--u));
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: calc(30 * var(--u));
    background: #fff;
}

.mc__breakdown-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: calc(16 * var(--u));
}

.mc__breakdown-total {
    font-family: var(--mc-font-montserrat);
    color: #063c2a;
    font-size: calc(22 * var(--u));
    font-weight: 700;
    line-height: 1;
    font-feature-settings: "lnum" 1, "tnum" 1;
    white-space: nowrap;
}

.mc__breakdown-title {
    font-family: var(--mc-font-montserrat);
    color: rgba(0, 0, 0, .6);
    font-size: calc(20 * var(--u));
    font-weight: 500;
    line-height: 1;
}

.mc__bar {
    display: flex;
    height: calc(29 * var(--u));
    overflow: hidden;
    border-radius: calc(8 * var(--u));
    background: #f3f4f6;
}

.mc__bar-wrap {
    position: relative;
}

.mc__bar-part {
    flex: 0 1 0;
    cursor: default;
    transition: flex-grow .4s ease, opacity .2s ease, filter .2s ease;
}

.mc.is-bar-hover .mc__bar-part:not(.is-active) {
    opacity: .4;
}

.mc.is-bar-hover .mc__bar-part.is-active {
    filter: brightness(1.05);
}

.mc__bar-tip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    z-index: 2;
    padding: 6px 12px;
    border-radius: 10px;
    background: #111827;
    color: #fff;
    font-family: var(--mc-font-montserrat);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    font-feature-settings: "lnum" 1, "tnum" 1;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity .15s ease, transform .15s ease;
}

.mc__bar-tip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    border: 6px solid transparent;
    border-top-color: #111827;
    transform: translateX(-50%);
}

.mc__bar-tip.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.mc__bar-part--bes {
    background: #3b82f6;
}

.mc__bar-part--gold {
    background: #f59e0b;
}

.mc__bar-part--silver {
    background: #9ca3af;
}

.mc__parts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(20 * var(--u));
}

.mc__part {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: calc(10 * var(--u));
    min-height: calc(101 * var(--u));
    padding: calc(15 * var(--u)) calc(20 * var(--u));
    border: 1px solid;
    border-radius: calc(20 * var(--u));
}

.mc__part--bes {
    border-color: #3b82f6;
}

.mc__part--gold {
    border-color: #f59e0b;
}

.mc__part--silver {
    border-color: #9ca3af;
}

.mc__part-name {
    font-family: var(--mc-font-montserrat);
    display: flex;
    align-items: center;
    gap: calc(10 * var(--u));
    color: rgba(0, 0, 0, .6);
    font-size: calc(16 * var(--u));
    font-weight: 600;
}

.mc__part-name img {
    width: calc(26 * var(--u));
    height: calc(26 * var(--u));
    filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .15));
}

.mc__part-value {
    font-family: var(--mc-font-montserrat);
    color: #000;
    font-size: calc(25 * var(--u));
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.mc__message {
    font-family: var(--mc-font-inter);
    margin: 0;
    color: #c2410c;
    font-size: calc(15 * var(--u));
    font-weight: 600;
}

.mc__message:empty {
    display: none;
}

/* ---------- Uygulama indirme bandı ---------- */

.mc__banner {
    position: relative;
    align-items: center;
    height: calc(266 * var(--u));
    margin-top: calc(41 * var(--u));
    padding: 0 calc(45 * var(--u)) 0 calc(42 * var(--u));
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: calc(24 * var(--u));
    background: linear-gradient(180deg, #f3fff8, #fff);
}

.mc__banner-pattern {
    position: absolute;
    width: calc(529.9 * var(--u));
    height: calc(329.8 * var(--u));
    transform: rotate(-11.53deg);
    pointer-events: none;
}

.mc__banner-pattern--1 {
    left: calc(-22.2 * var(--u));
    top: calc(81.3 * var(--u));
}

.mc__banner-pattern--2 {
    left: calc(507.8 * var(--u));
    top: calc(59.2 * var(--u));
}

.mc__banner-pattern--3 {
    left: calc(1037.8 * var(--u));
    top: calc(37.1 * var(--u));
}

.mc__banner-pattern--4 {
    left: calc(1567.8 * var(--u));
    top: calc(15.1 * var(--u));
}

.mc__banner-img {
    position: relative;
    align-self: flex-end;
    width: calc(355 * var(--u));
    height: calc(267 * var(--u));
    flex: none;
    object-fit: cover;
}

.mc__banner-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: calc(14 * var(--u));
    flex: 1;
    min-width: 0;
    margin-left: calc(20 * var(--u));
}

.mc__banner-title {
    font-family: var(--mc-font-sf);
    color: var(--mc-green);
    font-size: calc(60 * var(--u));
    font-weight: 700;
    line-height: calc(53 * var(--u));
}

.mc__banner-text {
    font-family: var(--mc-font-sf);
    margin: 0;
    max-width: calc(797 * var(--u));
    color: #767676;
    font-size: calc(30 * var(--u));
    line-height: calc(30 * var(--u));
}

.mc__stores {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: calc(18 * var(--u));
    margin-left: calc(40 * var(--u));
}

.mc__stores a {
    display: block;
    transition: transform .2s ease;
}

.mc__stores a:hover {
    transform: translateY(-2px);
}

.mc__stores img {
    width: calc(171 * var(--u));
    height: auto;
}

.mc__qr {
    position: relative;
    margin-left: calc(40 * var(--u));
    padding: calc(15 * var(--u));
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: calc(20 * var(--u));
    background: #f8f9f4;
}

.mc__qr img {
    width: calc(130 * var(--u));
    height: calc(130 * var(--u));
}

/* ---------- Varsayımlar penceresi ---------- */

.mc-dialog {
    font-family: var(--mc-font-inter);
    width: min(calc(1143 * var(--u)), calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    padding: calc(40 * var(--u));
    border: 0;
    border-radius: calc(30 * var(--u));
    background: #c5dbdc;
    color: #1c475a;
    font-size: calc(20 * var(--u));
}

.mc-dialog::backdrop {
    background: rgba(13, 13, 12, .45);
}

.mc-dialog[open] {
    animation: mc-fade-in .3s ease both;
}

.mc-dialog__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    padding-bottom: calc(30 * var(--u));
    border-bottom: 1px solid rgba(28, 71, 90, .2);
}

.mc-dialog__title-wrap {
    display: flex;
    align-items: center;
    gap: calc(15 * var(--u));
}

.mc-dialog__title-wrap img {
    width: calc(38 * var(--u));
    height: calc(38 * var(--u));
}

.mc-dialog__title {
    margin: 0;
    color: #1c475a;
    font-size: calc(40 * var(--u));
    font-weight: 700;
    line-height: 1.1;
}

.mc-dialog__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(54 * var(--u));
    height: calc(54 * var(--u));
    flex: none;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f3f4f6;
}

.mc-dialog__close img {
    width: calc(29 * var(--u));
    height: calc(29 * var(--u));
}

.mc-dialog__items {
    display: flex;
    flex-direction: column;
    gap: calc(25 * var(--u));
    margin-top: calc(25 * var(--u));
}

.mc-dialog__item {
    display: flex;
    align-items: flex-start;
    gap: calc(15 * var(--u));
}

.mc-dialog__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(35 * var(--u));
    height: calc(35 * var(--u));
    flex: none;
    border: 1px solid #1c475a;
    border-radius: calc(8 * var(--u));
    background: #b4cccf;
}

.mc-dialog__icon img {
    width: calc(15 * var(--u));
    height: auto;
}

.mc-dialog__item-title {
    font-size: 1em;
    font-weight: 700;
    line-height: calc(25 * var(--u));
}

.mc-dialog__item-text {
    margin: 0;
    font-size: 1em;
    line-height: calc(25 * var(--u));
}

.mc-dialog__foot {
    margin: calc(67 * var(--u)) 0 0;
    font-size: calc(18 * var(--u));
    line-height: calc(25 * var(--u));
}

.mc-dialog__foot a {
    color: #2970ff;
    font-size: 1em;
    font-weight: 700;
    text-decoration: none;
}

.mc-dialog__foot a:hover {
    text-decoration: underline;
}

/* ---------- Hesaplama sayfası ---------- */

.mc-page {
    padding-top: 6em;
}

.mc-page__how {
    display: flex;
    flex-direction: column;
    gap: 1em;
    margin-top: 1.25em;
}

.mc-page__how p {
    margin: 0;
}

.mc-page__guide-link {
    align-self: flex-start;
    color: var(--mc-green, #03a85a);
    font-weight: 600;
    text-decoration: none;
}

.mc-page__guide-link:hover {
    text-decoration: underline;
}

/* ---------- Tablet ve mobil ---------- */

@media screen and (max-width: 991px) {
    .mc {
        --u: .8px;
        padding: 48px 0;
    }

    .mc-page {
        padding-top: 5em;
    }

    .mc__stage {
        flex-direction: column;
        align-items: stretch;
        gap: 40px;
    }

    .mc__intro {
        width: 100%;
        gap: 24px;
    }

    .mc__intro::after {
        left: 0;
    }

    .mc__intro-media {
        width: 42%;
        height: auto;
        flex: none;
    }

    .mc__intro-img {
        height: auto;
        aspect-ratio: 584 / 701;
    }

    .mc__intro-content {
        width: auto;
        flex: 1;
    }

    .mc__intro-title {
        font-size: 36px;
        line-height: 1.1;
    }

    .mc__intro-text {
        font-size: 18px;
        line-height: 1.35;
    }

    .mc__cta {
        max-width: 324px;
        height: 56px;
        font-size: 17px;
    }

    .mc__card,
    .mc.is-result .mc__card {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
        width: 100%;
        padding: 24px 20px;
        border-radius: 24px;
    }

    .mc__form,
    .mc__summary {
        width: 100%;
    }

    .mc__title {
        font-size: 28px;
    }

    .mc__subtitle {
        font-size: 15px;
        line-height: 1.4;
    }

    .mc__label {
        font-size: 13px;
    }

    .mc__type {
        height: 46px;
        font-size: 15px;
    }

    .mc__value {
        min-width: 0;
        font-size: 18px;
    }

    .mc__value-input {
        width: 110px;
    }

    .mc__range {
        height: 30px;
    }

    .mc__range-labels {
        font-size: 13px;
    }

    .mc__allocs {
        flex-direction: column;
        gap: 8px;
    }

    .mc__alloc {
        height: 52px;
    }

    .mc__alloc-name {
        font-size: 16px;
    }

    .mc__alloc-badge {
        font-size: 16px;
    }

    .mc__age-input {
        width: 96px;
        font-size: 20px !important;
    }

    .mc.is-result .mc__divider {
        width: 100%;
        height: 4px;
    }

    .mc__stat {
        padding: 16px 18px;
        border-radius: 22px;
    }

    .mc__stat-head {
        font-size: 14px;
    }

    .mc__stat-value {
        font-size: 20px;
    }

    .mc__stat--primary .mc__stat-value {
        font-size: 26px;
    }

    .mc__options {
        flex-direction: column;
        align-items: stretch;
    }

    .mc__option,
    .mc__option--wide {
        width: 100%;
    }

    .mc__option-label {
        font-size: 13px;
    }

    .mc__segments {
        height: 40px;
    }

    .mc__segment {
        font-size: 15px !important;
    }

    .mc__segments--small .mc__segment,
    .mc__segments--small .mc__segment[aria-pressed="true"] {
        font-size: 12px !important;
    }

    .mc__breakdown {
        padding: 20px;
        border-radius: 22px;
    }

    .mc__breakdown-title {
        font-size: 17px;
    }

    .mc__breakdown-total {
        font-size: 18px;
    }

    .mc__part-name {
        font-size: 14px;
    }

    .mc__part-value {
        font-size: 20px;
    }

    .mc__message {
        font-size: 14px;
    }

    .mc__banner {
        flex-wrap: wrap;
        gap: 20px;
        height: auto;
        margin-top: 32px;
        padding: 28px 24px 0;
    }

    .mc__banner-img {
        order: 3;
        width: 60%;
        max-width: 280px;
        height: auto;
        margin: 0 auto;
    }

    .mc__banner-content {
        width: 100%;
        margin: 0;
        flex: none;
    }

    .mc__banner-title {
        font-size: 30px;
        line-height: 1.1;
    }

    .mc__banner-text {
        font-size: 17px;
        line-height: 1.4;
    }

    .mc__stores {
        flex-direction: row;
        margin: 0;
    }

    .mc__stores img {
        width: 150px;
    }

    .mc__qr {
        display: none;
    }

    .mc-dialog {
        padding: 24px 20px;
        font-size: 15px;
    }

    .mc-dialog__title {
        font-size: 24px;
    }

    .mc-dialog__item-title,
    .mc-dialog__item-text,
    .mc-dialog__foot {
        line-height: 1.5;
    }

    .mc-dialog__foot {
        margin-top: 32px;
        font-size: 14px;
    }
}

@media screen and (max-width: 479px) {
    .mc__intro {
        flex-direction: column;
        align-items: flex-start;
    }

    .mc__intro-media {
        width: 52%;
        align-self: center;
    }

    .mc__intro::after {
        display: none;
    }

    .mc__intro-title {
        font-size: 32px;
    }

    .mc__cta {
        max-width: none;
    }

    .mc__types {
        gap: 8px;
    }

    .mc__type {
        flex-direction: column;
        gap: 4px;
        height: 64px;
        border-radius: 18px;
        font-size: 14px;
    }

    .mc__field-head {
        align-items: center;
    }

    .mc__value-input {
        width: 90px;
    }

    .mc__stats {
        grid-template-columns: 1fr;
    }

    .mc__summary-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .mc__segments--small {
        display: grid;
        grid-template-columns: 1fr 1fr;
        height: auto;
        gap: 2px;
        border-radius: 18px;
    }

    .mc__segments--small .mc__segment {
        height: 36px;
    }

    .mc__segments--small .mc__segment::before {
        display: none;
    }

    .mc__parts {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .mc__part {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-height: 0;
    }

    .mc__stores img {
        width: 140px;
    }
}
