/* Garda Decor — static demo (leads_mass_redesign, slug magazin-garda-decor-novosibirsk)
   Tokens from design/design.md. Geometry per desktop-1440.svg / mobile-390.svg masters. */

:root {
  --ink: #211F1C;
  --paper: #F7F4EE;
  --white: #FFFFFF;
  --surface: #DED7CC;
  --media: #F3F0EA;
  --header: #FCFBF8;
  --overlay: #665D56;
  --dark: #24231F;
  --muted: #5D574F;
  --muted-2: #655E56;
  --hairline: #BDB5A9;
  --hairline-2: #D9D3C9;
  --display: Georgia, "Times New Roman", serif;
  --ui: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --gutter: 70px;
  --btn-h: 58px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--ui);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.45;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.production :focus-visible, .btn-production:focus-visible { outline-color: #FFFFFF; }

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--white);
  padding: 10px 16px; font-size: 13px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ============ Header ============ */
.site-header { background: var(--header); }

.utility { background: var(--ink); }
.utility-inner {
  height: 40px;
  display: flex; align-items: center; gap: 40px;
  padding-top: 0; padding-bottom: 0;
}
.utility-brand {
  font-size: 12px; font-weight: 700; letter-spacing: 1.4px;
  color: var(--white); white-space: nowrap;
}
.utility-links { display: flex; gap: 28px; margin-left: 40px; }
.utility-links a {
  font-size: 11px; letter-spacing: 1px; color: #C9C1B5;
  transition: color .15s ease;
}
.utility-links a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.utility-contacts { margin-left: auto; display: flex; gap: 32px; align-items: center; }
.utility-phone { font-size: 12px; color: var(--white); }
.utility-mail { font-size: 11px; color: var(--white); }

.mainbar-inner {
  height: 142px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.all-products {
  font-size: 13px; font-weight: 700; letter-spacing: .8px;
  min-height: 44px; display: inline-flex; align-items: center;
}
.all-products:hover { text-decoration: underline; text-underline-offset: 4px; }
.logo { display: inline-flex; align-items: center; }
.logo img { width: 344px; height: 63px; object-fit: contain; }

.mainbar-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.city { font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.mainbar-icons { display: flex; align-items: center; gap: 18px; }
.icon-star { font-size: 16px; }
.icon-btn {
  position: relative;
  min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; letter-spacing: 1px; font-weight: 400;
}
.icon-btn:hover { text-decoration: underline; text-underline-offset: 4px; }
.cart-count {
  position: absolute; top: 2px; right: 0;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--ink); color: var(--white);
  font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
}

.mainnav { border-top: 1px solid var(--hairline-2); }
.mainnav-inner {
  min-height: 58px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.mainnav-group { display: flex; gap: 48px; }
.mainnav-group a {
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  min-height: 44px; display: inline-flex; align-items: center;
}
.mainnav-group a:hover { text-decoration: underline; text-underline-offset: 4px; }
.menu-toggle {
  display: none;
  font-size: 22px; min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  height: 720px;
  overflow: hidden;
  background: var(--overlay);
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero-overlay {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 680px; max-width: 100%;
  background: var(--overlay);
  opacity: .78;
}
.hero-content {
  position: relative; z-index: 1;
  height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 80px; padding-bottom: 80px;
}
.hero-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 1.6px;
  color: #F5F1EA; margin-bottom: 36px;
}
.hero-title {
  font-family: var(--display);
  font-size: 72px; font-weight: 400; line-height: 1.08;
  color: var(--white);
  margin-bottom: 30px;
  max-width: 620px;
}
.hero-lead {
  font-size: 20px; line-height: 1.55; color: var(--white);
  margin-bottom: 54px; max-width: 620px;
}
.hero-slide {
  position: absolute; left: var(--gutter); bottom: 30px;
  font-size: 13px; font-weight: 700; letter-spacing: 1px; color: var(--white);
}

/* ============ Buttons ============ */
.cat-title-mobile, .prod-lead-mobile, .prod-note-mobile, .pd-mobile { display: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--btn-h);
  padding: 0 34px;
  background: var(--media); color: var(--ink);
  font-size: 14px; font-weight: 700; letter-spacing: 1.2px;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--ink); color: var(--white); }
.btn-arrow { font-size: 20px; font-weight: 400; }
.btn:disabled, .btn.is-in-cart {
  background: #D8D2C8; color: #8A8177;
  box-shadow: none; cursor: default;
}
.btn:disabled { cursor: not-allowed; }
.btn-in-cart-mark { font-size: 14px; }

/* ============ Catalog ============ */
.catalog { padding: 104px 0 110px; }
.catalog-label {
  font-size: 13px; font-weight: 700; letter-spacing: 1.2px;
  text-align: right; margin-bottom: 26px;
}
.catalog-title {
  font-family: var(--display);
  font-size: 46px; font-weight: 400; line-height: 1.16;
  max-width: 720px;
  margin-bottom: 60px;
}
.cat-grid {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline);
}
.cat-link {
  display: block;
  padding: 34px 30px 40px;
  position: relative;
}
.cat-link:hover .cat-arrow { transform: translate(3px, -3px); }
.cat-num {
  display: block; font-size: 12px; font-weight: 700; color: #8A8177;
  letter-spacing: 1px; margin-bottom: 22px;
}
.cat-name {
  display: block; font-size: 20px; font-weight: 700; letter-spacing: .6px;
  margin-bottom: 10px;
}
.cat-sub { display: block; font-size: 14px; color: #6B645D; }
.cat-link:hover .cat-name { text-decoration: underline; text-underline-offset: 4px; }
.cat-arrow {
  position: absolute; right: 30px; bottom: 26px;
  font-size: 20px; transition: transform .2s ease;
}

/* ============ Products ============ */
.products { background: var(--white); padding: 92px 0 100px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; margin-bottom: 56px;
}
.section-title { font-family: var(--display); font-size: 52px; font-weight: 400; }
.section-link {
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  min-height: 44px; display: inline-flex; align-items: center;
}
.section-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
}
.product-card { min-width: 0; }
.product-media {
  position: relative;
  height: 360px;
  background: var(--media);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.product-media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform .35s ease;
}
.product-card:hover .product-media img { transform: scale(1.02); }
.fav {
  position: absolute; top: 12px; right: 12px;
  min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: rgba(252, 251, 248, .85);
  border-radius: 50%;
}
.fav:hover { background: var(--header); }
.fav[aria-pressed="true"] .fav-mark { color: #A63A2B; }
.fav-mark { font-size: 20px; }

.product-name {
  font-size: 17px; font-weight: 700;
  margin: 26px 0 6px;
}
.product-sub { font-size: 13px; color: #696159; min-height: 20px; }
.product-foot {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-top: 26px; min-height: 44px;
}
.product-price {
  font-size: 17px; font-weight: 700;
  min-height: 26px;
}
/* Desktop: full-width button; mobile: text link (see ≤767 overrides) */
.btn-cart {
  width: 100%; height: var(--btn-h);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 18px;
  background: var(--media); color: var(--ink);
  font-size: 13px; font-weight: 700; letter-spacing: 1.2px;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.btn-cart:hover { background: var(--ink); color: var(--white); }
.btn-cart .cart-label-mobile { display: none; }
.btn-cart .cart-state { display: none; }
.btn-cart.is-in-cart { background: #D8D2C8; color: #8A8177; cursor: default; }
.btn-cart.is-in-cart:hover { background: #D8D2C8; color: #8A8177; }
.btn-cart.is-in-cart .cart-label { display: none; }
.btn-cart.is-in-cart .cart-state { display: inline-flex; align-items: center; gap: 8px; }
/* Mobile text-link cart action (visible only at ≤767) */
.btn-cart-mobile { display: none; }

/* ============ Production ============ */
.production {
  background: var(--dark);
  color: var(--white);
  padding: 0;
  position: relative;
  display: flex;
  min-height: 810px;
}
.production-inner {
  display: grid; grid-template-columns: 1fr 680px;
  width: 100%;
  align-items: stretch;
}
.production-text {
  padding: 90px 70px 90px var(--gutter);
  max-width: 760px;
  display: flex; flex-direction: column; justify-content: center;
}
.production-text .btn-production { align-self: flex-start; }
.production-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 1.6px;
  color: #D6CDC0; margin-bottom: 48px;
}
.production-title {
  font-family: var(--display);
  font-size: 58px; font-weight: 400; line-height: 1.08;
  margin-bottom: 52px;
}
.production-lead {
  font-size: 19px; line-height: 1.55; color: #EAE5DD;
  margin-bottom: 30px;
}
.production-note {
  font-size: 16px; line-height: 1.55; color: #BFB7AC;
  margin-bottom: 60px;
}
.production-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  position: relative;
}
.production-img::after {
  content: "";
  position: absolute; inset: 0;
  background: #1B1A17; opacity: .18;
  pointer-events: none;
}
.btn-production { align-self: flex-start; }

/* ============ Projects ============ */
.projects { background: var(--surface); padding: 95px 0 110px; }
.projects-title {
  font-family: var(--display);
  font-size: 49px; font-weight: 400; line-height: 1.15;
  margin-bottom: 20px;
}
.projects-sub {
  font-size: 16px; color: var(--muted); line-height: 1.5;
  margin-bottom: 66px; max-width: 760px;
}
.project-grid {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}
.project-card { min-width: 0; }
.project-link {
  display: block;
  background: var(--paper);
  padding: 38px 30px 34px;
  min-height: 340px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.project-link:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(33, 31, 28, .08); }
.project-num {
  display: block; font-size: 12px; font-weight: 700; color: #8A8177;
  letter-spacing: 1px; margin-bottom: 28px;
}
.project-title {
  display: block;
  font-family: var(--display);
  font-size: 31px; font-weight: 400;
  margin-bottom: 12px;
}
.project-title-mob { display: none; }
.project-link:hover .project-title { text-decoration: underline; text-underline-offset: 4px; }
.project-name {
  display: block; font-size: 16px; font-weight: 700;
  margin-bottom: 22px;
}
.project-desc {
  display: block; font-size: 14px; color: #615B54; line-height: 1.5;
  margin-bottom: 34px;
}
.project-more {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
}
.project-link:hover .project-more { text-decoration: underline; text-underline-offset: 4px; }

/* ============ Footer ============ */
.footer { background: var(--paper); padding-top: 90px; }
.footer-inner {
  display: grid; grid-template-columns: 1fr 420px; gap: 40px;
  padding-bottom: 60px;
}
.footer-label {
  font-size: 12px; font-weight: 700; letter-spacing: 1.2px; color: #7A7268;
  margin-bottom: 42px;
}
.footer-title {
  font-family: var(--display);
  font-size: 54px; font-weight: 400; line-height: 1.08;
  margin-bottom: 34px;
}
.footer-lead {
  font-size: 17px; color: var(--muted); line-height: 1.55;
  margin-bottom: 52px; max-width: 640px;
}
.btn-footer { background: var(--ink); color: var(--white); }
.btn-footer:hover { background: var(--white); color: var(--ink); }

.footer-city {
  border-left: 1px solid var(--hairline);
  padding-left: 60px;
}
.footer-city-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px; color: #7A7268;
  margin-bottom: 30px;
}
.footer-city-name {
  font-family: var(--display);
  font-size: 34px; font-weight: 400;
  margin-bottom: 22px;
}
.footer-city-cityline { display: none; }
.footer-city-note { font-size: 15px; color: var(--muted); margin-bottom: 42px; }
.footer-phone {
  display: block;
  font-size: 24px; font-weight: 700; letter-spacing: .4px;
  margin-bottom: 16px;
}
.footer-phone:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-mail {
  display: block;
  font-size: 17px;
  margin-bottom: 40px;
}
.footer-mail:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-salons {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
}
.footer-salons:hover { text-decoration: underline; text-underline-offset: 4px; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding-bottom: 30px;
  border-top: 1px solid var(--hairline-2);
  padding-top: 26px;
}
.footer-copy, .footer-social { font-size: 11px; color: #7A7268; letter-spacing: 1px; }

/* ============ Tablet ≤1024 ============ */
@media (max-width: 1024px) {
  :root { --gutter: 48px; }
  .utility-links { display: none; }
  .utility-contacts { margin-left: auto; }
  .logo img { width: 260px; height: auto; }
  .mainnav-group { gap: 28px; }
  .hero { height: 640px; }
  .hero-title { font-size: 58px; }
  .hero-overlay { width: 100%; }
  .catalog { padding: 72px 0 80px; }
  .catalog-title { font-size: 38px; margin-bottom: 40px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-link:nth-child(-n+2) { border-bottom: 1px solid var(--hairline); }
  .cat-link:nth-child(odd) { border-right: 1px solid var(--hairline); }
  .products { padding: 64px 0 72px; }
  .section-title { font-size: 42px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .production { min-height: 0; flex-direction: column; }
  .production-inner { grid-template-columns: 1fr; width: 100%; }
  .production-text { padding: 64px var(--gutter); max-width: none; }
  .production-title { font-size: 46px; margin-bottom: 34px; }
  .production-eyebrow { margin-bottom: 32px; }
  .production-note { margin-bottom: 44px; }
  .production-img { height: 420px; }
  .projects { padding: 64px 0 80px; }
  .projects-title { font-size: 38px; }
  .projects-sub { margin-bottom: 44px; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card:last-child { grid-column: 1 / -1; }
  .footer { padding-top: 64px; }
  .footer-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-title { font-size: 42px; }
  .footer-city { border-left: none; padding-left: 0; border-top: 1px solid var(--hairline); padding-top: 44px; }
}

/* ============ Mobile ≤767 ============ */
@media (max-width: 767px) {
  :root { --gutter: 20px; --btn-h: 58px; }
  .utility-inner { height: 36px; gap: 16px; }
  .utility-brand { font-size: 10px; letter-spacing: 1px; }
  .utility-contacts { gap: 14px; }
  .utility-phone { font-size: 10px; }
  .utility-mail { display: none; }

  .mainbar-inner {
    height: 106px;
    justify-content: space-between;
    align-items: center;
  }
  .menu-toggle { display: inline-flex; font-size: 23px; }
  .all-products { display: none; }
  .logo img { width: 226px; height: 41px; }
  .mainbar-right { flex-direction: row; align-items: center; gap: 16px; }
  .city { font-size: 9px; }
  .mainbar-icons { gap: 12px; }
  .icon-btn { font-size: 12px; min-width: 40px; min-height: 40px; }
  .icon-star { display: none; }

  .mainnav { display: none; border-top: none; }
  .mainnav.is-open { display: block; border-top: 1px solid var(--hairline-2); }
  .mainnav-inner {
    flex-direction: column; align-items: stretch; gap: 0;
    min-height: 0; padding: 10px 0;
  }
  .mainnav-group { flex-direction: column; gap: 0; }
  .mainnav-group a { min-height: 48px; font-size: 13px; }
  .mainnav-group-right { border-top: 1px solid var(--hairline-2); }

  .hero { height: 610px; }
  .hero-bg { object-position: center 30%; }
  .hero-overlay { width: 100%; top: auto; bottom: 0; height: 360px; opacity: .88; }
  .hero-content { justify-content: flex-end; padding-bottom: 0; padding-top: 0; }
  .hero-eyebrow { font-size: 10px; margin-bottom: 22px; }
  .hero-title { font-size: 42px; margin-bottom: 18px; }
  .hero-lead { font-size: 14px; margin-bottom: 32px; }
  .lead-br { display: none; }
  .hero-slide { display: none; }
  .btn { width: 100%; }

  .catalog { padding: 64px 0 44px; }
  .catalog-label { display: none; }
  .catalog-title { font-size: 30px; line-height: 1.15; margin-bottom: 40px; }
  .cat-grid { grid-template-columns: 1fr; border-top: none; }
  .cat-title-desktop { display: none; }
  .cat-title-mobile { display: block; }
  .prod-lead-desktop, .prod-note-desktop, .pd-desktop { display: none; }
  .prod-lead-mobile, .prod-note-mobile, .pd-mobile { display: block; }
  .cat-item { border-bottom: 1px solid var(--hairline); }
  .cat-link { padding: 26px 0 26px; display: flex; align-items: center; gap: 16px; }
  .cat-num { margin: 0; width: 26px; flex: none; }
  .cat-body { flex: 1; }
  .cat-name { font-size: 15px; margin-bottom: 4px; }
  .cat-sub { font-size: 12px; }
  .cat-arrow { position: static; font-size: 18px; flex: none; }

  .products { padding: 56px 0 60px; }
  .section-head { margin-bottom: 36px; }
  .section-title { font-size: 31px; }
  .section-link { font-size: 11px; }
  .product-grid { grid-template-columns: 1fr; gap: 44px; }
  .product-media { height: 285px; }
  .product-name { font-size: 18px; margin-top: 22px; }
  .product-price { margin: 18px 0 0; }
  .product-foot { align-items: baseline; }
  .btn-cart { display: none; }
  .btn-cart-mobile {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 44px;
    font-size: 12px; font-weight: 700; letter-spacing: 1px;
    white-space: nowrap;
  }
  .btn-cart-mobile:hover { text-decoration: underline; text-underline-offset: 4px; }
  .btn-cart-mobile .cart-state { display: none; }
  .btn-cart-mobile.is-in-cart .cart-label { display: none; }
  .btn-cart-mobile.is-in-cart .cart-state { display: inline-flex; }
  .btn-cart-mobile.is-in-cart { color: var(--muted-2); }
  .btn-cart-mobile.is-in-cart:hover { text-decoration: none; }

  .production { min-height: 0; }
  .production-text { padding: 56px 20px; }
  .production-eyebrow { font-size: 10px; margin-bottom: 28px; }
  .production-title { font-size: 39px; margin-bottom: 32px; }
  .production-lead { font-size: 15px; margin-bottom: 22px; }
  .production-note { font-size: 13px; margin-bottom: 36px; }
  .production-img { height: 280px; }

  .projects { padding: 54px 0 56px; }
  .projects-title { font-size: 31px; margin-bottom: 10px; }
  .projects-sub { font-size: 26px; font-family: var(--display); font-weight: 400; color: var(--ink); margin-bottom: 36px; }
  .project-grid { grid-template-columns: 1fr; gap: 22px; }
  .project-card:last-child { grid-column: auto; }
  .project-link { min-height: 0; padding: 24px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
  .project-num { margin: 0; width: auto; flex: none; }
  .project-title { display: none; }
  .project-title-mob { display: block; font-family: var(--display); font-size: 18px; font-weight: 400; margin: 0; width: 100%; }
  .project-name { display: none; }
  .project-desc { font-size: 12px; margin: 0 0 0 30px; flex: 1; width: calc(100% - 30px); }
  .project-more { display: none; }
  .project-arrow { margin-left: auto; font-size: 18px; flex: none; }

  .footer { padding-top: 56px; }
  .footer-inner { gap: 36px; padding-bottom: 40px; }
  .footer-label { font-size: 10px; margin-bottom: 24px; }
  .footer-title { font-size: 34px; margin-bottom: 20px; }
  .footer-lead { font-size: 14px; margin-bottom: 26px; }
  .footer-city { padding-top: 32px; }
  .footer-city-name { display: none; }
  .footer-city-cityline { display: block; }
  .footer-city-note { font-size: 12px; margin-bottom: 22px; }
  .footer-phone { font-size: 21px; margin-bottom: 12px; }
  .footer-mail { font-size: 14px; margin-bottom: 22px; }
  .footer-salons { display: none; }
  .footer-bottom { padding-top: 20px; padding-bottom: 24px; }
  .footer-copy, .footer-social { font-size: 9px; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  .product-card:hover .product-media img { transform: none; }
  .project-link:hover { transform: none; }
}
