/* ============================================================
   Криейтив ПиП — тапицерски услуги Варна
   Modern redesign • vanilla CSS
   ============================================================ */

:root {
  --accent: #c6146f;
  --accent-dark: #9e0f58;
  --accent-soft: rgba(198, 20, 111, 0.08);
  --dark: #161616;
  --dark-2: #282828;
  --light: #ffffff;
  --light-2: #f7f7f7;
  --gray: #6b6b6b;
  --gray-light: #d9d9d9;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Manrope', 'Segoe UI', Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 18px 45px rgba(22, 22, 22, 0.12);
  --shadow-sm: 0 6px 18px rgba(22, 22, 22, 0.08);
  --transition: 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark-2);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--dark);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.95em 1.9em;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  background: var(--accent);
  color: #fff !important;
  border: 2px solid var(--accent);
  transition: var(--transition);
  cursor: pointer;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(198, 20, 111, 0.35); }
.btn-outline {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.75);
}
.btn-outline:hover { background: #fff; color: var(--dark) !important; border-color: #fff; box-shadow: none; }
.btn-dark { background: var(--dark); border-color: var(--dark); }
.btn-dark:hover { background: var(--dark-2); border-color: var(--dark-2); box-shadow: var(--shadow-sm); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0;
  transition: var(--transition);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header.scrolled {
  background: rgba(22, 22, 22, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 10px 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
.site-header.on-light:not(.scrolled) {
  background: rgba(22, 22, 22, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 0;
}
.logo {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff !important;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.logo span { color: var(--accent); }
.logo small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a {
  display: block;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: var(--transition);
}
.main-nav a:hover, .main-nav li.active > a { color: #fff; background: rgba(198, 20, 111, 0.9); }

.has-dropdown { position: relative; }
.has-dropdown > a::after {
  content: '';
  display: inline-block;
  margin-left: 7px;
  border: 5px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
}
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 270px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
  display: block !important;
  flex-direction: column;
  gap: 2px !important;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  color: var(--dark-2) !important;
  padding: 9px 14px !important;
  font-size: 0.92rem;
}
.dropdown a:hover { background: var(--accent-soft) !important; color: var(--accent) !important; }
.dropdown .dd-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gray);
  padding: 8px 14px 4px;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  margin: 6px 0;
  border-radius: 2px;
  transition: var(--transition);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff !important;
  font-weight: 800;
  font-size: 0.98rem;
  white-space: nowrap;
}
.header-phone svg { flex: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--dark);
  overflow: hidden;
}
.hero-page { min-height: 52vh; }
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(22, 22, 22, 0.92) 8%, rgba(22, 22, 22, 0.62) 48%, rgba(198, 20, 111, 0.32) 100%);
}
.hero .container { position: relative; z-index: 2; padding: 120px 0 70px; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5.2vw, 4.1rem);
  max-width: 15ch;
  margin-bottom: 0.35em;
}
.hero .lead {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: rgba(255, 255, 255, 0.86);
  max-width: 56ch;
  margin: 0 0 2em;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 34px; height: 2px; background: var(--accent); }
.hero .eyebrow { color: #ff7cb8; }
.hero .eyebrow::before { background: #ff7cb8; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-dark { background: var(--dark); color: rgba(255, 255, 255, 0.82); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-light { background: var(--light-2); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section-head p { font-size: 1.06rem; color: var(--gray); margin: 0; }
.section-dark .section-head p { color: rgba(255, 255, 255, 0.7); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark-2), var(--accent-dark));
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.card:hover .card-img img { transform: scale(1.07); }
.card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.28rem; margin-bottom: 0.45em; }
.card-body h3 a { color: var(--dark); }
.card-body h3 a:hover { color: var(--accent); }
.card-body p { color: var(--gray); font-size: 0.96rem; margin: 0 0 18px; flex: 1; }
.card-link {
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.card-link::after { content: '→'; transition: var(--transition); }
.card-link:hover::after { transform: translateX(5px); }

.card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
}

/* Icon feature cards */
.feature {
  background: #fff;
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-top: 3px solid transparent;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-top-color: var(--accent); }
.feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--gray); font-size: 0.95rem; margin: 0; }
.section-dark .feature { background: var(--dark-2); }
.section-dark .feature p { color: rgba(255, 255, 255, 0.68); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-num sup { font-size: 0.5em; color: #ff7cb8; }
.stat-label { margin-top: 10px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.7); font-weight: 600; }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split .media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.split .media img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.split p { color: var(--gray); }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--dark-2); }
.check-list li::before {
  content: '✓';
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  display: grid;
  place-items: center;
  margin-top: 2px;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
  background: linear-gradient(135deg, var(--dark-2), var(--accent-dark));
  border: 0;
  padding: 0;
  display: block;
  width: 100%;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s ease, opacity 0.4s; }
.gallery-item:hover img { transform: scale(1.06); opacity: 0.9; }
.gallery-item::after {
  content: '⤢';
  position: absolute;
  inset: auto 14px 12px auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(22, 22, 22, 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover::after { opacity: 1; }

.img-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 2.4rem;
  background: linear-gradient(135deg, #282828 0%, #c6146f 130%);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vmin;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}
.lightbox-btn:hover { background: var(--accent); }
.lightbox-prev { left: 3vmin; }
.lightbox-next { right: 3vmin; }
.lightbox-close {
  position: absolute;
  top: 3vmin;
  right: 3vmin;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
}
.lightbox-close:hover { background: var(--accent); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(115deg, var(--dark) 55%, var(--accent-dark));
  color: #fff;
  padding: 64px 0;
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0 0 6px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, 0.75); }

/* ---------- Blog ---------- */
.post-meta { font-size: 0.85rem; color: var(--gray); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; margin-bottom: 14px; }
.article-body { max-width: 780px; }
.article-body p { margin: 0 0 1.3em; }
.article-body ul { margin: 0 0 1.4em; padding-left: 1.2em; }
.article-body li { margin-bottom: 0.5em; }
.article-body h2 { font-size: 1.5rem; margin-top: 1.6em; }
.eu-note {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  font-size: 0.95rem;
  margin: 28px 0;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 34px; }
.contact-item { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid #eee; }
.contact-item:last-child { border-bottom: 0; }
.contact-item .ci-icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.contact-item strong { display: block; color: var(--dark); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 2px; }
.contact-item a { color: var(--dark-2); font-weight: 600; }
.contact-item a:hover { color: var(--accent); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { font-size: 0.85rem; font-weight: 700; color: var(--dark); display: block; margin-bottom: 6px; }
input, textarea, select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-light);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.96rem;
  background: #fff;
  transition: var(--transition);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
textarea { resize: vertical; min-height: 130px; }

.map-wrap {
  margin-top: 56px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  line-height: 0;
}
.map-wrap iframe { width: 100%; height: 420px; border: 0; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}
.breadcrumbs a { color: rgba(255, 255, 255, 0.85); font-weight: 600; }
.breadcrumbs a:hover { color: #ff7cb8; }
.breadcrumbs span::before { content: '/'; margin: 0 8px; color: rgba(255, 255, 255, 0.4); }

/* ---------- Clients ---------- */
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.logo-tile {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #fff;
  border: 1.5px dashed var(--gray-light);
  display: grid;
  place-items: center;
  color: var(--gray);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  padding: 12px;
  transition: var(--transition);
}
.logo-tile:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-sm); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, 0.66); padding: 72px 0 0; font-size: 0.94rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 44px; padding-bottom: 52px; }
.site-footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, 0.66); }
.site-footer a:hover { color: #ff7cb8; }
.footer-brand .logo { font-size: 1.6rem; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { flex: none; margin-top: 4px; color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .header-phone { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 0;
    background: rgba(22, 22, 22, 0.97);
    backdrop-filter: blur(12px);
    padding: 100px 8% 40px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    overflow-y: auto;
    z-index: 99;
  }
  .main-nav.open { transform: none; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a { padding: 14px 16px; font-size: 1.1rem; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.05);
    display: none !important;
    margin: 4px 0 8px;
    min-width: 0;
  }
  .has-dropdown.expanded .dropdown { display: block !important; }
  .dropdown a { color: rgba(255, 255, 255, 0.85) !important; }
  .dropdown .dd-title { color: rgba(255, 255, 255, 0.5); }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  body.nav-open .site-header { background: transparent; box-shadow: none; backdrop-filter: none; }
  .site-header { z-index: 100; }
  .nav-toggle { position: relative; z-index: 101; }
}

@media (max-width: 640px) {
  .grid-3, .grid-2, .gallery-grid, .logo-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 34px 12px; }
  .hero { min-height: 88vh; }
}
