/*
 * Responsive information-page layer for the PAOLA Figma file oophelWtqvvRZ18vxjg6IN.
 *
 * This stylesheet deliberately contains no page screenshots or state swaps.  Card
 * photography, paper texture and stickers remain regular local assets; headings,
 * copy, links, FAQ buttons and the team CTA stay in the document and respond to
 * keyboard, pointer and reduced-motion preferences as normal.
 */

/* --------------------------------------------------------------------------
   451:32 — Доставка и оплата
   Frames: tablet 451:188 (860×2352), phone 451:314 (430×2568)
   -------------------------------------------------------------------------- */
@media (min-width: 431px) and (max-width: 860px) ,  (width > 430px) and (max-width: 860px) {
  .dp-page {
    min-height: 2352px;
    height: auto;
    overflow: visible;
  }

  .dp-wrap {
    width: 860px;
    min-height: 2352px;
    height: auto;
  }

  .dp-content {
    top: 139px;
    left: 247px;
  }
}

@media (max-width: 430px) {
  .dp-page {
    min-height: 0;
    height: auto;
    overflow: visible;
  }

  .dp-wrap {
    width: 430px;
    min-height: 0;
    height: auto;
    margin: 0;
    padding: 120px 25px 59px;
  }

  .dp-decor { display: none; }

  .dp-content {
    position: static;
    display: flex;
    gap: 0;
    width: 379px;
    height: auto;
    padding: 0;
  }

  .dp-title {
    width: 375px;
    height: auto;
    margin: 0 0 17px;
    color: #b01e2b;
    font-size: 38px;
    line-height: normal;
    letter-spacing: 2.28px;
    white-space: nowrap;
  }

  .dp-block,
  .dp-block:nth-of-type(n) {
    width: 379px;
    gap: 18px;
    margin: 0 0 29px;
  }

  .dp-h2 {
    width: 310px;
    margin: 0;
    font-size: 34px;
    line-height: normal;
    letter-spacing: 2.04px;
    white-space: normal;
  }

  .dp-list {
    gap: 10px;
    width: 379px;
  }

  .dp-list li {
    margin: 0;
    font-size: 15px;
    line-height: 16px;
  }

  .dp-list--star li {
    min-height: 32px;
    padding-left: 37px;
    font-size: 16px;
  }

  .dp-list--star li::before {
    top: 0;
    left: 0;
    width: 22px;
    height: 32.03px;
  }

  .dp-list--dot li { padding-left: 19px; }

  .dp-list--dot li::before {
    top: 4px;
    width: 8px;
    height: 8px;
  }

  .dp-list--icon li {
    align-items: center;
    gap: 15px;
    min-height: 22px;
  }

  .dp-ic { width: 22px; height: 22px; }

  .dp-ic img {
    top: -8px;
    left: -8px;
    width: 42px;
    height: 42px;
  }

  .dp-accent {
    width: 379px;
    height: 157px;
    margin: 0 0 29px;
  }

  .dp-accent__script {
    top: 0;
    left: 4px;
    font-size: 64px;
    line-height: 43px;
  }

  .dp-accent__text {
    top: 50px;
    width: 379px;
    font-size: 27px;
    line-height: normal;
    letter-spacing: 1.62px;
    white-space: normal;
  }

  .dp-req {
    width: 379px;
    font-size: 15px;
    line-height: 16px;
  }

  .dp-req p { margin-bottom: 10px; }
}

/* --------------------------------------------------------------------------
   605:32 — Состав макарон
   Frames: tablet 605:668, phone 605:1147
   -------------------------------------------------------------------------- */
@media (min-width: 861px) ,  (width > 860px) {
  /* Keep the source-transform crop positioned against the card. The existing
     photo slot still reserves the column width in the flex row. */
  .sostav-item { position: relative; gap: 8px; }
  .sostav-item__photo { position: static; }
  .sostav-item__photo img {
    left: var(--sostav-photo-left);
    top: var(--sostav-photo-top);
    transform: scale(.333333);
    transform-origin: top left;
  }

  /* Keep the current nutrition blocks in normal flow, placing each copy group
     at its Figma card-local title Y. Long copy grows its card naturally. */
  .sostav-item__text {
    position: relative;
    align-self: flex-start;
    left: var(--sostav-copy-shift-x, 0px);
    margin-top: var(--sostav-copy-margin-top, 0px);
  }

  .sostav-item__desc { width: var(--sostav-desc-width, 100%); }

  .sostav-item:nth-child(1) { --sostav-copy-shift-x: .672px; --sostav-copy-margin-top: 20.5px; }
  .sostav-item:nth-child(2) { --sostav-copy-margin-top: 16.5px; }
  .sostav-item:nth-child(3) { --sostav-copy-shift-x: -2.451px; --sostav-copy-margin-top: 23.5px; }
  .sostav-item:nth-child(4) { --sostav-copy-margin-top: 23.5px; }
  .sostav-item:nth-child(5) { --sostav-copy-margin-top: 16.5px; }
  .sostav-item:nth-child(6) { --sostav-copy-margin-top: 13.5px; }
  .sostav-item:nth-child(7) { --sostav-copy-margin-top: 30.5px; }
  .sostav-item:nth-child(8) { --sostav-copy-margin-top: 16.5px; }
  .sostav-item:nth-child(9) { --sostav-copy-margin-top: 23.5px; }
  .sostav-item:nth-child(10) { --sostav-copy-margin-top: 23.5px; }
  .sostav-item:nth-child(11) { --sostav-copy-margin-top: 16.5px; }
  .sostav-item:nth-child(12) { --sostav-copy-margin-top: 23.5px; }
  .sostav-item:nth-child(13),
  .sostav-item:nth-child(14) { --sostav-copy-margin-top: 16.5px; }
  .sostav-item:nth-child(15) { --sostav-copy-margin-top: 23.5px; }
  .sostav-item:nth-child(16) { --sostav-copy-margin-top: 13.5px; }
  .sostav-item:nth-child(17),
  .sostav-item:nth-child(18) { --sostav-copy-margin-top: 23.5px; }
  .sostav-item:nth-child(19) { --sostav-copy-margin-top: 34.5px; }
  .sostav-item:nth-child(20) { --sostav-copy-margin-top: 41.5px; }
  .sostav-item:nth-child(21),
  .sostav-item:nth-child(22) { --sostav-copy-margin-top: 16.5px; }
  .sostav-item:nth-child(23) { --sostav-copy-margin-top: 34.5px; }
  .sostav-item:nth-child(24),
  .sostav-item:nth-child(26) { --sostav-copy-margin-top: 20.5px; }
  .sostav-item:nth-child(25) { --sostav-copy-margin-top: 9.5px; }
  .sostav-item:nth-child(27) { --sostav-copy-margin-top: 23.5px; }
  .sostav-item:nth-child(28) { --sostav-copy-margin-top: 16.5px; }

  .sostav-item:nth-child(2) .sostav-item__desc { --sostav-desc-width: 546px; }
  .sostav-item:nth-child(8) .sostav-item__desc { --sostav-desc-width: 560px; }
  .sostav-item:nth-child(11) .sostav-item__desc { --sostav-desc-width: 558px; }
  .sostav-item:nth-child(13) .sostav-item__desc,
  .sostav-item:nth-child(14) .sostav-item__desc { --sostav-desc-width: 556px; }
  .sostav-item:nth-child(15) .sostav-item__desc { --sostav-desc-width: 523px; }
  .sostav-item:nth-child(16) .sostav-item__desc { --sostav-desc-width: 548px; }
  .sostav-item:nth-child(17) .sostav-item__desc { --sostav-desc-width: 522px; }
  .sostav-item:nth-child(18) .sostav-item__desc { --sostav-desc-width: 525px; }
  .sostav-item:nth-child(19) .sostav-item__desc { --sostav-desc-width: 557px; }
  .sostav-item:nth-child(20) .sostav-item__desc { --sostav-desc-width: 516px; }
  .sostav-item:nth-child(22) .sostav-item__desc { --sostav-desc-width: 557px; }
  .sostav-item:nth-child(23) .sostav-item__desc { --sostav-desc-width: 559px; }
  .sostav-item:nth-child(24) .sostav-item__desc { --sostav-desc-width: 550px; }
  .sostav-item:nth-child(25) .sostav-item__desc { --sostav-desc-width: 532px; }
  .sostav-item:nth-child(26) .sostav-item__desc { --sostav-desc-width: 520px; }
  .sostav-item:nth-child(28) .sostav-item__desc { --sostav-desc-width: 554px; }

  .sostav-item:nth-child(n+2) .sostav-item__text { --sostav-copy-shift-x: 2.254px; }
  .sostav-item:nth-child(3) .sostav-item__text { --sostav-copy-shift-x: -2.451px; }
  .sostav-item:nth-child(1) .sostav-item__text { --sostav-copy-shift-x: .672px; }
}

@media (min-width: 431px) and (max-width: 860px) ,  (width > 430px) and (max-width: 860px) {
  .sostav-section { padding: 100px 0 0; }

  .sostav-section__inner {
    width: 760px;
    max-width: none;
    padding: 0;
  }

  .sostav-header {
    flex-direction: column;
    gap: 14px;
    width: 725px;
    margin: 0 0 48px;
  }

  .sostav-title {
    width: auto;
    margin: 0;
    font-size: 50px;
    line-height: normal;
  }

  .sostav-allergens {
    align-items: center;
    gap: 20px;
    width: 725px;
  }

  .sostav-allergens__star { margin: 0; }

  .sostav-allergens__text {
    width: 683px;
    font-size: 15px;
    line-height: normal;
  }

  .sostav-list {
    gap: 24px;
    width: 760px;
  }

  .sostav-item,
  .sostav-item--tall {
    box-sizing: border-box;
    flex-direction: row;
    align-items: center;
    gap: 35px;
    width: 760px;
    min-height: 176px;
    height: auto;
    padding: 34px 26px;
    border-radius: 40px;
  }

  .sostav-item__photo {
    width: 212px;
    height: 82px;
  }

  .sostav-item__text {
    gap: 10px;
    width: 426px;
  }

  .sostav-item__name {
    font-size: 34px;
    line-height: normal;
  }

  .sostav-item__desc {
    font-size: 14px;
    line-height: 16px;
  }
}

@media (max-width: 430px) {
  .sostav-section { padding: 120px 0 0; }

  .sostav-section__inner {
    width: 380px;
    max-width: none;
    padding: 0;
  }

  .sostav-header {
    display: grid;
    grid-template-columns: 1fr 23px;
    column-gap: 14px;
    row-gap: 10px;
    width: 355px;
    margin: 0 0 48px;
  }

  .sostav-title {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    margin: 0;
    font-size: 37px;
    line-height: normal;
    letter-spacing: 2.22px;
    white-space: nowrap;
  }

  .sostav-allergens { display: contents; }

  .sostav-allergens__star {
    grid-column: 2;
    grid-row: 1;
    width: 23px;
    height: 23px;
    margin: 10px 0 0;
  }

  .sostav-allergens__text {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 343px;
    margin: 0;
    font-size: 16px;
    line-height: normal;
  }

  .sostav-list {
    gap: 24px;
    width: 380px;
  }

  .sostav-item,
  .sostav-item--tall {
    box-sizing: border-box;
    flex-direction: column;
    align-items: center;
    gap: 35px;
    width: 380px;
    min-height: 0;
    height: auto;
    padding: 39px 26px;
    border-radius: 40px;
  }

  .sostav-item__photo {
    width: 164px;
    height: 51px;
    overflow: visible;
  }

  .sostav-item__text {
    align-items: center;
    gap: 11px;
    width: 297px;
    padding: 0 10px;
  }

  .sostav-item__name {
    width: 100%;
    font-size: 30px;
    line-height: normal;
    letter-spacing: 1.8px;
  }

  .sostav-item__desc {
    width: 100%;
    font-size: 16px;
    line-height: normal;
  }
}

/* --------------------------------------------------------------------------
   783:12 — Часто задаваемые вопросы
   Frames: tablet 783:1556, phone 783:2106 (closed state remains usable)
   -------------------------------------------------------------------------- */
@media (min-width: 431px) and (max-width: 860px) ,  (width > 430px) and (max-width: 860px) {
  .faq-page {
    min-height: 2226px;
    overflow: visible;
  }

  .faq-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 860px;
    min-height: 2226px;
    padding: 100px 50px 60px;
  }

  .faq-title {
    position: static;
    width: 664px;
    height: auto;
    margin: 0 0 48px;
    font-size: 50px;
    line-height: normal;
    letter-spacing: 3px;
  }

  .faq-list {
    position: static;
    width: 760px;
  }

  .faq-side-script {
    top: 306px;
    right: -48px;
    left: auto;
    width: 138px;
    height: 1488px;
  }

  .faq-item { width: 760px; }
}

@media (max-width: 430px) {
  .faq-page {
    min-height: 2415px;
    overflow: visible;
  }

  .faq-wrap {
    width: 430px;
    min-height: 2415px;
    padding: 120px 25px 25px;
  }

  .faq-title {
    width: 340px;
    margin: 0 0 48px;
    font-size: 37px;
    line-height: normal;
    letter-spacing: 2.22px;
  }

  .faq-list { width: 380px; }

  .faq-cat-label {
    width: 160px;
    height: 46px;
    margin: 32px 0 18px;
  }

  .faq-list > .faq-cat-label:first-child { margin-top: 0; }

  .faq-item {
    box-sizing: border-box;
    width: 380px;
    min-height: 80px;
    height: 80px;
    padding: 22px;
  }

  .faq-item--open {
    height: auto;
    padding: 22px;
  }

  .faq-item__head { gap: 32px; }

  .faq-item__q {
    font-size: 16px;
    line-height: normal;
  }

  .faq-item__body p,
  .faq-item__list { padding-left: 68px; }

  .faq-item__body p,
  .faq-item__list li {
    font-size: 14px;
    line-height: normal;
  }

  .faq-side-script { display: none; }
}

/* --------------------------------------------------------------------------
   793:6627 — О Paola.  Replace legacy viewport screenshots with the real
   card content on tablet/phone.  Decorative paper texture remains a local
   layer; the CTA, people labels and copy are neither hidden nor rasterised.
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .ab-team {
    background: #9d1f2a;
  }

  .ab-team__grid,
  .ab-team__title,
  .ab-team__more,
  .ab-feature__text {
    opacity: 1;
    pointer-events: auto;
  }

  .ab-feature::before {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(180deg, #fff6ed 0%, #f8eadc 100%), var(--ab-tooth-fill);
    background-size: 100% calc(100% - var(--ab-tooth-h) + 1px), var(--ab-tooth-w) var(--ab-tooth-h);
    background-position: 0 0, var(--ab-tooth-x) bottom;
    background-repeat: no-repeat, repeat-x;
    filter: drop-shadow(4px 4px 9.5px rgba(0, 0, 0, .35));
  }

  .ab-feature__texture {
    display: block;
  }

  .ab-feature__img {
    display: block;
    -webkit-mask-image: linear-gradient(#000, #000), var(--ab-tooth-mask);
    mask-image: linear-gradient(#000, #000), var(--ab-tooth-mask);
    -webkit-mask-size: 100% calc(100% - var(--ab-tooth-h) + 1px), var(--ab-tooth-w) var(--ab-tooth-h);
    mask-size: 100% calc(100% - var(--ab-tooth-h) + 1px), var(--ab-tooth-w) var(--ab-tooth-h);
    -webkit-mask-position: 0 0, var(--ab-tooth-x) bottom;
    mask-position: 0 0, var(--ab-tooth-x) bottom;
    -webkit-mask-repeat: no-repeat, repeat-x;
    mask-repeat: no-repeat, repeat-x;
  }

  .ab-feature__mobile-img { display: none; }
}

@media (min-width: 431px) and (max-width: 860px) ,  (width > 430px) and (max-width: 860px) {
  .ab-feature,
  .ab-feature--tall,
  .ab-feature--flip {
    display: grid;
    grid-template-columns: 1fr 400px;
    overflow: visible;
  }

  .ab-feature--flip { grid-template-columns: 380px 1fr; }

  .ab-feature__text {
    z-index: 2;
    padding: 54px 0 0 48px;
  }

  .ab-feature--flip .ab-feature__text {
    grid-column: 2;
    padding-left: 48px;
  }

  .ab-feature--tall .ab-feature__img,
  .ab-feature:not(.ab-feature--tall):not(.ab-feature--flip) .ab-feature__img {
    clip-path: inset(0 0 0 360px);
  }

  .ab-feature--flip .ab-feature__img { clip-path: inset(0 380px 0 0); }
}

@media (max-width: 430px) {
  .ab-team__grid,
  .ab-team__title,
  .ab-team__more { position: absolute; }

  .ab-feature,
  .ab-feature--tall,
  .ab-feature--flip {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .ab-feature__text {
    position: absolute;
    z-index: 2;
    right: 0;
    left: 0;
    top: 44%;
    align-self: start;
    padding: 60px 36px 0;
  }

  .ab-feature--flip .ab-feature__text {
    grid-column: auto;
    padding: 60px 36px 0;
  }

  .ab-feature--tall .ab-feature__text { top: 37%; padding-top: 58px; }
  .ab-feature--love .ab-feature__text { top: 48.5%; padding-top: 58px; }

  .ab-feature__title {
    font-size: 32px;
    line-height: 31px;
  }

  .ab-feature__body {
    font-size: 14px;
    line-height: 16px;
  }

  .ab-feature__img {
    display: none;
  }

  /* These are the individual, semantic feature photos already present in the
     template.  They are not card screenshots and remain useful to assistive
     technologies through their img alt text. */
  .ab-feature__mobile-img {
    position: absolute;
    z-index: 1;
    right: 0;
    top: 0;
    bottom: auto;
    left: 0;
    display: block;
    width: 100%;
    height: 46%;
    object-fit: cover;
    object-position: center;
  }

  .ab-feature--tall .ab-feature__mobile-img { height: 37%; }
  .ab-feature--love .ab-feature__mobile-img { height: 48.5%; }

  .ab-feature__texture { display: none; }
}

/* --------------------------------------------------------------------------
   Shared footer geometry for the information-page phone frames.

   The selectors deliberately begin with each page's <main>; this keeps the
   component local to the seven assigned templates.  The columns remain real
   anchors, social links and buttons — positioning is purely visual.
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  /* Every information frame in Figma uses the compact floating cart/menu,
     rather than the desktop logo bar inherited by the legacy theme. */
  body:has(:is(.dp-page, .cp-page, .sostav-section, .team-page, .legal-page, .faq-page, .about-page)) .site-header {
    top: 20px;
    padding: 0 12px 0 20px;
    /* Keeps the real header controls above every decorative section layer.
       The header remains one stacking context, so the opened menu still
       paints above the page rather than becoming a separate overlay. */
    z-index: 1000;
    isolation: isolate;
  }

  body:has(:is(.dp-page, .cp-page, .sostav-section, .team-page, .legal-page, .faq-page, .about-page)) .header-inner {
    height: 45px;
    padding: 0;
    gap: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  body:has(:is(.dp-page, .cp-page, .sostav-section, .team-page, .legal-page, .faq-page, .about-page)) .header-logo,
  body:has(:is(.dp-page, .cp-page, .sostav-section, .team-page, .legal-page, .faq-page, .about-page)) .socials {
    display: none;
  }

  body:has(:is(.dp-page, .cp-page, .sostav-section, .team-page, .legal-page, .faq-page, .about-page)) .header-right {
    margin-left: auto;
    gap: 8px;
  }

  body:has(:is(.dp-page, .cp-page, .sostav-section, .team-page, .legal-page, .faq-page, .about-page)) .cart-btn {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    width: 155px;
    height: 45px;
    padding: 0;
    box-sizing: border-box;
    border: 1px solid #fff6eb;
    background: rgba(64, 28, 12, .6);
    -webkit-backdrop-filter: blur(4.5px);
    backdrop-filter: blur(4.5px);
    color: #fff6eb;
    touch-action: manipulation;
  }

  body:has(:is(.dp-page, .cp-page, .sostav-section, .team-page, .legal-page, .faq-page, .about-page)) .cart-icon-wrap {
    width: 45px;
    height: 45px;
    background: linear-gradient(180deg, #fff6ed 0%, #f8eadc 100%);
  }

  body:has(:is(.dp-page, .cp-page, .sostav-section, .team-page, .legal-page, .faq-page, .about-page)) .cart-icon-wrap svg {
    width: 25px;
    height: 19.117px;
  }

  body:has(:is(.dp-page, .cp-page, .sostav-section, .team-page, .legal-page, .faq-page, .about-page)) .cart-icon-wrap svg path {
    fill: url(#paola-cart-icon-gradient);
    stroke: none;
  }

  body:has(:is(.dp-page, .cp-page, .sostav-section, .team-page, .legal-page, .faq-page, .about-page)) .cart-price {
    display: block;
    flex: 1;
    color: #fff6eb;
    font-size: 16px;
    text-align: center;
  }

  body:has(:is(.dp-page, .cp-page, .sostav-section, .team-page, .legal-page, .faq-page, .about-page)) .cart-count {
    top: 26px;
    right: -8px;
    left: auto;
    width: 19px;
    height: 19px;
    border: 1px solid #fff6eb;
    background: linear-gradient(135deg, #da1b2c 0%, #9d1f2a 100%);
    color: #fff6eb;
  }

  body:has(:is(.dp-page, .cp-page, .sostav-section, .team-page, .legal-page, .faq-page, .about-page)) .nav-burger,
  body:has(:is(.dp-page, .cp-page, .sostav-section, .team-page, .legal-page, .faq-page, .about-page)) :is(.cp-hero__cta, .cp-col__cta, .ab-story__cta, .ab-team__more) {
    touch-action: manipulation;
  }
}

@media (max-width: 430px) {
  /* The corporate Figma frame is one device pixel taller than its otherwise
     exact main + footer flow. */
  .cp-page { padding-bottom: 1px; }

  /* Stacking the native heading adds 72px above the grid; preserve the
     reference frame height by transferring that space from below the grid. */
  .team-section { padding-bottom: 71px; }

  /* There are twelve inter-section gaps in this legal document.  Figma uses
     36px here (rather than the legacy 56px), which preserves every paragraph
     and link while restoring the intended document rhythm. */
  .legal-page { padding-bottom: 66px; }
  .legal-section { margin-bottom: 36px; }

  :is(.dp-page, .cp-page, .team-page, .legal-page, .faq-page) + .site-footer {
    min-height: 553px;
    height: 553px;
  }

  /* FAQ's inline controller sits between <main> and the footer. */
  .faq-page ~ .site-footer {
    min-height: 553px;
    height: 553px;
  }

  :is(.dp-page, .cp-page, .team-page, .legal-page, .faq-page) + .site-footer .footer-inner {
    position: relative;
    box-sizing: border-box;
    width: 430px;
    min-height: 553px;
    height: 553px;
    margin: 0;
    padding: 0;
  }

  .faq-page ~ .site-footer .footer-inner {
    position: relative;
    box-sizing: border-box;
    width: 430px;
    min-height: 553px;
    height: 553px;
    margin: 0;
    padding: 0;
  }

  :is(.dp-page, .cp-page, .team-page, .legal-page, .faq-page) + .site-footer .footer-logo-svg {
    position: absolute;
    top: 76px;
    left: 25px;
    width: 382px;
    height: 64px;
    max-width: none;
    margin: 0;
  }

  .faq-page ~ .site-footer .footer-logo-svg { position: absolute; top: 76px; left: 25px; width: 382px; height: 64px; max-width: none; margin: 0; }

  :is(.dp-page, .cp-page, .team-page, .legal-page, .faq-page) + .site-footer .footer-columns {
    position: absolute;
    top: 182px;
    left: 25px;
    display: block;
    width: 374px;
    height: 249px;
    margin: 0;
  }

  .faq-page ~ .site-footer .footer-columns { position: absolute; top: 182px; left: 25px; display: block; width: 374px; height: 249px; margin: 0; }

  :is(.dp-page, .cp-page, .team-page, .legal-page, .faq-page) + .site-footer .footer-col-nav {
    position: absolute;
    top: 0;
    gap: 16px;
  }

  .faq-page ~ .site-footer .footer-col-nav { position: absolute; top: 0; gap: 16px; }

  :is(.dp-page, .cp-page, .team-page, .legal-page, .faq-page) + .site-footer .footer-col-nav:first-child { left: 0; }
  :is(.dp-page, .cp-page, .team-page, .legal-page, .faq-page) + .site-footer .footer-col-nav:nth-child(2) { left: 198px; }
  .faq-page ~ .site-footer .footer-col-nav:first-child { left: 0; }
  .faq-page ~ .site-footer .footer-col-nav:nth-child(2) { left: 198px; }

  :is(.dp-page, .cp-page, .team-page, .legal-page, .faq-page) + .site-footer .footer-col-nav a {
    font-size: 9px;
    line-height: normal;
  }
  .faq-page ~ .site-footer .footer-col-nav a { font-size: 9px; line-height: normal; }

  :is(.dp-page, .cp-page, .team-page, .legal-page, .faq-page) + .site-footer .footer-col-buttons {
    position: absolute;
    top: 125px;
    left: 197px;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 22px;
  }

  :is(.dp-page, .cp-page, .team-page, .legal-page, .faq-page) + .site-footer .footer-col-buttons .btn,
  .faq-page ~ .site-footer .footer-col-buttons .btn {
    width: 176px;
    min-width: 0;
    max-width: 176px;
  }
  .faq-page ~ .site-footer .footer-col-buttons { position: absolute; top: 125px; left: 197px; flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 22px; }

  :is(.dp-page, .cp-page, .team-page, .legal-page, .faq-page) + .site-footer .footer-col-contact {
    position: absolute;
    top: 134px;
    left: 0;
    font-size: 9px;
    line-height: 17px;
  }
  .faq-page ~ .site-footer .footer-col-contact { position: absolute; top: 134px; left: 0; font-size: 9px; line-height: 17px; }

  :is(.dp-page, .cp-page, .team-page, .legal-page, .faq-page) + .site-footer .footer-divider {
    position: absolute;
    top: 453px;
    left: 25px;
    width: 374px;
    margin: 0;
  }
  .faq-page ~ .site-footer .footer-divider { position: absolute; top: 453px; left: 25px; width: 374px; margin: 0; }

  :is(.dp-page, .cp-page, .team-page, .legal-page, .faq-page) + .site-footer .footer-legal {
    position: absolute;
    top: 480px;
    left: 25px;
    width: 374px;
    margin: 0;
    padding: 0;
    align-items: flex-end;
  }
  .faq-page ~ .site-footer .footer-legal { position: absolute; top: 480px; left: 25px; width: 374px; margin: 0; padding: 0; align-items: flex-end; }

  :is(.dp-page, .cp-page, .team-page, .legal-page, .faq-page) + .site-footer .footer-legal span,
  :is(.dp-page, .cp-page, .team-page, .legal-page, .faq-page) + .site-footer .footer-legal a {
    font-size: 8px;
    line-height: 11px;
  }
  .faq-page ~ .site-footer .footer-legal span,
  .faq-page ~ .site-footer .footer-legal a { font-size: 8px; line-height: 11px; }

  /* The original mobile rule kept the desktop flex row, pushing the
     subtitle off the canvas. Figma stacks the title and copy before the
     two-column card grid. */
  .team-header {
    flex-direction: column;
    align-items: flex-start;
    /* The desktop fixed header height clips the native subtitle on a
       430px layout and lets the grid overlap it. Let the two live rows
       determine their height, as in the Figma mobile frame. */
    height: auto;
  }
}

/* The 860px layouts use the same native footer component, with its tablet
   dimensions from the Figma frames. */
@media (min-width: 431px) and (max-width: 860px) ,  (width > 430px) and (max-width: 860px) {
  :is(.dp-page, .cp-page, .team-page, .legal-page, .faq-page) + .site-footer {
    min-height: 634px;
    height: 634px;
  }

  :is(.dp-page, .cp-page, .team-page, .legal-page, .faq-page) + .site-footer .footer-inner {
    position: relative;
    box-sizing: border-box;
    width: 860px;
    min-height: 634px;
    height: 634px;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  :is(.dp-page, .cp-page, .team-page, .legal-page, .faq-page) + .site-footer .footer-logo-svg {
    position: absolute;
    top: 71px;
    left: 50px;
    width: 760px;
    max-width: none;
    margin: 0;
  }

  :is(.dp-page, .cp-page, .team-page, .legal-page, .faq-page) + .site-footer .footer-columns {
    position: absolute;
    top: 263px;
    left: 50px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 73px;
    width: 760px;
    height: 250px;
    margin: 0;
  }

  :is(.dp-page, .cp-page, .team-page, .legal-page, .faq-page) + .site-footer .footer-col-buttons {
    position: absolute;
    top: 0;
    left: 537px;
    width: 176px;
    gap: 26px;
  }

  :is(.dp-page, .cp-page, .team-page, .legal-page, .faq-page) + .site-footer .footer-col-buttons .btn { width: 176px; }

  :is(.dp-page, .cp-page, .team-page, .legal-page, .faq-page) + .site-footer .footer-col-contact {
    position: absolute;
    top: 144px;
    left: 537px;
    width: 176px;
  }

  :is(.dp-page, .cp-page, .team-page, .legal-page, .faq-page) + .site-footer .footer-divider {
    position: absolute;
    top: 539px;
    left: 50px;
    width: 760px;
    margin: 0;
  }

  :is(.dp-page, .cp-page, .team-page, .legal-page, .faq-page) + .site-footer .footer-legal {
    position: absolute;
    top: 558px;
    left: 50px;
    width: 760px;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    gap: 0;
  }

  :is(.dp-page, .cp-page, .team-page, .legal-page, .faq-page) + .site-footer .footer-legal-main {
    flex-direction: column;
    gap: 4px;
  }

  /* The FAQ template inserts its native controller script after <main>, so
     this separate sibling chain receives the same tablet component geometry. */
  .faq-page ~ .site-footer {
    min-height: 634px;
    height: 634px;
  }

  .faq-page ~ .site-footer .footer-inner {
    position: relative;
    box-sizing: border-box;
    width: 860px;
    min-height: 634px;
    height: 634px;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .faq-page ~ .site-footer .footer-logo-svg { position: absolute; top: 71px; left: 50px; width: 760px; max-width: none; margin: 0; }
  .faq-page ~ .site-footer .footer-columns { position: absolute; top: 263px; left: 50px; display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 73px; width: 760px; height: 250px; margin: 0; }
  .faq-page ~ .site-footer .footer-col-buttons { position: absolute; top: 0; left: 537px; width: 176px; gap: 26px; }
  .faq-page ~ .site-footer .footer-col-buttons .btn { width: 176px; }
  .faq-page ~ .site-footer .footer-col-contact { position: absolute; top: 144px; left: 537px; width: 176px; }
  .faq-page ~ .site-footer .footer-divider { position: absolute; top: 539px; left: 50px; width: 760px; margin: 0; }
  .faq-page ~ .site-footer .footer-legal { position: absolute; top: 558px; left: 50px; width: 760px; margin: 0; padding: 0; flex-wrap: nowrap; gap: 0; }
  .faq-page ~ .site-footer .footer-legal-main { flex-direction: column; gap: 4px; }
}

/* Final 430px type and crop alignment from the native mobile Figma frames.
   These keep the live about cards and team grid intact; only their measured
   text metrics, image crops and the first-card offset are adjusted. */
@media (max-width: 430px) {
  /* Delivery: the mobile frame has a 46px rhythm between content groups.
     Keep the template's live copy and its desktop-authored line breaks; the
     compact gaps after the three long legal blocks preserve the Figma starts
     of following headings without hiding or rasterising that copy. */
  .dp-wrap { padding-bottom: 60px; }
  .dp-title { margin-bottom: 27px; }

  .dp-block,
  .dp-block:nth-of-type(n) { margin-bottom: 46px; }

  .dp-block:nth-of-type(5),
  .dp-block:nth-of-type(6),
  .dp-block:nth-of-type(7) { margin-bottom: 14px; }

  .dp-block:last-of-type { margin-bottom: 0; }
  .dp-block:nth-of-type(2) .dp-h2 { width: 350px; }
  .dp-accent {
    height: 174px;
    margin-bottom: 46px;
  }

  .ab-feature__text,
  .ab-feature--flip .ab-feature__text {
    padding-left: 41px;
    padding-right: 31px;
  }

  .ab-feature__title {
    font-size: 32px;
    line-height: 38px;
    margin-bottom: 10px;
  }

  .ab-feature__body {
    font-size: 16px;
    line-height: normal;
  }

  .ab-feature__note {
    margin-top: 34px;
    font-size: 13px;
    line-height: normal;
  }

  .ab-feature--tall .ab-feature__mobile-img { height: 238.55px; }
  .ab-feature--flip:not(.ab-feature--love) .ab-feature__mobile-img,
  .ab-feature:not(.ab-feature--tall):not(.ab-feature--flip) .ab-feature__mobile-img { height: 238.75px; }
  .ab-feature--love .ab-feature__mobile-img { height: 239px; }

  .team-title {
    font-size: 37px;
    line-height: normal;
  }

  .team-subtitle {
    font-size: 16px;
    line-height: normal;
  }

  .team-card:first-child { padding-top: 0; }
  .team-section { padding-bottom: 71.578125px; }
}

/* FW04: the desktop card background must not bake in a second box or copy.
   The tablet export is the existing clean, textured plate; the transparent
   packaging image and text remain separate live layers as in Figma 481:416. */
@media (min-width: 861px) ,  (width > 860px) {
  /* N07, fresh Figma card-image frame 481:114. Keep its photo and star on
     transparent canvas so the live card gradient and the card's own shadow
     remain visible around the corrected photo mask. */
  body .cp-page .cp-card--right-tall::before {
    background-image: url("../../img/corporate/corporate-right-photo-desktop-figma.png");
    background-size: auto calc(100% + 8px);
    background-position: center top;
  }

  body .cp-page .cp-card--packaging { overflow: visible; }

  body .cp-page .cp-card--packaging::before {
    inset: -2.44px auto auto -7.27px;
    width: 706.41px;
    height: 263px;
    background-image: url("../../img/corporate/cp-tablet-packaging-bg.png");
    background-size: 100% calc(100% + 8px);
    background-position: left -8px;
  }

  body .cp-page .cp-card--packaging .cp-card__body { top: 65px; }

  body .cp-page .cp-card__packaging-box {
    display: block;
    top: -15px;
    object-position: center 48.5%;
  }
}
