/* ==========================================================
   Design tokens
   ========================================================== */
:root {
  --primary:        #a33b41;
  --primary-dark:   #7d2c31;
  --primary-hover:  #bf4449;
  --primary-light:  #f7edee;
  --text:           #111;
  --text-muted:     #666;
  --bg:             #e8e8e8;
  --card:           #fff;
  --card-alt:       #fefdfc;
  --radius-sm:      5px;
  --radius:         10px;
  --shadow-xs:      0 1px 3px rgba(0,0,0,0.07);
  --shadow-sm:      0 2px 8px rgba(0,0,0,0.09);
  --shadow:         0 4px 20px rgba(0,0,0,0.12);
  --shadow-red:     0 6px 24px rgba(163,59,65,0.18);
  --ease:           0.22s ease;
  --font:           system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ==========================================================
   Reset
   ========================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 17px;
  color: var(--text);
  background-color: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }
img, svg, video { max-width: 100%; display: block; }
input, textarea, select { font: inherit; }

/* ==========================================================
   Layout
   ========================================================== */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 16px;
}

/* Section headings inside main */
main > h2 {
  font-size: 1.55rem;
  font-weight: 700;
  margin: 48px 0 20px;
  text-align: center;
  letter-spacing: -0.01em;
}

/* ==========================================================
   Homepage header
   ========================================================== */
header.home {
  width: 80vw;
  margin: 0 auto;
  border-bottom: 1px solid #ddd;
  padding-bottom: 4px;
}

header.home > .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 8px;
}

header.home > .top > .brand {
  height: 48px;
}

header.home > .top > .right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

header.home > .top > .right > a {
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--ease);
}

header.home > .top > .right > a:hover { color: var(--primary); }

header.home > nav {
  display: flex;
  align-items: center;
  padding: 8px;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

header.home > nav > a {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}

header.home > nav > a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

@media (max-width: 768px) {
  header.home { width: 100vw; }
  header.home > nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    justify-content: flex-start;
    padding: 10px 12px;
    gap: 1rem;
    scrollbar-width: none;
  }
  header.home > nav::-webkit-scrollbar { display: none; }
  header.home > .top { flex-direction: column; gap: 6px; padding: 12px; }
  header.home > .top > .right { flex-direction: row; gap: 0.6rem; }
}

/* ==========================================================
   Category pages header (shared across all 6 pages)
   ========================================================== */
header.cat {
  width: 80vw;
  padding: 10px 16px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
}

header.cat > .brand {
  height: 44px;
  margin: 0 auto;
}

header.cat > nav {
  display: flex;
  justify-content: flex-end;
}

header.cat > nav > a {
  font-weight: 600;
  font-size: 1rem;
  transition: color var(--ease);
}

header.cat > nav > a:hover { color: var(--primary); }

@media (max-width: 768px) {
  header.cat {
    width: 100vw;
    grid-template-columns: auto 1fr;
  }
  header.cat > .brand { display: none; }
}

/* ==========================================================
   Hero landing (homepage)
   ========================================================== */
#landing {
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 80vw;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

#landing > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transition: opacity 1s ease;
}

#landing > img.active { opacity: 1; z-index: 2; }

#landing > .desc {
  width: 58%;
  padding: 2rem 1.8rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(254,253,252,0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

#landing > .desc > h1 {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

#landing > .desc > h2 {
  font-size: 1.1rem;
  font-weight: 400;
  opacity: 0.8;
}

#landing > .desc > a {
  padding: 10px 22px;
  background: var(--primary);
  color: var(--card-alt);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  width: max-content;
  transition: background var(--ease), transform var(--ease);
}

#landing > .desc > a:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  #landing { width: 100vw; border-radius: 0; }
  #landing > .desc {
    width: 100%;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 0;
    border: none;
  }
  #landing > .desc > h1 { font-size: 1.4rem; }
}

/* ==========================================================
   Dividers / banner strips
   ========================================================== */
main > .divider {
  width: 100%;
  color: var(--card-alt);
  background: var(--primary-dark);
  font-weight: 700;
  padding: 14px 16px;
  text-align: center;
  margin: 32px 0 0;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

main > .divider.padding {
  background: var(--primary);
  margin: 24px 0 48px;
}

@media (max-width: 768px) {
  main > .divider { margin: 0; }
  main > .divider.padding { margin: 0 0 24px; }
}

/* ==========================================================
   Callback form bar
   ========================================================== */
form.order {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 36px 24px;
  background: var(--primary);
  color: var(--card-alt);
}

form.order > h2 { font-size: 1.3rem; }

form.order > .center {
  display: flex;
  gap: 0.5rem;
}

form.order input[type="tel"] {
  padding: 10px 18px;
  border: 2px solid rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.96);
  color: var(--text);
  border-radius: var(--radius-sm);
  min-width: 220px;
  transition: border-color var(--ease);
}

form.order input[type="tel"]:focus {
  outline: none;
  border-color: #fff;
}

form.order input[type="submit"] {
  padding: 10px 24px;
  background: var(--primary-dark);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-transform: uppercase;
  transition: background var(--ease);
}

form.order input[type="submit"]:hover {
  background: var(--text);
}

@media (max-width: 768px) {
  form.order > .center { flex-direction: column; width: 90%; }
  form.order input[type="tel"],
  form.order input[type="submit"] { width: 100%; }
  form.order > h2 { text-align: center; }
}

/* ==========================================================
   About / text card
   ========================================================== */
.about {
  width: 80vw;
  padding: 32px 36px;
  background: var(--card);
  border-radius: var(--radius);
  margin: 16px 0 32px;
  box-shadow: var(--shadow-sm);
}

.about > h2 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.about > p {
  margin: 12px 0 0;
  color: #333;
  line-height: 1.75;
  white-space: pre-line;
  letter-spacing: 0.01em;
}

@media (max-width: 768px) {
  .about { width: 95vw; padding: 20px 16px; }
}

/* ==========================================================
   Advantages grid
   ========================================================== */
.advantages {
  width: 80vw;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.advantage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 24px 16px;
  background: var(--card-alt);
  border: 2px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  text-align: center;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.advantage:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-red);
  transform: translateY(-4px);
}

.advantage > .img img {
  width: 72px;
  height: 72px;
}

.advantage > .text > h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .advantages { grid-template-columns: repeat(2, 1fr); width: 95vw; }
}

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

/* ==========================================================
   Services grid
   ========================================================== */
#services {
  width: 80vw;
  padding: 32px 28px;
  background: var(--card);
  border-radius: var(--radius);
  margin: 16px 0 8px;
  box-shadow: var(--shadow-sm);
}

#services > h2 {
  text-align: center;
  font-size: 1.45rem;
  margin-bottom: 4px;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 20px;
}

.services > .service {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-alt);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--ease), transform var(--ease);
}

.services > .service:hover {
  box-shadow: var(--shadow-red);
  transform: translateY(-3px);
}

.services > .service > .img img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.services > .service > .desc {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 12px 14px 14px;
  flex: 1;
}

.services > .service > .desc > h3 {
  font-size: 1rem;
  font-weight: 700;
}

.services > .service > .desc > p {
  font-size: 0.875rem;
  color: var(--text-muted);
  flex: 1;
}

.services > .service > .desc > a {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--card-alt);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--ease);
}

.services > .service > .desc > a:hover {
  background: var(--primary-hover);
}

@media (max-width: 768px) {
  #services { width: 95vw; padding: 16px 12px; }
  .services { grid-template-columns: 1fr; gap: 12px; }
}

/* ==========================================================
   Reviews
   ========================================================== */
.reviews {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 80vw;
}

.reviews > .review {
  padding: 18px 24px;
  background: var(--card-alt);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--ease);
}

.reviews > .review:hover {
  box-shadow: var(--shadow-sm);
}

.reviews > .review > h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.reviews > .review > h3 > span.date {
  font-weight: 400;
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-left: 6px;
}

.reviews > .review > p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #333;
  white-space: pre-line;
}

@media (max-width: 768px) {
  .reviews { width: 95vw; }
  .reviews > .review { padding: 14px 16px; }
}

/* ==========================================================
   Videos section
   ========================================================== */
.videos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  width: 90vw;
  padding: 16px 0 64px;
  justify-content: center;
}

.videos > .video {
  flex: 1 1 calc(33% - 0.5rem);
  min-width: 220px;
  max-width: 400px;
  height: 280px;
  background: var(--card-alt);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.videos > .video > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .videos { flex-direction: column; }
  .videos > .video {
    width: 90%;
    max-width: none;
    flex: none;
    height: 210px;
    margin: 0 auto;
  }
}

/* ==========================================================
   Partner logos scrollable strip
   ========================================================== */
.images {
  width: 90vw;
  display: flex;
  overflow-x: auto;
  gap: 2rem;
  padding: 12px 8px 16px;
  cursor: grab;
  scrollbar-width: none;
}

.images::-webkit-scrollbar { display: none; }

.images img {
  flex-shrink: 0;
  height: 64px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  opacity: 0.8;
  transition: opacity var(--ease);
}

.images img:hover { opacity: 1; }

/* ==========================================================
   Category pages: product image gallery
   (overrides .images when in category context)
   ========================================================== */
main > .images {
  padding: 20px 8px 24px;
}

main > .images img {
  height: auto;
  width: min(80vw, 360px);
  aspect-ratio: 1/1;
  object-fit: contain;
  opacity: 1;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--ease);
}

main > .images img:hover { box-shadow: var(--shadow); }

/* ==========================================================
   Contacts section
   ========================================================== */
#contacts {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  width: 90vw;
  padding: 16px 0 80px;
  align-items: flex-start;
}

#contacts > .desc {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--card-alt);
  border-radius: var(--radius);
  padding: 24px 20px;
  width: 100%;
  box-shadow: var(--shadow-sm);
}

.contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--ease);
}

.contact:hover { color: var(--primary); }

/* Contact form */
#contacts > form {
  width: 50%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#contacts > form > input,
#contacts > form > textarea {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1.5px solid #ccc;
  border-radius: var(--radius-sm);
  background: var(--card);
  resize: none;
  outline: none;
  transition: border-color var(--ease);
}

#contacts > form > input:focus,
#contacts > form > textarea:focus {
  border-color: var(--primary);
}

#contacts > form > input[type="submit"] {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--ease);
}

#contacts > form > input[type="submit"]:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

@media (max-width: 768px) {
  #contacts { flex-direction: column; padding-bottom: 48px; }
  #contacts > form { width: 100%; }
}

/* ==========================================================
   Footer
   ========================================================== */
footer.rohh {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  border-top: 3px solid var(--primary);
  padding: 14px 32px;
  background: var(--card);
  margin-top: 8px;
}

footer.rohh p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

footer.rohh .logo img {
  opacity: 0.7;
  transition: opacity var(--ease);
}

footer.rohh .logo:hover img { opacity: 1; }

/* ==========================================================
   Image preview modal
   ========================================================== */
.hidden { display: none !important; }

#imagePreview {
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 1000;
}

#imagePreview > img {
  max-width: 88vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

#imagePreview > .close {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: fixed;
  left: 14px;
  top: 14px;
  box-shadow: var(--shadow-sm);
  transition: background var(--ease), transform var(--ease);
  z-index: 1001;
}

#imagePreview > .close:hover {
  background: #fff;
  transform: scale(1.08);
}

/* ==========================================================
   Category page description text
   ========================================================== */
.cat-text {
  width: 80vw;
  padding: 24px 36px 40px;
  line-height: 1.75;
  color: #333;
  background: var(--card);
  border-radius: var(--radius);
  margin: 0 0 32px;
  box-shadow: var(--shadow-sm);
}

.cat-text > h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.cat-text > .price-tag {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.cat-text > p {
  white-space: pre-line;
  margin-top: 0;
}

@media (max-width: 768px) {
  .cat-text { width: 95vw; padding: 16px 16px 24px; }
}

/* ==========================================================
   Sitemap / Media page shared patterns
   ========================================================== */
.page-card {
  width: 80vw;
  margin: 32px auto;
  padding: 32px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .page-card { width: 95vw; padding: 16px; }
}
