:root {
  --bg: #020617;
  --bg2: #0f172a;
  --accent: #d4a373;
  --txt: #e2e8f0;
  --muted: #94a3b8;
  --card-bg: rgba(30, 41, 59, 0.6);
  --card-border: rgba(255, 255, 255, 0.08);
}

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

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  padding: 16px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--txt);
  line-height: 1.6;
  background:
    radial-gradient(1600px 1000px at 15% 5%, rgba(212, 163, 115, 0.25), transparent 80%),
    radial-gradient(1600px 1000px at 80% 70%, rgba(0, 212, 255, 0.15), transparent 80%),
    linear-gradient(135deg, var(--bg), var(--bg2));
}

img {
  display: block;
}

a {
  color: inherit;
}

ul {
  margin: 0;
  padding-left: 20px;
}

main {
  display: block;
}

.center {
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 16px 32px;
  text-align: center;
}

.landing,
.service-page {
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 48px;
}

.hero-home {
  padding-top: 12px;
}

.logo-main {
  max-width: 128px;
  height: auto;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 8px rgba(212, 163, 115, 0.4));
}

.logo-header {
  height: 200px;
  width: auto;
  margin: 0 auto 40px;
  filter: drop-shadow(0 0 15px rgba(212, 163, 115, 0.4));
}

.title {
  margin: 0;
  color: var(--accent);
  font-size: clamp(32px, 5vw, 48px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.subtitle {
  color: var(--muted);
  margin-bottom: 40px;
}

.intro {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
  font-size: 19px;
}

.card-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.card {
  max-width: 760px;
  margin: 20px auto 0;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--card-border);
}

.card.big {
  width: 220px;
  padding: 40px;
  font-size: 20px;
  text-decoration: none;
  color: var(--txt);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card.big:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 0 25px rgba(212, 163, 115, 0.4);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.icon-button {
  width: 52px;
  min-width: 52px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: #111827;
  border: 1px solid transparent;
  box-shadow: 0 10px 30px rgba(212, 163, 115, 0.2);
}

.button-secondary {
  border: 1px solid var(--card-border);
  background: rgba(15, 23, 42, 0.45);
}

.button-primary:hover {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 25px rgba(212, 163, 115, 0.45);
}

.button-secondary:hover {
  border-color: var(--accent);
  background: rgba(30, 41, 59, 0.8);
  box-shadow: 0 0 25px rgba(212, 163, 115, 0.35);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-language-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: rgba(15, 23, 42, 0.45);
}

.lang-button {
  min-width: 48px;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.lang-button:hover,
.lang-button:focus-visible {
  outline: none;
  color: var(--txt);
  background: rgba(30, 41, 59, 0.75);
}

.lang-button-active,
.lang-button[aria-current="true"] {
  color: #111827;
  background: var(--accent);
  box-shadow: 0 10px 30px rgba(212, 163, 115, 0.18);
}

.language-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(12px);
}

.language-modal[hidden] {
  display: none;
}

.language-modal-card {
  width: min(520px, 100%);
  padding: 28px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--card-border);
  text-align: center;
  box-shadow: 0 25px 80px rgba(2, 6, 23, 0.45);
}

.language-modal-card h2 {
  margin-top: 0;
  margin-bottom: 12px;
}

.language-modal-card p {
  margin: 0;
  color: var(--muted);
}

.language-modal-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.action-row,
.nav-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4px 20px;
}

.hero {
  max-width: 760px;
  margin: 20px auto 0;
  text-align: center;
}

.service-hero {
  padding: 0 16px 8px;
}

.service-page > .card {
  max-width: 1040px;
}

.hero h1 {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: clamp(32px, 5vw, 44px);
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.feature-intro,
.trust-strip,
.highlight-card {
  text-align: center;
}

.feature-intro p,
.trust-strip p,
.highlight-card p {
  max-width: 700px;
  margin: 0 auto;
}

.highlight-card p {
  margin-bottom: 24px;
}

.about-preview {
  text-align: center;
}

.about-preview p {
  max-width: 760px;
  margin: 0 auto 16px;
}

.about-preview h2 {
  margin-bottom: 8px;
}

.about-preview .button {
  margin-top: 8px;
}

.contact-card {
  text-align: center;
}

.contact-card p {
  max-width: 760px;
  margin: 0 auto 20px;
}

.contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.contact-form {
  max-width: 760px;
  margin: 0 auto 24px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: rgba(15, 23, 42, 0.45);
  color: var(--txt);
  font: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
}

.contact-form textarea {
  min-height: 180px;
  margin-bottom: 16px;
  resize: vertical;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .button {
  min-width: 220px;
}

.form-status {
  margin: 16px 0 0;
  min-height: 24px;
  color: var(--muted);
  text-align: center;
}

.form-status.success {
  color: #b7f7c2;
}

.form-status.error {
  color: #ffb4b4;
}

.site-footer {
  margin-top: 40px;
  padding: 32px 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(212, 163, 115, 0.18), transparent 35%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(9, 23, 47, 0.92));
  border: 1px solid var(--card-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
}

.footer-column h2 {
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 18px;
}

.footer-column p {
  margin: 0;
  color: var(--muted);
}

.footer-meta {
  margin-bottom: 10px;
}

.footer-meta strong {
  color: var(--txt);
}

.footer-column a {
  display: block;
  margin-bottom: 10px;
  color: var(--txt);
  text-decoration: none;
}

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

.audience-grid {
  align-items: stretch;
}

.audience-card {
  flex: 1 1 320px;
  max-width: 520px;
}

.audience-card p {
  margin-top: 0;
}

.audience-card ul {
  margin-top: 16px;
}

.audience-card .button {
  margin-top: 24px;
}

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

.steps {
  align-items: stretch;
}

.step-card,
.topic-card {
  height: 100%;
}

.info-card,
.step-card,
.topic-card,
.price-row {
  padding: 20px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid var(--card-border);
}

.info-card h3,
.step-card h3,
.topic-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--accent);
}

.info-card p,
.step-card p,
.topic-card p {
  margin: 0;
  color: var(--muted);
}

.topic-card .button {
  margin-top: 24px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(212, 163, 115, 0.18);
  color: var(--accent);
  font-weight: 700;
}

.pricing-card {
  max-width: 680px;
}

.price-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
}

.price-note {
  margin-top: 18px;
  color: var(--muted);
}

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

.service-page > .visual-panel {
  max-width: 1040px;
  margin-right: auto;
  margin-left: auto;
}

.visual-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--card-border);
  background:
    radial-gradient(circle at top right, rgba(212, 163, 115, 0.22), transparent 45%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.45));
}

.visual-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  filter: blur(8px);
}

.visual-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--accent);
  font-size: 28px;
  font-weight: 700;
}

.visual-card h3 {
  position: relative;
  z-index: 1;
  margin: 18px 0 10px;
  color: var(--txt);
}

.visual-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
}

.theme-linux .visual-icon,
.theme-linux .visual-note {
  color: #8bd450;
}

.theme-devices .visual-icon,
.theme-devices .visual-note {
  color: #7dd3fc;
}

.theme-smart-home .visual-icon,
.theme-smart-home .visual-note {
  color: #f9c74f;
}

.theme-cloud .visual-icon,
.theme-cloud .visual-note {
  color: #60a5fa;
}

.theme-processes .visual-icon,
.theme-processes .visual-note {
  color: #34d399;
}

.theme-web .visual-icon,
.theme-web .visual-note {
  color: #f472b6;
}

.visual-note {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  body {
    padding: 12px;
  }

  header {
    flex-direction: column;
    padding: 12px 8px;
  }

  .logo-main {
    max-width: 120px;
    margin-bottom: 0;
  }

  .logo-header {
    height: auto;
    max-width: min(260px, 70vw);
  }

  .card.big {
    width: 100%;
    max-width: 320px;
    padding: 28px;
  }

  .button,
  .nav-actions {
    width: 100%;
  }

  .header-tools {
    width: 100%;
    flex-direction: column;
  }

  .language-switcher {
    width: 100%;
    justify-content: center;
  }

  .lang-button {
    flex: 1 1 0;
  }

  .hero {
    margin-top: 32px;
  }

  .intro {
    font-size: 17px;
  }

  .info-grid,
  .steps,
  .topic-grid,
  .visual-panel {
    grid-template-columns: 1fr;
  }

  .price-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1040px) {
  .service-page > .card {
    max-width: 760px;
  }

  .service-page > .visual-panel {
    max-width: 760px;
  }

  .info-grid,
  .steps,
  .topic-grid,
  .visual-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
