/* Russian content adaptations and Emerald & Champagne palette details. */
.st-stories { padding: 65px 0; background: var(--bg-color); }
.st-stories > .container { max-width: 1680px; }
.st-stories-heading { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; margin-bottom: 35px; }
.st-stories .st-stories-title { font-family: var(--default-font); font-size: clamp(28px, 2.7vw, 42px); line-height: 1.15; font-weight: 600; margin: 0; text-transform: uppercase; }
.st-stories-title span { font-weight: 400; }
.st-stories-controls { display: flex; gap: 12px; }
.st-stories-controls[hidden], .st-story-read[hidden] { display: none; }
.st-stories-controls button { width: 58px; height: 58px; border: 0; border-radius: 50%; background: var(--accent-color); color: var(--white-color); transition: background .2s, opacity .2s; }
.st-stories-controls button:hover:not(:disabled) { background: var(--primary-color); }
.st-stories-controls button:disabled { opacity: .4; cursor: default; }
.st-stories-track { position: relative; display: flex; gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; -ms-overflow-style: none; padding: 4px 0; }
.st-stories-track::-webkit-scrollbar { display: none; width: 0; height: 0; }
.st-story { flex: 0 0 calc(50% - 30px); min-width: 0; align-self: flex-start; overflow: hidden; background: var(--soft-color); border-radius: 24px; padding: 28px; scroll-snap-align: start; }
.st-story-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.st-story-gallery a { min-width: 0; position: relative; display: block; overflow: hidden; border-radius: 14px; }
.st-story-gallery a[hidden] { display: none; }
.st-story-photo { height: 180px; }
.st-story-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.st-story-gallery a:hover img { transform: scale(1.035); }
.st-stories :is(a, button):focus-visible, .st-stories-track:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 3px; }
.st-story-more { position: absolute; bottom: 10px; right: 10px; border-radius: 20px; padding: 4px 10px; color: var(--white-color); background: var(--accent-color); font-size: 13px; }
.st-story-body { padding-top: 20px; }
.st-story-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 15px; }
.st-story-emblem { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: url("../images/sevastopol/site-logo-light.webp") no-repeat; background-size: 432% auto; background-position: 13.25% 44%; filter: hue-rotate(130deg) saturate(.7); }
.st-story-body :is(h3, .st-story-author) { flex: 1; font-size: 17px; line-height: 1.4; margin: 0; text-transform: none; }
.st-story-occasion { max-width: 180px; border-left: 1px solid var(--divider-color); padding-left: 14px; color: var(--text-color); font-size: 14px; }
.st-story blockquote { margin: 0; padding: 0; border: 0; background: none; font: inherit; color: var(--text-color); }
.st-story blockquote p { margin: 0; overflow-wrap: anywhere; }
.st-stories--ready .st-story:not(.st-story--expanded) blockquote p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-story-actions { margin-top: 28px; }
.st-story-read { display: inline; border: 0; border-radius: 0; padding: 0; background: none; color: var(--accent-color); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.st-story-read:hover { background: none; color: var(--primary-color); }
.st-stories-footer { margin-top: 24px; }
.st-stories-footer .readmore-btn { text-transform: none; }
@media (max-width: 991px) {
  .st-stories-heading { grid-template-columns: 1fr auto; gap: 20px; }
  .st-stories-controls { grid-column: 2; }
  .st-story { flex-basis: 85%; }
}
@media (max-width: 575px) {
  .st-stories { padding: 50px 0; }
  .st-stories-heading { gap: 16px; }
  .st-stories-controls { gap: 8px; grid-row: 1; }
  .st-stories-controls button { width: 44px; height: 44px; }
  .st-story { flex-basis: 94%; padding: 18px; border-radius: 20px; }
  .st-stories-track { gap: 16px; }
  .st-story-gallery { gap: 8px; }
  .st-story-photo { height: 130px; }
  .st-story-meta { flex-wrap: wrap; gap: 10px; }
  .st-story-occasion { flex-basis: 100%; max-width: none; border-left: 0; padding-left: 0; }
}
.main-header .navbar-brand img,
.main-footer .footer-logo img,
#loading-icon .st-loader-logo img { filter: hue-rotate(130deg) saturate(.7); }
.hero-content .section-title h3,
.st-footer-information a:hover,
.st-footer-information a:focus-visible { color: var(--champagne-color); }
.google-rating-content i { color: var(--champagne-color); }
/* Reuse the sevastopol-tort.ru emblem without duplicating or modifying the source logo. */
.contact-us-circle a { position: relative; }
.contact-us-circle a::after {
  content: "";
  position: absolute;
  inset: 28.3333%;
  border-radius: 50%;
  background: url("../images/sevastopol/site-logo-light.webp") no-repeat;
  background-size: 432% auto;
  background-position: 13.25% 44%;
  filter: hue-rotate(130deg) saturate(.7);
  pointer-events: none;
}
#loading-icon .st-loader-logo { display: block; position: relative; width: 50px; height: 50px; overflow: hidden; border-radius: 50%; }
#loading-icon .st-loader-logo img { position: absolute; width: 216px; max-width: none; height: auto; left: -22px; top: -10px; }
.main-header .navbar-brand img { display: block; width: 200px; max-width: 100%; height: auto; }
.main-footer .footer-logo img { display: block; width: 240px; max-width: 100%; height: auto; border-radius: 10px; }
.st-footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.1fr; gap: 40px; }
.st-footer-grid > * { min-width: 0; }
.st-footer-grid h3 { margin: 0 0 22px; font-size: 20px; color: var(--white-color); }
.st-footer-grid .about-footer p { margin-top: 24px; color: #ffffffb3; }
.st-footer-grid .st-footer-information { margin-top: 28px; gap: 12px; }
.st-footer-grid .st-footer-information h3 { margin-bottom: 0; }
.st-footer-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.st-footer-nav a, .st-footer-contact p { color: #ffffffb3; }
.st-footer-nav a { display: inline-block; line-height: 1.5; transition: color .2s; }
.st-footer-nav a:hover, .st-footer-nav a:focus-visible { color: var(--white-color); text-decoration: underline; text-underline-offset: 4px; }
.st-footer-contact .st-footer-phone { display: inline-block; margin-bottom: 16px; color: var(--white-color); font-size: 19px; font-weight: 600; white-space: nowrap; }
.st-footer-contact p { margin-bottom: 18px; }
.st-footer-bottom { align-items: center; gap: 24px; }
.st-footer-bottom .footer-copyright-text p { font-size: 14px; color: #ffffffb3; }
.st-footer-agency { display: flex; align-items: center; gap: 14px; color: #ffffffb3; font-size: 14px; }
.st-footer-agency img { display: block; width: 140px; height: auto; }
@media (max-width: 1199px) { .st-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 50px; } }
@media (max-width: 575px) {
  .st-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .st-footer-grid h3 { margin-bottom: 16px; }
  .st-footer-bottom { align-items: flex-start; flex-direction: column; }
}
.main-header .main-menu .nav-menu-wrapper { min-width: 0; }
.main-header .header-btn { flex-shrink: 0; }
.main-header .main-menu ul li a { white-space: normal; }
.main-header .main-menu .submenu ul li a,
.slicknav_nav li a { text-transform: none; }
.home .hero-content h1 { overflow-wrap: break-word; }
.home .working-hours-body li { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; }
.st-home-showcase ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; margin: 0; padding: 0; list-style: none; }
.st-home-showcase ul.products::before,
.st-home-showcase ul.products::after { display: none; }
.woocommerce.st-home-showcase ul.products li.product { float: none; width: auto; margin: 0; padding: 24px; background: var(--secondary-color); border-radius: 20px; text-align: center; }
.st-home-showcase ul.products li.product a img { display: block; width: 100%; height: 220px; object-fit: contain; margin-bottom: 20px; }
.st-home-showcase .woocommerce-loop-product__title { font-size: 22px; margin-bottom: 12px; }
.st-home-showcase ul.products li.product .price { display: block; color: var(--accent-color); font-size: 20px; }
.st-home-showcase-empty { text-align: center; }
.st-footer-information { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 50px; }
.st-footer-information h3 { font-size: 20px; color: var(--white-color); }
.st-footer-information a { color: var(--white-color); text-decoration: underline; text-underline-offset: 4px; }
.offer-item-content h2 a { color: inherit; }
.offer-item-content h2 a:hover { color: var(--accent-color); }
.our-products .product-item-image figure img { aspect-ratio: 1; object-fit: cover; }
.our-products a.product-item { display: block; color: inherit; }
.our-products a.product-item:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 4px; }
.why-choose-item-content h3 { text-transform: none; }
.feature-btn .btn-default { text-transform: none; }
.work-content-box .btn-default,
.best-offer-content .readmore-btn { text-transform: none; }
@media (min-width: 992px) and (max-width: 1199px) {
  .main-header .main-menu ul li a { padding-left: 8px; padding-right: 8px; font-size: 14px; }
  .main-header .header-btn .btn-default { padding-left: 18px; padding-right: 40px; }
}
@media (max-width: 991px) {
  .st-home-showcase ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 575px) {
  .st-home-showcase ul.products { grid-template-columns: minmax(0, 1fr); }
}


/* Real portfolio photographs: fill the frames while preserving proportions. */
.hero-info-bg-image img.st-real-portfolio-photo,
.about-image img.st-real-portfolio-photo,
.why-choose-image img.st-real-portfolio-photo,
.work-step-image img.st-real-portfolio-photo,
.testimonial-img img.st-real-portfolio-photo,
.st-info .st-info-hero-photo img { object-fit: cover; object-position: center; background-color: var(--bg-color); }
.work-step-image img.st-real-portfolio-photo { object-position: center top; }
.feature-content { background-image: url("../images/sevastopol/full-portfolio/group-3-027.jpg"); background-position: center; background-attachment: scroll; }

.why-choose-image img.st-real-portfolio-photo, .testimonial-img img.st-real-portfolio-photo { aspect-ratio: 1; }
.why-choose-cta-box { background: rgb(29 42 39 / 92%); }

.work-step-image figure::before { background: linear-gradient(180deg, rgb(29 42 39 / 0%) 25%, rgb(29 42 39 / 92%) 75%, #1d2a27 100%); }

/* Fill both portrait frames in the cake consultation block without letterboxing. */
.why-choose-image img.st-real-portfolio-photo { object-fit: cover; object-position: center; }

main.site-main { max-width: 1760px; margin-inline: auto; }

/* Yandex award and rating in the hero review card. */
.hero-image-rating-box .st-yandex-award { position: absolute; right: 24px; bottom: 20px; width: 116px; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; background: transparent; }
.st-yandex-award img { display: block; width: 72px; height: auto; object-fit: contain; }
.st-yandex-award-score { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 20px; line-height: 1.2; color: var(--white-color); }
.st-yandex-award-score > span { color: #ffb400; }
.st-yandex-award-score strong { font-weight: 700; }
@media (max-width: 575px) {
  .hero-image-rating-box .st-yandex-award { width: 100px; right: 20px; gap: 10px; }
  .st-yandex-award img { width: 64px; }
}

/* Keep the three portfolio previews in the hero counter circular. */
.hero-counter .review-image img { display: block; width: clamp(40px, 4vw, 50px); max-width: none; height: auto; aspect-ratio: 1; object-fit: cover; }

@media (max-width: 767px) {
  .hero-counter .review-images { display: flex; width: 100%; }
  .hero-counter .review-image { flex: 0 1 40px; min-width: 0; }
  .hero-counter .review-image + .review-image { margin-left: -6px; }
  .hero-counter .review-image img { width: 100%; }
}

/* Yandex award in the upper right corner of the main hero photo. */
.hero-image-box { position: relative; }
.hero-image-box > .st-yandex-award { position: absolute; top: 20px; left: 20px; right: auto; bottom: auto; z-index: 2; width: 90px; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0; background: transparent; }
.hero-image-box > .st-yandex-award img { width: 64px; height: auto; }
.hero-image-box > .st-yandex-award .st-yandex-award-score { color: var(--white-color); text-shadow: 0 1px 4px rgb(0 0 0 / 65%); }
@media (max-width: 575px) {
  .hero-image-box > .st-yandex-award { top: 14px; left: 12px; right: auto; width: 68px; gap: 7px; }
  .hero-image-box > .st-yandex-award img { width: 48px; }
  .hero-image-box > .st-yandex-award .st-yandex-award-score { font-size: 18px; }
}

.st-eyebrow, .st-stat-number, .st-step-number, .st-offer-tagline { font-weight: 600; }
.st-story-author { margin: 0; color: var(--primary-color); font-weight: 700; }

/* Category title links match the price accent. */
.our-special-offers .offer-item-content h3 a { color: var(--accent-color); }
.our-special-offers .offer-item-content h3 a:hover { color: var(--primary-color); }

/* Center step numbers after converting decorative headings to paragraphs. */
.work-step-no .st-step-number { display: block; margin: 0; padding: 0; line-height: 1; text-align: center; }

.our-gallery .st-portfolio-button { margin-top: 30px; text-align: left; }

/* White check icons on the dark hero panel. */
.hero-content .hero-content-list ul li::before { color: var(--white-color); }



/* Native purchase buttons override the catalog rule that hides loop buttons. */
.woocommerce.st-home-showcase ul.products li.product .button { display: inline-flex; justify-content: center; align-items: center; margin-top: 18px; padding: 12px 20px; border: 0; border-radius: 10px; background: var(--accent-color); color: var(--white-color); font: inherit; font-size: 15px; font-weight: 600; line-height: 1.3; }
.woocommerce.st-home-showcase ul.products li.product .button:hover { background: var(--primary-color); color: var(--white-color); }

/* Supplied cake pattern for the ordering section, with readable white copy. */
.how-it-work { background-image: linear-gradient(rgb(29 42 39 / 88%), rgb(29 42 39 / 100%)), url("../images/sevastopol/order-cakes-transparent.webp"); background-position: center; background-size: cover; background-repeat: no-repeat; }

/* Keep WooCommerce purchase controls steady during AJAX requests. */
.woocommerce.st-home-showcase ul.products li.product .add_to_cart_button { animation: none; transform: none; }
.woocommerce.st-home-showcase ul.products li.product a.added_to_cart { display: block; margin-top: 8px; color: var(--accent-color); text-decoration: underline; text-underline-offset: 3px; }
.woocommerce.st-home-showcase ul.products li.product a.added_to_cart:hover { color: var(--primary-color); }

/* Match the ordering section background in the featured products block. */
.backeri-featured-products { background-color: var(--primary-color); background-image: linear-gradient(rgb(29 42 39 / 88%), rgb(29 42 39 / 100%)), url("../images/sevastopol/order-cakes-transparent.webp"); background-position: center; background-size: cover; background-repeat: no-repeat; }
.backeri-featured-products .section-title h2, .backeri-featured-products .section-title .st-eyebrow { color: var(--white-color); }

/* Opaque cards remain readable over the dark patterned section. */
.woocommerce.st-home-showcase ul.products li.product { background-color: var(--bg-color); }

/* Edge-to-edge photography with purchase action and price on one row. */
.woocommerce.st-home-showcase ul.products li.product { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.woocommerce.st-home-showcase ul.products li.product > .woocommerce-LoopProduct-link { display: block; }
.woocommerce.st-home-showcase ul.products li.product img.attachment-woocommerce_thumbnail { border-radius: 0; margin-bottom: 20px; }
.woocommerce.st-home-showcase ul.products li.product .woocommerce-loop-product__title { padding: 0 18px; min-height: 2.4em; margin-bottom: 16px; }
.st-featured-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding: 0 18px 20px; }
.woocommerce.st-home-showcase ul.products li.product .st-featured-actions .button { order: 1; margin: 0; flex-shrink: 0; }
.woocommerce.st-home-showcase ul.products li.product .st-featured-actions .price { order: 2; margin: 0; text-align: right; }
.woocommerce.st-home-showcase ul.products li.product .st-featured-actions a.added_to_cart { order: 3; flex-basis: 100%; margin: 0; text-align: left; }
@media (max-width: 575px) {
  .st-featured-actions { padding: 0 12px 16px; gap: 10px; }
  .woocommerce.st-home-showcase ul.products li.product .woocommerce-loop-product__title { padding: 0 12px; }
  .woocommerce.st-home-showcase ul.products li.product .st-featured-actions .button { padding: 10px 12px; font-size: 13px; }
}

.woocommerce.st-home-showcase ul.products li.product .st-featured-actions a.added_to_cart { display: none; }

/* Click-to-call contact beside the header cart. */
.main-header .header-btn { display: flex; align-items: center; gap: 24px; }
.main-header .header-btn .st-header-phone { color: var(--accent-color); font-size: 16px; font-weight: 600; white-space: nowrap; }
.main-header .header-btn .st-header-phone:hover { text-decoration: underline; }
@media (min-width: 992px) and (max-width: 1199px) {
  .main-header .header-btn { gap: 12px; }
  .main-header .header-btn .st-header-phone { font-size: 14px; }
}

/* Original light/dark wordmarks, displayed without the transparent outer margins. */
.main-header .navbar-brand img { width: 260px; height: auto; object-fit: cover; object-position: center; filter: none; }
.main-footer .footer-logo img { width: 280px; height: auto; object-fit: cover; object-position: center; filter: none; border-radius: 0; }
@media (max-width: 767px) { .main-header .navbar-brand img { width: 210px; height: auto; } }

/* Keep the entire header, including the mobile menu, visible while scrolling. */
header.main-header { position: sticky; top: 0; z-index: 1000; }
body.admin-bar header.main-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar header.main-header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar header.main-header { top: 0; } }

/* Loader uses the current wordmark without cropping out its text. */
#loading-icon .st-loader-logo { width: 140px; height: 50px; overflow: visible; border-radius: 0; }
#loading-icon .st-loader-logo img { position: static; width: 140px; max-width: 100%; height: auto; filter: none; }

/* Preserve the original cake icon in the loader. */
#loading-icon .st-loader-logo { display: block; position: relative; width: 50px; height: 50px; overflow: hidden; border-radius: 50%; }
#loading-icon .st-loader-logo img { position: absolute; width: 216px; max-width: none; height: auto; left: -22px; top: -10px; filter: hue-rotate(130deg) saturate(.7); }
.st-story-occasion a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.st-story-video-preview{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;width:100%;height:100%;background:var(--accent-color);color:white}
.st-story-video-preview i{font-size:30px}
.st-stories--ready .st-story:not(.st-story--expanded) blockquote{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.st-stories--ready .st-story:not(.st-story--expanded) blockquote p{display:block;-webkit-line-clamp:unset}
.st-review-lightbox{position:fixed;inset:0;margin:auto;width:min(1100px,94vw);max-width:94vw;max-height:94vh;padding:18px;border:0;border-radius:18px;background:#1d2a27;color:white;box-shadow:0 20px 70px #0008}
.st-review-lightbox::backdrop{background:#000c}
.st-review-lightbox-toolbar,.st-review-lightbox-nav{display:flex;align-items:center;justify-content:space-between;gap:16px}
.st-review-lightbox-stage{display:flex;align-items:center;justify-content:center;min-height:150px;margin:16px 0}
.st-review-lightbox-stage img,.st-review-lightbox-stage video{display:block;max-width:100%;max-height:70vh;width:auto;height:auto;object-fit:contain}
.st-review-lightbox button{padding:10px 16px;border:1px solid #ffffff50;border-radius:8px;background:#23483f;color:white;font:inherit;cursor:pointer}
.st-review-lightbox button:disabled{opacity:.4;cursor:default}
.st-review-lightbox button:focus-visible{outline:2px solid #b9a176;outline-offset:3px}
@media(max-width:575px){.st-review-lightbox{padding:12px}.st-review-lightbox-stage img,.st-review-lightbox-stage video{max-height:65vh}}

@media (max-width: 767px) {
  .home .how-it-work,
  .home .backeri-featured-products {
    background-image: linear-gradient(rgb(29 42 39 / 88%), rgb(29 42 39 / 100%)), url("../images/sevastopol/order-cakes-transparent-mobile-768.webp");
  }
}

@media (max-width: 767px) {
  .home .hero-image-box { display: none; }
}
