/* ========== iMPRO SERVICE SITE ========== */
/* Тёмная тема, cyan акценты, адаптив */

:root {
  --bg-main: #020617;
  --bg-elevated: rgba(15, 23, 42, 0.96);
  --bg-soft: rgba(15, 23, 42, 0.86);
  --accent: #22d3ee;
  --accent-alt: #a855f7;
  --accent-soft: rgba(34, 211, 238, 0.18);
  --accent-border: rgba(56, 189, 248, 0.35);
  --danger: #fb7185;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --card-radius: 18px;
  --transition-fast: 200ms ease-out;
  --transition-slow: 420ms cubic-bezier(0.19, 1, 0.22, 1);
  --border-subtle: rgba(148, 163, 184, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  background: radial-gradient(circle at 0% 0%, #0f172a 0, #020617 40%, #000 100%);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-width: 320px;
  width: 100%;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background grid */
body::before {
  content: "";
  position: fixed;
  inset: -200px;
  background-image: 
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  transform: perspective(900px) rotateX(58deg) translateY(40%);
  animation: gridPan 26s linear infinite;
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
}

@keyframes gridPan {
  0% { transform: perspective(900px) rotateX(58deg) translate3d(0, 40%, 0); }
  100% { transform: perspective(900px) rotateX(58deg) translate3d(-120px, 60%, 0); }
}

.container {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  position: relative;
  z-index: 1;
}

/* Header */
h2 {
  font-size: clamp(18px, 5vw, 22px);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  line-height: 1.3;
  color: var(--text-main);
}

.subtitle {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.6;
}

.subtitle strong {
  color: var(--accent);
  font-weight: 500;
}

/* GALLERY */
.gallery {
  margin-bottom: 32px;
  padding: 20px;
  background: var(--bg-soft);
  border-radius: var(--card-radius);
  border: 1px solid var(--border-subtle);
}

.gallery h2 {
  font-size: 14px;
  margin-bottom: 6px;
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.gallery-grid img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.02);
  border-color: var(--accent);
}

/* TRUST BLOCK */
.trust {
  margin-bottom: 32px;
  padding: 24px 20px;
  background: var(--bg-soft);
  border-radius: var(--card-radius);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent);
}

.trust h2 {
  font-size: 13px;
  margin-bottom: 12px;
  color: var(--accent);
}

.trust p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.trust ul {
  list-style: none;
  margin-bottom: 16px;
}

.trust li {
  font-size: 13px;
  color: var(--text-main);
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.trust li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.trust .support {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 13px;
}

.trust .support a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.trust .support a:hover {
  text-decoration: underline;
}

.trust .order-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
  padding: 12px;
  background: rgba(34, 211, 238, 0.05);
  border-radius: 10px;
  border: 1px dashed rgba(34, 211, 238, 0.2);
}

/* CARD / FORM */
.card {
  background: var(--bg-elevated);
  padding: 24px;
  border-radius: var(--card-radius);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 20px 70px rgba(15, 23, 42, 1), 0 0 40px rgba(56, 189, 248, 0.1);
}

label {
  display: block;
  margin-top: 16px;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 13px;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-main);
  font-size: 14px;
  transition: all 0.2s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.15);
}

input::placeholder, textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

textarea {
  min-height: 80px;
  resize: vertical;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

select option {
  background: var(--bg-elevated);
  color: var(--text-main);
}

button {
  margin-top: 20px;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: #0b1120;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(34, 211, 238, 0.3);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(34, 211, 238, 0.5);
}

button:active {
  transform: translateY(0);
}

.hidden {
  display: none !important;
}

.success {
  text-align: center;
  font-size: 15px;
  color: var(--accent);
  padding: 40px 20px;
}

.success::before {
  content: "✓";
  display: block;
  font-size: 48px;
  margin-bottom: 16px;
  color: var(--accent);
}

/* FOOTER */
.site-footer {
  margin-top: 40px;
  padding: 24px 20px;
  text-align: center;
  background: var(--bg-soft);
  border-radius: var(--card-radius);
  border: 1px solid var(--border-subtle);
}

.footer-title {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-main);
}

.footer-site {
  margin-bottom: 12px;
}

.footer-site a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}

.footer-site a:hover {
  text-decoration: underline;
}

.footer-counter {
  font-size: 12px;
  color: var(--text-muted);
}

/* DESKTOP */
@media (min-width: 768px) {
  .container {
    padding: 40px 24px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid img {
    height: 140px;
  }

  .card {
    padding: 32px;
  }
}

/* MOBILE */
@media (max-width: 480px) {
  .container {
    padding: 16px 12px 32px;
  }

  h2 {
    font-size: 16px;
  }

  .gallery {
    padding: 16px;
  }

  .trust {
    padding: 20px 16px;
  }

  .card {
    padding: 20px;
  }

  button {
    font-size: 13px;
    padding: 12px;
  }
}
