/* Angol Rékával - stylesheet */

:root {
  --bg: #FBF7EE;
  --text: #1E2A3A;
  --accent: #B3261E;
  --text-secondary: #4E5866;
  --rule: #D9E2EC;
  --surface: #FFFFFF;
  --font-heading: 'Literata', serif;
  --font-body: 'Atkinson Hyperlegible', sans-serif;
  --font-hand: 'Caveat', cursive;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

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

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  background: var(--text);
  color: var(--surface);
  padding: 8px 16px;
  z-index: 100;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
details:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Header & Nav */
header {
  border-bottom: 1px solid var(--rule);
  background-color: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
}

.nav-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.lang-toggle {
  font-weight: 700;
  color: var(--accent) !important;
}

/* Main layout with notebook column */
main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 96px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
}

@media (min-width: 800px) {
  main {
    grid-template-columns: 240px 1fr;
    gap: 40px;
  }
}

.notebook-margin {
  display: none;
  font-family: var(--font-hand);
  color: var(--text-secondary);
  font-size: 20px;
  line-height: 1.4;
  padding-top: 24px;
  border-right: 1px dashed var(--accent);
  padding-right: 24px;
}

@media (min-width: 800px) {
  .notebook-margin {
    display: block;
  }
}

.content-column {
  max-width: 720px;
}

/* Hero section */
.hero {
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 64px;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 31px,
    var(--rule) 31px,
    var(--rule) 32px
  );
  background-size: 100% 32px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--text);
  margin-top: 0;
  line-height: 1.3;
}

h1 {
  font-size: 36px;
  margin-bottom: 24px;
}

@media (min-width: 600px) {
  h1 {
    font-size: 44px;
  }
}

h2 {
  font-size: 28px;
  margin-top: 64px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
  display: inline-block;
}

h3 {
  font-size: 20px;
  margin-top: 24px;
  margin-bottom: 8px;
}

p {
  margin-top: 0;
  margin-bottom: 16px;
}

.lead {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Red pen correction motif */
.correction-box {
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  padding: 16px 24px;
  margin: 24px 0;
  border-radius: 4px;
}

.sentence-sample {
  font-family: var(--font-heading);
  font-size: 18px;
  margin-bottom: 8px;
}

.strike {
  color: var(--accent);
  text-decoration: line-through;
  text-decoration-color: var(--accent);
}

.correction-note {
  font-family: var(--font-hand);
  color: var(--accent);
  font-size: 22px;
}

/* Buttons and CTA */
.btn {
  display: inline-block;
  background-color: var(--accent);
  color: #FFFFFF;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16px;
  text-align: center;
}

.btn:hover {
  opacity: 0.9;
}

/* Tables / Prices */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.price-table th,
.price-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
}

.price-table th {
  background-color: var(--bg);
  font-family: var(--font-heading);
  font-weight: 700;
}

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

.price-val {
  font-weight: 700;
  white-space: nowrap;
  color: var(--text);
}

/* Lists and steps */
ol, ul {
  margin-top: 0;
  margin-bottom: 24px;
  padding-left: 24px;
}

li {
  margin-bottom: 8px;
}

.step-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.step-list li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 40px;
  margin-bottom: 16px;
}

.step-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  background-color: var(--accent);
  color: #FFFFFF;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

/* FAQ Details */
details {
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  margin-bottom: 16px;
  padding: 16px;
}

summary {
  font-family: var(--font-heading);
  font-weight: 700;
  cursor: pointer;
}

details[open] summary {
  margin-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
}

/* Form */
form {
  background-color: var(--surface);
  border: 1px solid var(--rule);
  padding: 24px;
  border-radius: 4px;
  margin-top: 24px;
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 16px;
  background-color: var(--bg);
  color: var(--text);
}

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

.form-note {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 12px;
}

/* Footer */
footer {
  border-top: 1px solid var(--rule);
  padding: 32px 24px;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  background-color: var(--bg);
}

.footer-container {
  max-width: 1120px;
  margin: 0 auto;
}

/* Review pass: notebook motif without a callout box */
.correction-box { background: none; border: 0; border-radius: 0; padding: 24px 0 8px; margin: 24px 0; }
.sentence-sample { font-size: clamp(28px, 5vw, 40px); line-height: 1.2; margin-bottom: 8px; }
.strike { text-decoration-thickness: 3px; color: inherit; }
.correction-note { font-size: 26px; transform: rotate(-2deg); transform-origin: left; }
.notebook-margin { position: sticky; top: 24px; align-self: start; }
.notebook-margin p { margin: 0 0 24px; }
.lang a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .correction-note { transform: none; } }
.skip-link { top: -100px; }
.skip-link:focus { top: 16px; }
.hero { background-image: none; }
.correction-box {
  background-image: repeating-linear-gradient(0deg, transparent 0, transparent 55px, var(--rule) 55px, var(--rule) 56px);
  background-size: 100% 56px;
  padding: 0;
}
.sentence-sample { line-height: 56px; margin: 0; }
.correction-note { line-height: 56px; }
main { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 800px) { main { grid-template-columns: 240px minmax(0, 1fr); } }
@media (max-width: 640px) {
  .nav-container { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; }
  .nav-links { flex-wrap: wrap; gap: 8px 16px; }
  main { padding: 24px 16px 64px; }
  h1 { font-size: 32px; line-height: 1.2; }
  .sentence-sample { font-size: 26px; }
  .correction-note { font-size: 22px; }
  .price-table thead { position: absolute; left: -9999px; }
  .price-table, .price-table tbody, .price-table tr, .price-table td { display: block; width: 100%; }
  .price-table tr { padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .price-table td { border: 0; padding: 0 0 4px; }
  .price-val { white-space: normal; font-weight: 700; }
}
