/* GarageOS public site — стиль в духе лендинга автосервиса (светлый, акцентный) */
:root {
  --color-bg: #f6f7f9;
  --color-surface: #ffffff;
  --color-text: #1c2430;
  --color-muted: #5c6773;
  --color-accent: #d35400;
  --color-accent-hover: #b84700;
  --color-dark: #1a2332;
  --color-border: #e2e6ea;
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 8px;
  --shadow: 0 8px 30px rgba(26, 35, 50, 0.08);
  --max-width: 1100px;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--color-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  opacity: 0.9;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #fff;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--color-dark) 0%, #2c3e50 100%);
  color: #fff;
  padding: 4rem 0 5rem;
  text-align: center;
}

.hero__badge {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.75;
  margin-bottom: 0.75rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
}

.hero__lead {
  margin: 0 auto 2rem;
  max-width: 36rem;
  font-size: 1.1rem;
  opacity: 0.92;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  text-decoration: none;
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: #fff;
}

.btn--dark {
  background: var(--color-dark);
  color: #fff;
}

.btn--dark:hover {
  background: #243044;
  text-decoration: none;
  color: #fff;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section--surface {
  background: var(--color-surface);
}

.section__title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  text-align: center;
}

.section__subtitle {
  margin: 0 auto 2.5rem;
  max-width: 32rem;
  text-align: center;
  color: var(--color-muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Form page */
.page-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  max-width: 520px;
  margin: 2rem auto 3rem;
}

.page-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.6rem;
}

.page-card__lead {
  margin: 0 0 1.5rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.form-field input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
}

.form-field input:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}

.form-field .helptext {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.form-field .errorlist {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
}

.form-field--turnstile {
  margin-top: 0.25rem;
}
  color: #c0392b;
  font-size: 0.85rem;
}

.form-errors {
  background: #fdecea;
  border: 1px solid #f5c6cb;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  color: #922b21;
  font-size: 0.9rem;
}

.form-errors ul {
  margin: 0;
  padding-left: 1.2rem;
}

.domain-preview {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
}

.domain-preview strong {
  color: var(--color-text);
}

.success-box {
  background: #eafaf1;
  border: 1px solid #abebc6;
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.success-box p {
  margin: 0.35rem 0;
}

.success-box a {
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 2rem 0;
  margin-top: auto;
  font-size: 0.9rem;
  text-align: center;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

@media (max-width: 600px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 2.5rem 0 3rem;
  }

  .page-card {
    padding: 1.25rem;
    margin-inline: 0;
  }
}
