.dog-hero { position: relative; overflow: hidden; }
.dog-hero__mark { position: absolute; right: max(5vw, 24px); top: 50%; transform: translateY(-50%) rotate(-12deg); font-size: clamp(70px, 10vw, 132px); opacity: .08; filter: grayscale(1); }
.dog-app { max-width: 1080px; padding-bottom: 0; gap: 12px; }
.dog-calc-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(330px, .95fr); gap: 20px; align-items: stretch; }
.dog-calc-grid > .panel { margin: 0; border-radius: 14px; padding: 22px; }
.dog-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin: 0 0 24px; border-radius: 10px; background: #eef1f3; }
.dog-tab { min-height: 44px; border: 0; border-radius: 7px; background: transparent; color: var(--c-muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: .18s ease; }
.dog-tab:hover { color: var(--c-navy); }
.dog-tab.is-active { color: var(--c-navy); background: #fff; box-shadow: 0 2px 8px rgba(20,34,48,.1); }
.dog-fields { margin-bottom: 22px; }
.dog-label, .dog-size-fieldset legend { display: block; margin-bottom: 8px; color: var(--c-navy); font-size: 13px; font-weight: 700; }
.dog-control { width: 100%; min-height: 48px; }
.dog-date-wrap { position: relative; }
.dog-date-wrap .dog-control { padding-right: 52px; font-variant-numeric: tabular-nums; }
.dog-calendar-button { position: absolute; top: 1px; right: 1px; display: grid; width: 47px; height: 46px; border: 0; border-left: 1px solid var(--c-border); border-radius: 0 8px 8px 0; place-items: center; background: #f7f7f5; color: var(--c-navy); cursor: pointer; }
.dog-calendar-button:hover { background: #fff8f2; color: var(--c-accent); }
.dog-calendar-button:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.dog-native-date { position: absolute; right: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dog-age-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dog-stepper { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; min-height: 48px; border: 1px solid var(--c-border); border-radius: 9px; align-items: stretch; overflow: hidden; background: #f7f7f5; transition: border-color .18s, box-shadow .18s, background .18s; }
.dog-stepper:focus-within { border-color: var(--c-accent); background: #fff; box-shadow: 0 0 0 3px rgba(232, 101, 10, .12); }
.dog-stepper button { display: grid; padding: 0; border: 0; place-items: center; background: #e9e8e3; color: var(--c-navy); font: 500 22px/1 Arial, sans-serif; cursor: pointer; transition: background .18s, color .18s; }
.dog-stepper button:last-child { background: var(--c-accent); color: #fff; }
.dog-stepper button:hover { background: #dcd8d2; color: #111; }
.dog-stepper button:last-child:hover { background: #c95508; color: #fff; }
.dog-stepper button:focus-visible { position: relative; z-index: 2; outline: 2px solid var(--c-navy); outline-offset: -3px; }
.dog-stepper button:disabled { opacity: .45; cursor: default; }
.dog-stepper .dog-control { height: 100%; min-width: 0; min-height: 46px; padding: 0 8px; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--c-navy); font-variant-numeric: tabular-nums; font-weight: 700; text-align: center; appearance: textfield; -moz-appearance: textfield; }
.dog-stepper .dog-control:focus { border: 0; outline: 0; box-shadow: none; }
.dog-stepper .dog-control::-webkit-inner-spin-button, .dog-stepper .dog-control::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.dog-size-fieldset { min-width: 0; padding: 0; border: 0; margin: 0 0 22px; }
.dog-size-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cat-lifestyle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cat-lifestyle-grid .dog-size-card { height: 100px; }
.cat-lifestyle-icon { margin-bottom: 7px; font-size: 22px; transform: none; }
.dog-size-option { min-width: 0; cursor: pointer; }
.dog-size-option input { position: absolute; opacity: 0; pointer-events: none; }
.dog-size-card { display: flex; height: 100px; padding: 13px 6px 10px; border: 1px solid var(--c-border); border-radius: 9px; align-items: center; justify-content: flex-end; flex-direction: column; background: #fff; text-align: center; transition: .18s ease; }
.dog-size-card:hover { border-color: #9eaaa4; transform: translateY(-1px); }
.dog-size-option input:focus-visible + .dog-size-card { outline: 3px solid rgba(216,169,84,.32); outline-offset: 2px; }
.dog-size-option input:checked + .dog-size-card { border-color: var(--c-accent); box-shadow: inset 0 0 0 1px var(--c-accent), 0 4px 14px rgba(216,169,84,.14); background: #fffaf1; }
.dog-size-icon { display: block; margin-bottom: 5px; font-size: 18px; line-height: 1; transform: scale(.8); transform-origin: bottom; }
.dog-size-icon--medium { transform: scale(1); }
.dog-size-icon--large { transform: scale(1.2); }
.dog-size-icon--giant { transform: scale(1.4); }
.dog-size-card strong { color: var(--c-navy); font-size: 12px; }
.dog-size-card small { display: block; margin-top: 3px; color: var(--c-muted); font-size: 10px; white-space: nowrap; }
.dog-result { position: relative; display: flex; min-height: 0; flex-direction: column; background: #fff; }
.dog-result > .panel__title, .dog-result-empty, #resultContent { transition: filter .18s ease, opacity .18s ease; }
.dog-result.has-error > .panel__title, .dog-result.has-error > .dog-result-empty, .dog-result.has-error > #resultContent { filter: blur(4px); opacity: .42; pointer-events: none; user-select: none; }
.dog-error-overlay { position: absolute; z-index: 5; inset: 0; display: grid; padding: 24px; place-items: center; border-radius: inherit; background: rgba(245,246,245,.58); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.dog-error-overlay[hidden] { display: none !important; }
.dog-error-dialog { width: min(100%, 330px); padding: 24px; border: 1px solid #ead3cc; border-top: 3px solid var(--c-red); border-radius: 12px; background: #fff; box-shadow: 0 18px 48px rgba(30,43,60,.2); color: var(--c-navy); text-align: center; }
.dog-error-icon { display: grid; width: 38px; height: 38px; margin: 0 auto 12px; border-radius: 50%; place-items: center; background: #fff0ec; color: var(--c-red); font-size: 21px; font-weight: 800; }
.dog-error-dialog h3 { margin: 0 0 8px; color: var(--c-navy); font-size: 17px; }
.dog-error-dialog p { margin: 0; color: var(--c-muted); font-size: 13px; line-height: 1.6; }
.dog-error-dialog button { min-width: 112px; margin-top: 18px; padding: 10px 20px; border: 0; border-radius: 8px; background: var(--c-navy); color: #fff; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.dog-error-dialog button:hover { background: #2b4058; }
.dog-error-dialog button:focus-visible { outline: 3px solid rgba(216,169,84,.4); outline-offset: 2px; }
.dog-result-empty { display: flex; flex: 1; min-height: 340px; align-items: center; justify-content: center; flex-direction: column; color: var(--c-muted); text-align: center; }
.dog-result-empty[hidden], #resultContent[hidden] { display: none !important; }
.dog-result-empty p { max-width: 270px; margin: 12px auto 0; font-size: 13px; line-height: 1.65; }
.dog-empty-face { display: grid; width: 84px; height: 84px; border-radius: 50%; place-items: center; background: #f0f2f2; font-size: 46px; box-shadow: 0 0 0 10px rgba(239,242,242,.55); }
#resultContent { padding-top: 0; text-align: center; }
.dog-age-highlight { padding: 22px 18px 18px; border: 1px solid #e1e5e3; border-radius: 12px; background: #f7f8f7; }
.dog-result-kicker { color: var(--c-muted); font-family: var(--font-main); font-size: 13px; font-weight: 700; line-height: 1.35; letter-spacing: 0; text-transform: none; }
.dog-human-age { display: flex; margin: 8px 0 0; align-items: baseline; justify-content: center; gap: 9px; color: var(--c-navy); }
.dog-human-age strong { display: block; font-family: var(--font-mono); font-size: clamp(62px, 8vw, 78px); line-height: .92; letter-spacing: -.055em; }
.dog-human-age span { display: block; margin: 0; color: var(--c-navy); font-family: var(--font-main); font-size: 13px; font-weight: 700; line-height: 1.35; letter-spacing: 0; }
.dog-result-summary { display: inline-block; max-width: 380px; margin: 15px 0 0; padding: 8px 14px; border: 1px solid #cfe1d5; border-radius: 9px; background: #eef7f1; color: #205c39; font-family: var(--font-main); font-size: 13px; font-weight: 700; line-height: 1.45; }
.dog-result-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; border: 1px solid var(--c-border); border-radius: 9px; background: #fff; overflow: hidden; text-align: left; }
.dog-result-facts.no-birthday { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dog-result-facts > [hidden] { display: none !important; }
.dog-result-facts > div { display: flex; min-width: 0; height: 100px; padding: 13px 11px; border-right: 1px solid var(--c-border); justify-content: center; flex-direction: column; }
.dog-result-facts > div:last-child { border-right: 0; }
.dog-result-facts span { display: block; margin-bottom: 5px; color: var(--c-muted); font-family: var(--font-main); font-size: 12px; font-weight: 700; line-height: 1.35; letter-spacing: 0; text-transform: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
.dog-result-facts strong { display: block; color: var(--c-navy); font-size: 12px; line-height: 1.35; }
.dog-note { display: flex; margin-top: 0; padding: 15px 18px; border: 1px solid #dce2df; border-radius: 9px; align-items: flex-start; gap: 12px; background: #f7f9f8; color: var(--c-muted); }
.dog-note__icon { display: grid; width: 22px; height: 22px; flex: 0 0 22px; border: 1px solid #94a39b; border-radius: 50%; place-items: center; color: #607268; font-family: serif; font-size: 13px; font-weight: 700; }
.dog-note p { margin: 0; font-size: 12px; line-height: 1.6; }
.dog-note strong { color: var(--c-navy); }
.dog-note__care { display: block; margin-top: 4px; }
.main-content > .dog-note { width: calc(100% - 32px); max-width: 1048px; margin: 12px auto 0; }
.dog-journey[hidden] { display: none !important; }
.dog-journey__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.dog-journey__heading h2 { margin-bottom: 5px; }
.dog-journey__heading .sub { margin-bottom: 0; }
.dog-journey__icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; place-items: center; background: #fff3e9; font-size: 20px; }
.dog-journey__milestones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.dog-milestone { min-width: 0; padding: 15px 16px; border: 1px solid var(--c-border); border-radius: 10px; background: #fafaf8; }
.dog-milestone--current { border-color: #efb48c; background: #fff8f2; }
.dog-milestone > span { display: block; margin-bottom: 6px; color: var(--c-muted); font-size: 11px; font-weight: 700; }
.dog-milestone > strong { display: block; color: var(--c-navy); font-size: 17px; line-height: 1.25; }
.dog-milestone > small { display: block; margin-top: 5px; color: var(--c-muted); font-size: 11px; }
.dog-milestone > small b { color: var(--c-accent); font-size: 13px; }
.dog-journey__explorer { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr); gap: 14px; margin-top: 14px; }
.dog-journey__control, .dog-journey__preview { height: 142px; padding: 17px; border: 1px solid var(--c-border); border-radius: 10px; background: #fff; }
.dog-journey__label { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dog-journey__label label { color: var(--c-navy); font-size: 13px; font-weight: 700; }
.dog-journey__label output { padding: 5px 9px; border-radius: 7px; background: #f0f2f2; color: var(--c-navy); font-size: 12px; font-weight: 700; }
.dog-journey__control input[type="range"] { width: 100%; height: 5px; margin: 16px 0 7px; appearance: none; border-radius: 99px; outline: none; background: linear-gradient(90deg, var(--c-accent), #e7ddd5); accent-color: var(--c-accent); }
.dog-journey__control input[type="range"]::-webkit-slider-thumb { width: 20px; height: 20px; border: 3px solid #fff; border-radius: 50%; appearance: none; background: var(--c-accent); box-shadow: 0 2px 7px rgba(30,43,60,.25); cursor: pointer; }
.dog-journey__control input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 3px solid #fff; border-radius: 50%; background: var(--c-accent); box-shadow: 0 2px 7px rgba(30,43,60,.25); cursor: pointer; }
.dog-journey__scale { display: flex; justify-content: space-between; color: var(--c-muted); font-size: 10px; }
.dog-journey__preview { display: flex; justify-content: center; flex-direction: column; background: var(--c-navy); color: #fff; }
.dog-journey__preview > span { color: #f2b27f; font-size: 12px; font-weight: 700; }
.dog-journey__preview > div { display: flex; margin-top: 5px; align-items: baseline; gap: 8px; }
.dog-journey__preview > div strong { font-family: var(--font-mono); font-size: 30px; line-height: 1; }
.dog-journey__preview > div small { color: rgba(255,255,255,.72); font-size: 11px; }
.dog-journey__preview p { margin: 8px 0 0; color: rgba(255,255,255,.82); font-size: 10px; line-height: 1.5; }
.dog-table-section { padding-top: 0; }
.dog-table-wrap { border: 1px solid var(--c-border); border-radius: 10px; overflow-x: auto; background: #fff; }
.dog-age-table { width: 100%; min-width: 620px; border-collapse: collapse; }
.cat-lifestyle-fieldset { margin-bottom: 0; }
.dog-table-section .dog-age-table { min-width: 480px; }
.dog-age-table th, .dog-age-table td { padding: 14px 16px; border-bottom: 1px solid var(--c-border); color: var(--c-text); font-size: 13px; text-align: center; }
.dog-age-table thead th { background: var(--c-navy); color: #fff; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.dog-age-table th:first-child { font-family: var(--font-main); font-weight: 700; letter-spacing: 0; text-align: left; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
.dog-age-table tbody th { color: var(--c-navy); font-weight: 700; }
.dog-age-table tbody tr:last-child th, .dog-age-table tbody tr:last-child td { border-bottom: 0; }
.dog-age-table tbody tr:nth-child(even) { background: #fafbfa; }
.seo-content a { color: #77571f; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.main-content > .info-section { width: calc(100% - 32px); max-width: 1048px; margin: 12px auto 0; padding: 24px; border: 1px solid var(--c-border); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.main-content > .info-section .steps { margin-bottom: 0; }
.main-content > .info-section .step-card { background: #fafaf8; }
.main-content > .faq-section, .main-content > .seo-block { background: #f8f7f3; box-shadow: none; }
.main-content > .faq-section .faq-item { background: #fff; }
.main-content > .seo-block { margin-bottom: 0; }
.main-content > .dog-related { margin-bottom: 48px; }
.dog-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dog-related-grid a { display: flex; min-width: 0; padding: 15px; border: 1px solid var(--c-border); border-radius: 10px; align-items: center; gap: 11px; background: #fff; color: inherit; text-decoration: none; transition: border-color .18s, transform .18s, box-shadow .18s; }
.dog-related-grid a:hover { border-color: #efb58d; box-shadow: 0 6px 18px rgba(30,43,60,.06); transform: translateY(-2px); }
.dog-related-grid a:focus-visible { outline: 3px solid rgba(232,101,10,.22); outline-offset: 2px; }
.dog-related-grid a > span { display: grid; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; place-items: center; background: #fff2e8; font-size: 19px; }
.dog-related-grid a > div { min-width: 0; flex: 1; }
.dog-related-grid strong { display: block; color: var(--c-navy); font-size: 11px; line-height: 1.35; }
.dog-related-grid p { margin: 4px 0 0; color: var(--c-muted); font-size: 9.5px; line-height: 1.45; }
.dog-related-grid b { color: var(--c-accent); font-size: 18px; }

@media (max-width: 820px) {
  .dog-calc-grid { grid-template-columns: 1fr; }
  .dog-result { min-height: 0; }
  .dog-journey__explorer { grid-template-columns: 1fr; }
  .dog-journey__control, .dog-journey__preview { height: auto; min-height: 112px; }
  .dog-related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .dog-size-grid { grid-template-columns: repeat(2, 1fr); }
  .dog-size-card { height: 92px; }
  .dog-result-facts { grid-template-columns: 1fr; }
  .dog-result-facts > div { border-right: 0; border-bottom: 1px solid var(--c-border); }
  .dog-result-facts > div:last-child { border-bottom: 0; }
  .dog-human-age strong { font-size: 64px; }
  .dog-tabs { grid-template-columns: 1fr; }
  .dog-calc-grid > .panel { padding: 17px; border-radius: 12px; }
  .dog-journey__milestones { grid-template-columns: 1fr; }
  .dog-journey__heading { gap: 10px; }
  .dog-journey__icon { width: 36px; height: 36px; flex-basis: 36px; font-size: 17px; }
  .main-content > .dog-note { width: calc(100% - 20px); }
  .main-content > .info-section { width: calc(100% - 20px); padding: 18px; border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .dog-size-card { transition: none; }
}
