/*
 * Stol — warm artisan premium layer
 * Base: Start Bootstrap Modern Business v5.0.7 (MIT)
 * https://startbootstrap.com/template/modern-business
 */

@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --stol-bg: #f5efe6;
  --stol-bg-alt: #eee5d6;
  --stol-card: #ffffff;
  --stol-ink: #2b211a;
  --stol-ink-soft: #6b5a4b;
  --stol-line: #d9cdb8;
  --stol-accent: #8b5a2b;
  --stol-accent-deep: #6f4520;
  --stol-accent-soft: #b88556;
  --stol-warm: #d6a571;
  --stol-dark: #241c16;
}

html, body { height: auto; min-height: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--stol-bg);
  color: var(--stol-ink);
  line-height: 1.65;
  letter-spacing: 0.005em;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 600;
  color: var(--stol-ink);
  letter-spacing: -0.005em;
}

.lead { color: var(--stol-ink-soft); }

p { color: #3d3127; }

a { color: var(--stol-accent-deep); }
a:hover { color: var(--stol-accent); }

/* Navbar */
.navbar.navbar-stol {
  background-color: rgba(245, 239, 230, 0.92) !important;
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--stol-line);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.navbar.navbar-stol .navbar-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--stol-ink);
  letter-spacing: 0.04em;
}

.navbar.navbar-stol .navbar-brand .brand-mark {
  display: inline-block;
  margin-right: 0.55rem;
  color: var(--stol-accent);
}

.navbar.navbar-stol .navbar-brand small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--stol-ink-soft);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: -2px;
}

.navbar.navbar-stol .nav-link {
  color: var(--stol-ink);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.95rem !important;
  letter-spacing: 0.02em;
}

.navbar.navbar-stol .nav-link.active,
.navbar.navbar-stol .nav-link:hover { color: var(--stol-accent); }

.navbar.navbar-stol .navbar-toggler {
  border-color: var(--stol-line);
  padding: 0.4rem 0.6rem;
}

.navbar.navbar-stol .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%232b211a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.btn-stol {
  background-color: var(--stol-accent);
  border: 1px solid var(--stol-accent);
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.6rem 1.4rem;
  border-radius: 2px;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}

.btn-stol:hover,
.btn-stol:focus {
  background-color: var(--stol-accent-deep);
  border-color: var(--stol-accent-deep);
  color: #fff;
}

.btn-stol-outline {
  background-color: transparent;
  border: 1px solid var(--stol-ink);
  color: var(--stol-ink);
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.6rem 1.4rem;
  border-radius: 2px;
}

.btn-stol-outline:hover,
.btn-stol-outline:focus {
  background-color: var(--stol-ink);
  color: #fff;
}

.btn-stol-light {
  background-color: transparent;
  border: 1px solid rgba(255,255,255,0.7);
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.6rem 1.4rem;
  border-radius: 2px;
}

.btn-stol-light:hover { background-color: rgba(255,255,255,0.12); color: #fff; }

/* Hero / Masthead */
.masthead {
  position: relative;
  padding-top: 7rem;
  padding-bottom: 4.5rem;
  background: linear-gradient(160deg, #f7f1e8 0%, #e9dbc4 100%);
  overflow: hidden;
}

.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(139,90,43,0.10), transparent 55%),
                    radial-gradient(circle at 10% 80%, rgba(214,165,113,0.18), transparent 55%);
  pointer-events: none;
}

.masthead .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--stol-accent-deep);
  margin-bottom: 1rem;
  position: relative;
}

.masthead .eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--stol-accent);
  vertical-align: middle;
  margin-right: 0.7rem;
}

.masthead h1.hero-title {
  font-size: clamp(2.1rem, 4.5vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.masthead p.hero-lead {
  font-size: 1.05rem;
  color: var(--stol-ink-soft);
  margin-bottom: 1.8rem;
  max-width: 36rem;
}

.masthead .hero-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 20px 50px -25px rgba(60, 40, 22, 0.55);
}

.masthead .hero-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.4);
  pointer-events: none;
  border-radius: 4px;
}

.masthead .hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  aspect-ratio: 4 / 5;
  display: block;
}

@media (min-width: 992px) {
  .masthead { padding-top: 9rem; padding-bottom: 6rem; }
  .masthead .hero-image-wrap img { aspect-ratio: 4 / 5; }
}

/* Page header banner (for non-home pages) */
.page-banner {
  position: relative;
  padding: 8rem 0 4rem;
  background-color: var(--stol-bg);
  overflow: hidden;
}

.page-banner .banner-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 50%;
}

.page-banner .banner-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36,28,22,0.35) 0%, rgba(36,28,22,0.75) 100%);
}

.page-banner .banner-inner {
  position: relative;
  z-index: 2;
  color: #f6ede0;
  max-width: 50rem;
}

.page-banner h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.8rem;
}

.page-banner p { color: rgba(246,237,224,0.88); font-size: 1.05rem; margin-bottom: 0; }

/* Section base */
.section { padding: 5rem 0; }
.section-light { background-color: #ffffff; }
.section-warm { background-color: var(--stol-bg-alt); }

.section-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--stol-accent-deep);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 0.4rem;
}

.section-sub {
  color: var(--stol-ink-soft);
  font-size: 1.02rem;
  max-width: 36rem;
}

/* Cards (catalog tiles) */
.tile-card {
  background-color: #fff;
  border: 1px solid var(--stol-line);
  border-radius: 4px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease;
}

.tile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px -28px rgba(60, 40, 22, 0.5);
}

.tile-card .tile-photo {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: var(--stol-bg-alt);
}

.tile-card .tile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}

.tile-card:hover .tile-photo img { transform: scale(1.04); }

.tile-card .tile-body {
  padding: 1.4rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tile-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.45rem;
}

.tile-card h3 a {
  color: var(--stol-ink);
  text-decoration: none;
}

.tile-card h3 a:hover { color: var(--stol-accent); }

.tile-card p {
  color: var(--stol-ink-soft);
  font-size: 0.93rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.tile-card .tile-cta {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stol-accent-deep);
  text-decoration: none;
  font-weight: 500;
}

.tile-card .tile-cta:hover { color: var(--stol-accent); }
.tile-card .tile-cta i { margin-left: 0.4rem; transition: transform .3s ease; }
.tile-card:hover .tile-cta i { transform: translateX(4px); }

/* Breadcrumbs */
.breadcrumb-stol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0;
  margin: 0 0 1.6rem 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--stol-ink-soft);
}

.breadcrumb-stol li { display: inline-flex; align-items: center; }
.breadcrumb-stol li + li::before { content: "/"; margin: 0 0.55rem; color: var(--stol-line); }
.breadcrumb-stol a { color: var(--stol-ink-soft); text-decoration: none; }
.breadcrumb-stol a:hover { color: var(--stol-accent); }
.breadcrumb-stol li[aria-current="page"] { color: var(--stol-ink); }

/* Table detail layout */
.table-gallery .col-12 .gallery-img,
.table-gallery .gallery-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  border: 1px solid var(--stol-line);
}

.table-meta {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  border-top: 1px solid var(--stol-line);
}

.table-meta li {
  display: flex;
  justify-content: space-between;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--stol-line);
  font-size: 0.96rem;
  color: var(--stol-ink);
}

.table-meta li span:first-child {
  color: var(--stol-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

/* Process steps */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.2rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--stol-line);
  align-items: start;
}

.steps li:first-child { padding-top: 0; }
.steps li:last-child { border-bottom: 0; padding-bottom: 0; }

.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--stol-accent);
  line-height: 1;
}

.steps li h3 {
  font-size: 1.2rem;
  margin: 0 0 0.3rem;
}

.steps li p { color: var(--stol-ink-soft); margin: 0; }

/* Forms */
.form-stol .form-control,
.form-stol .form-select {
  border-radius: 2px;
  border-color: var(--stol-line);
  background-color: #fff;
  color: var(--stol-ink);
  padding: 0.85rem 1rem;
  font-size: 0.97rem;
}

.form-stol .form-control:focus,
.form-stol .form-select:focus {
  border-color: var(--stol-accent);
  box-shadow: 0 0 0 0.18rem rgba(139,90,43,0.18);
}

.form-stol label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--stol-ink-soft);
  margin-bottom: 0.45rem;
  font-weight: 500;
}

/* Contact / CTA strip */
.cta-strip {
  background: linear-gradient(135deg, #2c2017 0%, #1a130d 100%);
  color: #f6ede0;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 30%, rgba(214,165,113,0.18), transparent 55%);
  pointer-events: none;
}

.cta-strip h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 0.6rem; }
.cta-strip p { color: rgba(246,237,224,0.78); margin-bottom: 0; }

/* Footer */
.footer-stol {
  background-color: #1d1610;
  color: rgba(246,237,224,0.7);
  padding: 3.2rem 0 1.8rem;
  font-size: 0.92rem;
}

.footer-stol h6 {
  color: #f6ede0;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-stol a { color: rgba(246,237,224,0.8); text-decoration: none; }
.footer-stol a:hover { color: var(--stol-warm); }

.footer-stol .footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: #f6ede0;
  letter-spacing: 0.04em;
  display: inline-block;
  margin-bottom: 0.4rem;
}

.footer-stol .footer-divider {
  border-color: rgba(246,237,224,0.12);
  margin: 2rem 0 1rem;
}

.footer-stol .footer-small {
  color: rgba(246,237,224,0.5);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

/* Contact list (footer / contact page) */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  display: flex;
  gap: 0.9rem;
  margin-bottom: 0.85rem;
  align-items: flex-start;
}

.contact-list li i {
  color: var(--stol-accent);
  font-size: 1.05rem;
  margin-top: 0.18rem;
}

.vk-badge {
  border-radius: 4px;
  flex-shrink: 0;
  object-fit: cover;
}

/* Video block */
.video-frame {
  width: 100%;
  border-radius: 3px;
  border: 1px solid var(--stol-line);
  background: #000;
}

/* Utility tweaks */
.text-warm { color: var(--stol-accent-deep); }

/* Responsive */
@media (max-width: 575.98px) {
  .masthead { padding-top: 6rem; padding-bottom: 3rem; }
  .masthead .hero-image-wrap img { aspect-ratio: 4 / 3; }
  .page-banner { padding: 6.5rem 0 3rem; }
  .section { padding: 3.5rem 0; }
  .cta-strip { padding: 3rem 0; }
}
