

*, *:before, *:after {
  box-sizing: border-box;
}

@font-face {
    font-family: OldRussian; /* Гарнитура шрифта */
    src: url(../assets/fonts/a_RussDecor.ttf); /* Путь к файлу со шрифтом */
	
   }

html {
  background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHJhZGlhbEdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY3g9IjUwJSIgY3k9IiIgcj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzQ1NDg0ZCIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzAwMDAwMCIvPjwvcmFkaWFsR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==');
  background-size: 100%;
  background-image: -moz-radial-gradient(center, ellipse cover, #45484d 0%, #000000 100%);
  background-image: -webkit-radial-gradient(center, ellipse cover, #45484d 0%, #000000 100%);
  background-image: radial-gradient(ellipse cover at center, #45484d 0%, #000000 100%);
  height: 100%;
  font-family:OldRussian;
}

.login {
  background-color: #444;
  bottom: 0;
  box-shadow: inset 0.1rem 0 0.3rem rgba(0, 0, 0, 0.4), inset -0.1rem 0 0.3rem rgba(0, 0, 0, 0.4);
  height: 15rem;
  left: 0;
  margin: auto;
  padding: 1rem 4rem;
  position: absolute;
  right: 0;
  top: 0;
  width: 25rem;
}
/*.login:before, .login:after {
  background-color: #ccc;
 
  background-size: 100% 100%;   
   
  border: 0.1rem solid #444;
  color: #e8ebba;
  content: 'Войти';
  font-family:OldRussian;
  font-size: 3rem;
  height: 7.5rem;
  line-height: 1;
  left: 0;
  overflow: hidden;
  position: absolute;
  text-align: center;
  text-transform: uppercase;
  transition: 0.5s all ease-in-out;
  width: 100%;
  z-index: 10;
}*/
/*.login:before {
  border-bottom: 0;
  line-height: 4.95;
  top: 0;
}
.login:after {
  border-top: 0;
  bottom: 0;
  line-height: 0;
  
}*/

.login:hover:after {
  bottom: -7.5rem;
  box-shadow: 0 -0.5rem 0.45rem -0.25rem rgba(0, 0, 0, 0.2);
  content: '';
}
.login:hover:before {
  top: -7.5rem;
  box-shadow: 0 0.5rem 0.45rem -0.25rem rgba(0, 0, 0, 0.2);
  content: '';
}

input {
  height: 3rem;
  outline: none;
  width: 100%;
}

input[type="password"], input[type="text"] {
  background: rgba(0, 0, 0, 0.2);
  border: 0;
  color: #fff;
  margin: 0.5rem auto;
  padding: 1rem;
  
}

input[type="submit"] {
  background: #ccc;
  border: 0;
  margin: 1rem auto;
  
}



:root{
  --bg: #efe2c5;        /* выцветшая бумага */
  --card: rgba(255, 252, 245, .92);
  --text: #141414;      /* чернила */
  --muted: #6b7280;
  --line: rgba(20,20,20,.10);

  --accent: #b42318;    /* советский красный */
  --accent-2: #7f1d1d;  /* темный акцент */

  --radius: 16px;

  --shadow-sm: 0 1px 0 rgba(0,0,0,.02), 0 6px 14px rgba(0,0,0,.06);
  --shadow-md: 0 2px 0 rgba(0,0,0,.02), 0 16px 40px rgba(0,0,0,.12);
}


* { box-sizing: border-box; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  position: relative;
  z-index: 0;
  background-color: var(--bg);
}

/* Подложка всегда позади контента */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    linear-gradient(180deg, rgba(52, 15, 12, .18) 0%, rgba(52, 15, 12, .02) 40%, rgba(52, 15, 12, .10) 100%),
    url("../assets/soviet-bg.svg");
  background-size: cover;
  background-position: center;
}

/* Легкий оверлей для читаемости, тоже за контентом */
body::after{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(1000px 680px at 12% -10%, rgba(180,35,24,.22), transparent 60%),
    radial-gradient(900px 600px at 90% 15%, rgba(127,29,29,.15), transparent 65%),
    linear-gradient(180deg, rgba(248, 236, 208, .72), rgba(227, 208, 172, .58));
  opacity: .95;
}

.site{
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: linear-gradient(180deg, rgba(252, 245, 230, .75) 0%, rgba(245, 233, 209, .66) 100%);
}

/* Header */
.site__header{
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.header{
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
  color: inherit;
}

.brand__logo{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #e2e8f0;
  display:grid;
  place-items:center;
  font-weight: 800;
  color: var(--muted);
}


.brand__logo img{
  width: 30px;
  height: 30px;
  display: block;
}

.brand__name{
  font-weight: 800;
  letter-spacing: .2px;
}

.header__contacts{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.contact{
  color: var(--muted);
  text-decoration:none;
  font-size: 14px;
}
.contact:hover{ color: var(--text); }

/* Top nav */
.topnav{
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 16px 12px;
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}

.topnav__link{
  text-decoration:none;
  color: var(--muted);
  border: 1px solid transparent;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 14px;
}
.topnav__link:hover{
  background: #f1f5f9;
  color: var(--text);
}
.topnav__link.is-active{
  background: rgba(37,99,235,.10);
  border-color: rgba(37,99,235,.18);
  color: var(--accent);
}

/* Main layout */
.site__main{
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 24px 16px 32px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
}

.site__main--no-sidebar{
  grid-template-columns: minmax(0, 920px);
  justify-content: center;
}

/* Sidebar */
.sidebar{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  height: fit-content;
  position: sticky;
  top: 12px;
}

.sidebar__title{
  font-weight: 800;
  margin-bottom: 10px;
}

.catalog{
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.catalog__node{
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.catalog__node:hover{
  transform: translateY(-1px);
  border-color: rgba(180,35,24,.24);
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

.catalog__node.is-active{
  border-color: rgba(180,35,24,.38);
  box-shadow: 0 10px 24px rgba(127,29,29,.12);
}

.catalog__nodeTitle{
  cursor: pointer;
  padding: 11px 12px;
  font-weight: 700;
  color: var(--text);
  list-style: none;
  background: linear-gradient(180deg, #fff 0%, #fdf8f5 100%);
  border-bottom: 1px solid rgba(20,20,20,.08);
}

.catalog__nodeTitle.is-active{
  background: linear-gradient(180deg, #fff4e8 0%, #f7e7c5 100%);
  color: var(--accent-2);
}

.catalog__nodeTitle span{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.catalog__nodeTitle span::before{
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(180,35,24,.12);
}

.catalog__subLink{
  display:block;
  position: relative;
  padding: 10px 12px 10px 30px;
  text-decoration:none;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
  transition: color .15s ease, background-color .15s ease, padding-left .15s ease;
}

.catalog__subLink::before{
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(29,78,216,.45);
}

.catalog__subLink:hover{
  background: #f8fafc;
  color: var(--text);
  padding-left: 34px;
}

.catalog__subLink.is-active{
  background: linear-gradient(90deg, rgba(180,35,24,.10) 0%, rgba(255,255,255,.92) 100%);
  color: var(--accent-2);
  padding-left: 34px;
  font-weight: 700;
}

.catalog__subLink.is-active::before{
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(180,35,24,.10);
}

/* Content */
.content{
  min-width: 0;
  width: 100%;
}

.content__head{
  margin-bottom: 12px;
}

.content__title{
  margin: 0 0 4px;
  font-size: 22px;
}
.content__subtitle{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.card__title{
  margin: 0 0 6px;
  font-size: 16px;
}
.card__text{
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

/* Footer */
.site__footer{
  border-top: 1px solid var(--line);
  background: var(--card);
}
.footer{
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px;
  display:flex;
  justify-content:space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 980px){
  .site__main{
    grid-template-columns: 1fr;
  }
  .sidebar{
    position: static;
  }
}

.breadcrumbs {
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
}

.breadcrumbs a {
    text-decoration: none;
    color: var(--accent);
    transition: 0.2s ease;
    position: relative;
}

.breadcrumbs a:hover {
    color: var(--soviet-red-dark);
}

.breadcrumbs .separator {
    color: rgba(116, 21, 15, .28);
    font-weight: 500;
}

.breadcrumbs .current {
    color: var(--soviet-ink);
    font-weight: 600;
}


.prop-head
{
    font-weight:600;
}

.props
{
    padding:1em;
}

.hero{
  padding: 40px clamp(20px, 4vw, 44px);
  margin-bottom: 14px;
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, #ffffff 0%, #fff7f4 48%, #ffffff 100%);
}

.hero__eyebrow{
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero__title{
  margin: 0 auto;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  max-width: 14ch;
}

.hero__text{
  margin: 18px auto;
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.65;
  font-size: 18px;
}

.hero__actions{
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  transition: .16s ease;
}

.btn--accent{
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(180,35,24,.22);
}

.btn--accent:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn--ghost{
  border-color: var(--line);
  color: var(--text);
  background: #fff;
}

.btn--ghost:hover{
  border-color: rgba(20,20,20,.25);
  background: #f8fafc;
}


.hero-stats{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.hero-stats__item{
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.hero-stats__value{
  margin: 0 0 4px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--text);
}

.hero-stats__label{
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.feature-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.feature{
  box-shadow: var(--shadow-sm);
}

.feature__title{
  margin: 0 0 8px;
  font-size: 16px;
}

.feature__text{
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 980px){
  .site__main{
    padding: 14px 12px 24px;
  }

  .site__main--no-sidebar{
    grid-template-columns: 1fr;
  }

  .hero{
    padding: 24px 16px;
  }

  .hero__title{
    max-width: 100%;
  }

  .hero__text{
    font-size: 16px;
  }

  .btn{
    width: 100%;
  }

  .hero-stats{
    grid-template-columns: 1fr;
  }

  .feature-grid{
    grid-template-columns: 1fr;
  }
}

#catalog-search-result .photo-tile img[data-path-full] {
  cursor: zoom-in;
}

.good-photo-viewer {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 24, 39, 0.78);
  z-index: 2000;
}

.good-photo-viewer.is-open {
  display: flex;
}

.good-photo-viewer__dialog {
  position: relative;
  max-width: min(1200px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  display: flex;
  align-items: center;
}

.good-photo-viewer__image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  background: #fff;
}

.good-photo-viewer__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
}

.good-photo-viewer__close:hover {
  background: #f3f4f6;
}


.good-photo-viewer__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #111827;
  font-size: 34px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
}

.good-photo-viewer__nav:hover {
  background: #ffffff;
}

.good-photo-viewer__nav:disabled {
  opacity: 0.45;
  cursor: default;
}

.good-photo-viewer__nav--prev {
  left: 12px;
}

.good-photo-viewer__nav--next {
  right: 12px;
}

.good-photo-viewer__counter {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

body.is-photo-viewer-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .good-photo-viewer {
    padding: 12px;
  }

  .good-photo-viewer__dialog {
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .good-photo-viewer__image {
    max-height: calc(100vh - 24px);
  }

  .good-photo-viewer__close {
    top: 8px;
    right: 8px;
  }

  .good-photo-viewer__nav {
    width: 38px;
    height: 38px;
    font-size: 30px;
  }

  .good-photo-viewer__nav--prev {
    left: 8px;
  }

  .good-photo-viewer__nav--next {
    right: 8px;
  }

  .good-photo-viewer__counter {
    bottom: 8px;
    font-size: 12px;
  }
}

.cart-summary-popup {
  position: fixed;
  top: 14px;
  right: 14px;
  min-width: 220px;
  max-width: 320px;
  background: rgba(20, 20, 20, 0.92);
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  z-index: 2000;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
  cursor: pointer;
}

.cart-summary-popup.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cart-summary-popup__title {
  font-size: 13px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 8px;
  letter-spacing: .4px;
}

.cart-summary-popup__line {
  font-size: 14px;
  line-height: 1.45;
}

.cart-summary-popup[data-message]::after {
  content: attr(data-message);
  display: block;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #fef08a;
  font-size: 13px;
}


.cart-summary-popup__close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.85);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
}

.cart-summary-popup__close:hover {
  color: #fff;
}

.checkout-page {
  padding: 20px;
}

.checkout-page__head {
  margin-bottom: 20px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  gap: 18px;
  align-items: start;
}

.checkout-items {
  display: grid;
  gap: 12px;
}

.checkout-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
}

.checkout-item__name {
  margin: 0 0 8px;
  font-size: 18px;
}

.checkout-item__prices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkout-item__snapshot {
  color: #b45309;
  font-size: 14px;
}

.checkout-item__current {
  color: var(--muted);
  font-size: 14px;
}

.checkout-item__thumb-wrap {
  position: relative;
  width: 96px;
  aspect-ratio: 1 / 1;
  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,.04);
}

.checkout-item__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.checkout-item__actions {
  display: grid;
  gap: 8px;
  justify-items: end;
  min-width: 160px;
}

.checkout-item__qty-label {
  color: var(--muted);
  font-size: 12px;
}

.checkout-item__qty {
  width: 86px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 8px;
  height: auto;
}

.checkout-item__total {
  font-weight: 700;
}

.checkout-sidebar {
  display: grid;
  gap: 12px;
}

.checkout-totals {
  padding: 16px;
}

.checkout-totals__line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0;
}

.checkout-totals__line--sum {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 12px;
}

.checkout-submit {
  width: 100%;
  margin-top: 12px;
}

.checkout-note {
  color: var(--muted);
  font-size: 13px;
  margin: 10px 0 0;
}


.checkout-customer,
.checkout-help {
  padding: 16px;
}

.checkout-field {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.checkout-field__label {
  font-size: 13px;
  color: var(--muted);
}

.checkout-field__input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

.checkout-field__input--textarea {
  min-height: 88px;
  resize: vertical;
}

.checkout-empty {
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fff;
}

@media (max-width: 860px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-item {
    grid-template-columns: 1fr;
  }

  .checkout-item__actions {
    justify-items: start;
  }
}

/* ===== Soviet typography & color accents for navigation and headings ===== */

/* Газетный стиль: советская печатная типографика без декоративного старорусского начертания */
:root{
  --soviet-red: #a11f17;
  --soviet-red-dark: #74150f;
  --soviet-ink: #2a1c14;
  --soviet-gold: #d7b36a;
  --font-display: "PT Serif", "Noto Serif", "Times New Roman", Georgia, serif;
}

.brand__name,
.topnav__link,
.sidebar__title,
.catalog__nodeTitle,
.content__title,
.card__title,
.hero__title,
.feature__title,
h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: .02em;
  color: var(--soviet-ink);
}

.brand__name{
  font-size: 1.15rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--soviet-red-dark);
}

.topnav__link{
  color: var(--soviet-red-dark);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: rgba(255, 250, 239, .68);
  border-color: rgba(116, 21, 15, .16);
}

.topnav__link:hover{
  color: var(--soviet-red);
  border-color: rgba(161, 31, 23, .28);
  background: rgba(255, 244, 221, .92);
}

.topnav__link.is-active{
  color: #fff8e8;
  border-color: rgba(116, 21, 15, .6);
  background: linear-gradient(180deg, var(--soviet-red) 0%, var(--soviet-red-dark) 100%);
  box-shadow: 0 6px 14px rgba(116, 21, 15, .24);
}

.sidebar__title,
.content__title,
.card__title{
  color: var(--soviet-red-dark);
  font-weight: 700;
  text-transform: uppercase;
}

.sidebar__title{
  font-size: 1.2rem;
  border-bottom: 1px solid rgba(116, 21, 15, .2);
  padding-bottom: 8px;
}

.catalog__nodeTitle{
  color: var(--soviet-red-dark);
  text-transform: uppercase;
  background: linear-gradient(180deg, #fffaf0 0%, #f6e8ca 100%);
}

.catalog__nodeTitle span::before{
  background: var(--soviet-red);
  box-shadow: 0 0 0 4px rgba(161,31,23,.18);
}

.catalog__subLink{
  color: #5d4638;
}

.catalog__subLink::before{
  background: rgba(116, 21, 15, .65);
}

.catalog__subLink:hover{
  color: var(--soviet-red-dark);
  background: rgba(255, 247, 232, .92);
}

.hero__title,
.content__title{
  text-shadow: 0 1px 0 rgba(255,255,255,.45);
}

/* ===== Login page (updated for new site style) ===== */
body.login-page {
  min-height: 100vh;
}

.login-layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  position: relative;
  z-index: 1;
}

.login {
  width: min(460px, 100%);
  height: auto;
  position: relative;
  inset: auto;
  margin: 0;
  padding: 26px 24px;
  background: linear-gradient(180deg, rgba(255, 252, 245, .98), rgba(248, 238, 216, .92));
  border: 1px solid rgba(116, 21, 15, .22);
  border-radius: 18px;
  box-shadow: 0 22px 44px rgba(36, 15, 11, .20);
}

.login__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 36px);
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--soviet-red-dark);
  text-align: center;
}

.login__subtitle {
  margin: 8px 0 20px;
  text-align: center;
  color: #5f4b3f;
  font-size: 14px;
}

.login__label {
  display: block;
  margin: 0 0 6px;
  color: var(--soviet-ink);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.login input[type="text"],
.login input[type="email"],
.login input[type="tel"],
.login input[type="password"] {
  width: 100%;
  height: 46px;
  margin: 0 0 12px;
  padding: 0 14px;
  border: 1px solid rgba(20,20,20,.18);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-size: 15px;
}

.login input[type="text"]:focus,
.login input[type="email"]:focus,
.login input[type="tel"]:focus,
.login input[type="password"]:focus {
  border-color: rgba(180,35,24,.45);
  box-shadow: 0 0 0 3px rgba(180,35,24,.14);
}

.login__submit,
.login input[type="submit"] {
  width: 100%;
  height: 46px;
  margin: 8px 0 0;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
}

.login input[type="submit"]:hover {
  background: var(--soviet-red-dark);
  border-color: var(--soviet-red-dark);
}

.login input[type="submit"]:disabled {
  opacity: .62;
  cursor: default;
}

.login__button {
  display: grid;
  place-items: center;
  text-decoration: none;
}

.login__links {
  margin-top: 14px;
  text-align: center;
}

.login__links a {
  color: var(--soviet-red-dark);
  font-weight: 700;
  text-decoration: none;
}

.login__links a:hover {
  text-decoration: underline;
}

.login__notice {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.35;
}

.login__notice.is-success {
  color: #13502b;
  background: rgba(50, 148, 86, .14);
  border: 1px solid rgba(50, 148, 86, .24);
}

.login__notice.is-error {
  color: var(--soviet-red-dark);
  background: rgba(180,35,24,.10);
  border: 1px solid rgba(180,35,24,.22);
}

/* ===== Account ===== */
.account {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.account__menu {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(116, 21, 15, .18);
  border-radius: 14px;
  background: rgba(255, 252, 245, .78);
}

.account__menu-item {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--soviet-ink);
  font-weight: 700;
  text-decoration: none;
}

.account__menu-item:hover,
.account__menu-item.is-active {
  color: #fff;
  background: var(--accent);
}

.account__menu-item[aria-disabled="true"] {
  color: rgba(47, 35, 30, .48);
  background: transparent;
  cursor: default;
}

.account__panel {
  padding: 24px;
  border: 1px solid rgba(116, 21, 15, .18);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 252, 245, .98), rgba(248, 238, 216, .88));
  box-shadow: 0 16px 34px rgba(36, 15, 11, .12);
}

.account__header h1 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--soviet-red-dark);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.account__header p {
  margin: 8px 0 22px;
  color: #5f4b3f;
}

.account-form {
  display: grid;
  gap: 14px;
  max-width: 560px;
}

.account-form__submit {
  width: fit-content;
  min-width: 160px;
}

.account-form__submit:disabled {
  opacity: .62;
  cursor: default;
}

.account-form__message {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.35;
}

.account-form__message.is-success {
  color: #13502b;
  background: rgba(50, 148, 86, .14);
  border: 1px solid rgba(50, 148, 86, .24);
}

.account-form__message.is-error {
  color: var(--soviet-red-dark);
  background: rgba(180,35,24,.10);
  border: 1px solid rgba(180,35,24,.22);
}

@media (max-width: 760px) {
  .account {
    grid-template-columns: 1fr;
  }

  .account__menu {
    grid-template-columns: 1fr 1fr;
  }

  .account__panel {
    padding: 18px;
  }
}
