/* 
 * domain - Buchhaltungsdienste für Deutschland
 * Hauptstil-Datei
 */

/* ======= VARIABLEN ======= */
:root {
  --c-bg: #0F1115;            /* ugolno-grafitoviy, fond vsego sayta */
  --c-text: #EAEAF2;          /* teplyy svetlyy text */
  --c-primary: #8A2BE2;       /* electric violet (akcent, knopki) */
  --c-accent: #00E5A8;        /* neon lime-myata dlya hover i checkboxov */
  --c-warm: #FFDCA8;          /* pastelno-abrikosovyy dlya "podushek" */
  --c-muted: #7A7F89;         /* vtorichniy text/ikonki */
  --c-border: #232735;        /* ramki/deliteli */
  --g-hero: linear-gradient(135deg, #8A2BE2 0%, #00E5A8 100%);
  --g-card: linear-gradient(180deg, rgba(255,220,168,.22), rgba(255,220,168,0));
  
  --container-padding: clamp(1rem, 5vw, 3rem);
  --radius-lg: clamp(20px, 2vw, 28px);
  --radius-md: clamp(12px, 1vw, 18px);
  --radius-sm: 8px;
  
  --space-xs: 0.5rem;
  --space-sm: clamp(0.75rem, 1vw, 1rem);
  --space-md: clamp(1rem, 3vw, 2rem);
  --space-lg: clamp(2rem, 5vw, 4rem);
  --space-xl: clamp(3rem, 8vw, 6rem);
  
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.2);
  --shadow-btn: 0 4px 12px rgba(138, 43, 226, 0.3);
}

/* ======= RESET & BASICS ======= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  font-size: 16px;
}

body {
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--c-accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover, a:focus {
  color: var(--c-primary);
}

a:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

button, .btn {
  cursor: pointer;
  background: var(--c-primary);
  color: var(--c-text);
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  text-align: center;
  display: inline-block;
  box-shadow: var(--shadow-btn);
}

button:hover, .btn:hover {
  background-color: var(--c-accent);
  transform: translateY(-2px);
}

button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
}

h1, h2, h3, h4, h5 {
  margin: 0 0 var(--space-md);
  line-height: 1.2;
  font-weight: 800;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

p {
  margin-bottom: var(--space-md);
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

section {
  padding: var(--space-xl) 0;
  position: relative;
}

.text-center {
  text-align: center;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-lg);
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--c-accent);
  margin: var(--space-sm) auto 0;
}

/* ======= HEADER & NAVIGATION ======= */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 17, 21, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  height: 80px;
}

.logo {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--c-text);
  text-transform: lowercase;
}

.logo a {
  color: inherit;
  text-decoration: none;
}

.nav-desktop {
  display: none;
}

.nav-list {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.nav-link {
  color: var(--c-text);
  font-weight: 500;
}

.nav-link:hover {
  color: var(--c-accent);
}

.nav-link.active {
  color: var(--c-accent);
}

.mobile-menu-toggle {
  display: flex;
  background: transparent;
  border: none;
  color: var(--c-text);
  font-size: 1rem;
  padding: var(--space-xs);
  box-shadow: none;
}

.mobile-menu-toggle:hover {
  background: transparent;
  color: var(--c-accent);
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--c-bg);
  z-index: 1000;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mobile-nav-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: transparent;
  font-size: 1.25rem;
  box-shadow: none;
}

.mobile-nav-list {
  list-style: none;
  text-align: center;
}

.mobile-nav-item {
  margin-bottom: var(--space-md);
}

.mobile-nav-link {
  color: var(--c-text);
  font-size: 1.5rem;
  font-weight: 600;
}

.mobile-nav-link:hover {
  color: var(--c-accent);
}

/* ======= HERO SECTION ======= */
.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--g-hero);
  opacity: 0.15;
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4rem);
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  margin-bottom: var(--space-lg);
  color: var(--c-text);
  opacity: 0.8;
}

.cta-button {
  font-size: 1.125rem;
  padding: 1rem 2rem;
  background: var(--c-primary);
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ======= TRUST SECTION ======= */
.trust {
  background: rgba(255, 220, 168, 0.05);
  padding: var(--space-lg) 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.trust-number {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--c-accent);
  margin-bottom: var(--space-xs);
}

.trust-label {
  color: var(--c-text);
  font-weight: 500;
}

/* ======= SERVICES SECTION ======= */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.service-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--g-card);
  border: 1px solid var(--c-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  box-shadow: var(--shadow-card);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-content {
  padding: var(--space-md);
}

.service-title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: var(--space-sm);
}

/* ======= ADVANTAGES SECTION ======= */
.advantages {
  background: rgba(255, 220, 168, 0.03);
}

.advantages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.advantage-item {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  border: 1px solid var(--c-border);
  transition: transform 0.3s ease;
}

.advantage-item:hover {
  transform: translateY(-4px);
}

.advantage-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
  color: var(--c-accent);
}

/* ======= PRICING SECTION ======= */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.price-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--c-border);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.price-card.featured {
  border: 1px solid var(--c-accent);
}

.price-card.featured::before {
  content: "Beliebt";
  position: absolute;
  top: 1.5rem;
  right: -2.5rem;
  background: var(--c-accent);
  color: var(--c-bg);
  padding: 0.25rem 3rem;
  font-size: 0.875rem;
  font-weight: 600;
  transform: rotate(45deg);
}

.price-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.price-amount {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 800;
  color: var(--c-accent);
  margin-bottom: var(--space-md);
}

.price-period {
  font-size: 0.875rem;
  color: var(--c-muted);
  display: block;
  margin-top: var(--space-xs);
}

.price-features {
  list-style: none;
  margin-bottom: var(--space-lg);
}

.price-feature {
  margin-bottom: var(--space-sm);
  position: relative;
  padding-left: 1.5rem;
}

.price-feature::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--c-accent);
}

/* ======= PROCESS SECTION ======= */
.process {
  background: rgba(255, 220, 168, 0.03);
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.process-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.process-number {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-primary);
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: var(--space-md);
}

.process-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

/* ======= ABOUT US SECTION ======= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
}

/* ======= FAQ SECTION ======= */
.faq-list {
  list-style: none;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--c-border);
  padding-bottom: var(--space-md);
}

.faq-question {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--c-accent);
  display: block;
}

.faq-answer {
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* ======= CONTACT SECTION ======= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.contact-form {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
}

.form-group {
  margin-bottom: var(--space-md);
}

label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

input, textarea {
  width: 100%;
  padding: var(--space-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  color: var(--c-text);
  font-size: 1rem;
}

select {
  width: 100%;
  padding: var(--space-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  color: var(--c-text);
  font-size: 1rem;
  appearance: auto;
}

select option {
  background-color: var(--c-bg);
  color: var(--c-text);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--c-accent);
  outline: none;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.checkbox-input {
  width: 20px;
  height: 20px;
  margin-right: var(--space-sm);
  accent-color: var(--c-accent);
  flex-shrink: 0;
}

.checkbox-label {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.contact-info {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
}

.contact-item {
  margin-bottom: var(--space-md);
  display: flex;
  align-items: flex-start;
}

.contact-label {
  font-weight: 600;
  color: var(--c-accent);
  width: 100px;
  flex-shrink: 0;
}

.error-message {
  color: #ff6b6b;
  font-size: 0.875rem;
  margin-top: var(--space-xs);
}

/* ======= FOOTER ======= */
.footer {
  background: rgba(255, 220, 168, 0.04);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--c-border);
  padding: var(--space-xl) 0 var(--space-lg);
  margin-top: var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.footer-logo {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--c-text);
  margin-bottom: var(--space-md);
}

.footer-links-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  color: var(--c-accent);
}

.footer-links {
  list-style: none;
}

.footer-link {
  margin-bottom: var(--space-xs);
}

.footer-link a {
  color: var(--c-text);
}

.footer-link a:hover {
  color: var(--c-accent);
}

.copyright {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--c-border);
  margin-top: var(--space-lg);
  color: var(--c-muted);
  font-size: 0.875rem;
}

/* ======= POLICY PAGES ======= */
.policy-frame {
  max-width: 880px;
  margin: var(--space-xl) auto;
  background: var(--g-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.policy-title {
  font-size: clamp(2rem, 5vw, 2.5rem);
  margin-bottom: var(--space-lg);
}

.policy-section {
  margin-bottom: var(--space-lg);
}

.policy-section-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

/* ======= COOKIE BANNER ======= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 17, 21, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--c-border);
  padding: var(--space-md);
  z-index: 1000;
}

.cookie-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-text {
  margin-bottom: 0;
  text-align: center;
}

.cookie-buttons {
  display: flex;
  gap: var(--space-md);
}

.is-hidden {
  display: none;
}

/* ======= ANIMATIONS ======= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ======= MEDIA QUERIES ======= */
@media (min-width: 600px) {
  .services-grid,
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid,
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cookie-content {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .cookie-text {
    text-align: left;
    margin-right: var(--space-md);
  }
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: block;
  }
  
  .mobile-menu-toggle {
    display: none;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .advantages-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
  
  .process-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 30px;
    right: -50px;
    width: 100px;
    height: 2px;
    background: var(--c-border);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
