/* KROFI 1.2: читаемый текст, крупные карточки и понятный автоматический переход. */
:root {
  --ink: #242b30;
  --muted: #4d5860;
  --terra: #a4492f;
  --terra-dark: #883a25;
  --sage: #4e6357;
}

html { scroll-padding-top: 116px; }

body {
  font-family: "Open Sans", "Manrope", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
}

h1, h2, h3, h4, .logo-line {
  font-family: "Manrope", "Open Sans", sans-serif;
}

#top :is(button, a), #modal-root button {
  font-size: 16px;
}

#top :is(input, textarea, select), #modal-root :is(input, textarea, select) {
  font-size: 18px;
}

#top .button, #modal-root .button {
  min-height: 52px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

input::placeholder, textarea::placeholder {
  color: #58656e;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), textarea {
  border-color: #7b898f;
}

.radio-mark, .square-mark {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-color: #77858c;
}

#top .section-description {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.eyebrow, #top .eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.preview-strip {
  padding: 8px 0;
  color: #425047;
}

.preview-strip .container {
  gap: 16px;
  font-size: 14px;
  line-height: 1.6;
}

#top .preview-strip button {
  font-size: 14px;
  font-weight: 600;
}

.topbar-inner {
  min-height: 48px;
}

.topbar-contacts {
  gap: 20px;
}

.header-inner {
  height: 100px;
  gap: 24px;
}

.desktop-nav {
  gap: 24px;
}

.header-actions {
  gap: 18px;
}

#top .nav-link, #top .callback-link {
  font-size: 16px;
  font-weight: 600;
}

#top .logo-line > span {
  font-size: 36px;
}

#top .tagline, #top .footer-logo .tagline {
  margin-top: 6px;
  color: #4d5860;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  white-space: nowrap;
}

#top .hero-description {
  font-size: 22px;
  color: #fff;
}

#top .hero-cta {
  min-height: 64px;
  font-size: 20px;
}

#top .hero-upload, #top .hero-benefits {
  color: #fff;
  font-size: 16px;
  line-height: 1.6;
}

#top .hero-eyebrow {
  color: #fff;
  font-size: 14px;
}

#top .hero-photo-note {
  max-width: calc(100% - 32px);
  padding: 5px 10px;
  color: #fff;
  background: #252d2bf2;
  border-radius: 5px;
  font-size: 14px;
  line-height: 1.45;
}

.hero-inner {
  padding-bottom: 70px;
}

#top .question-heading h3 {
  font-size: 29px;
  line-height: 1.3;
}

#top .question-heading > span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

#top .question-help, .modal-panel .question-help {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.calc-body {
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
}

.calc-panel {
  scroll-margin-top: 8px;
}

.task-grid, .roof-grid {
  gap: 14px;
}

.task-photo {
  height: 130px;
}

.choice-caption {
  align-items: flex-start;
  gap: 10px;
  min-height: 102px;
  padding: 16px 12px;
}

#top .choice-caption strong {
  font-size: 18px;
  font-weight: 650;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

#top .choice-caption small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.choice-caption .radio-mark, .roof-choice .radio-mark {
  width: 20px;
  height: 20px;
  margin-top: 3px;
}

.roof-choice .choice-caption {
  min-height: 80px;
  padding: 16px 12px;
}

#top .calc-hint p, #top .sidebar-benefits li {
  font-size: 16px;
  line-height: 1.6;
}

#top .calc-bottom-note, #top .calc-under, #top .sidebar-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

#top .step-progress strong {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

#top .step-progress .current strong {
  color: var(--terra);
}

#top .step-progress button > span {
  width: 36px;
  height: 36px;
  color: #4e5d66;
  border-color: #7b898f;
  font-size: 16px;
}

#top .step-progress .current button > span,
#top .step-progress .complete button > span {
  color: #fff;
}

#top .step-progress button:disabled {
  opacity: 1;
}

.step-progress::before, .step-progress::after {
  top: 18px;
}

#top .summary-list dt {
  color: var(--muted);
  font-size: 14px;
}

#top .summary-list dd {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

#top .field-label, #top .plain-choice,
#top .channel-field legend, #modal-root .field-label,
#modal-root .channel-field legend {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}

#top .field-label > small, #top .optional,
#top .small-note, #modal-root .small-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

#top .material-grid, #top .full-calculator .material-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

#top .material-card, #top .full-calculator .material-card {
  min-height: 128px;
  gap: 14px;
  padding: 18px 16px;
  border-color: #b9c1c3;
  border-radius: 10px;
}

#top .material-card.selected {
  border-color: var(--terra);
}

#top .material-swatch, #top .full-calculator .material-swatch {
  width: 64px;
  height: 78px;
  flex-shrink: 0;
}

#top .material-name, #top .full-calculator .material-name {
  flex: 1;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.45;
  color: var(--ink);
  overflow-wrap: anywhere;
}

#top .material-name small, #top .full-calculator .material-name small {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  margin-top: 7px;
}

#top .material-card > .radio-mark,
#top .full-calculator .material-card > .radio-mark {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-left: 0;
}

#top .filter, #top .full-calculator .filter {
  min-height: 46px;
  padding: 11px 18px;
  font-size: 16px;
  font-weight: 500;
  border-color: #8d9ba2;
}

#top .filter > span {
  font-size: 14px;
  opacity: 1;
}

#top .filter.active {
  border-color: var(--ink);
}

#top .count-label, #top .illustration-label {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.catalog-bottom {
  gap: 28px;
  margin-top: 30px;
}

#top .catalog-bottom strong {
  font-size: 20px;
  line-height: 1.45;
}

#top .catalog-bottom p, #top .project-copy p,
#top .service-card p, #top .process-list p,
#top .region-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

#top .project-copy h3, #top .service-card h3 {
  font-size: 22px;
  line-height: 1.35;
}

#top .project-tag {
  color: #fff;
  background: #29382e;
  font-size: 14px;
  letter-spacing: 1px;
}

#top .cost-card li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

#top .process-list h3 {
  font-size: 19px;
  line-height: 1.4;
}

#top .systems-field legend, #top .extra-field legend,
#top .timing-field legend {
  font-size: 18px;
  line-height: 1.5;
}

#top .system-choice, #top .extra-choice,
#top .timing-choice, .channel-choice {
  min-height: 48px;
  font-size: 16px;
  line-height: 1.5;
}

.timing-grid, .extras-grid {
  gap: 12px;
}

.extra-choice {
  min-height: 132px;
  padding: 20px 14px;
}

.systems-field {
  margin-bottom: 28px;
}

.channel-options, .contact-form-card .channel-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#top .channel-choice, #modal-root .channel-choice,
#top .contact-form-card .channel-choice {
  justify-content: flex-start;
  flex-direction: row;
  padding: 12px 10px;
  gap: 9px;
  font-size: 16px;
}

#top .upload-zone strong, #modal-root .upload-zone strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
}

#top .upload-zone small, #modal-root .upload-zone small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

#top .consent, #top .form-footnote,
#modal-root .consent, #modal-root .form-footnote {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

#top .consent .inline-link, #modal-root .consent .inline-link {
  font-size: inherit;
  font-weight: 600;
}

.consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

#top .faq-question {
  font-size: 18px;
  line-height: 1.5;
}

#top .faq-answer p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

#top .contact-copy > p:not(.eyebrow) {
  color: #f0f3ef;
  font-size: 20px;
}

#top .contact-copy .eyebrow, #top .contact-tags {
  color: #f0f3ef;
  font-size: 16px;
}

#top .footer-grid > div > p, #top .footer-bottom {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

#top .footer-grid h3 {
  font-size: 18px;
}

#top .footer-grid > div > a:not(.logo),
#top .footer-grid > div > button, #top .footer-messengers button {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}

.footer-messengers {
  flex-wrap: wrap;
  gap: 16px;
}

.calc-auto-note {
  min-height: 26px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.calc-panel.is-auto-advancing .calc-auto-note {
  color: var(--terra);
  font-weight: 600;
}

.calc-panel.is-auto-advancing .choice.selected,
.calc-panel.is-auto-advancing .material-card.selected {
  border-color: var(--terra);
}

@media (max-width: 1150px) {
  .calc-body { grid-template-columns: minmax(0, 1fr) 245px; gap: 18px; }
  .task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-inner { gap: 18px; }
  .desktop-nav { gap: 18px; }
  .callback-link { display: none; }
  #top .header-calc { padding-inline: 15px; font-size: 16px; }
}

@media (max-width: 1000px) {
  .desktop-nav { display: none; }
  .mobile-menu-button { display: flex; width: 44px; height: 44px; }
  .calc-body { display: block; }
  .calc-sidebar { margin-top: 24px; }
  .calc-sidebar > .roof-drawing { display: none; }
  .task-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #top .material-grid, #top .full-calculator .material-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 104px; }
  body { font-size: 16px; }
  .preview-strip .container { flex-wrap: wrap; gap: 5px 16px; }
  .header-inner { height: 88px; gap: 12px; }
  .header-actions { gap: 10px; }
  #top .logo-line > span { font-size: 32px; }
  #top .tagline { font-size: 14px; }
  .roof-mark { width: 42px; height: 35px; }
  .topbar-inner { gap: 10px; min-height: 48px; }
  .region-selector { min-width: 0; max-width: calc(100% - 138px); }
  .region-selector > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #top .region-selector { font-size: 14px; }
  .topbar-contacts { gap: 4px; }
  .topbar-contacts .phone-placeholder, .topbar-contacts .messenger-link { display: flex; width: 30px; height: 38px; padding: 0; justify-content: center; }
  .topbar-contacts .phone-placeholder > .icon { width: 19px; height: 19px; }
  .hero-inner { padding-top: 62px; padding-bottom: 78px; }
  #top .hero-description { font-size: 19px; }
  #top .hero-cta { font-size: 18px; gap: 24px; }
  #top .hero-upload { font-size: 16px; max-width: 100%; }
  #top .hero-benefits { display: grid; grid-template-columns: 1fr; gap: 15px; font-size: 16px; margin-top: 30px; }
  .hero-benefits > span { max-width: none; align-items: center; }
  .hero-benefits > span + span { padding-left: 0; }
  .hero-benefits .icon { width: 24px; height: 24px; }
  #top .hero-photo-note { right: 16px; bottom: 14px; }
  .section { padding-block: 56px; }
  #top .section-description { font-size: 17px; }
  #top .question-heading h3 { font-size: 25px; }
  .question-heading { align-items: flex-start; gap: 14px; }
  #top .question-heading > span { flex-shrink: 0; max-width: 70px; }
  .task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #top .choice-caption strong { font-size: 17px; }
  .choice-caption { padding: 14px 11px; min-height: 116px; }
  .task-photo { height: 120px; }
  #top .step-progress strong { display: none; }
  #top .step-progress .current strong { display: block; position: absolute; top: 43px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 14px; }
  .step-progress { margin-bottom: 42px; }
  .step-progress::before, .step-progress::after { top: 18px; }
  #top .material-grid, #top .full-calculator .material-grid { grid-template-columns: 1fr; gap: 12px; }
  #top .material-card, #top .full-calculator .material-card { min-height: 114px; padding: 16px; gap: 14px; }
  #top .material-name, #top .full-calculator .material-name { font-size: 17px; }
  #top .filter, #top .full-calculator .filter { font-size: 16px; min-height: 44px; padding: 10px 14px; }
  .filter-row { gap: 9px; }
  .catalog-bottom { align-items: stretch; gap: 20px; }
  #top .catalog-bottom > .button { font-size: 16px; padding-inline: 16px; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-form-card { padding: 26px 20px; }
  .contact-form-card .channel-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #top .cost-card li, #top .service-card p, #top .project-copy p { font-size: 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 26px 22px; }
  #top .service-card h3 { font-size: 22px; }
  #top .faq-question { font-size: 18px; }
  #top .faq-answer p { font-size: 16px; }
  #top .contact-copy > p:not(.eyebrow) { font-size: 18px; }
  #top .contact-tags { font-size: 16px; flex-wrap: wrap; gap: 18px; }
  .region-actions { flex-wrap: wrap; gap: 18px; }
  #top .region-art > span { color: var(--muted); font-size: 14px; }
  .calc-panel { scroll-margin-top: 8px; }
}

@media (max-width: 560px) {
  #top .header-calc { width: 46px; min-height: 46px; padding: 11px; }
  .header-calc > span { display: none; }
  .header-calc > .icon { width: 23px; height: 23px; }
  .header-actions { gap: 8px; }
  .task-grid { grid-template-columns: 1fr; }
  .task-choice { display: grid; grid-template-columns: 105px minmax(0, 1fr); }
  .task-photo { height: 100%; min-height: 128px; }
  .task-choice .choice-caption { min-height: 128px; align-items: center; padding: 16px 12px; }
  .roof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roof-choice .choice-caption { min-height: 86px; align-items: flex-start; }
  #top .roof-choice .choice-caption strong { font-size: 16px; }
  .question-heading { flex-direction: column; gap: 9px; }
  #top .question-heading > span { max-width: none; }
  .calc-navigation { gap: 14px; flex-wrap: wrap; }
  .calc-navigation > .button { flex: 1; }
  .calc-bottom-note { width: 100%; }
  .timing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid > div:first-child, .footer-grid > div:last-child { grid-column: auto; }
  #top .footer-grid > div > button, #top .footer-grid > div > a:not(.logo) { margin-block: 14px; }
  #top .footer-bottom { gap: 18px; }
  .catalog-bottom { padding: 24px 20px; }
  .upload-zone { align-items: flex-start; gap: 10px; }
  .upload-zone .upload-plus { display: none; }
  .estimate-banner { align-items: flex-start; }
}

@media (max-width: 380px) {
  .channel-options, .contact-form-card .channel-options { grid-template-columns: 1fr; }
  #top .logo-line > span { font-size: 30px; }
  #top .material-card, #top .full-calculator .material-card { padding: 14px 11px; gap: 10px; }
  #top .material-swatch, #top .full-calculator .material-swatch { width: 52px; height: 70px; }
  .task-choice { grid-template-columns: 85px minmax(0, 1fr); }
  .task-choice .choice-caption { padding-inline: 10px; }
}
