/* Mobile frames from Figma. This file is intentionally isolated from the
   1200px layout: every declaration is gated at the 430px breakpoint. */
@media (max-width: 430px) {
  /* Keep the composition CTA below the quantity controls of flavours 7 and 8. */
  body.home .constructor-actions-box {
    margin-top: 43px;
  }

  /* The mobile delivery photo strips were positioned 52px outside the card,
     clipping the first photo against the viewport edge. */
  body.home .dc-art--coffee-photos,
  body.home .dc-art--vending-photos,
  body.home .dc-art--door-photos {
    left: 0;
  }

  .nav-menu .menu-item-has-children > .sub-menu {
    width: 100%;
    max-width: 100%;
  }

  .nav-menu .sub-menu a {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  /* Shared 430px footer: Figma uses a fixed 553px composition. */
  .sets-page + .site-footer,
  .sostav-page + .site-footer {
    height: 553px;
    min-height: 553px;
  }

  .sets-page + .site-footer .footer-inner,
  .sostav-page + .site-footer .footer-inner {
    position: relative;
    width: 430px;
    height: 553px;
    min-height: 553px;
    padding: 0;
  }

  .sets-page + .site-footer .footer-logo-svg,
  .sostav-page + .site-footer .footer-logo-svg {
    position: absolute;
    left: 25px;
    top: 76px;
    width: 382px;
    height: 64px;
    margin: 0;
  }

  .sets-page + .site-footer .footer-columns,
  .sostav-page + .site-footer .footer-columns {
    position: absolute;
    left: 25px;
    top: 182px;
    display: block;
    width: 374px;
    height: 249px;
  }

  .sets-page + .site-footer .footer-col-nav,
  .sostav-page + .site-footer .footer-col-nav {
    position: absolute;
    top: 0;
    gap: 16px;
  }

  .sets-page + .site-footer .footer-col-nav:first-child,
  .sostav-page + .site-footer .footer-col-nav:first-child { left: 0; }

  .sets-page + .site-footer .footer-col-nav:nth-child(2),
  .sostav-page + .site-footer .footer-col-nav:nth-child(2) { left: 198px; }

  .sets-page + .site-footer .footer-col-nav a,
  .sostav-page + .site-footer .footer-col-nav a { font-size: 9px; }

  .sets-page + .site-footer .footer-col-buttons,
  .sostav-page + .site-footer .footer-col-buttons {
    position: absolute;
    left: 197px;
    top: 125px;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 22px;
  }

  .sets-page + .site-footer .footer-col-contact,
  .sostav-page + .site-footer .footer-col-contact {
    position: absolute;
    left: 0;
    top: 134px;
    font-size: 9px;
    line-height: 17px;
  }

  .sets-page + .site-footer .footer-divider,
  .sostav-page + .site-footer .footer-divider {
    position: absolute;
    left: 25px;
    top: 453px;
    width: 374px;
    margin: 0;
  }

  .sets-page + .site-footer .footer-legal,
  .sostav-page + .site-footer .footer-legal {
    position: absolute;
    left: 25px;
    top: 480px;
    width: 374px;
    padding: 0;
    align-items: flex-end;
  }

  .sets-page + .site-footer .footer-legal span,
  .sets-page + .site-footer .footer-legal a,
  .sostav-page + .site-footer .footer-legal span,
  .sostav-page + .site-footer .footer-legal a {
    font-size: 8px;
    line-height: 11px;
  }

  /* Ready sets — Figma 796:53417, 430 × 6963. */
  .sets-page {
    position: relative;
    width: 430px;
    height: 6410px;
    overflow: hidden;
  }

  .sets-page .sets-page__header,
  .sets-page .sets-header-outer {
    height: 262px;
    padding: 120px 25px 0;
  }

  .sets-page .sets-page__header .container,
  .sets-page .sets > .container {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .sets-page .sets-header-row,
  .sets-page .sets-header {
    width: 355px;
  }

  .sets-page .sets-header-row { display: block; }
  .sets-page .section-title {
    font-size: 37px;
    line-height: 43px;
    letter-spacing: 2.22px;
  }

  .sets-page .sets-subtitle {
    align-items: flex-start;
    gap: 14px;
    margin-top: 10px;
    font-size: 12px;
    line-height: 14px;
  }

  .sets-page .sets-subtitle br { display: none; }
  .sets-page .sets-subtitle .subtitle-star { width: 23px; height: 23px; }

  .sets-page .sets-decorative-badge { display: none; }

  .sets-page .sets {
    height: 6148px;
    padding: 0;
    background-color: #684536;
    background-size: auto 2187px, auto 2187px, auto 2187px;
    background-position: center bottom, center 2187px, center top;
  }

  .sets-page .sets-list {
    width: 379px;
    margin-left: 25px;
    gap: 22px;
  }

  .sets-page .set-card {
    flex: 0 0 409px;
    width: 379px;
    height: 409px;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }

  .sets-page .set-card:nth-child(1),
  .sets-page .set-card:nth-child(3),
  .sets-page .set-card:nth-child(4),
  .sets-page .set-card:nth-child(5) {
    flex-basis: 493px;
    height: 493px;
  }

  .sets-page .set-card:nth-child(2) {
    flex-basis: 521px;
    height: 521px;
  }

  .sets-page .set-card::before {
    display: block;
    position: absolute;
    inset: 0;
    background: var(--card-bg) center / 100% 100% no-repeat;
  }

  .sets-page .set-card.theme-cream,
  .sets-page .set-card.theme-red-dark,
  .sets-page .set-card.theme-caramel {
    border-radius: 0;
    background: transparent;
  }

  .sets-page .set-card__texture {
    display: block;
    inset: 0;
    border-radius: 0;
  }

  .sets-page .set-card__visual {
    position: absolute;
    inset: 0;
    width: 379px;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    order: initial;
  }

  .sets-page .set-card__group-bg {
    left: 116px;
    top: 4px;
    width: 330px;
    height: 330px;
    transform: none;
  }

  .sets-page .set-card__visual > img,
  .sets-page .set-card:nth-child(n) .set-card__product-img {
    position: absolute;
    left: 188px;
    top: 72px;
    width: 182px !important;
    height: 182px !important;
    object-fit: contain;
    filter: drop-shadow(3px 4px 7px rgba(64, 28, 12, .24));
  }

  .sets-page .set-card:nth-child(n+6) .set-card__product-img {
    top: 70px;
    height: 150px !important;
  }

  .sets-page .set-card__product-pair {
    position: absolute;
    left: 178px;
    top: 70px;
    width: 195px;
    height: 154px;
  }

  .sets-page .set-card__product-pair span { width: 195px; }
  .sets-page .set-card__product-pair img { left: -63px; width: 318px; height: 212px; }
  .sets-page .set-card__product-pair span:first-child img { top: -38px; }
  .sets-page .set-card__product-pair span:last-child img { top: -119px; }

  .sets-page .set-card__content {
    position: absolute;
    inset: 46px auto auto 32px;
    z-index: 4;
    display: block;
    width: 315px;
    height: calc(100% - 74px);
    padding: 0;
  }

  .sets-page .set-card__text { display: block; }
  .sets-page .set-card__title {
    width: 292px;
    margin: 0;
    font-size: 30px;
    line-height: 34px;
    letter-spacing: 1.8px;
    white-space: normal;
  }

  .sets-page .set-card__desc {
    width: 155px;
    height: auto;
    margin-top: 78px;
    font-size: 12px;
    line-height: 14px;
    -webkit-line-clamp: 8;
  }

  .sets-page .set-card:nth-child(n+6) .set-card__desc {
    margin-top: 50px;
    -webkit-line-clamp: 5;
  }

  .sets-page .set-card__sostav {
    left: 22px;
    top: 76px;
    z-index: 6;
    width: 116px;
    height: 58px;
    object-fit: contain;
  }

  .sets-page .set-card__action-row {
    position: absolute;
    left: 8px;
    bottom: 0;
    display: block;
    width: 298px;
  }

  .sets-page .set-card__action-row .btn {
    width: 298px;
    height: 46px;
  }

  .sets-page .btn-text-link {
    display: block;
    width: 190px;
    margin: 12px auto 0;
    font-size: 8px;
    line-height: 10px;
    text-align: center;
  }

  /* Macaron composition — Figma 605:1147, 430 × 13387. */
  .sostav-page {
    width: 430px;
    height: 12834px;
    overflow: hidden;
  }

  .sostav-page .sostav-section { padding: 120px 0 61px; }
  .sostav-page .sostav-section__inner {
    width: 380px;
    max-width: none;
    margin: 0 0 0 25px;
    padding: 0;
  }

  .sostav-page .sostav-header {
    display: block;
    width: 355px;
    height: 148px;
    margin: 0 0 48px;
  }

  .sostav-page .sostav-title {
    width: auto;
    margin: 0;
    font-size: 37px;
    line-height: 43px;
    letter-spacing: 2.22px;
  }

  .sostav-page .sostav-allergens {
    display: block;
    width: 343px;
    margin-top: 10px;
  }

  .sostav-page .sostav-allergens__star {
    position: absolute;
    left: 338px;
    top: 10px;
    width: 23px;
    height: 23px;
    margin: 0;
  }

  .sostav-page .sostav-allergens__text {
    width: 343px;
    font-size: 16px;
    line-height: normal;
  }

  .sostav-page .sostav-list { gap: 24px; }
  .sostav-page .sostav-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 35px;
    width: 380px;
    min-height: 0;
    padding: 39px 26px;
    border-radius: 40px;
  }

  .sostav-page .sostav-item__photo {
    width: 165px;
    height: 51px;
    min-height: 51px;
  }

  .sostav-page .sostav-item__text {
    gap: 11px;
    width: 297px;
  }

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

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

  .sostav-page .sostav-item:nth-child(1) { height: 378px; }
  .sostav-page .sostav-item:nth-child(2) { height: 422px; }
  .sostav-page .sostav-item:nth-child(3) { height: 383px; }
  .sostav-page .sostav-item:nth-child(4) { height: 363px; }
  .sostav-page .sostav-item:nth-child(5) { height: 421px; }
  .sostav-page .sostav-item:nth-child(6) { height: 602px; }
  .sostav-page .sostav-item:nth-child(7) { height: 325px; }
  .sostav-page .sostav-item:nth-child(8) { height: 422px; }
  .sostav-page .sostav-item:nth-child(9) { height: 342px; }
  .sostav-page .sostav-item:nth-child(10) { height: 387px; }
  .sostav-page .sostav-item:nth-child(11) { height: 419px; }
  .sostav-page .sostav-item:nth-child(12) { height: 366px; }
  .sostav-page .sostav-item:nth-child(13) { height: 422px; }
  .sostav-page .sostav-item:nth-child(14) { height: 419px; }
  .sostav-page .sostav-item:nth-child(15) { height: 363px; }
  .sostav-page .sostav-item:nth-child(16) { height: 570px; }
  .sostav-page .sostav-item:nth-child(17) { height: 361px; }
  .sostav-page .sostav-item:nth-child(18) { height: 364px; }
  .sostav-page .sostav-item:nth-child(19) { height: 457px; }
  .sostav-page .sostav-item:nth-child(20) { height: 401px; }
  .sostav-page .sostav-item:nth-child(21) { height: 401px; }
  .sostav-page .sostav-item:nth-child(22) { height: 420px; }
  .sostav-page .sostav-item:nth-child(23) { height: 458px; }
  .sostav-page .sostav-item:nth-child(24) { height: 534px; }
  .sostav-page .sostav-item:nth-child(25) { height: 443px; }
  .sostav-page .sostav-item:nth-child(26) { height: 573px; }
  .sostav-page .sostav-item:nth-child(27) { height: 363px; }
  .sostav-page .sostav-item:nth-child(28) { height: 430px; }

  /* Order success — Figma 850:13797, 430 × 810. */
  body.page-template-page-order-accepted { min-width: 430px; }
  body.page-template-page-order-accepted .site-footer { display: none; }

  body.page-template-page-order-accepted .site-header {
    top: 21px;
    padding: 0 12px 0 20px;
  }

  body.page-template-page-order-accepted .header-inner {
    height: 45px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  body.page-template-page-order-accepted .header-logo { display: none; }
  body.page-template-page-order-accepted .header-right { margin-left: auto; gap: 8px; }
  body.page-template-page-order-accepted .cart-btn {
    flex-direction: row-reverse;
    justify-content: space-between;
    width: 155px;
    height: 45px;
    padding: 0;
    border: 0;
    background: #684536;
    color: #fff6eb;
  }
  body.page-template-page-order-accepted .cart-icon-wrap {
    width: 45px;
    height: 45px;
    background: #fff6eb;
  }
  body.page-template-page-order-accepted .cart-price {
    flex: 1;
    font-size: 16px;
    text-align: center;
  }
  body.page-template-page-order-accepted .cart-count {
    top: 27px;
    right: -7px;
    left: auto;
  }

  body.page-template-page-order-accepted .oa-hero {
    width: 430px;
    height: 810px;
    min-height: 810px;
    padding: 0;
    background: url("img/cert/success-bg-mobile-figma.jpg") 0 0 / 430px 810px no-repeat;
  }

  body.page-template-page-order-accepted .oa-hero__paper {
    display: block;
    top: 203px;
    left: -10px;
    width: 451px;
    height: 363px;
    border-radius: 0;
    transform: rotate(-5.83deg);
  }

  body.page-template-page-order-accepted .oa-hero__card {
    position: absolute;
    inset: 0;
    width: 430px;
    height: 810px;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  body.page-template-page-order-accepted .oa-hero__script {
    position: absolute;
    top: 262px;
    left: 76px;
    width: 277px;
    margin: 0;
    font-size: 52px;
    line-height: 43px;
    transform: rotate(-6deg);
  }

  body.page-template-page-order-accepted .oa-hero__title {
    position: absolute;
    top: 309px;
    left: 40px;
    width: 350px;
    margin: 0;
    font-size: 37px;
    line-height: 34px;
    letter-spacing: 2.22px;
    transform: rotate(-6deg);
  }

  body.page-template-page-order-accepted .oa-hero__text {
    position: absolute;
    top: 411px;
    left: 80px;
    width: 303px;
    margin: 0;
    gap: 14px;
    font-size: 16px;
    line-height: normal;
    transform: rotate(-6deg);
  }

  body.page-template-page-order-accepted .oa-hero__text .feature-star {
    flex: 0 0 23px;
    width: 23px;
    height: 23px;
  }

  body.page-template-page-order-accepted .oa-hero__gift {
    top: 157px;
    left: 31px;
    bottom: auto;
    width: 104px;
    height: 115px;
  }

  body.page-template-page-order-accepted .oa-hero__badge {
    top: 477px;
    right: auto;
    left: 278px;
    width: 130px;
    height: 102px;
    transform: rotate(12deg);
  }

  body.page-template-page-order-accepted .oa-hero__badge img {
    width: 130px;
    height: 102px;
  }

  body.page-template-page-order-accepted .oa-hero__badge span { font-size: 12px; }
  body.page-template-page-order-accepted .oa-hero__actions {
    position: absolute;
    top: 625px;
    left: 20px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 6px;
    width: 390px;
    margin: 0;
    transform: none;
  }

  body.page-template-page-order-accepted .oa-hero__actions .btn,
  body.page-template-page-order-accepted .oa-hero__actions .btn--primary,
  body.page-template-page-order-accepted .oa-hero__actions .btn--secondary {
    width: 390px;
    height: 56px;
    flex: 0 0 56px;
    font-size: 14px;
  }
}

@media (max-width: 430px) {
  /* Page-template selectors are used here because WordPress inserts inline
     scripts between <main> and <footer>, so an adjacent-sibling selector
     cannot own the footer geometry. */
  body.page-template-page-sets .site-footer,
  body.page-template-page-sostav .site-footer,
  body.page-template-page-sets .footer-inner,
  body.page-template-page-sostav .footer-inner {
    width: 430px;
    height: 553px;
    min-height: 553px;
    padding: 0;
  }

  body.page-template-page-sets .footer-inner,
  body.page-template-page-sostav .footer-inner { position: relative; }

  body.page-template-page-sets .footer-logo-svg,
  body.page-template-page-sostav .footer-logo-svg {
    position: absolute;
    left: 25px;
    top: 76px;
    width: 382px;
    height: 64px;
    margin: 0;
  }

  body.page-template-page-sets .footer-columns,
  body.page-template-page-sostav .footer-columns {
    position: absolute;
    left: 25px;
    top: 182px;
    display: block;
    width: 374px;
    height: 249px;
  }

  body.page-template-page-sets .footer-col-nav,
  body.page-template-page-sostav .footer-col-nav {
    position: absolute;
    top: 0;
    gap: 16px;
  }

  body.page-template-page-sets .footer-col-nav:first-child,
  body.page-template-page-sostav .footer-col-nav:first-child { left: 0; }
  body.page-template-page-sets .footer-col-nav:nth-child(2),
  body.page-template-page-sostav .footer-col-nav:nth-child(2) { left: 198px; }
  body.page-template-page-sets .footer-col-nav a,
  body.page-template-page-sostav .footer-col-nav a { font-size: 9px; }

  body.page-template-page-sets .footer-col-buttons,
  body.page-template-page-sostav .footer-col-buttons {
    position: absolute;
    left: 197px;
    top: 125px;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 22px;
    width: 176px;
  }

  body.page-template-page-sets .footer-col-buttons > .btn,
  body.page-template-page-sostav .footer-col-buttons > .btn {
    width: 176px;
    min-width: 0;
  }

  body.page-template-page-sets .footer-col-contact,
  body.page-template-page-sostav .footer-col-contact {
    position: absolute;
    left: 0;
    top: 134px;
    font-size: 9px;
    line-height: 17px;
  }

  body.page-template-page-sets .footer-divider,
  body.page-template-page-sostav .footer-divider {
    position: absolute;
    left: 25px;
    top: 453px;
    width: 374px;
    margin: 0;
  }

  body.page-template-page-sets .footer-legal,
  body.page-template-page-sostav .footer-legal {
    position: absolute;
    left: 25px;
    top: 480px;
    width: 374px;
    padding: 0;
    align-items: flex-end;
  }

  body.page-template-page-sets .footer-legal span,
  body.page-template-page-sets .footer-legal a,
  body.page-template-page-sostav .footer-legal span,
  body.page-template-page-sostav .footer-legal a {
    font-size: 8px;
    line-height: 11px;
  }

  .sets-page .set-card {
    z-index: 0;
    isolation: isolate;
  }

  .sets-page .set-card::before {
    top: -10px;
    right: auto;
    bottom: auto;
    left: -10px;
    width: 399px;
    height: calc(100% - 9px);
    background: url("img/set-card-mobile-cream.png") center / 100% 100% no-repeat;
    border-radius: 0;
    box-shadow: none;
  }

  .sets-page .set-card.theme-caramel::before {
    background: url("img/set-card-mobile-caramel.png") center / 100% 100% no-repeat;
  }

  .sets-page .set-card.theme-red-dark::before {
    background: url("img/set-card-mobile-red.png") center / 100% 100% no-repeat;
  }

  .sets-page .set-card__texture {
    display: none;
    -webkit-mask: none;
    mask: none;
  }

  body.page-template-page-sets .site-header,
  body.page-template-page-sostav .site-header {
    top: 20px;
    padding: 0 12px 0 20px;
  }

  body.page-template-page-sets .header-inner,
  body.page-template-page-sostav .header-inner {
    height: 45px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  body.page-template-page-sets .header-logo,
  body.page-template-page-sostav .header-logo { display: none; }

  body.page-template-page-sets .header-right,
  body.page-template-page-sostav .header-right { margin-left: auto; gap: 8px; }

  body.page-template-page-sets .cart-btn,
  body.page-template-page-sostav .cart-btn {
    flex-direction: row-reverse;
    justify-content: space-between;
    width: 155px;
    height: 45px;
    padding: 0;
    border: 0;
    background: #8f7564;
    color: #fff6eb;
  }

  body.page-template-page-sets .cart-icon-wrap,
  body.page-template-page-sostav .cart-icon-wrap {
    width: 45px;
    height: 45px;
    background: #fff6eb;
  }

  body.page-template-page-sets .cart-price,
  body.page-template-page-sostav .cart-price {
    flex: 1;
    font-size: 16px;
    text-align: center;
  }

  body.page-template-page-sets .cart-count,
  body.page-template-page-sostav .cart-count {
    top: 27px;
    right: -7px;
    left: auto;
  }

  .sets-page .sets { background: #fff6eb !important; }
  .sets-page .sets-header { position: relative; }
  .sets-page .sets-subtitle { display: block; }
  .sets-page .sets-subtitle .subtitle-star {
    position: absolute;
    left: 320px;
    top: 10px;
  }

  .sets-page .set-card__desc {
    width: 175px;
    margin-top: 41px;
    text-align: left;
    -webkit-line-clamp: 12;
  }

  .sets-page .set-card:nth-child(n+6) .set-card__desc {
    width: 175px;
    margin-top: 30px;
    -webkit-line-clamp: 7;
  }

  .sets-page .set-card__content { height: calc(100% - 46px); }
  .sets-page .set-card__action-row {
    top: auto;
    bottom: 0;
  }

  .sets-page .btn-text-link {
    height: 15px;
    margin-top: 54px;
    font-size: 9px;
    line-height: 15px;
  }

  .sets-page .set-card__sostav { top: 80px; }
  .sets-page .set-card.theme-cream .set-card__sostav {
    content: url("img/sets-sticker-mobile-red.svg");
    left: 12px;
    top: 75px;
    width: 137px;
    height: 66px;
  }

  .sets-page .set-card.theme-caramel .set-card__sostav,
  .sets-page .set-card.theme-red-dark .set-card__sostav {
    content: url("img/sets-sticker-mobile-cream.svg");
    left: 12px;
    top: 70px;
    width: 137px;
    height: 96px;
  }
  .sets-page .set-card:nth-child(1) .set-card__product-img {
    left: 206px;
    top: 190px;
    width: 191px !important;
    height: 168px !important;
  }

  .sets-page .set-card:nth-child(n+2):nth-child(-n+5) .set-card__product-img {
    left: 205px;
    top: 179px;
    width: 196px !important;
    height: 182px !important;
  }

  .sostav-page .sostav-item__photo img {
    transform: translate(-50%, -50%) scale(.18);
  }

  .sostav-page .sostav-item__text {
    box-sizing: border-box;
    padding: 0 10px;
  }

  body.page-template-page-order-accepted .oa-hero__paper {
    top: 224px;
    left: 6px;
    width: 420px;
    height: 322px;
  }

  body.page-template-page-order-accepted .oa-hero__script { top: 287px; }
  body.page-template-page-order-accepted .oa-hero__title { top: 334px; }
  body.page-template-page-order-accepted .oa-hero__text { top: 421px; }
}
