/* Truhlárna — shared stylesheet */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/newsreader-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/newsreader-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: oklch(98% 0.005 80);
  --text: oklch(22% 0.01 80);
  --accent: #a8623a;

  --muted-30: oklch(30% 0.01 80);
  --muted-32: oklch(32% 0.01 80);
  --muted-38: oklch(38% 0.01 80);
  --muted-42: oklch(42% 0.01 80);
  --muted-45: oklch(45% 0.01 80);
  --muted-50: oklch(50% 0.01 80);
  --muted-65: oklch(65% 0.01 80);
  --muted-80: oklch(80% 0.01 80);

  --border-light: oklch(85% 0.01 80);
  --border: oklch(88% 0.01 80);
  --dark-border: oklch(35% 0.01 80);
  --cookie-border: oklch(60% 0.01 80);

  --section-beige: oklch(94% 0.015 60);
  --icon-bg: oklch(93% 0.02 55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); font-family: 'Manrope', sans-serif; }
body { color: var(--text); min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
input, textarea, select, button { font-family: 'Manrope', sans-serif; }
img { max-width: 100%; display: block; }
::selection { background: oklch(55% 0.09 55 / 0.25); }

.wrap { max-width: 1360px; margin: 0 auto; }
.wrap-narrow { max-width: 1200px; margin: 0 auto; }
.wrap-form { max-width: 760px; margin: 0 auto; }
.wrap-article { max-width: 760px; margin: 0 auto; }
.wrap-legal { max-width: 800px; margin: 0 auto; }
.wrap-about { max-width: 1100px; margin: 0 auto; }
.wrap-cart { max-width: 900px; margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: oklch(98% 0.005 80 / 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 34px; height: 34px; background: var(--accent); border-radius: 3px;
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-family: 'Newsreader', serif; font-style: italic; font-size: 20px; flex-shrink: 0;
}
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }

.main-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav-link {
  padding: 8px 10px; font-weight: 600; font-size: 13.5px; white-space: nowrap;
  border-bottom: 2px solid transparent; cursor: pointer;
}
.nav-link.active { border-bottom-color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-phone { font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.cart-pill {
  position: relative; cursor: pointer; display: flex; align-items: center; gap: 6px;
  padding: 9px 12px; background: var(--text); border-radius: 24px; color: #fff;
  white-space: nowrap; flex-shrink: 0;
}
.cart-pill-icon { width: 14px; height: 14px; border: 2px solid #fff; border-radius: 2px; flex-shrink: 0; }
.cart-pill-label { font-size: 13px; font-weight: 700; white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 16px 30px; border-radius: 4px; font-weight: 700;
  cursor: pointer; font-size: 15px; border: none; text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--text); color: var(--text); }
.btn-dark { background: var(--text); color: #fff; }
.btn-block { display: block; width: 100%; }
.btn-small { padding: 11px; font-size: 13px; border-radius: 4px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 100px 48px 90px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center;
}
.hero-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.hero-title {
  font-family: 'Newsreader', serif; font-style: italic; font-weight: 500;
  font-size: 56px; line-height: 1.08; margin-bottom: 24px;
}
.hero-lede { font-size: 18px; line-height: 1.6; color: var(--muted-38); max-width: 520px; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-photo { height: 460px; border-radius: 6px; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sections ---------- */
.section { padding: 70px 48px; }
.section-tight-top { padding: 60px 48px 90px; }
.section-dark { background: var(--text); color: #fff; }
.section-beige { background: var(--section-beige); }

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 12px; margin-bottom: 36px;
}
.section-title { font-size: 34px; font-weight: 800; letter-spacing: -0.01em; }
.section-link { font-weight: 700; cursor: pointer; color: var(--accent); }

.page-title { font-size: 42px; font-weight: 800; margin-bottom: 14px; }
.page-lede { color: var(--muted-42); max-width: 640px; margin-bottom: 32px; font-size: 16px; line-height: 1.6; }

/* ---------- Grids ---------- */
.grid-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 24px; }
.grid-usps { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 32px; }
.grid-portfolio-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 20px; }
.grid-portfolio { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 24px; }
.grid-process { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 20px; }
.grid-testimonials { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 24px; }
.grid-articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 24px; }
.grid-articles-wide { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 28px; }
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px,1fr)); gap: 24px; }
.grid-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 24px; margin-bottom: 60px; }
.grid-stats { background: var(--section-beige); border-radius: 6px; padding: 36px; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 24px; text-align: center; }

/* ---------- Service card (home) ---------- */
.service-card { border: 1px solid var(--border); border-radius: 6px; padding: 28px; cursor: pointer; }
.service-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--icon-bg); margin-bottom: 18px; }
.service-card-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.service-card-text { font-size: 14px; line-height: 1.55; color: var(--muted-42); }

/* ---------- USP (dark section) ---------- */
.usp-icon { width: 40px; height: 40px; background: var(--accent); border-radius: 4px; margin-bottom: 16px; }
.usp-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.usp-text { font-size: 14px; line-height: 1.55; color: var(--muted-80); }

/* ---------- Photo blocks ---------- */
.photo-block { border-radius: 6px; overflow: hidden; position: relative; background: var(--border); }
.photo-block img { width: 100%; height: 100%; object-fit: cover; }
.photo-caption {
  position: absolute; left: 14px; bottom: 14px;
  background: oklch(22% 0.01 80 / 0.75); color: #fff; font-family: monospace;
  font-size: 11px; padding: 6px 10px; border-radius: 3px;
}

.portfolio-photo { height: 220px; margin-bottom: 12px; }
.portfolio-photo-lg { height: 240px; margin-bottom: 14px; }
.portfolio-item-title { font-weight: 700; font-size: 15px; }
.portfolio-item-sub { font-size: 13px; color: var(--muted-45); margin-bottom: 6px; }
.portfolio-item-desc { font-size: 13px; color: var(--muted-38); line-height: 1.5; }

.blog-photo { height: 170px; margin-bottom: 14px; }
.blog-photo-wide { height: 190px; margin-bottom: 16px; }
.blog-tag { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.blog-card-title { font-weight: 700; font-size: 17px; line-height: 1.35; }
.blog-card-title-lg { font-weight: 700; font-size: 19px; line-height: 1.35; margin-bottom: 8px; }
.blog-card-excerpt { font-size: 14px; color: var(--muted-45); line-height: 1.5; }

/* ---------- Process steps ---------- */
.process-step { text-align: center; padding: 20px; }
.process-num {
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
  font-size: 20px; color: var(--accent); margin: 0 auto 16px;
}
.process-title { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.process-text { font-size: 13px; color: var(--muted-45); line-height: 1.5; }

/* ---------- Testimonials ---------- */
.testimonial-card { background: #fff; padding: 28px; border-radius: 6px; }
.testimonial-quote { font-size: 15px; line-height: 1.6; margin-bottom: 16px; font-style: italic; font-family: 'Newsreader', serif; }
.testimonial-name { font-weight: 700; font-size: 14px; }
.testimonial-loc { font-size: 13px; color: var(--muted-45); }

/* ---------- Forms ---------- */
.form-input, .form-select, .form-textarea {
  padding: 14px; border: 1px solid var(--border-light); border-radius: 4px; font-size: 15px; width: 100%;
}
.form-textarea { resize: vertical; }
.quote-form { background: #fff; padding: 32px; border-radius: 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-form .span-2 { grid-column: span 2; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--muted-42); }
.checkbox-row input { margin-top: 3px; }
.link-accent { color: var(--accent); text-decoration: underline; }
.form-success { background: #fff; border-radius: 6px; padding: 40px; text-align: center; font-weight: 700; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }

/* ---------- Services page ---------- */
.service-row {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center;
  padding: 36px 0; border-bottom: 1px solid var(--border);
}
.service-row-photo { height: 240px; }
.service-row-title { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.service-row-text { font-size: 15px; line-height: 1.65; color: var(--muted-38); margin-bottom: 16px; }
.service-row-price { font-size: 14px; font-weight: 700; color: var(--accent); margin-bottom: 20px; }

/* ---------- Filters (portfolio) ---------- */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-chip {
  padding: 10px 18px; border-radius: 22px; font-size: 14px; font-weight: 700; cursor: pointer;
  background: var(--section-beige); color: var(--muted-30); border: none;
}
.filter-chip.active { background: var(--accent); color: #fff; }

/* ---------- Article ---------- */
.article-back { font-weight: 700; color: var(--accent); cursor: pointer; margin-bottom: 24px; font-size: 14px; display: inline-block; }
.article-title { font-size: 38px; font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.article-hero { height: 320px; margin-bottom: 32px; }
.article-h3 { font-size: 22px; font-weight: 800; margin: 32px 0 12px; }
.article-p { font-size: 16px; line-height: 1.75; color: var(--muted-30); margin-bottom: 16px; }

/* ---------- Shop ---------- */
.product-card { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.product-photo { height: 170px; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.product-category { font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.product-name { font-weight: 700; font-size: 15px; margin-bottom: 10px; flex: 1; }
.product-price { font-weight: 800; font-size: 17px; margin-bottom: 14px; }
.add-to-cart { padding: 11px; text-align: center; background: var(--text); color: #fff; border-radius: 4px; font-weight: 700; font-size: 13px; cursor: pointer; border: none; width: 100%; }

/* ---------- Cart ---------- */
.cart-empty { padding: 60px; text-align: center; background: var(--section-beige); border-radius: 6px; }
.cart-empty-text { font-size: 16px; color: var(--muted-42); margin-bottom: 20px; }
.cart-row { display: flex; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.cart-row-photo { width: 80px; height: 80px; border-radius: 4px; overflow: hidden; flex-shrink: 0; }
.cart-row-photo img { width: 100%; height: 100%; object-fit: cover; }
.cart-row-info { flex: 1; min-width: 140px; }
.cart-row-name { font-weight: 700; font-size: 15px; }
.cart-row-unit { font-size: 13px; color: var(--muted-45); }
.qty-control { display: flex; align-items: center; gap: 12px; }
.qty-btn {
  width: 30px; height: 30px; border: 1px solid var(--muted-80); border-radius: 4px;
  display: flex; align-items: center; justify-content: center; cursor: pointer; font-weight: 700;
  background: #fff;
}
.qty-value { font-weight: 700; min-width: 20px; text-align: center; }
.cart-row-total { font-weight: 800; font-size: 16px; min-width: 90px; text-align: right; }
.cart-row-remove { color: var(--muted-50); cursor: pointer; font-size: 13px; text-decoration: underline; background: none; border: none; }
.cart-summary { display: flex; justify-content: space-between; align-items: center; padding: 28px 0; }
.cart-summary-label { font-size: 16px; color: var(--muted-42); }
.cart-summary-total { font-size: 28px; font-weight: 800; }
.cart-note { font-size: 12px; color: var(--muted-50); margin-top: 14px; text-align: center; }

/* ---------- About ---------- */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 60px; }
.about-text { font-size: 16px; line-height: 1.75; color: var(--muted-30); }
.about-text p { margin-bottom: 16px; }
.about-photo { height: 320px; }
.team-photo { height: 200px; margin-bottom: 14px; }
.team-name { font-weight: 700; font-size: 15px; }
.team-role { font-size: 13px; color: var(--muted-45); }
.stat-num { font-size: 32px; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 13px; color: var(--muted-42); }
.section-subtitle { font-size: 26px; font-weight: 800; margin-bottom: 24px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-item { margin-bottom: 24px; }
.contact-item-label { font-weight: 700; margin-bottom: 4px; }
.contact-item-value { color: var(--muted-38); font-size: 15px; }

/* ---------- Legal ---------- */
.legal-title { font-size: 32px; font-weight: 800; margin-bottom: 28px; }
.legal-h3 { font-size: 18px; font-weight: 800; margin: 26px 0 10px; }
.legal-p { font-size: 14.5px; line-height: 1.7; color: var(--muted-32); margin-bottom: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--text); color: var(--muted-80); padding: 60px 48px 30px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand-mark {
  width: 30px; height: 30px; background: var(--accent); border-radius: 3px;
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-family: 'Newsreader', serif; font-style: italic; font-size: 17px;
}
.footer-brand-name { font-size: 18px; font-weight: 800; color: #fff; }
.footer-desc { font-size: 13.5px; line-height: 1.6; max-width: 280px; }
.footer-col-title { font-weight: 700; color: #fff; margin-bottom: 14px; font-size: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.footer-links a { cursor: pointer; }
.footer-bottom {
  max-width: 1360px; margin: 0 auto; padding-top: 24px; border-top: 1px solid var(--dark-border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12.5px; color: var(--muted-65);
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--text); color: #fff; padding: 20px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cookie-banner[hidden] { display: none; }
.cookie-text { font-size: 13.5px; max-width: 760px; line-height: 1.5; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  padding: 10px 20px; border-radius: 4px; font-weight: 700; font-size: 13px; cursor: pointer; border: none;
}
.cookie-btn-reject { background: transparent; border: 1px solid var(--cookie-border); color: #fff; }
.cookie-btn-accept { background: var(--accent); color: #fff; }

/* ---------- Utility ---------- */
[hidden] { display: none !important; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff;
  padding: 12px 18px; z-index: 300; border-radius: 0 0 4px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 60px 24px 60px; gap: 32px; }
  .hero-photo { height: 320px; }
  .hero-title { font-size: 38px; }
  .section { padding: 50px 24px; }
  .section-tight-top { padding: 40px 24px 60px; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-intro { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-header { padding: 12px 16px; }
  .footer-desc { max-width: none; }
}

@media (max-width: 560px) {
  .quote-form { grid-template-columns: 1fr; }
  .quote-form .span-2 { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .main-nav { gap: 0; }
}
