/* KROFI 1.9 · формы, фирменные списки, короткие стрелки и эффекты. */
::selection { color: #fff; background: #a4492f; text-shadow: none; }
::-moz-selection { color: #fff; background: #a4492f; text-shadow: none; }
:root { accent-color: #a4492f; }
input, textarea { caret-color: #a4492f; }
#top select, #top .calc-panel select, #modal-root select {
  appearance: none; min-height: 48px; width: 100%; max-width: 100%;
  border: 1px solid #a69785; border-radius: 8px;
  padding: 11px 40px 11px 13px; color: #242b30; background-color: #fffefa;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"%3E%3Cpath d="m5 7 5 5 5-5" fill="none" stroke="%23a4492f" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"/%3E%3C/svg%3E');
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
  font: inherit; font-size: 16px; line-height: 1.5; color-scheme: light;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
#top select:hover, #top .calc-panel select:hover, #modal-root select:hover { border-color: #a4492f; background-color: #fff9f1; }
#top select:focus-visible, #top .calc-panel select:focus-visible, #modal-root select:focus-visible { outline: 3px solid #a4492f; outline-offset: 2px; box-shadow: 0 0 0 6px #a4492f12; }
select option { color: #242b30; background-color: #fffefa; }
select option:checked { color: #fff; background-color: #a4492f; }
select option:hover { color: #883a25; background-color: #f5e5d8; }
.project-city-label select { width: auto; min-width: 180px; }
/* В поддерживающих браузерах оформляем также раскрытую нативную панель. */
@supports (appearance: base-select) {
  #top select, #top .calc-panel select, #modal-root select, select::picker(select) { appearance: base-select; }
  #top select, #top .calc-panel select, #modal-root select { background-image: none; padding-right: 13px; align-items: center; }
  select::picker-icon { color: #a4492f; transition: rotate .2s; }
  select:open::picker-icon { rotate: 180deg; }
  select::picker(select) {
    margin-block: 7px; padding: 6px; max-height: min(320px, 50dvh);
    overflow-y: auto; scrollbar-color: #b87655 #f5eee3;
    border: 1px solid #b98769; border-radius: 10px;
    background: #fffefa; color: #242b30; box-shadow: 0 12px 35px #4b2b1b24;
  }
  select option {
    display: flex; align-items: center; gap: 10px; min-height: 44px;
    padding: 10px 12px; border-radius: 5px; font: inherit; font-size: 16px;
    line-height: 1.5; cursor: pointer; white-space: normal;
  }
  select option:checked { color: #fff; background: #a4492f; }
  select option:hover, select option:focus-visible { color: #883a25; background: #f5e5d8; outline: none; }
  select option:checked:hover, select option:checked:focus-visible { color: #fff; background: #883a25; }
  select option::checkmark { margin-left: auto; order: 1; color: currentColor; }
}
.dropdown-panel { border-color: #d9c4b0; background: #fffefa; }
.dropdown-panel button:hover, .dropdown-panel button:focus-visible,
.city-modal-list button:hover, .city-modal-list button:focus-visible { color: #883a25; background: #f5e5d8; }
.city-modal-list button.selected { color: #883a25; border-color: #b57956; background: #f5e5d8; }
.contact-optional-fields { margin-block: 19px 7px; }
.contact-optional-fields .field-label { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.contact-optional-fields .field-label > span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 10px; font-size: 16px; line-height: 1.5; }
.contact-optional-fields .optional { color: #4d5860; font-size: 14px; font-weight: 400; }
.contact-optional-fields textarea { min-height: 88px; resize: vertical; }
#top .call-time-hint, #modal-root .call-time-hint { color: #4d5860; font-size: 14px; font-weight: 400; line-height: 1.55; }
.calc-panel .contact-optional-fields { border-top: 1px solid #e2dbce; padding-top: 19px; }
.roof-process-list { gap: 20px; }
.roof-process-stage { padding-right: 34px; }
.roof-process-stage:not(:last-child)::before,
.roof-process-stage:not(:last-child)::after { content: none; display: none; }
.process-arrow { position: absolute; top: 6px; right: 3px; display: grid; place-items: center; width: 32px; height: 32px; color: #9c7760; pointer-events: none; transition: transform .25s, color .25s; }
.process-arrow svg { display: block; }
.roof-process-stage:hover .process-arrow, .roof-process-stage.is-active .process-arrow,
.roof-process-stage.is-passed .process-arrow { color: #a4492f; transform: translateX(4px); }
.warranty-grid article { position: relative; isolation: isolate; overflow: hidden; transition: box-shadow .3s, border-color .3s, background-color .3s; }
.warranty-grid article::before { content: ''; position: absolute; z-index: -1; top: -55px; right: -55px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, #d9af8540, transparent 70%); opacity: 0; transform: scale(.7); transition: opacity .35s, transform .35s; pointer-events: none; }
.warranty-grid article > .icon { width: 58px; height: 58px; padding: 12px; border-radius: 17px; background: #fffefa; color: #6b7350; box-shadow: 0 0 0 1px #d2d9c6; transform-origin: center; transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .35s, color .3s, background .3s; }
.warranty-grid article:hover, .warranty-grid article:focus-visible { border-color: #b88a67; background: #f7f0e5; box-shadow: 0 10px 27px #62402512; }
.warranty-grid article:hover::before, .warranty-grid article:focus-visible::before { opacity: 1; transform: scale(1); }
.warranty-grid article:hover > .icon, .warranty-grid article:focus-visible > .icon { color: #a4492f; background: #fffaf2; transform: translateY(-3px) rotate(-9deg) scale(1.07); box-shadow: 0 0 0 5px #a4492f0d, 0 8px 18px #72402020; }
.warranty-grid article:nth-child(2):hover > .icon, .warranty-grid article:nth-child(2):focus-visible > .icon { transform: translateY(-3px) rotate(9deg) scale(1.07); }
.warranty-grid article:focus-visible { outline: 3px solid #a4492f; outline-offset: 3px; }
.cost-cards .cost-card { transition: border-color .25s, box-shadow .25s, background .25s; }
.cost-cards .cost-icon { transition: transform .35s, background .25s, box-shadow .25s, color .25s; }
.cost-cards .cost-card:hover { border-color: #bd9275; background: #fffaf3; box-shadow: 0 6px 20px #4f35200d; }
.cost-cards .cost-card:hover .cost-icon { transform: rotate(-8deg) scale(1.08); color: #a4492f; background: #f5e4d4; box-shadow: 0 0 0 5px #a4492f08; }
.document-card > .icon { transition: transform .3s, color .3s, filter .3s; }
.document-card:hover > .icon, .document-card:focus-visible > .icon { transform: rotate(-6deg) translateY(-3px); color: #a4492f; filter: drop-shadow(0 4px 5px #b270412e); }
.document-card:focus-visible { border-color: #a4492f; box-shadow: 0 8px 22px #51301b16; }
.estimate-paper { transition: box-shadow .3s, border-color .3s; }
.estimate-paper:hover, .estimate-paper:focus-within { border-color: #b98c6b; box-shadow: 0 17px 36px #4e321b17, 5px 5px 0 #e7ddcc; }
.hero-benefits .icon, .calc-under .icon, .specialist-points .icon, .control-principles .icon { transition: transform .3s, color .3s, filter .3s; }
.hero-benefits > span:hover .icon { transform: translateY(-3px) rotate(-7deg); filter: drop-shadow(0 3px 8px #f1c5a766); }
.calc-under > span:hover .icon, .specialist-points li:hover .icon { color: #a4492f; transform: translateY(-2px) rotate(-7deg); }
.control-principles li:hover .icon { color: #a4492f; transform: scale(1.18); }
.featured-photo { overflow: hidden; border-radius: 8px; }
.featured-photo img { transition: transform .5s, filter .5s; }
.featured-photo:hover img, .featured-photo:focus-visible img { transform: scale(1.025); filter: saturate(1.04); }
.specialist-photo > img { transition: box-shadow .35s, filter .35s; }
.specialist-photo:hover > img { box-shadow: 0 13px 26px #47301c1c; filter: saturate(1.045); }
.review-card { transition: border-color .25s, box-shadow .25s, transform .25s; }
.review-card:hover, .review-card:focus-within { border-color: #b99072; box-shadow: 0 10px 24px #4d302014; transform: translateY(-3px); }
.seo-section { padding-block: 48px 54px; background: #f5f2eb; border-top: 1px solid #e1dbcf; }
#top .seo-section h2 { max-width: 850px; margin-bottom: 22px; font-size: 29px; line-height: 1.4; letter-spacing: -.5px; }
.seo-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px; }
.seo-copy p { color: #4d5860; font-size: 16px; line-height: 1.85; }
#top .seo-copy a { color: #883a25; font-size: inherit; text-decoration: underline; text-decoration-color: #bf967b; text-underline-offset: 4px; transition: text-decoration-color .2s, color .2s; }
#top .seo-copy a:hover, #top .seo-copy a:focus-visible { color: #a4492f; text-decoration-color: #a4492f; }
.seo-copy a:focus-visible { outline: 3px solid #a4492f; outline-offset: 3px; border-radius: 2px; }
@media (max-width: 900px) {
  .roof-process-list { gap: 0; }
  .roof-process-stage { padding: 0 0 45px; min-height: 140px; }
  .process-arrow { top: auto; bottom: 5px; left: 6px; right: auto; }
  .process-arrow svg { transform: rotate(90deg); }
  .roof-process-stage:hover .process-arrow, .roof-process-stage.is-active .process-arrow,
  .roof-process-stage.is-passed .process-arrow { transform: translateY(3px); }
}
@media (max-width: 700px) {
  .project-city-label select { min-width: 0; width: 100%; }
  .contact-optional-fields { margin-top: 16px; }
  .seo-section { padding-block: 38px 42px; }
  #top .seo-section h2 { font-size: 25px; }
  .seo-copy { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .process-arrow, .warranty-grid article, .warranty-grid article::before,
  .warranty-grid article > .icon, .cost-cards .cost-card, .cost-cards .cost-icon,
  .document-card > .icon, .estimate-paper, .hero-benefits .icon, .calc-under .icon,
  .specialist-points .icon, .control-principles .icon, .featured-photo img,
  .specialist-photo > img, .review-card, select, select::picker-icon { transition: none !important; }
  .warranty-grid article:hover > .icon, .warranty-grid article:focus-visible > .icon,
  .warranty-grid article:nth-child(2):hover > .icon, .warranty-grid article:nth-child(2):focus-visible > .icon,
  .cost-cards .cost-card:hover .cost-icon, .document-card:hover > .icon,
  .document-card:focus-visible > .icon, .hero-benefits > span:hover .icon,
  .calc-under > span:hover .icon, .specialist-points li:hover .icon,
  .control-principles li:hover .icon, .featured-photo:hover img,
  .featured-photo:focus-visible img, .review-card:hover, .review-card:focus-within,
  .roof-process-stage:hover .process-arrow, .roof-process-stage.is-active .process-arrow,
  .roof-process-stage.is-passed .process-arrow { transform: none !important; }
}
