/* ========================================================
   city.css — shared styles for ЛесМаркет43 city SEO pages
   ======================================================== */

:root {
  --forest: #2D5016;
  --forest-mid: #3D6B1F;
  --moss: #5A8A2E;
  --leaf: #7AB648;
  --bark: #6B4226;
  --bark-light: #A0633A;
  --sand: #F5ECD7;
  --cream: #FBF7EF;
  --white: #FFFFFF;
  --charcoal: #1E1E1E;
  --gray: #666;
  --light-gray: #E8E0D0;
  --accent: #E8A020;
  --accent-dark: #C4851A;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Nunito', sans-serif; background: var(--cream); color: var(--charcoal); overflow-x: hidden; line-height: 1.65; }

/* ===== NAVIGATION ===== */
nav:not(.breadcrumb) {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(22,34,10,0.97); backdrop-filter: blur(10px);
  padding: 0 5%; display: flex; align-items: center; justify-content: space-between;
  height: 70px; border-bottom: 2px solid var(--moss);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-icon { width: 38px; height: 38px; }
.nav-logo-text { font-family: 'Playfair Display', serif; color: var(--white); font-size: 1.15rem; font-weight: 700; line-height: 1.1; }
.nav-logo-sub { font-family: 'Nunito', sans-serif; font-size: 0.65rem; color: var(--leaf); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.88rem; font-weight: 600; letter-spacing: 0.3px; transition: color 0.2s; }
.nav-links a:hover { color: var(--leaf); }
.nav-cta { background: var(--leaf); color: var(--white) !important; padding: 8px 18px; border-radius: 20px; transition: background 0.2s !important; }
.nav-cta:hover { background: var(--moss) !important; }
.nav-phone { color: var(--accent) !important; font-weight: 700 !important; }
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 5px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s; }
.mobile-nav { display: none; position: fixed; top: 70px; left: 0; right: 0; background: rgba(22,34,10,0.98); padding: 24px 5%; z-index: 999; flex-direction: column; gap: 0; border-bottom: 2px solid var(--moss); }
.mobile-nav.open { display: flex; }
.mobile-nav a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 1rem; font-weight: 600; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.mobile-nav a:last-child { border-bottom: none; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 16px 5% 0;
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--gray);
  margin-top: 70px;
  background: var(--cream);
}
.breadcrumb a { color: var(--moss); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span.sep { color: var(--light-gray); }

/* ===== CITY HERO ===== */
.city-hero {
  background: linear-gradient(135deg, rgba(26,38,8,0.88) 0%, rgba(45,80,22,0.80) 45%, rgba(30,58,14,0.88) 100%), url('/images/store-simferopol.jpg') center/cover no-repeat;
  padding: 60px 5% 70px;
  min-height: 52vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.city-hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%235A8A2E' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.city-hero-content { position: relative; z-index: 1; max-width: 780px; }
.product-photo-band { padding: 46px 5% 4px; text-align: center; }
.product-photo-band img {
  max-width: 520px; width: 100%; height: auto; border-radius: 18px;
  box-shadow: 0 16px 40px rgba(45,80,22,0.15); background: #fff;
}
.city-hero-tag {
  display: inline-block; background: rgba(122,182,72,0.18); color: var(--leaf);
  padding: 6px 16px; border-radius: 20px; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 20px;
  border: 1px solid rgba(122,182,72,0.3);
}
.city-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900; color: var(--white); line-height: 1.15; margin-bottom: 18px;
}
.city-hero-sub {
  font-size: clamp(1rem, 2vw, 1.18rem); color: rgba(255,255,255,0.8);
  margin-bottom: 36px; max-width: 600px; line-height: 1.7;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  display: inline-block; background: var(--leaf); color: var(--white);
  padding: 14px 28px; border-radius: 30px; text-decoration: none;
  font-weight: 700; font-size: 0.95rem; font-family: 'Nunito', sans-serif;
  transition: all 0.25s; box-shadow: 0 4px 20px rgba(122,182,72,0.4);
  cursor: pointer; border: none;
}
.btn-primary:hover { background: var(--moss); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(122,182,72,0.5); }
.btn-outline {
  display: inline-block; background: transparent; color: var(--white);
  padding: 13px 28px; border-radius: 30px; text-decoration: none;
  font-weight: 700; font-size: 0.95rem; font-family: 'Nunito', sans-serif;
  border: 2px solid rgba(255,255,255,0.45); transition: all 0.25s;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.8); }

/* ===== SECTION COMMON ===== */
section { padding: 80px 5%; }
.section-tag {
  display: inline-block; background: rgba(90,138,46,0.12); color: var(--moss);
  padding: 5px 14px; border-radius: 20px; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px;
}
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 700; color: var(--forest); line-height: 1.25;
}
.section-sub { font-size: 1rem; color: var(--gray); margin-top: 12px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ===== PRODUCT CARDS ===== */
#products { background: #F8F4EC; }
.products-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.product-card {
  background: var(--white); border-radius: 18px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(45,80,22,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(45,80,22,0.16); }
.product-img-wrap { position: relative; overflow: hidden; height: 200px; background: var(--light-gray); }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--leaf); color: var(--white); font-size: 0.72rem; font-weight: 700;
  padding: 4px 10px; border-radius: 12px; letter-spacing: 0.5px;
}
.product-badge.badge-hot { background: #E85020; }
.product-info { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.product-info h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--charcoal); line-height: 1.3; }
.product-info p { font-size: 0.88rem; color: var(--gray); flex: 1; line-height: 1.55; margin-bottom: 16px; }
.product-info p span { color: var(--bark-light); font-weight: 600; }
.product-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--light-gray); padding-top: 16px; }
.price-label { font-size: 0.75rem; color: var(--gray); margin-bottom: 2px; }
.price-val { font-size: 1.1rem; font-weight: 700; color: var(--forest); }
.btn-card {
  background: var(--leaf); color: var(--white); border: none; padding: 9px 18px;
  border-radius: 20px; font-size: 0.82rem; font-weight: 700; font-family: 'Nunito', sans-serif;
  cursor: pointer; transition: all 0.2s;
}
.btn-card:hover { background: var(--moss); }

/* ===== CTA PRICELIST BLOCK ===== */
.cta-pricelist {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-mid) 100%);
  border-radius: 24px; padding: 48px 40px; text-align: center;
  box-shadow: 0 8px 40px rgba(45,80,22,0.3); margin: 0 auto; max-width: 700px;
}
.cta-pricelist h3 { font-family: 'Playfair Display', serif; font-size: clamp(1.4rem,3vw,2rem); font-weight: 700; color: var(--white); margin-bottom: 14px; }
.cta-pricelist p { color: rgba(255,255,255,0.8); font-size: 1rem; margin-bottom: 28px; }
.cta-pricelist .btn-primary { background: var(--accent); box-shadow: 0 4px 20px rgba(232,160,32,0.45); }
.cta-pricelist .btn-primary:hover { background: var(--accent-dark); }
#cta { background: var(--cream); }

/* ===== SEO TEXT ===== */
#seo-text { background: var(--white); }
.seo-content { max-width: 860px; margin: 0 auto; }
.seo-content h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.3rem, 2.5vw, 1.7rem); font-weight: 700; color: var(--forest); margin: 48px 0 18px; line-height: 1.3; }
.seo-content h2:first-child { margin-top: 0; }
.seo-content p { color: #444; font-size: 0.97rem; line-height: 1.78; margin-bottom: 14px; }
.seo-content ul { margin: 10px 0 16px 22px; }
.seo-content ul li { color: #444; font-size: 0.97rem; line-height: 1.65; margin-bottom: 7px; }

/* ===== FAQ ===== */
#faq { background: var(--sand); }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: var(--white); border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(45,80,22,0.06); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  padding: 20px 24px; font-family: 'Nunito', sans-serif; font-size: 1rem; font-weight: 700;
  color: var(--forest); cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  transition: background 0.2s;
}
.faq-q:hover { background: rgba(122,182,72,0.08); }
.faq-q .arrow { font-size: 1.2rem; flex-shrink: 0; margin-left: 16px; transition: transform 0.3s; color: var(--moss); }
.faq-q.active .arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s; padding: 0 24px; }
.faq-a.open { max-height: 500px; padding: 0 24px 20px; }
.faq-a div { color: #444; font-size: 0.95rem; line-height: 1.7; }

/* ===== OTHER CITIES ===== */
.other-cities { background: var(--cream); padding: 40px 5%; border-top: 1px solid var(--light-gray); }
.other-cities h3 { font-family: 'Nunito', sans-serif; font-size: 0.8rem; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 16px; }
.cities-links { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.cities-links a { color: var(--forest); text-decoration: none; font-size: 0.88rem; font-weight: 600; border-bottom: 1px solid transparent; transition: all 0.2s; padding: 2px 0; }
.cities-links a:hover { color: var(--forest-mid); border-bottom-color: var(--forest-mid); }

/* ===== FOOTER ===== */
footer { background: #121E07; color: rgba(255,255,255,0.7); padding: 50px 5% 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.65; margin-top: 14px; max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; letter-spacing: 0.3px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.87rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--leaf); }
.footer-contact a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.87rem; display: block; margin-bottom: 10px; transition: color 0.2s; }
.footer-contact a:hover { color: var(--leaf); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom span, .footer-bottom a { font-size: 0.8rem; color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-bottom a:hover { color: var(--leaf); }
.footer-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.footer-logo-text { font-family: 'Playfair Display', serif; color: var(--white); font-size: 1.1rem; font-weight: 700; }

/* ===== FLOATING BUTTONS ===== */
.float-btns { position: fixed; bottom: 30px; right: 24px; display: flex; flex-direction: column; gap: 12px; z-index: 900; }
.float-btn {
  width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  text-decoration: none; box-shadow: 0 4px 18px rgba(0,0,0,0.25);
  transition: transform 0.25s, box-shadow 0.25s;
}
.float-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.float-wa { background: #25D366; }
.float-tg { background: #2CA5E0; }
.float-ph { background: var(--leaf); }

/* ===== MODAL ===== */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); z-index: 2000; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal { background: var(--white); border-radius: 20px; padding: 40px; max-width: 460px; width: 90%; position: relative; }
.modal-close { position: absolute; top: 14px; right: 18px; font-size: 1.6rem; cursor: pointer; color: var(--gray); background: none; border: none; line-height: 1; }
.modal h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--forest); margin-bottom: 8px; }
.modal p { color: var(--gray); margin-bottom: 24px; font-size: 0.95rem; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--charcoal); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 11px 14px; border: 1.5px solid var(--light-gray); border-radius: 8px; font-family: 'Nunito', sans-serif; font-size: 0.95rem; transition: border-color 0.2s; background: var(--white); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--leaf); }
.form-group textarea { height: 90px; resize: vertical; }
.btn-submit { width: 100%; background: var(--leaf); color: var(--white); border: none; padding: 14px; border-radius: 8px; font-size: 1rem; font-weight: 700; font-family: 'Nunito', sans-serif; cursor: pointer; margin-top: 8px; transition: all 0.2s; box-shadow: 0 4px 16px rgba(122,182,72,0.3); }
.btn-submit:hover { background: var(--moss); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(122,182,72,0.45); }
.form-note { font-size: 0.75rem; color: var(--gray); margin-top: 10px; text-align: center; }

/* ===== ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { gap: 18px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .city-hero { padding: 40px 5% 50px; min-height: auto; }
  section { padding: 52px 5%; }
  .section-header { margin-bottom: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  .seo-content h2 { font-size: 1.2rem; }
  .faq-q { padding: 16px 18px; font-size: 0.95rem; }
  .faq-a { padding: 0 18px; }
  .faq-a.open { padding: 0 18px 16px; }
  .modal { padding: 28px 22px; border-radius: 16px; }
  .modal h3 { font-size: 1.25rem; }
  .other-cities { padding: 28px 5%; }
}
@media (max-width: 600px) {
  .products-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .btn-primary, .btn-outline { width: 100%; text-align: center; display: block; }
  .float-btns { bottom: 20px; right: 14px; gap: 10px; }
  .float-btn { width: 52px; height: 52px; }
  .cta-pricelist { padding: 32px 20px; border-radius: 18px; }
  .city-hero { padding: 32px 5% 40px; }
  .city-hero h1 { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .city-hero-sub { font-size: 0.97rem; margin-bottom: 24px; }
  .breadcrumb { font-size: 0.78rem; padding: 12px 5% 0; }
  .product-info { padding: 18px 18px 20px; }
  .products-grid { gap: 16px; }
  section { padding: 44px 4%; }
  .footer-brand p { max-width: 100%; }
  nav { padding: 0 4%; }
}
@media (max-width: 400px) {
  .city-hero h1 { font-size: 1.55rem; }
  .float-btn { width: 48px; height: 48px; }
  .modal { padding: 22px 16px; }
}
