/*
Theme Name: Potolki24
Theme URI: https://potolki24.example/
Author: Potolki24.MD 
Description: POTOLKI24.MD (натяжные потолки в Молдове).
Version: 1.1
Text Domain: potolki24-landing
*/

:root {
  --bg-body: #F3F4F6;
  --bg-hero-overlay: rgba(248, 250, 252, 0.75);
  --bg-header: rgba(255, 255, 255, 0.8);
  --bg-card: #FFFFFF;
  --bg-card-soft: #F9FAFB;
  --border-soft: rgba(209, 213, 219, 0.8);
  --text-main: #111827;
  --text-muted: #4B5563;
  --accent: #B45309;           /* акцентный оранжевый */
  --accent-soft: #F59E0B;
  --btn-secondary: #111827;    /* тёмная второстепенная кнопка */
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-small: 0 10px 30px rgba(15, 23, 42, 0.10);
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  color: var(--text-main);
  background: var(--bg-body);
  min-height: 100%;
}

body {
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* Layout */

.container {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

/* Header */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  transition: background 0.25s ease, backdrop-filter 0.25s ease, box-shadow 0.25s ease;
}

.site-header--scrolled {
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.18);
}


.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 12px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.logo-main {
  color: #111827;
}

.logo-mark {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #ECFDF3;
  letter-spacing: 0.18em;
}

.logo-tld { display: none !important; }
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.nav a {
  color: var(--text-muted);
  position: relative;
  padding-block: 2px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: width 0.18s ease-out;
}

.nav a:hover::after {
  width: 100%;
}

.nav a:hover {
  color: var(--accent);
}

.phone-btn {
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background-color: rgba(255, 255, 255, 0.92);
  color: #111827;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-small);
}

.phone-icon {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #16A34A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.phone-icon svg {
  width: 10px;
  height: 10px;
}

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-block: 120px 80px;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/hero.jpg");
  background-size: cover;
  background-position: center top;
  filter: blur(3px);
  transform: scale(1.04);
  opacity: 0.85;
  z-index: -2;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: -1;
}

.hero-inner {
  text-align: center;
}

.hero-tagline {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 11px;
  color: #111827;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(28px, 4vw, 38px);
  margin: 0 0 14px;
  color: #020617;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 26px;
}

.hero-subtitle .accent {
  color: #B45309;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 15px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.14s ease-out, box-shadow 0.14s ease-out, background 0.14s ease-out, color 0.14s ease-out, border-color 0.14s ease-out;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #111827;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.45);
}

.btn-outline {
  background: #F9FAFB;
  color: #111827;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: var(--shadow-small);
}

.btn-outline:hover {
  background: #FFFFFF;
  border-color: rgba(148, 163, 184, 0.9);
}

.hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}

.hero-meta > div {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: #111827;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
}

/* Sections */

.section {
  padding-block: 72px;
  background: #F9FAFB;
}

.section-alt {
  background: #EEF2FF;
}

.section h2 {
  font-size: 24px;
  margin-bottom: 8px;
  color: #020617;
}

.section-subtitle {
  margin: 0 0 28px;
  color: var(--text-muted);
  max-width: 620px;
}

/* Types section: structured by categories */

.types-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}

.types-text-block h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 18px;
}

.types-text-block p {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.types-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.types-col {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  padding: 16px 16px 14px;
  box-shadow: var(--shadow-small);
}

.types-col h4 {
  margin: 0 0 8px;
  font-size: 15px;
}

.types-col ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: var(--shadow-small);
  background: #E5E7EB;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.gallery-item span {
  position: absolute;
  inset-inline: 12px;
  bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  font-size: 12px;
  color: #F9FAFB;
}

/* Lightbox */

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.lightbox-backdrop.active {
  display: flex;
}

.lightbox-inner {
  max-width: 90vw;
  max-height: 80vh;
  position: relative;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.8);
  border-radius: 999px;
  color: white;
  width: 34px;
  height: 34px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-close {
  top: -18px;
  right: -18px;
  transform: none;
}

.lightbox-prev {
  left: -18px;
}

.lightbox-next {
  right: -18px;
}

/* USP */

.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.usp-item {
  padding: 20px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-small);
  font-size: 14px;
}

.usp-item strong {
  display: block;
  margin-bottom: 6px;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 30px;
  align-items: start;
}

.contact-benefits {
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 14px;
}

.contact-form {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #111827;
}

.contact-form input,
.contact-form textarea {
  border-radius: 10px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  padding: 10px 11px;
  background: #F9FAFB;
  color: #111827;
  font: inherit;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 1px solid rgba(59, 130, 246, 0.8);
  border-color: rgba(59, 130, 246, 0.8);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.form-note {
  margin: 0;
  font-size: 11px;
  color: rgba(156, 163, 175, 0.95);
}

/* Footer */

.footer {
  border-top: 1px solid rgba(209, 213, 219, 0.9);
  padding-block: 16px 22px;
  background: #F3F4F6;
  font-size: 13px;
  color: #111827;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer a {
  color: #1D4ED8;
}

/* Responsive */

@media (max-width: 900px) {
  .nav {
    display: none;
  }
  .header-inner {
    justify-content: space-between;
  }
  .hero {
    padding-block: 104px 60px;
  }
  .hero-title {
    font-size: 26px;
  }
}

@media (max-width: 720px) {
  .hero-subtitle {
    font-size: 14px;
  }
  .hero-actions {
    flex-direction: column;
  }
  .section {
    padding-block: 56px;
  }
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}


.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 12px;
}

.lang-btn {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  background: #F9FAFB;
  font-size: 11px;
  padding: 4px 9px;
  cursor: pointer;
}

.lang-btn.active,
.lang-btn:hover {
  background: #111827;
  color: #F9FAFB;
}


.lang-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.lang-overlay.active {
  display: flex;
}

.lang-modal {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 28px 24px 22px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
  text-align: center;
}

.lang-modal h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.lang-modal p {
  margin: 0 0 18px;
  font-size: 13px;
  color: #111827;
}

.lang-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.lang-choice {
  border-radius: 999px;
  border: 1px solid #D1D5DB;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  background: #F9FAFB;
}

.lang-choice:hover {
  background: #111827;
  color: #F9FAFB;
}

/* language switch in header */

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 12px;
}

.lang-btn {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  background: #F9FAFB;
  font-size: 11px;
  padding: 4px 9px;
  cursor: pointer;
}

.lang-btn.active,
.lang-btn:hover {
  background: #111827;
  color: #F9FAFB;
}



/* Fix: prevent horizontal scroll on small screens and simplify header phone on mobile */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* On small screens, show only phone icon in header to avoid overflow */
@media (max-width: 720px) {
  .phone-btn span:last-child {
    display: none;
  }
}

/* Ensure header inner elements wrap if needed */
.header-inner {
  flex-wrap: wrap;
}



/* Steps section */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.step-item {
  background: var(--bg-card);
  border-radius: 18px;
  padding: 20px 18px 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(209, 213, 219, 0.7);
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  background: rgba(245, 158, 11, 0.08);
  color: var(--accent);
  margin-bottom: 8px;
}

.step-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.step-item p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* Testimonials */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.testimonial-card {
  background: var(--bg-card);
  border-radius: 18px;
  padding: 20px 18px 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(209, 213, 219, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-text {
  margin: 0 0 14px;
  font-size: 14px;
  color: #111827;
}

.testimonial-meta {
  font-size: 13px;
}

.testimonial-name {
  font-weight: 600;
  margin-bottom: 2px;
}

.testimonial-role {
  color: var(--text-muted);
}

/* Responsive layout for steps & testimonials */

@media (max-width: 900px) {
  .steps-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .steps-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile fixed call button */


.mobile-contact-bar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  z-index: 60;
}

.mobile-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #111827;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
}

.mobile-contact-icon {
  font-size: 15px;
}

/* Показ только на мобильных */
@media (min-width: 721px) {
  .mobile-contact-bar {
    display: none;
  }
}

}



/* FAQ section */
.faq {
  padding-block: 56px;
}

.faq .section-head {
  text-align: left;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 32px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(209, 213, 219, 0.6);
}

.faq-item h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.faq-item p {
  font-size: 14px;
  color: var(--muted);
}


.testimonial-stars {
  margin-top: 4px;
  color: #F59E0B;
  letter-spacing: 1px;
  font-size: 13px;
}


.logo-icon {
  height: 64px;
  width: auto;
  margin-right: 8px;
}




@media (max-width: 720px) {
  .logo-icon {
    height: 52px;
    margin-right: 6px;
  }
  .header-inner {
    align-items: center;
    gap: 12px;
  }
}


.mobile-contact-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.45);
}


.mobile-contact-text {
  display: none;
}

.mobile-contact-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  justify-content: center;
}

.mobile-contact-phone .mobile-contact-icon,
.mobile-contact-wa .mobile-contact-icon {
  font-size: 20px;
}

.mobile-contact-tg svg {
  fill: #111827;
}


.gallery-item-hidden{display:none;}
