/* =========================
   БАЗА / ОСНОВА
========================= */

:root {
  --bg: #f2f2f2;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #666;
  --accent: goldenrod;
  --dark: #121212;
  --radius: 12px;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: var(--text);
  padding-bottom: 90px;

  background-image: linear-gradient(rgba(245, 245, 245, 0.85),
      rgba(245, 245, 245, 0.85)),
    url("../images/marble.webp");

  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* контейнер */
.container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
}

/* =========================
   HEADER
========================= */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--dark);
  color: goldenrod;

  position: sticky;
  top: 0;
  z-index: 1000;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.logo {
  font-size: 14px;
  font-weight: bold;
  line-height: 1.2;
}

.logo img {
  height: 50px;
  width: auto;
  display: block;
}

/* =========================
   КНОПКИ
========================= */

/* .call-btn {
  background: var(--accent);
  color: white;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: bold;
} */
.call-btn {
  display: inline-block;
  padding: 0;
  border: 1px solid goldenrod;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  width: 150px;
  height: 50px;
}

.call-btn::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url("../images/podzvonyty.webp");
  background-size: cover;
  background-position: center;
}


/* универсальная кнопка (на будущее) */
.btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-weight: bold;
  text-align: center;
}

/* =========================
   HERO
========================= */

.hero {
  position: relative;
  padding: 30px 16px;
  text-align: center;
  background: linear-gradient(to bottom,
      #ffffff,
      #00000000);
  overflow: hidden;
}

.hero h1 {
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}

.hero-trust {
  font-size: 13px;
  color: var(--accent);
  font-weight: bold;
}

/* =========================
   УСЛУГИ
========================= */

.services {
  padding: 20px 16px;
}

.services h2 {
  text-align: center;
  font-size: 20px;
  margin-bottom: 20px;
}

.service-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* карточка услуги */
.service {
  background: var(--card);
  padding: 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.service:active {
  transform: scale(0.98);
}

.service h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.service p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.service img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* hover эффект (для ПК) */
.service-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-link:hover .service {
  transform: translateY(-2px);
}

/* =========================
   ПРЕВЬЮ ГАЛЕРЕИ
========================= */

.gallery-preview {
  padding: 10px 16px;
  text-align: center;
}

.gallery-card {
  display: block;
  background: white;
  padding: 20px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  font-weight: bold;
  box-shadow: var(--shadow);
}

/* =========================
   КОНТАКТЫ
========================= */

.contact-card {
  background: white;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  line-height: 1.6;
  margin: 20px 16px;
}

.contact-card h3 {
  margin-bottom: 12px;
}

.contact-card p {
  margin: 8px 0;
}

.contact-card a {
  color: var(--accent);
  font-weight: bold;
  text-decoration: none;
}


/* =========================
   ФОРМА 
========================= */

.form-section {
  padding: 30px 16px;
  background: linear-gradient(to bottom, #ffffff, #00000000);
  border-radius: 14px;
}

.form-section h2 {
  text-align: center;
  font-size: 22px;
  margin-bottom: 20px;
}

/* сама форма как карточка */
form {
  display: flex;
  flex-direction: column;
  gap: 12px;

  background: white;
  padding: 18px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
}

/* поля */
input,
textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  transition: 0.2s ease;
  outline: none;
}

/* фокус (очень важно для UX) */
input:focus,
textarea:focus {
  border-color: #3b4a3f;
  box-shadow: 0 0 0 3px rgba(59, 74, 63, 0.15);
}

/* кнопка */
.form-section button {

  padding: 0;
  border: none;
  background: transparent;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  cursor: pointer;
  display: block;
  overflow: hidden;
  border-radius: 12px;
}

.form-section button img {
  width: 100%;
  height: auto;
  display: block;
}

.form-section button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* =========================
   ФИКС КНОПКА ЗВОНКА
========================= */

.fab-call {
  position: fixed;
  bottom: 16px;
  right: 30px;
  left: auto;
  transform: none;

  width: 70px;
  height: 70px;
  color: gold;
  text-align: center;
  overflow: hidden;
  padding: 0;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 3px 3px 1px 1px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.fab-call img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* =========================
   ГАЛЕРЕЯ
========================= */

.gallery-page {
  padding: 30px 16px;
  text-align: center;
}

.gallery-page h1 {
  margin-bottom: 10px;
}

.gallery-page p {
  color: var(--muted);
  margin-bottom: 20px;
}

.gallery-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 700px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.gallery-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
  .gallery-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  }
}

/* =========================
   LIGHTBOX
========================= */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: var(--radius);
}

/* =========================
   КНОПКА НАЗАД
========================= */

.back-btn {
  display: inline-block;
  background: var(--dark);
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: var(--radius);
  margin-top: 20px;
}

button {
  padding: 0;
  overflow: hidden;
}

button img {
  display: block;
  width: 100%;
  height: auto;
}

