/* ============================================ */
/* Гранит Групп — Local Copy (Static)          */
/* ============================================ */

:root {
  --navy: #0a1f3d;
  --navy-light: #122d52;
  --gold: #d4a843;
  --gold-light: #f0d080;
  --white: #ffffff;
  --off-white: #f8f7f4;
  --gray: #6b7280;
  --gray-light: #e5e7eb;
  --dark: #111827;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --shadow: 0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.12);
  --radius: 12px;
  --transition: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

/* ============ HEADER / NAV ============ */
header {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(10,31,61,.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 0 2rem;
  border-bottom: 2px solid var(--gold);
}
nav {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 1.25rem; font-weight: 700;
  color: var(--white); text-decoration: none;
  letter-spacing: 0.5px;
}
.logo span { color: var(--gold); }
.nav-links {
  display: flex; gap: 0.5rem; list-style: none;
}
.nav-links a {
  color: var(--gray-light); text-decoration: none;
  font-size: .875rem; font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--gold); background: rgba(255,255,255,.05); }
.mobile-toggle { display: none; flex-direction: column; gap: 4px; cursor: pointer; }
.mobile-toggle span {
  width: 24px; height: 2px; background: var(--white);
  border-radius: 2px;
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, #0d2847 50%, #071530 100%);
  position: relative; overflow: hidden;
  padding: 6rem 2rem 4rem;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/hero.jpg') center/cover no-repeat;
  opacity: 0.15;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(212,168,67,.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content {
  max-width: 1200px; margin: 0 auto;
  position: relative; z-index: 1;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}
.hero h1 span { color: var(--gold); }
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.8);
  max-width: 680px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline {
  border: 2px solid var(--gold);
  color: var(--gold);
}
.btn-outline:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }

/* ============ SECTIONS ============ */
section { padding: 5rem 2rem; }
.section-container {
  max-width: 1200px; margin: 0 auto;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 0.75rem;
}
.section-subtitle {
  text-align: center;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

/* ============ ABOUT ============ */
.about {
  background: var(--off-white);
  position: relative;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-text h3 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 1rem;
}
.about-text p {
  color: var(--gray);
  margin-bottom: 1rem;
  line-height: 1.8;
}
.about-tags {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin-top: 1.5rem;
}
.about-tag {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 20px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem; font-weight: 500;
  color: var(--navy);
}

/* ============ ADVANTAGES ============ */
.advantages {
  background: var(--white);
}
.adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.adv-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
}
.adv-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--gold);
}
.adv-icon {
  width: 48px; height: 48px;
  background: var(--gold);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  color: var(--navy);
}
.adv-card h4 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.adv-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ============ PRODUCTS OVERVIEW ============ */
.products-overview {
  background: var(--navy);
  color: var(--white);
}
.products-overview .section-title { color: var(--white); }
.products-overview .section-subtitle { color: rgba(255,255,255,.6); }
.prod-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.prod-cat-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
}
.prod-cat-card:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-3px);
}
.prod-cat-card i {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1rem;
}
.prod-cat-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.prod-cat-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
}

/* ============ CATALOG ============ */
.catalog {
  background: var(--off-white);
}
.catalog-intro {
  text-align: center;
  margin-bottom: 2.5rem;
}
.brand-tags {
  display: flex; justify-content: center; gap: 1rem;
  margin-bottom: 2rem;
}
.brand-tag {
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}
.brand-novella { background: #e8f4e8; color: #1a6b1a; }
.brand-laatu { background: #fff3e0; color: #b8730a; }
.cat-group {
  margin-bottom: 2.5rem;
}
.cat-group-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
  display: flex; align-items: center; gap: 0.5rem;
}
.cat-group-title i { color: var(--gold); }
.cat-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.cat-item {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  padding: 1.25rem;
  transition: var(--transition);
}
.cat-item:hover { box-shadow: var(--shadow); }
.cat-item h5 {
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.cat-item p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.6;
}
.cat-item .brand-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

/* ============ QUALITY ============ */
.quality {
  background: var(--white);
}
.quality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.quality-card {
  background: var(--off-white);
  padding: 2rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
  transition: var(--transition);
}
.quality-card:hover { box-shadow: var(--shadow); }
.quality-card h4 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.quality-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
}
.quality-eco {
  margin-top: 2rem;
  background: #e8f4f8;
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  display: flex; align-items: center; gap: 1rem;
  border-left: 4px solid #0ea5e9;
}
.quality-eco i {
  font-size: 2rem;
  color: #0ea5e9;
}
.quality-eco p {
  font-size: 0.95rem;
  color: var(--navy);
}
.quality-eco strong { color: var(--navy); }

/* ============ HOW WE WORK ============ */
.how-we-work {
  background: var(--off-white);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  position: relative;
}
.step-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  position: relative;
  transition: var(--transition);
}
.step-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.step-number {
  width: 48px; height: 48px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700;
  margin: 0 auto 1rem;
}
.step-card h4 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.step-card p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.6;
}
.how-quote {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--navy);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  padding: 1.5rem;
  border-top: 2px solid var(--gold);
}
.how-quote i { color: var(--gold); }

/* ============ CONTACT ============ */
.contact {
  background: var(--navy);
  color: var(--white);
}
.contact .section-title { color: var(--white); }
.contact .section-subtitle { color: rgba(255,255,255,.6); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--gold);
}
.contact-item {
  display: flex; gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-item i {
  font-size: 1.2rem;
  color: var(--gold);
  width: 24px;
  margin-top: 4px;
}
.contact-item h5 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
.contact-item p {
  font-size: 0.9rem;
  color: rgba(255,255,255,.7);
}
.contact-form {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 2rem;
}
.contact-form h4 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: var(--gold);
}
.form-group { margin-bottom: 1rem; }
.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: var(--transition);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.4); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,.12);
}

/* ============ FOOTER ============ */
footer {
  background: #050e1f;
  color: rgba(255,255,255,.5);
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
}
footer a { color: var(--gold); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--navy);
    padding: 1rem;
    border-bottom: 2px solid var(--gold);
  }
}
@media (max-width: 600px) {
  section { padding: 3rem 1rem; }
  .hero h1 { font-size: 1.75rem; }
  .cat-items { grid-template-columns: 1fr; }
  .quality-grid { grid-template-columns: 1fr; }
}