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

:root {
  --color-primary: #db2777;
  --color-secondary: #9d174d;
  --color-accent: #fbcfe8;
  --color-bg: #fffbfd;
  --color-surface: #fef1f7;
  --color-text: #500724;
  --color-text-muted: #9b6b80;
  --color-border: #e8c8d8;
  --font-main: 'Verdana', 'Geneva', 'Tahoma', sans-serif;
  --max-width: 1100px;
  --radius: 20px;
  --shadow-sm: 0 2px 8px rgba(219, 39, 119, 0.08);
  --shadow-md: 0 4px 16px rgba(219, 39, 119, 0.12);
  --shadow-lg: 0 8px 32px rgba(219, 39, 119, 0.16);
  --shadow-xl: 0 12px 48px rgba(219, 39, 119, 0.2);
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: linear-gradient(135deg, var(--color-bg) 0%, #fff5f9 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-secondary);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 2rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
}

h4 {
  font-size: 1.25rem;
  margin-top: 1.25rem;
}

h5 {
  font-size: 1.125rem;
  margin-top: 1rem;
}

h6 {
  font-size: 1rem;
  margin-top: 1rem;
}

p {
  margin-bottom: 1.25rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
  border-radius: 4px;
  position: relative;
}

a:hover {
  color: var(--color-secondary);
}

a:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

strong {
  font-weight: 700;
  color: var(--color-secondary);
}

em {
  font-style: italic;
  color: var(--color-text-muted);
}

::selection {
  background: var(--color-accent);
  color: var(--color-secondary);
}

.site-header {
  background: linear-gradient(180deg, var(--color-surface) 0%, rgba(254, 241, 247, 0.8) 100%);
  border-bottom: 2px solid var(--color-border);
  padding: 1.5rem 1rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.site-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-nav a {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(219, 39, 119, 0.05) 0%, rgba(157, 23, 77, 0.05) 100%);
  transition: all 0.2s ease;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.site-nav a:hover {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.site-main {
  max-width: var(--max-width);
  margin: 3rem auto;
  padding: 0 1rem;
  display: grid;
  gap: 2rem;
}

.site-footer {
  background: linear-gradient(180deg, rgba(254, 241, 247, 0.8) 0%, var(--color-surface) 100%);
  border-top: 2px solid var(--color-border);
  padding: 3rem 1rem 2rem;
  margin-top: 5rem;
  box-shadow: 0 -4px 16px rgba(219, 39, 119, 0.08);
}

.site-footer .container {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  color: var(--color-text-muted);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.breadcrumbs {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  background: var(--color-surface);
  transition: all 0.2s ease;
}

.breadcrumbs a:hover {
  background: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card:hover::before {
  opacity: 1;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

table thead {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
}

table th {
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.2s ease;
}

table tbody tr:nth-child(even) {
  background: var(--color-surface);
}

table tbody tr:hover {
  background: var(--color-accent);
  cursor: pointer;
}

table tbody tr:last-child td {
  border-bottom: none;
}

details {
  background: white;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

details:hover {
  box-shadow: var(--shadow-md);
}

details[open] {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-secondary);
  padding: 0.5rem;
  border-radius: 12px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: '▶';
  display: inline-block;
  transition: transform 0.2s ease;
  color: var(--color-primary);
  font-size: 0.8rem;
}

details[open] summary::before {
  transform: rotate(90deg);
}

summary:hover {
  background: var(--color-surface);
  color: var(--color-primary);
}

details[open] summary {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-accent);
}

blockquote {
  border-left: 5px solid var(--color-primary);
  background: linear-gradient(135deg, var(--color-surface) 0%, rgba(251, 207, 232, 0.3) 100%);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--color-text-muted);
  box-shadow: var(--shadow-sm);
  position: relative;
}

blockquote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 15px;
  font-size: 4rem;
  color: var(--color-accent);
  font-family: Georgia, serif;
  line-height: 1;
}

blockquote p:last-child {
  margin-bottom: 0;
}

button, 
input[type="submit"],
input[type="button"] {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  border: none;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-md);
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

button:active,
input[type="submit"]:active,
input[type="button"]:active {
  transform: translateY(0);
}

button:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--color-text);
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

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

@media (min-width: 768px) {
  body {
    font-size: 17px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  h3 {
    font-size: 1.75rem;
  }

  .site-header {
    padding: 2rem 1.5rem;
  }

  .site-nav {
    gap: 2.5rem;
  }

  .site-main {
    margin: 4rem auto;
    padding: 0 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .card {
    padding: 2.5rem;
  }

  .container {
    padding: 0 2rem;
  }

  table th,
  table td {
    padding: 1.5rem 2rem;
  }
}

@media (min-width: 1024px) {
  body {
    font-size: 18px;
  }

  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  h3 {
    font-size: 2rem;
  }

  .site-main {
    margin: 5rem auto;
    gap: 3rem;
  }

  .card {
    padding: 3rem;
  }

  .site-footer {
    padding: 4rem 2rem 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-nav,
  .site-footer,
  .breadcrumbs {
    display: none;
  }

  .site-main {
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  .card {
    box-shadow: none;
    page-break-inside: avoid;
  }

  a {
    text-decoration: underline;
  }

  body {
    background: white;
  }
}