/* Design, step 1 (October 2026): one calm surface colour, readable secondary text, a header with the phone and the
   cart icon, a first screen with two buttons and the main facts, lighter cards with a clear price and button, arrows
   for the «Все варианты» strip and a footer with the Yandex rating. Loaded after the other stylesheets: when the
   styles are put together again, these rules move into style.css and the overridden ones go. */

:root {
  --ink: #1f2320;
  --muted: #5d625b; /* secondary text: 6:1 on white, 5.6:1 on --paper */
  --accent: #f25b3d;
  --accent-hover: #e04a2c;
  --accent-ink: #c43f1f; /* the accent as text and links: 4.9:1 on white */
  --accent-soft: #fff0ea;
  --paper: #f6f6f3; /* the one surface colour of blocks and calculators */
  --line: #e6e6e0;
  --radius: 22px;
  --radius-card: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 32, 0.05), 0 12px 32px rgba(16, 24, 32, 0.08);
}

/* ---- Buttons ---- */
.btn {
  gap: 10px;
  border-radius: 999px;
  padding: 15px 26px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 6px 18px rgba(242, 91, 61, 0.24);
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}
.btn:hover {
  filter: none;
  background: var(--accent-hover);
  box-shadow: 0 10px 24px rgba(242, 91, 61, 0.3);
  transform: translateY(-1px);
}
.btn.ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid #d6d7d0;
  box-shadow: none;
}
.btn.ghost:hover {
  background: #fff;
  border-color: var(--ink);
  box-shadow: none;
}

/* ---- Header: logo, search, phone, Telegram, cart; on a wide screen it stays on top while scrolling ---- */
.site-top {
  position: relative;
  z-index: 40;
  background: #fff;
}
header {
  gap: 18px;
  padding: 14px 5%;
}
.brand-logo img {
  width: 230px;
}
/* A small flex basis: the header wraps by basis (cart.css puts the upload indicator on a line of its own), so a
   wide basis would push the cart link down; the search grows up to max-width instead. */
.search {
  flex: 1 1 140px;
  width: auto;
  max-width: 380px;
  height: 46px;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--paper);
  cursor: text;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}
.search:focus-within {
  background: #fff;
  border-color: var(--ink);
}
.search .icon {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
}
.search input {
  height: 100%;
  font-size: 15px;
  outline: none;
}
.search input::placeholder {
  color: #8a8e86;
}
.search input::-webkit-search-cancel-button {
  cursor: pointer;
}
.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: 6px;
  line-height: 1.25;
  white-space: nowrap;
}
.header-contact a {
  font-size: 16px;
  font-weight: 700;
}
.header-contact a:hover {
  color: var(--accent-ink);
}
.header-contact small {
  font-size: 13px;
  color: var(--muted);
}
.header-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.header-icon .icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.header-telegram:hover {
  background: #e8f5fc;
  color: #1c8ad3;
}
.header-call {
  display: none;
}
.header-call:hover {
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.cartlink {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 8px 0 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.15s ease;
}
.cartlink:hover {
  background: #383d37;
}
.cartlink .icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cartlink b {
  width: 28px;
  height: 28px;
  margin: 0;
  font-size: 13px;
}
nav {
  gap: 30px;
  padding: 0 5%;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}
nav a {
  padding: 15px 0 13px;
  border-bottom: 2px solid transparent;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}
nav a:hover {
  color: var(--accent-ink);
}
nav a.active {
  color: var(--accent-ink);
  border-bottom-color: var(--accent);
}
@media (min-width: 801px) {
  .site-top {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(1.5) blur(14px);
    backdrop-filter: saturate(1.5) blur(14px);
  }
  header {
    border-bottom: 0;
  }
}
@media (max-width: 1180px) {
  .header-contact {
    display: none;
  }
  .header-call {
    display: grid;
  }
}
/* The nine sections keep one line: a little tighter on mid-size screens, sideways scrolling (with a fading edge
   as a hint) where even that does not fit. */
@media (max-width: 1320px) {
  nav {
    gap: 22px;
    font-size: 14px;
  }
}
@media (max-width: 1140px) {
  nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
    mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
  nav::-webkit-scrollbar {
    display: none;
  }
}
@media (max-width: 800px) {
  header {
    gap: 10px;
    padding: 12px 4%;
  }
  .brand-logo img {
    width: 190px;
  }
  .header-call {
    margin-left: auto;
    width: 40px;
    height: 40px;
  }
  .header-telegram {
    display: none;
  }
  .cartlink {
    height: 40px;
    padding: 0 6px 0 12px;
  }
  .search {
    order: 5;
    flex: 1 1 100%;
    height: 44px;
  }
  nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 22px;
    padding: 0 4%;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
    mask-image: linear-gradient(90deg, #000 82%, transparent);
  }
  nav::-webkit-scrollbar {
    display: none;
  }
}
@media (max-width: 420px) {
  .cart-word {
    display: none;
  }
  .cartlink {
    padding: 0 6px 0 10px;
  }
}

/* ---- First screen ---- */
.hero {
  margin-top: 20px;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #fff5ef 0%, #f7f2fb 55%, #eef4fb 100%);
}
.hero-copy .eyebrow {
  display: inline-flex;
  padding: 7px 13px;
  border-radius: 999px;
  background: #fff;
  color: var(--accent-ink);
  font-size: 12px;
  letter-spacing: 0.08em;
  box-shadow: 0 1px 3px rgba(16, 24, 32, 0.06);
}
.hero-copy h1 {
  line-height: 1.04;
}
.hero-motto {
  font-size: 18px;
  color: var(--ink);
}
.hero-copy p {
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.hero .hero-actions .btn {
  margin: 0;
}
.hero-facts {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 12px 26px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.hero-facts li,
.hero-facts a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.hero-facts svg {
  flex: none;
  color: var(--accent);
}
.hero-facts a:hover {
  color: var(--accent-ink);
}
.hero-facts a svg {
  color: #f5a623;
}
/* Next to the slider the text column is too narrow for two facts in a row («Оплата по ссылке от менеджера»
   would run under the picture): one fact per line there. */
@media (min-width: 801px) and (max-width: 1279px) {
  .hero-facts {
    grid-template-columns: max-content;
  }
}
@media (max-width: 800px) {
  .hero {
    margin: 12px 4% 0;
    border-radius: 18px;
  }
  .hero-facts {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ---- «Помогите посчитать заказ» ---- */
.order-help {
  border: 0;
  border-radius: var(--radius);
  background: var(--paper);
}
.order-help-or {
  margin: 26px 0 12px;
  font-weight: 700;
  color: var(--ink);
}
.order-help-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.order-help-contacts .btn {
  padding: 12px 20px;
  font-size: 14px;
}

/* ---- Section headings ---- */
.section-head {
  gap: 20px;
}
.section-head h2 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-head p,
.sub {
  font-size: 15px;
}
.section-head a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1px solid #d6d7d0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 0.15s ease;
}
.section-head a::after {
  content: '→';
}
.section-head a:hover {
  border-color: var(--ink);
}

/* ---- Home: section tiles and «Идеи, с которых можно начать» ---- */
.categories {
  gap: 18px;
}
.category,
.product,
.ec-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.category:hover,
.product:hover,
.ec-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.category-copy {
  padding: 14px 16px 16px;
}
.category b {
  margin: 0 0 4px;
  font-size: 16px;
}
.category small {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.product .photo {
  background: var(--paper);
}
.product-body {
  padding: 16px 18px 18px;
}
.product-body small {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.product h3 {
  margin: 6px 0 14px;
  font-size: 17px;
  line-height: 1.35;
}
.product-bottom b {
  font-size: 18px;
}
.product-more,
.ec-card-bottom span {
  margin-left: auto;
  padding: 8px 15px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.product:hover .product-more,
.ec-card:hover .ec-card-bottom span {
  background: var(--accent);
  color: #fff;
}
@media (max-width: 800px) {
  .categories,
  .products {
    gap: 12px;
  }
  .product-body {
    padding: 12px 12px 14px;
  }
  .product h3 {
    font-size: 15px;
  }
  .product-more,
  .ec-card-bottom span {
    padding: 7px 12px;
    font-size: 13px;
  }
}

/* ---- Catalogue: four short cards in a row, the price and the button at the bottom ---- */
.ec-filter a {
  padding: 9px 16px;
  border-color: #d6d7d0;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.15s ease;
}
.ec-filter a:hover {
  border-color: var(--ink);
}
.ec-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.ec-card-copy {
  padding: 16px 18px 18px;
}
.ec-card-copy h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.ec-card-copy p,
.ec-card-copy small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  color: var(--muted);
}
.ec-card-copy p {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.ec-card-copy small {
  font-size: 13px;
  line-height: 1.45;
  -webkit-line-clamp: 1;
  line-clamp: 1;
}
.ec-card-bottom {
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
}
.ec-card-bottom b {
  font-size: 18px;
}
.ec-card-bottom .ec-price-note {
  font-size: 14px;
  color: var(--muted);
}
.ec-tag {
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(16, 24, 32, 0.1);
}
@media (max-width: 1200px) {
  .ec-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1000px) {
  .ec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .ec-grid {
    gap: 12px;
  }
  .ec-card-copy {
    padding: 12px 12px 14px;
  }
  .ec-card-copy h2 {
    font-size: 16px;
  }
  .ec-card-copy p {
    font-size: 13px;
  }
  .ec-card-copy small {
    display: none;
  }
  .ec-card-bottom {
    flex-wrap: wrap;
  }
  .ec-card-bottom b {
    font-size: 16px;
  }
}

/* ---- «Трендовые идеи для бизнеса»: under the ideas the products to order, under their own heading ---- */
.ideas-products-title {
  margin: 52px 0 0;
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
@media (max-width: 800px) {
  .ideas-products-title {
    margin-top: 36px;
  }
}

/* ---- Product page ---- */
.so-calculator {
  background: var(--paper);
  border-radius: var(--radius);
}
.so-variant-scroller {
  position: relative;
}
.strip-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: -28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(16, 24, 32, 0.14);
  transition:
    box-shadow 0.15s ease,
    transform 0.15s ease;
}
.strip-arrow:hover {
  box-shadow: 0 8px 22px rgba(16, 24, 32, 0.2);
  transform: scale(1.06);
}
.strip-arrow-prev {
  left: -14px;
}
.strip-arrow-next {
  right: -14px;
}
@media (hover: none) {
  .strip-arrow {
    display: none;
  }
}

/* ---- Footer ---- */
.site-footer {
  margin-top: 30px;
  padding: 56px 5% 28px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer-top {
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
}
.footer-brand p {
  max-width: 340px;
  margin: 18px 0 0;
  color: var(--muted);
}
.footer-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.15s ease;
}
.footer-rating:hover {
  border-color: var(--ink);
}
.footer-rating-star {
  color: #f5a623;
  font-size: 18px;
  line-height: 1;
}
.footer-rating b {
  font-size: 17px;
}
.footer-rating small {
  font-size: 13px;
  color: var(--muted);
}
.site-footer h2 {
  font-size: 17px;
  font-weight: 700;
}
.site-footer p {
  color: var(--muted);
}
.site-footer p b {
  color: var(--ink);
}
.footer-contact > a {
  display: block;
  margin: 2px 0 8px;
  font-weight: 700;
}
.footer-map {
  display: inline-block;
  margin-top: 2px;
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.messenger-links {
  gap: 10px;
}
.messenger-links a,
.messenger-links button {
  gap: 9px;
  padding: 9px 16px 9px 10px;
  border: 1px solid #d6d7d0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: border-color 0.15s ease;
}
.messenger-links a:hover,
.messenger-links button:hover {
  filter: none;
  border-color: var(--ink);
}
.messenger-links svg {
  flex: none;
  width: 24px;
  height: 24px;
}
.footer-bottom {
  border-top-color: var(--line);
}
.footer-links a:hover,
.footer-legal a:hover {
  color: var(--accent-ink);
}
@media (max-width: 1000px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 800px) {
  .site-footer {
    padding: 40px 5% 24px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* The question about the visit counter (metrika.js) and its link in the footer. */
.counter-consent {
  position: fixed;
  z-index: 30;
  right: 16px;
  bottom: 16px;
  box-sizing: border-box;
  width: min(460px, calc(100vw - 32px));
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 13px;
  line-height: 1.5;
}
.counter-consent p {
  margin: 0 0 12px;
  color: var(--ink);
}
.counter-consent a {
  color: var(--accent-ink);
}
.counter-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.footer-button:hover {
  color: var(--accent-ink);
}

/* «Трендовые идеи»: an idea's page (#business-ideas/table-tent) is laid out like a product page. The owner's photos
   are mostly upright shots, so the big photo shows the whole picture instead of cutting it to 4:3. On the right the
   request form on the sand background of the calculators. */
.idea-gallery > img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--paper);
}
.idea-request {
  padding: 30px;
  min-width: 0;
}
.idea-request h2 {
  margin: 8px 0 18px;
  font-size: 30px;
}
.idea-request .so-price {
  margin-top: 0;
}
@media (max-width: 800px) {
  .idea-request {
    padding: 22px;
  }
}
