/* Алмастрой — типографика. Montserrat уже загружается настройками Tilda. */
:root {
  --alma-type-family: Montserrat, Arial, sans-serif;
  --alma-type-display: clamp(36px, 3.35vw, 52px);
  --alma-type-section: clamp(29px, 2.68vw, 40px);
  --alma-type-subheading: clamp(22px, 1.9vw, 28px);
  --alma-type-body: 18px;
  --alma-type-card: 18px;
  --alma-type-caption: 15px;
  --alma-type-control: 16px;
  --alma-type-heading-line: 1.2;
  --alma-type-body-line: 1.55;
  --alma-type-card-line: 1.45;
  --alma-type-caption-line: 1.45;
  --alma-type-heading-weight: 700;
  --alma-type-card-weight: 600;
  --alma-type-body-weight: 400;
  --alma-type-secondary: #555;
}

@media (max-width: 639px) {
  :root {
    --alma-type-display: clamp(26px, 7.7vw, 36px);
    --alma-type-section: clamp(24px, 6.5vw, 30px);
    --alma-type-subheading: clamp(22px, 5.8vw, 26px);
    --alma-type-card: 17px;
  }
}

/* Native flow-layout descriptions. Zero Block text is sized by its artboard. */
#allrecords .t-rec:not([data-record-type="396"]) :is(.t-section__descr, .t026__descr, .t030__descr, .t102__descr, .t185__text, .t555__contentwrapper .t-text, .t1211__content, .t1211__content .t-redactor__text, .t798__text) {
  font-family: var(--alma-type-family);
  font-size: var(--alma-type-body);
  line-height: var(--alma-type-body-line);
}

#allrecords .t-rec:not([data-record-type="396"]) h2.t-section__title {
  font-family: var(--alma-type-family);
  font-size: var(--alma-type-section);
  line-height: var(--alma-type-heading-line);
}

#allrecords .t-rec .t1061__blocktext {
  font-family: var(--alma-type-family);
  font-size: var(--alma-type-card);
  line-height: var(--alma-type-card-line);
}

#allrecords .t-rec .t1061__blockname {
  font-family: var(--alma-type-family);
  font-size: var(--alma-type-card);
  font-weight: var(--alma-type-card-weight);
  line-height: var(--alma-type-card-line);
}

#allrecords .t-rec .t798__descr {
  font-size: var(--alma-type-caption);
  line-height: var(--alma-type-caption-line);
}

@media (max-width: 639px) {
  /* Two service descriptions in the home page's Zero Blocks. */
  #allrecords :is(#rec1930008451, #rec1521307851) [data-elem-id="1762343795433"] .tn-atom {
    font-size: var(--alma-type-body);
    line-height: var(--alma-type-body-line);
  }
}

#allrecords :is(.t-form, .t-popup .t-form) :is(.t-input, .t-select, .t-textarea) {
  font-family: var(--alma-type-family);
  font-size: var(--alma-type-control);
}

#allrecords .t-form :is(.t-input-title, .t-input-subtitle, .t-checkbox__labeltext) {
  font-family: var(--alma-type-family);
  font-size: var(--alma-type-caption);
  line-height: var(--alma-type-caption-line);
}

/* Editorial content and cards use their own flow layouts in all feed pages. */
.t-feed__post-popup__container .t-feed__post-popup__text,
.t-feed__post-popup__content .t-feed__post-popup__text,
body .t-feed__post-popup__text .t-redactor__text,
#allrecords #alma-blog-page .alma-page-descr {
  font-family: var(--alma-type-family);
  font-size: var(--alma-type-body);
  font-weight: var(--alma-type-body-weight);
  line-height: var(--alma-type-body-line);
}

body .t-feed__post-popup__text :is(.t-redactor__list, ul, ol, blockquote) {
  font-family: var(--alma-type-family);
  font-size: var(--alma-type-body);
  line-height: var(--alma-type-body-line);
}

.t-feed__post-popup__container .t-feed__post-popup__text,
.t-feed__post-popup__content .t-feed__post-popup__text {
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

.t-feed__post-popup__text :is(.t-redactor__text, a, th, td) {
  overflow-wrap: anywhere;
}

.t-feed__post-popup__text img,
.t-feed__post-popup__img {
  max-inline-size: 100%;
}

body .t-feed__post-popup__text .t-redactor__h2 {
  font-size: var(--alma-type-section);
  line-height: var(--alma-type-heading-line);
}

body .t-feed__post-popup__text :is(.t-redactor__h3, .t-redactor__h4) {
  font-size: var(--alma-type-subheading);
  line-height: var(--alma-type-heading-line);
}

body .t-feed__post-popup__title {
  font-family: var(--alma-type-family);
  font-size: var(--alma-type-display);
  line-height: var(--alma-type-heading-line);
  font-weight: var(--alma-type-heading-weight);
}

#allrecords #alma-blog-page .alma-page-title,
#allrecords .t-feed .t-feed__post-title {
  font-family: var(--alma-type-family);
  font-size: var(--alma-type-card);
  font-weight: var(--alma-type-card-weight);
  line-height: var(--alma-type-card-line);
}

body .t-feed__post-popup__date-wrapper .t-feed__post-popup__date,
body .t-feed__post-popup__author-wrapper .t-feed__post-popup__author-name,
body .t-feed__post-popup__text :is(figcaption, .t-redactor__caption),
#allrecords #alma-blog-page :is(.alma-page-meta, .alma-page-status) {
  font-size: var(--alma-type-caption);
  font-weight: var(--alma-type-body-weight);
  line-height: var(--alma-type-caption-line);
}

#allrecords #alma-blog-page .alma-page-descr {
  color: var(--alma-type-secondary);
}

#allrecords #alma-blog-page .alma-page-meta {
  color: var(--alma-type-secondary);
}

/* Furniture flow-layout content. Styling stays within the existing blocks. */
#rec1533506921 :is(.ak-hero, .ak-wrap) :is(p, .ak-fit, .muted) {
  font-family: var(--alma-type-family);
  font-size: var(--alma-type-body);
  line-height: var(--alma-type-body-line);
}

#rec1533506921 .ak-wrap :is(.card, .ak-perk, .ak-catalog) :is(p, li, .ak-fit, .muted) {
  font-size: var(--alma-type-card);
  line-height: var(--alma-type-card-line);
}

#rec1533506921 :is(.ak-designed .card, .ak-designed .ak-catalog, .ak-hero-perks) :is(p, .muted) {
  font-size: var(--alma-type-card);
  line-height: var(--alma-type-card-line);
}

#rec1533506921 .ak-wrap :is(.ak-small, .ak-photo-label, .ak-side-note) {
  font-size: var(--alma-type-caption);
  line-height: var(--alma-type-caption-line);
}

/* Video catalogue and watch pages share the text roles used by the blog. */
#allrecords .av-wrap,
#allrecords .alm-watch {
  font-family: var(--alma-type-family);
}

#allrecords .alm-watch h1 {
  font-size: var(--alma-type-display);
  font-weight: var(--alma-type-heading-weight);
  line-height: var(--alma-type-heading-line);
}

#allrecords :is(.av-wrap, .alm-watch) h2,
#allrecords :is(.av-wrap, #av-catalog, .av-prerender) .av-bottom-cta p {
  font-size: var(--alma-type-section);
  line-height: var(--alma-type-heading-line);
}

#allrecords .alm-watch :is(.alm-watch-lead, .alm-watch-body p, .alm-watch-facts dd, .alm-watch-facts li),
#allrecords :is(.av-wrap, #av-catalog, .av-prerender) :is(.av-intro, .av-bottom-cta div > span, .av-modal-description) {
  font-size: var(--alma-type-body);
  line-height: var(--alma-type-body-line);
}

#allrecords .av-wrap .av-card .av-title {
  display: block;
  font-size: var(--alma-type-card);
  line-height: var(--alma-type-card-line);
  font-weight: var(--alma-type-card-weight);
}

#allrecords :is(#av-catalog, .av-prerender) :is(.av-tag, .av-year, .av-summary, .av-results, .av-collection-name small),
#allrecords .alm-watch :is(.alm-watch-meta, .alm-watch-source, nav) {
  font-size: var(--alma-type-caption);
  line-height: var(--alma-type-caption-line);
}

#allrecords :is(#av-catalog, .av-prerender) :is(.av-tag, .av-year, .av-summary, .av-results, .av-collection-name small) {
  color: var(--alma-type-secondary);
}

/* FAQ lists and answer panels grow with their text. */
#allrecords .afaq :is(.afaq__hero p, .afaq__answer, .afaq__answer p, .afaq__answer li, .afaq__bridge p, .afaq__wrap > p) {
  font-family: var(--alma-type-family);
  font-size: var(--alma-type-body);
  line-height: var(--alma-type-body-line);
}

#allrecords :is(#rec4342019401, #rec4342021401) p {
  font-family: var(--alma-type-family);
  font-size: var(--alma-type-body);
  line-height: var(--alma-type-body-line);
}

#allrecords .afaq .afaq__bridge strong {
  font-size: var(--alma-type-card);
  line-height: var(--alma-type-card-line);
}

#allrecords .afaq .afaq__bridge :is(span, a) {
  font-size: var(--alma-type-caption);
  line-height: var(--alma-type-caption-line);
}

#allrecords .afaq .afaq__question {
  font-size: var(--alma-type-card);
  line-height: var(--alma-type-card-line);
}

#allrecords .afaq :is(.afaq__sectionhead small, .afaq__result, .afaq__chip) {
  font-size: var(--alma-type-caption);
  line-height: var(--alma-type-caption-line);
}

#allrecords .afaq .afaq__search {
  font-size: var(--alma-type-control);
}

/* Existing form and calculator layout and controls keep their behavior. */
#allrecords .alma-quiz .alma-quiz__subtitle {
  font-family: var(--alma-type-family);
  font-size: var(--alma-type-body);
  line-height: var(--alma-type-body-line);
}

body .alma-area-card :is(.alma-area-title, .alma-area-copy),
body .alma-area-mobile .alma-area-mobile-intro {
  font-size: var(--alma-type-caption);
  line-height: var(--alma-type-caption-line);
}
