.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 32px;
  padding: 72px 0 30px;
  color: #526c80;
  background: linear-gradient(106deg, #fffaf8 0%, #fff5f3 65%, #fbe5e5 100%);
}

.site-footer__inner {
  position: relative;
  z-index: 2;
  width: min(var(--container-max), calc(100% - 48px));
  margin-inline: auto;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.35fr .8fr .9fr .9fr .9fr 1.25fr;
  gap: 28px;
}

.site-footer__brand,
.site-footer__nav-group,
.site-footer__contacts {
  min-width: 0;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-main, #064b3f);
}

.site-footer__logo img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.site-footer__logo span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  letter-spacing: -.055em;
  line-height: .9;
}

.site-footer__description {
  margin: 22px 0 0;
  color: var(--text-muted, #78858d);
  font-size: 16px;
  line-height: 1.45;
}

.site-footer__socials {
  display: flex;
  gap: 16px;
  margin-top: 22px;
}

.site-footer__social {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  color: #174f41;
  background: #ffe5e3;
  transition: transform .2s ease, background-color .2s ease;
}

.site-footer__social:hover {
  transform: translateY(-2px);
  background: #ffd7d7;
}

.site-footer__social .icon {
  width: 28px;
  height: 28px;
  stroke-width: 1.8;
}

.site-footer__message {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 58px;
  margin-top: 22px;
  padding: 0 17px 0 22px;
  border: 1px solid rgba(23, 62, 51, .19);
  border-radius: 999px;
  color: var(--green-main, #064b3f);
  background: rgba(255, 255, 255, .62);
  font-size: 16px;
  transition: background-color .2s ease, border-color .2s ease;
}

.site-footer__message:hover {
  border-color: rgba(23, 62, 51, .34);
  background: rgba(255, 255, 255, .92);
}

.site-footer__message .icon:first-child {
  width: 25px;
  height: 25px;
  color: #5f2a1e;
}

.site-footer__message-arrow {
  width: 22px;
  height: 22px;
  margin-left: auto;
  color: #5f2a1e;
  transition: transform .2s ease;
}

.site-footer__message:hover .site-footer__message-arrow {
  transform: translateX(3px);
}

.site-footer__nav-group {
  padding-left: 25px;
  border-left: 1px solid rgba(211, 218, 214, .62);
}

.site-footer__nav-toggle,
.site-footer__column-title {
  display: flex;
  align-items: center;
  min-height: 24px;
  margin: 0 0 23px;
  padding: 0;
  color: var(--green-main, #064b3f);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  line-height: 1.2;
  text-align: left;
}

.site-footer__nav-toggle {
  width: 100%;
  cursor: default;
}

.site-footer__nav-toggle .icon {
  display: none;
}

.site-footer__nav-links {
  display: grid;
  gap: 15px;
}

.site-footer__nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  color: #526c80;
  font-size: 16px;
  line-height: 1.25;
  transition: color .2s ease;
}

.site-footer__nav-links a:hover,
.site-footer__legal a:hover {
  color: var(--green-main, #064b3f);
}

.site-footer__nav-highlight { color: var(--green-main, #064b3f); }

.site-footer__nav-highlight .icon {
  width: 16px;
  height: 16px;
}

.site-footer__contacts {
  padding-left: 25px;
  border-left: 1px solid rgba(211, 218, 214, .62);
}

.site-footer__contact {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  margin-top: 25px;
  color: inherit;
}

.site-footer__contact-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  color: #5f2a1e;
  background: #ffe5e3;
}

.site-footer__contact-icon .icon {
  width: 27px;
  height: 27px;
}

.site-footer__contact-main,
.site-footer__contact small {
  display: block;
}

.site-footer__contact-main {
  color: var(--green-main, #064b3f);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
}

.site-footer__contact small {
  margin-top: 6px;
  color: var(--text-muted, #78858d);
  font-size: 14px;
  line-height: 1.25;
}

.site-footer__bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid rgba(213, 218, 214, .62);
  color: var(--text-muted, #78858d);
  font-size: 14px;
  line-height: 1.35;
}

.site-footer__legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  text-align: center;
}

.site-footer__legal a {
  color: inherit;
  white-space: nowrap;
  transition: color .2s ease;
}

.site-footer__legal i {
  display: block;
  width: 1px;
  height: 28px;
  background: rgba(160, 171, 168, .55);
}

.site-footer__signature {
  justify-self: end;
  text-align: right;
}

.site-footer__signature span {
  display: inline-block;
  margin-left: 7px;
  color: #e8868e;
  font-family: Georgia, serif;
  font-size: 35px;
  line-height: .7;
  vertical-align: middle;
  transform: rotate(-10deg);
}

.site-footer__bouquet {
  position: absolute;
  z-index: 1;
  right: -175px;
  bottom: -165px;
  width: 615px;
  height: 615px;
  object-fit: contain;
  pointer-events: none;
}

.site-footer__petal {
  position: absolute;
  z-index: 1;
  width: 58px;
  height: 26px;
  border-radius: 100% 0 100% 0;
  background: rgba(242, 133, 153, .38);
  box-shadow: 8px 5px 10px rgba(192, 105, 118, .1);
  pointer-events: none;
}

.site-footer__petal--one {
  top: 26px;
  right: 17%;
  transform: rotate(28deg);
}

.site-footer__petal--two {
  right: 27%;
  bottom: 95px;
  width: 49px;
  height: 22px;
  transform: rotate(-34deg);
}

.site-footer__petal--three {
  right: 38%;
  bottom: 23px;
  width: 65px;
  height: 28px;
  opacity: .7;
  transform: rotate(18deg);
}

.site-footer a:focus-visible,
.site-footer button:focus-visible {
  outline: 3px solid rgba(239, 48, 77, .3);
  outline-offset: 4px;
}

@media (max-width: 1179px) and (min-width: 768px) {
  .site-footer {
    padding-top: 56px;
  }

  .site-footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 28px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
    max-width: 390px;
  }

  .site-footer__nav-group:nth-of-type(2n + 1) {
    border-left: 0;
  }

  .site-footer__contacts {
    grid-column: 1 / -1;
    max-width: 620px;
    border-left: 0;
    padding-left: 0;
  }

  .site-footer__contacts .site-footer__contact {
    display: inline-grid;
    width: 32%;
    vertical-align: top;
  }

  .site-footer__bottom {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__legal {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-content: flex-start;
  }

  .site-footer__signature {
    grid-column: 2;
    grid-row: 2;
  }

  .site-footer__bouquet {
    right: -215px;
    bottom: -135px;
    width: 540px;
    height: 540px;
  }
}

@media (max-width: 767px) {
  .site-footer__bouquet { display: none; }

  .site-footer {
    margin-top: 24px;
    padding: 42px 0 28px;
  }

  .site-footer__inner {
    width: calc(100% - 32px);
  }

  .site-footer__top {
    display: block;
  }

  .site-footer__brand {
    position: relative;
    z-index: 2;
  }

  .site-footer__logo img {
    width: 52px;
    height: 52px;
  }

  .site-footer__logo span {
    font-size: 34px;
  }

  .site-footer__description {
    max-width: 290px;
    margin-top: 18px;
    font-size: 16px;
  }

  .site-footer__socials {
    gap: 14px;
    margin-top: 22px;
  }

  .site-footer__social {
    width: 54px;
    height: 54px;
  }

  .site-footer__message {
    min-height: 58px;
    margin-top: 22px;
  }

  .site-footer__nav-group {
    position: relative;
    z-index: 2;
    margin-top: 18px;
    padding: 0;
    border-top: 1px solid rgba(196, 207, 202, .7);
    border-left: 0;
  }

  .site-footer__nav-toggle {
    justify-content: space-between;
    min-height: 62px;
    margin: 0;
    cursor: pointer;
    color: var(--green-main, #064b3f);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0;
  }

  .site-footer__nav-toggle .icon {
    display: block;
    width: 23px;
    height: 23px;
    transition: transform .22s ease;
  }

  .site-footer__nav-toggle[aria-expanded="true"] .icon {
    transform: rotate(180deg);
  }

  .site-footer__nav-links {
    display: grid;
    max-height: 0;
    gap: 14px;
    overflow: hidden;
    padding: 0 4px;
    transition: max-height .24s ease, padding-bottom .24s ease;
  }

  .site-footer__nav-links.is-open {
    max-height: 430px;
    padding-bottom: 18px;
  }

  .site-footer__nav-links a {
    font-size: 16px;
  }

  .site-footer__contacts {
    position: relative;
    z-index: 2;
    margin-top: 42px;
    padding: 0;
    border-left: 0;
  }

  .site-footer__column-title {
    margin-bottom: 26px;
    font-size: 22px;
    letter-spacing: 0;
  }

  .site-footer__contact {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 16px;
    margin-top: 20px;
  }

  .site-footer__contact-icon {
    width: 56px;
    height: 56px;
  }

  .site-footer__contact-main {
    font-size: 18px;
  }

  .site-footer__contact small {
    font-size: 15px;
  }

  .site-footer__bottom {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    margin-top: 42px;
    padding-top: 24px;
    font-size: 15px;
  }

  .site-footer__legal {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    text-align: center;
  }

  .site-footer__legal a {
    width: 100%;
    max-width: 280px;
    padding: 7px 0;
    white-space: normal;
  }

  .site-footer__legal i {
    width: min(220px, 100%);
    height: 1px;
  }

  .site-footer__copyright {
    order: 2;
    text-align: center;
  }

  .site-footer__signature {
    order: 3;
    align-self: center;
    text-align: center;
  }

  .site-footer__bouquet {
    top: -18px;
    right: -125px;
    bottom: auto;
    width: 390px;
    height: 480px;
  }

  .site-footer__petal--one {
    top: 26px;
    right: 26%;
    width: 43px;
    height: 19px;
  }

  .site-footer__petal--two {
    right: 18%;
    bottom: 330px;
    width: 38px;
    height: 17px;
  }

  .site-footer__petal--three {
    right: 5%;
    bottom: 275px;
    width: 47px;
    height: 20px;
  }
}

@media (max-width: 359px) {
  .site-footer__logo span {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__social,
  .site-footer__message,
  .site-footer__message-arrow,
  .site-footer__nav-toggle .icon,
  .site-footer__nav-links {
    transition: none;
  }
}

/* Финальная полировка ритма главной страницы */
:root {
  --flow-gap-tight: 56px;
  --flow-gap-normal: 80px;
  --flow-gap-wide: 96px;
}

@media (min-width: 768px) {
  .popular-bouquets {
    padding-bottom: 0;
  }

  .flower-categories {
    padding-top: 88px;
    padding-bottom: 0;
  }

  .recipient-categories {
    padding-top: 64px;
    padding-bottom: 0;
  }

  .occasion-categories {
    padding-top: 64px;
    padding-bottom: 0;
  }

  .budget-section {
    padding-top: 80px;
    padding-bottom: 0;
  }

  .home-promo {
    padding-top: 48px;
    padding-bottom: 0;
  }

  .local-florist {
    padding-top: 80px;
    padding-bottom: 0;
  }

  .reviews-gallery {
    padding-top: 60px;
    padding-bottom: 0;
  }

  .order-process {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 80px;
    padding-bottom: 0;
  }

  .delivery-section {
    padding-top: 60px;
    padding-bottom: 0;
  }

  .delivery-section::after {
    display: block;
    width: min(180px, calc(100% - 32px));
    height: 22px;
    margin: 40px auto 0;
    background:
      linear-gradient(rgba(109, 133, 132, .9), rgba(109, 133, 132, .9)) left center / 64px 1px no-repeat,
      linear-gradient(rgba(109, 133, 132, .9), rgba(109, 133, 132, .9)) right center / 64px 1px no-repeat,
      url('../images/logo-flower.svg') center / 20px 20px no-repeat;
    content: '';
    opacity: .35;
    pointer-events: none;
  }

  .articles-section {
    padding-top: 40px;
    padding-bottom: 0;
  }

  .faq-section {
    padding-top: 80px;
    padding-bottom: 0;
  }

  .faq-contact__rows {
    gap: 8px;
    margin-top: 18px;
  }

  .faq-contact__row {
    padding-block: 9px;
  }

  .faq-contact__motto {
    margin-top: 16px;
  }

  .final-cta {
    margin-top: 64px;
    margin-bottom: 32px;
  }

  .site-footer {
    margin-top: 0;
  }

  .recipient-categories__decoration {
    top: -12px;
    right: -2%;
    width: min(56vw, 540px);
    height: 230px;
  }

  .occasion-categories__decor {
    top: -12px;
    right: 0;
    width: min(56vw, 520px);
    height: 230px;
  }

  .site-footer__bouquet {
    width: min(35vw, 500px);
    height: min(35vw, 500px);
  }
}

@media (max-width: 767px) {
  :root {
    --flow-gap-tight: 40px;
    --flow-gap-normal: 52px;
    --flow-gap-wide: 64px;
  }

  .popular-bouquets {
    padding-bottom: 0;
  }

  .flower-categories {
    padding-top: 56px;
    padding-bottom: 0;
  }

  .recipient-categories {
    padding-top: 44px;
    padding-bottom: 0;
  }

  .occasion-categories {
    padding-top: 44px;
    padding-bottom: 0;
  }

  .budget-section {
    padding-top: 52px;
    padding-bottom: 0;
  }

  .home-promo {
    padding-top: 34px;
    padding-bottom: 0;
  }

  .local-florist {
    padding-top: 56px;
    padding-bottom: 0;
  }

  .reviews-gallery {
    padding-top: 46px;
    padding-bottom: 0;
  }

  .order-process {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 52px;
    padding-bottom: 0;
  }

  .delivery-section {
    padding-top: 44px;
    padding-bottom: 0;
  }

  .delivery-section::after {
    display: block;
    width: min(140px, calc(100% - 32px));
    height: 18px;
    margin: 24px auto 0;
    background:
      linear-gradient(rgba(109, 133, 132, .9), rgba(109, 133, 132, .9)) left center / 46px 1px no-repeat,
      linear-gradient(rgba(109, 133, 132, .9), rgba(109, 133, 132, .9)) right center / 46px 1px no-repeat,
      url('../images/logo-flower.svg') center / 18px 18px no-repeat;
    content: '';
    opacity: .35;
    pointer-events: none;
  }

  .articles-section {
    padding-top: 24px;
    padding-bottom: 0;
  }

  .faq-section {
    padding-top: 56px;
    padding-bottom: 0;
  }

  .final-cta {
    margin-top: 48px;
    margin-bottom: 28px;
  }

  .site-footer {
    margin-top: 0;
  }

  .site-footer__bouquet {
    width: min(92vw, 420px);
    height: min(92vw, 420px);
  }
}
