/* Waterproofing modal */
.hydro-modal__dialog {
  max-width: min(440px, calc(100vw - 1.5rem));
  margin: 1.25rem auto;
}

.hydro-modal {
  position: relative;
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.hydro-modal .btn-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  opacity: 0.45;
  padding: 8px;
}

.hydro-modal .btn-close:hover {
  opacity: 1;
}

.hydro-modal__header.modal-header {
  padding: 22px 24px 10px;
  border: none;
}

.hydro-modal__badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--cv-gradient);
  border-radius: 20px;
}

.hydro-modal .modal-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: #4d4d4d;
  letter-spacing: -0.02em;
}

.hydro-modal__subtitle.modal-text {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: #717f90;
}

.hydro-modal__body.modal-body {
  padding: 0 24px 20px;
}

.hydro-modal__perks {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hydro-modal__perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  font-size: 14px;
  font-weight: 500;
  color: #4d4d4d;
  line-height: 1.35;
}

.hydro-modal__perks li::before {
  content: "✓";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #ea5455;
  background: rgba(234, 84, 85, 0.1);
  border-radius: 50%;
}

.hydro-modal__benefit {
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(254, 182, 146, 0.12) 0%, rgba(234, 84, 85, 0.08) 100%);
  border: 1px solid rgba(234, 84, 85, 0.2);
  border-radius: 8px;
  margin-bottom: 14px;
}

.hydro-modal__benefit-lead,
.hydro-modal__benefit-promo {
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
  color: #4d4d4d;
}

.hydro-modal__benefit-promo {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 600;
}

.hydro-modal__benefit-lead strong,
.hydro-modal__benefit-promo strong {
  color: #ea5455;
  font-weight: 700;
}

.hydro-modal__fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.hydro-modal .modal-form {
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  color: #4d4d4d;
  padding: 12px 16px;
  margin: 0;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #f7f7f7;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.hydro-modal .modal-form::placeholder {
  color: #999;
}

.hydro-modal .modal-form:focus {
  border-color: #ea5455;
  background: #fff;
  outline: none;
}

.hydro-modal__consent.modal-page {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}

.hydro-modal .modal-checkbox {
  font-size: 12px;
  line-height: 1.4;
  color: #717f90;
}

.hydro-modal__footer.modal-footer {
  padding: 0;
  border: none;
  display: block;
}

.hydro-modal__submit.modal-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 20px;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
}

.hydro-modal__disclaimer {
  font-size: 12px;
  color: #717f90;
  text-align: center;
  margin-top: 8px;
  line-height: 1.4;
}

/* Question modal */
.question-modal__fields {
  gap: 10px;
}

.question-modal__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.question-modal__label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: #4d4d4d;
}

.question-modal__req {
  color: #ea5455;
}

.question-modal__textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.45;
}

.question-modal .hydro-modal__disclaimer a {
  color: #ea5455;
  font-weight: 600;
  text-decoration: none;
}

.question-modal .hydro-modal__disclaimer a:hover {
  text-decoration: underline;
}

@media screen and (max-width: 479px) {
  .hydro-modal__header.modal-header,
  .hydro-modal__body.modal-body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hydro-modal .modal-title {
    font-size: 20px;
  }

  .hydro-modal__subtitle.modal-text {
    font-size: 14px;
  }

  .hydro-modal__perks li {
    font-size: 14px;
  }
}


html {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
}

body.page-catalog {
  overflow-x: visible;
}

.page-catalog {
  overflow-x: visible;
}

.page-catalog .main,
.page-catalog #product,
.page-catalog .catalog-layout,
.page-catalog .catalog-main {
  min-width: 0;
  max-width: 100%;
}

.page-catalog .catalog-mobile-bar-spacer {
  display: none !important;
}

@media (max-width: 991px) {
  .page-catalog .catalog-page,
  .page-catalog.catalog-page,
  .page-catalog .main.catalog-page {
    padding-top: 0;
  }

  body.page-catalog .catalog-page #product,
  body.page-catalog .catalog-page .product {
    padding-top: 0;
    padding-bottom: 40px;
  }

  body.page-catalog #product > .container {
    padding-top: 0;
  }

  .page-catalog .catalog-breadcrumb {
    display: none;
  }

  .page-catalog .catalog-head {
    margin-bottom: 10px;
    text-align: left;
  }

  .page-catalog .catalog-head__subtitle,
  .page-catalog .catalog-head__text {
    display: none;
  }

  .page-catalog .catalog-head__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.25;
  }

  .page-catalog .catalog-mobile-bar {
    position: sticky;
    top: var(--catalog-header-offset, 0px);
    z-index: 110;
    display: flex;
    gap: 8px;
    align-items: stretch;
    margin: 0 -12px 6px;
    padding: 6px 12px;
    width: auto;
    max-width: none;
    box-sizing: border-box;
    background: #fff;
    border-bottom: 1px solid #ececec;
    box-shadow: 0 4px 14px rgba(17, 17, 26, 0.07);
  }

  .page-catalog .catalog-layout {
    gap: 8px;
  }

  .page-catalog .catalog-toolbar {
    margin-bottom: 8px;
  }
}

.page-catalog .container,
#product > .container {
  max-width: 100%;
}

.site-header__inner,
.site-topbar__inner {
  min-width: 0;
}

.site-header .container,
.site-topbar .container,
.header-models > .container {
  max-width: 100%;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.header {
  position: relative;
}

.header__wrap {
  position: relative;
  z-index: 10;
}

.header__nav.show {
  display: block !important;
}

.header-models + .header__nav.show {
  display: block !important;
}

@media (min-width: 1200px) {
  .header-models + .header__nav.show {
    display: none !important;
  }
}

.header__burger {
  display: none;
  align-items: center;
  justify-content: center;
}

.product__holder {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.product__holder .button,
.product__holder .product__credit {
  flex: 1 1 200px;
}

/* Catalog cards — не наследовать flex-раскладку списка товаров */
.product-card .product__holder.product-card__actions .button,
.product-card .product__holder.product-card__actions .product__credit {
  flex: none;
  width: 100%;
  margin: 0;
}

.series__section {
  background-color: #000 !important;
  background-image: url('../img/series-bg.jpg') !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  min-height: clamp(420px, 42vw, 670px);
}

.series__success {
  gap: 12px;
}

.series__block {
  padding: 24px 0;
}

.waterproofing__images {
  object-fit: contain;
}

.delivery__images,
.payment__images,
.questions__images {
  object-fit: cover;
}

.modal-dialog {
  margin: 1rem auto;
  max-width: min(400px, calc(100vw - 2rem));
}

.modal-form {
  font-size: 16px;
}

.footer .header__info {
  border-left: none;
  max-width: none;
  text-align: center;
  display: block;
  margin: 0 auto;
}

.footer-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "logo tagline support"
    "contacts contacts contacts";
  align-items: center;
  gap: 14px 20px;
  padding: 16px 0;
}

.footer-bar__logo {
  grid-area: logo;
  flex: 0 0 auto;
  display: block;
  line-height: 0;
}

.footer-bar__logo img {
  display: block;
  height: 34px;
  width: auto;
  max-width: 132px;
}

.footer-bar__tagline {
  grid-area: tagline;
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: #4a5568;
  text-align: center;
  min-width: 0;
}

.footer-bar__contacts {
  grid-area: contacts;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  min-width: 0;
}

.footer-bar__contact {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.footer-bar__contact:hover .footer-bar__phone {
  color: #e62b2b;
}

.footer-bar__contact .header__whatsapp,
.footer-bar__contact .header__call {
  flex-shrink: 0;
}

.footer-bar__contact-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.footer-bar__phone {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.footer-bar__label {
  font-size: 11px;
  line-height: 1.35;
  color: #6b7280;
}

.footer-bar__support {
  grid-area: support;
  justify-self: end;
  width: auto;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  padding: 10px 18px;
  box-sizing: border-box;
}

@media (max-width: 1280px) {
  .footer-bar {
    gap: 12px 16px;
  }

  .footer-bar__tagline {
    font-size: 12px;
  }

  .footer-bar__contacts {
    gap: 14px 20px;
  }

  .footer-bar__phone {
    font-size: 14px;
  }
}

.footer .header__logo {
  max-width: 180px;
}

/* Tablet — hero height handled in conversion.css */
@media screen and (max-width: 1023px) and (min-width: 768px) {
  .header__title {
    font-size: 36px;
    line-height: 1.15;
  }

  .header__slogan {
    font-size: 16px;
    line-height: 1.4;
    margin-top: 12px;
  }

  .series__title {
    font-size: 96px;
    line-height: 1;
  }

  .series__block {
    margin-top: 8%;
  }

  .waterproofing__title {
    font-size: 36px;
    line-height: 1.15;
  }

  .delivery__title,
  .questions__title {
    font-size: 36px;
  }

  .help-card {
    padding: 20px 18px;
  }
}

/* Small tablet / large phone */
@media screen and (max-width: 767px) {
  .header__phone {
    font-size: 13px;
  }

  .product__info {
    padding: 20px 16px;
  }

  .product-card .product-card__body.product__info {
    padding: 18px 20px 22px;
  }

  .product__title {
    font-size: 20px;
  }

  .waterproofing__block {
    margin-top: 24px;
  }

  .waterproofing__section {
    background-size: contain;
    background-position: top center;
  }

  .questions__ask {
    padding: 24px 20px;
  }

  .questions__head {
    padding-top: 24px;
  }

  .order__content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .order__page {
    text-align: center;
  }

  .footer__box .row {
    row-gap: 16px;
  }

  .footer-bar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "tagline"
      "contacts"
      "support";
    justify-items: center;
    text-align: center;
  }

  .footer-bar__tagline {
    max-width: 320px;
  }

  .footer-bar__contacts {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .footer-bar__support {
    justify-self: center;
    width: 100%;
    max-width: 280px;
  }

  .footer .header__inner {
    justify-content: center;
  }
}

/* Phone — legacy overrides kept minimal; mobile header in evolution.css */
@media screen and (max-width: 639px) {
  .header__wrap .col-6:first-child {
    flex: 1 1 auto;
  }

  .header__logo {
    max-width: 160px;
    padding: 0 !important;
  }

  .header__title {
    font-size: 24px;
    line-height: 1.25;
  }

  .header__slogan {
    font-size: 13px;
  }

  .series__title {
    font-size: 72px;
  }

  .series__subtitle {
    font-size: 14px;
    line-height: 1.35;
  }

  .series__text {
    line-height: 1.4;
  }

  .product__holder .button,
  .product__holder .product__credit {
    flex: 1 1 100%;
    width: 100%;
    margin-right: 0;
    text-align: center;
  }

  .product-card .product__holder.product-card__actions .button,
  .product-card .product__holder.product-card__actions .product__detail-btn {
    flex: none;
    width: 100%;
    margin: 0;
  }

  .accordion-button {
    font-size: 14px;
    line-height: 1.35;
    padding: 14px 12px;
  }

  .help-card__grid {
    grid-template-columns: 1fr;
  }

  .help-card__submit {
    width: 100%;
  }

  .footer .header__btn,
  .footer-bar__support {
    width: 100%;
    margin-top: 0;
  }

  .footer-bar__label,
  .footer-bar__phone {
    white-space: normal;
  }
}

/* Very small screens */
@media screen and (max-width: 369px) {
  .header__title {
    font-size: 22px;
    line-height: 1.25;
  }

  .series__title {
    font-size: 64px;
  }

  .delivery__content,
  .payment__block {
    padding-left: 16px;
    padding-right: 16px;
  }
}
