/* Tilda-style fixation: each 1440x740 card stays at the top for 740px. */
@media (min-width: 960px) {
  #rec2571841801 { overflow: visible !important; }
  #rec2571841801 > .canvas {
    position: sticky !important;
    top: var(--scene-header, 60px) !important;
    height: 740px !important;
    min-height: 740px !important;
    overflow: hidden !important;
  }
  #rec2571841801 > .canvas > [data-group-id^="17881007"] {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 1440px !important;
    height: 740px !important;
    margin: 0 !important;
    transition: none !important;
    will-change: transform;
  }
  /* Keep the image edge flush with the dark panel while the card is pinned. */
  #rec2571841801 > .canvas > [data-group-id^="17881007"] > .type-image {
    top: 0 !important;
    height: 740px !important;
  }
  #rec2571841801 > .canvas > [data-group-id^="17881007"] > .type-image > .content {
    height: 100% !important;
  }
  #rec2571841801 > .canvas > .group-1788100720915000001 { z-index: 1 !important; }
  #rec2571841801 > .canvas > .group-1788100727560000002 { z-index: 2 !important; }
  #rec2571841801 > .canvas > .group-1788100731655000003 { z-index: 3 !important; }
  #rec2571841801 > .canvas > .group-1788100736450000004 { z-index: 4 !important; }
}

/* Mobile typography from the supplied reference screens. */
@media screen and (max-width: 639px) {
  /* All six descriptions in the process cards. */
  #rec2583854701 .element[data-elem-id="1786297726588000002"] .content,
  #rec2583854701 .element[data-elem-id="1786297726708000005"] .content,
  #rec2583854701 .element[data-elem-id="1786297726808000008"] .content,
  #rec2583854701 .element[data-elem-id="1786297726894000011"] .content,
  #rec2583854701 .element[data-elem-id="1786297726979000014"] .content,
  #rec2583854701 .element[data-elem-id="1786297727054000017"] .content {
    font-family: var(--t-headline-font, Arial, sans-serif) !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
  }

  /* Descriptions in the six-card mobile mastery slider. */
  .mobile-mastery-slider .slide p,
  .consultation-copy > p {
    font-family: var(--t-headline-font, Arial, sans-serif) !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
  }

  /* Heading from the fourth supplied screen. */
  .consultation-copy h2 {
    font-family: var(--t-headline-font, Arial, sans-serif) !important;
    font-size: 25px !important;
    line-height: 1.15 !important;
  }

  /* All mobile CTA buttons: 14px -> 12px. */
  .type-button .content,
  .offer-button,
  .texture-card__copy a,
  .consultation-form button,
  .mobile-menu__cta {
    font-size: 12px !important;
  }

  /* Equalize the gap below the last card and above the dark section heading. */
  .texture-intro {
    padding-top: 54px !important;
  }

  /* Match the gap after the last CTA to the heading inset in the next block. */
  .texture-deck {
    padding-bottom: 20px !important;
  }
}

/* Mobile title typography matched to the supplied reference. */
@media (max-width: 479px) {
  /* Keep every mobile line of the “Создайте…” heading 20 screen pixels
     from the canvas edge despite the 320px artboard zoom. */
  #rec3633683301 [data-elem-id="1788695600681000001"],
  #rec3633683301 [data-elem-id="1788694800439000003"],
  #rec3633683301 [data-elem-id="1788694800439000002"],
  #rec3633683301 [data-elem-id="1788694800439000001"] {
    left: calc(50% - 160px + var(--safe-gutter, 20px)) !important;
  }

  /* Stretch the mobile intro card to exact 20px screen gutters. The canvas
     scales from a 320px artboard, so use its inverse-scaled safe gutter. */
  #rec3633683301 .tn-group[data-group-id="1788693331193000001"] {
    left: var(--safe-gutter, 20px) !important;
    width: calc(320px - var(--safe-gutter, 20px) - var(--safe-gutter, 20px)) !important;
  }
  #rec3633683301 .tn-group[data-group-id="1788693331193000002"] {
    width: 100% !important;
  }
  #rec3633683301 .element[data-elem-id="1788693331193000003"] {
    width: 100% !important;
  }

  #rec2501115211 .element[data-elem-id="1784981606416000000"] .content {
    color: #33312f !important;
    font-family: 'Inter', Arial, sans-serif !important;
    font-size: 28px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    letter-spacing: normal !important;
  }
}

@media (max-width: 959px) {
  .mobile-menu { padding-left: 20px !important; padding-right: 20px !important; }
}

/* Left-align the mobile "Objects" heading with the card grid. */
@media (max-width: 479px) {
  #rec2501115211 .tn-group[data-group-id="1788030107140000001"] {
    /* Its child has an internal 10px inset: compensate so visible text starts
       on the same 20px screen grid as the header. */
    left: calc(var(--safe-gutter, 20px) - 10px) !important;
    width: calc(100% - var(--safe-gutter, 20px)) !important;
  }
  #rec2501115211 .element[data-elem-id="1784981606416000000"] {
    left: 0 !important;
    width: calc(100% - var(--safe-gutter, 20px) + 10px) !important;
  }
  #rec2501115211 .element[data-elem-id="1784981606416000000"] .content {
    text-align: left !important;
    white-space: normal !important;
    font-family: 'Inter', Arial, sans-serif !important;
    font-size: 28px !important;
    line-height: 1.23 !important;
    font-weight: 600 !important;
    letter-spacing: -.025em !important;
  }
}

/* Shared 20px content grid for every mobile screen. */
@media (max-width: 639px) {
  .texture-intro,
  .texture-card__copy,
  .gallery-heading-inner,
  .consultation-copy,
  .consultation-media,
  .site-footer {
    padding-left: var(--safe-gutter, 20px) !important;
    padding-right: var(--safe-gutter, 20px) !important;
  }

  .offer-inner {
    width: calc(100% - var(--safe-gutter, 20px) - var(--safe-gutter, 20px)) !important;
    margin-left: var(--safe-gutter, 20px) !important;
    margin-right: var(--safe-gutter, 20px) !important;
  }

  .offer-button {
    left: var(--safe-gutter, 20px) !important;
    right: var(--safe-gutter, 20px) !important;
    width: auto !important;
  }

  .custom-gallery-section .cg-stage {
    margin-left: var(--safe-gutter, 20px) !important;
    margin-right: var(--safe-gutter, 20px) !important;
  }

  .added-contact-copy h2,
  .added-contact-details,
  .mobile-mastery-intro h2 {
    left: var(--safe-gutter, 20px) !important;
  }
}

/* The portfolio cards are positioned inside a 320px Tilda artboard.  Their
   outer bounds must use the inverse-scale gutter too, otherwise a 20px
   design offset becomes wider on the actual phone screen. */
@media (max-width: 479px) {
  #rec2501115211 .element[data-elem-id="1788704783285000001"],
  #rec2501115211 .element[data-elem-id="1788704790815000002"],
  #rec2501115211 .element[data-elem-id="1788705039753000001"],
  #rec2501115211 .element[data-elem-id="1788705097316000002"],
  #rec2501115211 .element[data-elem-id="1788705111918000003"],
  #rec2501115211 .element[data-elem-id="1788705274321000005"],
  #rec2501115211 .element[data-elem-id="1788705316796000007"],
  #rec2501115211 .element[data-elem-id="1788705405125000009"] {
    left: var(--safe-gutter, 20px) !important;
    width: calc(100% - var(--safe-gutter, 20px) - var(--safe-gutter, 20px)) !important;
  }

  #rec2501115211 .element[data-elem-id="1788705133511000004"],
  #rec2501115211 .element[data-elem-id="1788705274321000006"],
  #rec2501115211 .element[data-elem-id="1788705316796000008"],
  #rec2501115211 .element[data-elem-id="1788705423802000011"] {
    left: calc(var(--safe-gutter, 20px) + var(--safe-gutter, 20px)) !important;
  }
}

/* In the mobile texture cards, align copy and CTA with the image edge as in
   the second reference. The deck itself keeps the 20px screen gutters. */
@media (max-width: 479px) {
  .texture-card__copy {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Consistent 80px line spacing for the four requested page headings. */
#rec2583854701 [data-elem-id="1786297727121000018"] .content,
#rec2583854701 [data-elem-id="1788762619677000001"] .content,
.texture-card__copy h2.art-concrete-heading,
.mobile-mastery-intro h2,
.added-contact-copy h2,
#rec2501115211 [data-elem-id="1784981606416000000"] .content {
  line-height: 80px !important;
}

/* Reduce the contact heading by 2px at each responsive breakpoint. */
.added-contact-copy h2 { font-size: 68px !important; }
@media (max-width: 1199px) { .added-contact-copy h2 { font-size: 46px !important; } }
@media (max-width: 639px) { .added-contact-copy h2 { font-size: 32px !important; } }
@media (max-width: 479px) { .added-contact-copy h2 { font-size: 26px !important; } }
@media (min-width: 361px) and (max-width: 480px) { .added-contact-copy h2 { font-size: 21px !important; } }
@media (max-width: 360px) { .added-contact-copy h2 { font-size: 16px !important; } }

/* On mobile the shared 80px desktop line-height pushed the fourth mastery
   heading line below its intro panel. Keep the heading compact on phones. */
@media (max-width: 480px) {
  .mobile-mastery-intro h2 { line-height: 1.2 !important; }
}
@media (min-width: 361px) and (max-width: 480px) {
  .mobile-mastery-intro img { right: -80px; }
}

/* Balance the visible gaps around the transition from the social links to
   the consultation heading on phone layouts. */
@media (min-width: 361px) and (max-width: 480px) {
  #rec2990487101 .consultation-copy { padding-top: 34px !important; }
}

/* White caption panels beneath all four portfolio photos on mobile. */
@media (max-width: 639px) {
  #rec2501115211 .element[data-elem-id="1788705111918000003"] .content,
  #rec2501115211 .element[data-elem-id="1788705274321000005"] .content,
  #rec2501115211 .element[data-elem-id="1788705316796000007"] .content,
  #rec2501115211 .element[data-elem-id="1788705405125000009"] .content {
    background-color: #FFFFFF !important;
  }
}

/* Match the portfolio section's bottom inset to the 54px mobile inset above
   the next section heading, without moving or resizing its cards. */
@media (min-width: 480px) and (max-width: 639px) {
  #rec2501115211 .canvas,
  #rec2501115211 .t396__filter,
  #rec2501115211 .t396__carrier { height: 1946px !important; }
}
@media (max-width: 479px) {
  #rec2501115211 .canvas,
  #rec2501115211 .t396__filter,
  #rec2501115211 .t396__carrier { height: 1382px !important; }
}

@media (max-width: 639px) {
  #rec2501115211 .tn-group[data-group-id="1788030107140000001"] {
    top: 44px !important;
  }
}

/* Mobile contact heading and details use the same scaled 20px side grid.
   The shared desktop 80px line-height must not separate its wrapped lines. */
@media (max-width: 639px) {
  .added-contact-copy h2 {
    width: calc(100% - var(--safe-gutter, 20px) - var(--safe-gutter, 20px)) !important;
    line-height: 1.2 !important;
  }
  .added-contact-details {
    width: calc(100% - var(--safe-gutter, 20px) - var(--safe-gutter, 20px)) !important;
  }
}

/* The consultation copy sits inside an already-padded mobile grid. Remove its
   second gutter and let the heading, copy, and fields use that single column. */
@media screen and (max-width: 639px) {
  #rec2990487101 .consultation-inner {
    box-sizing: border-box;
    grid-template-columns: minmax(0, 1fr) !important;
    min-width: 0;
  }

  #rec2990487101 .consultation-copy {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #rec2990487101 .consultation-copy h2,
  #rec2990487101 .consultation-copy > p,
  #rec2990487101 .consultation-form {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  #rec2990487101 .consultation-copy h2 {
    font-size: 20px !important;
    line-height: 1.2 !important;
  }

  #rec2990487101 .consultation-copy > p {
    font-size: 14px !important;
    line-height: 1.25 !important;
  }

  #rec2990487101 .consultation-form__row {
    grid-template-columns: minmax(0, 1fr);
  }

  #rec2990487101 .consultation-form label,
  #rec2990487101 .consultation-form input:not([type="checkbox"]),
  #rec2990487101 .consultation-form textarea {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
  }

  #rec2990487101 .consultation-consent {
    width: 100%;
    max-width: 100%;
    white-space: normal;
  }

  /* Bring the artwork and footer upward so the visible gap after the form note
     is 30px on the width-scaled mobile artboards. */
  #rec2990487101 .consultation-media {
    margin-top: calc(-170px * var(--inverse-zoom, 1)) !important;
  }

  #rec2990487101 .consultation-copy > p .mobile-no-orphan {
    white-space: nowrap;
  }

  #rec3652578901 .mobile-mastery-track > .slide {
    background-color: #FFFFFF !important;
  }

  #rec3547055401 .element.e1784965170985000002 {
    left: var(--safe-gutter) !important;
    width: calc(100% - var(--safe-gutter) - var(--safe-gutter)) !important;
  }

  #rec2990487101 .consultation-form button {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 55px !important;
    transform: none !important;
    transition: background-color .45s, color .45s !important;
  }

  #rec2990487101 .consultation-form button:hover,
  #rec2990487101 .consultation-form button:focus-visible {
    transform: none !important;
  }

  #rec2990487101 .consultation-form-note {
    margin: 0 !important;
  }
}

/* The 80px desktop line-height on this title created an oversized mobile gap. */
@media(max-width:899px){.texture-card__copy h2.art-concrete-heading{line-height:1.15!important}}

/* Keep the requested operator details grouped with the privacy-policy link. */
.site-footer__legal-group{position:absolute;left:50%;bottom:2.7vw;display:grid;justify-items:center;gap:.45vw;max-width:34vw;transform:translateX(-50%);text-align:center}
.site-footer__legal-group .site-footer__privacy{position:static;left:auto;bottom:auto;transform:none;color:#aaa6a2!important;font-size:clamp(11px,.78vw,12px);white-space:nowrap}
.site-footer__requisites{display:grid;gap:2px;color:#aaa6a2;font:400 clamp(10px,.72vw,11px)/1.3 'Newsreader',Arial,sans-serif;white-space:nowrap}
@media(max-width:899px){
 .site-footer__legal-group{position:static;left:auto;bottom:auto;justify-items:start;gap:8px;max-width:none;transform:none;text-align:left}
 .site-footer__requisites{font-size:12px;white-space:normal}
}
