/* Light premium landing — English tutor C2 */

:root {
  --bg: #f8f6f3;
  --bg-alt: #f0ede8;
  --surface: #ffffff;
  --surface-hover: #faf9f7;

  --text: #1a1a18;
  --text-muted: #5c5c58;
  --text-dim: #8c8c88;

  --accent: #c9a227;
  --accent-hover: #b8921f;
  --accent-dim: rgba(201, 162, 39, 0.12);
  --accent-border: rgba(201, 162, 39, 0.35);

  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.12);

  --radius: 999px;
  --radius-sm: 14px;
  --radius-md: 20px;

  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --width: 1100px;
  --pad: clamp(20px, 5vw, 40px);
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.skip-link {
  position: absolute;
  left: var(--pad);
  top: 12px;
  z-index: 999;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 246, 243, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  max-width: var(--width);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand__name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand__tag {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  border-radius: var(--radius-sm);
}
.nav__toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.nav__toggleLine {
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav__link:hover {
  color: var(--text);
  background: var(--accent-dim);
}
.nav__link--cta {
  margin-left: 8px;
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.25);
}
.nav__link--cta:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 80px var(--pad) 100px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201, 162, 39, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(201, 162, 39, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: var(--width);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.9fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero__content {
  min-width: 0;
}

.hero__photo {
  position: relative;
  justify-self: end;
}

.hero__photo::before {
  content: "";
  position: absolute;
  inset: -12px;
  background: linear-gradient(135deg, var(--accent-dim) 0%, transparent 60%);
  border-radius: 28px;
  z-index: -1;
}

.hero__photo img {
  width: 100%;
  max-width: 400px;
  height: auto;
  aspect-ratio: 682/1024;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(201, 162, 39, 0.12);
}

.hero__label {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__title {
  margin: 0 0 24px;
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hero__title em {
  font-style: italic;
  color: var(--accent);
}

.hero__subtitle {
  margin: 0 0 36px;
  max-width: 42ch;
  font-size: 18px;
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.3);
}
.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.35);
}

.btn--outline {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--outline:hover {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-dim);
}

.btn--block {
  width: 100%;
}

.hero__meta {
  font-size: 14px;
  color: var(--text-dim);
}
.hero__metaDot {
  margin: 0 8px;
  opacity: 0.5;
}

/* Section divider */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px var(--pad);
  max-width: var(--width);
  margin: 0 auto;
}

.section-divider__line {
  flex: 1;
  max-width: 180px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong));
}

.section-divider__line:last-of-type {
  background: linear-gradient(90deg, var(--border-strong), transparent);
}

.section-divider__accent {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}

/* Sections */
.section {
  padding: 100px var(--pad);
}
.section--alt {
  background: var(--bg-alt);
}

.section__inner {
  max-width: var(--width);
  margin: 0 auto;
}

.section__head {
  margin-bottom: 48px;
  max-width: 36ch;
}
.section__title {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.section__subtitle {
  margin: 0;
  font-size: 17px;
  color: var(--text-muted);
}

/* About */
.about__top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}

.about__photo {
  position: relative;
}

.about__photo::before {
  content: "";
  position: absolute;
  inset: -12px;
  background: linear-gradient(135deg, var(--accent-dim) 0%, transparent 60%);
  border-radius: 28px;
  z-index: -1;
}

.about__photo img {
  width: 100%;
  max-width: 280px;
  height: auto;
  aspect-ratio: 1986/2048;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(201, 162, 39, 0.12);
}

.about__head {
  margin-bottom: 0;
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about__card {
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.about__card:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.about__cardTitle {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
}
.about__cardText {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* Format */
.format__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.format__block {
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.format__blockTitle {
  margin: 0 0 24px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
}

.format__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.format__steps li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 15px;
  color: var(--text-muted);
}

.format__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  border-radius: 10px;
}

.format__list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.format__list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--text-muted);
}
.format__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.format__hint {
  margin: 0;
  font-size: 14px;
  color: var(--text-dim);
}

/* Prices */
.prices__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.price {
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.price:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.price--featured {
  border-color: var(--accent-border);
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.06) 0%, var(--surface) 100%);
  box-shadow: 0 4px 24px rgba(201, 162, 39, 0.12);
}

.price__badge {
  display: inline-block;
  width: fit-content;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  border-radius: var(--radius);
}

.price__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
}

.price__value {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

.price__text {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
  flex-grow: 1;
}

.prices__note {
  margin: 0;
  font-size: 14px;
  color: var(--text-dim);
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.faq__item:hover {
  border-color: var(--accent-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(201, 162, 39, 0.1);
  transform: translateY(-2px);
}
.faq__item:active {
  transform: translateY(0);
  transition-duration: 0.1s;
}
details[open] .faq__item {
  border-color: var(--accent-border);
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.12);
}

.faq__q {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.2s ease;
}
.faq__item:hover .faq__q {
  color: var(--text);
}
.faq__q::-webkit-details-marker {
  display: none;
}
.faq__q::after {
  content: "+";
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 22px;
  font-weight: 300;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 50%;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.faq__item:hover .faq__q::after {
  background: var(--accent);
  color: #fff;
}
details[open] .faq__q::after {
  transform: rotate(45deg);
  background: var(--accent);
  color: #fff;
}

.faq__a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
details[open] .faq__a-wrap {
  grid-template-rows: 1fr;
}

.faq__a {
  overflow: hidden;
  padding: 0 24px 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* Form & Contact */
.contact__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  align-items: center;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.form__input {
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form__input::placeholder {
  color: var(--text-dim);
}
.form__input:focus {
  outline: none;
  border-color: var(--accent-border);
  background: var(--surface-hover);
}

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

.form__note {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
}

.form__success {
  padding: 14px 18px;
  background: rgba(76, 175, 80, 0.12);
  border: 1px solid rgba(76, 175, 80, 0.25);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
}

.form__error {
  padding: 14px 18px;
  background: rgba(211, 47, 47, 0.1);
  border: 1px solid rgba(211, 47, 47, 0.25);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
}

.contact__form {
  position: relative;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(201, 162, 39, 0.08);
}

.contact__form::before {
  content: "";
  position: absolute;
  inset: -12px;
  background: linear-gradient(135deg, var(--accent-dim) 0%, transparent 60%);
  border-radius: 28px;
  z-index: -1;
}

.contact__photo {
  position: relative;
  justify-self: center;
  max-width: 320px;
}

.contact__photo::before {
  content: "";
  position: absolute;
  inset: -12px;
  background: linear-gradient(135deg, var(--accent-dim) 0%, transparent 60%);
  border-radius: 28px;
  z-index: -1;
}

.contact__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 682/1024;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(201, 162, 39, 0.12);
}

/* Footer */
.footer {
  padding: 48px var(--pad);
  border-top: 1px solid var(--border);
}

.footer__inner {
  max-width: var(--width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__brand {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
}

.footer__tag {
  font-size: 14px;
  color: var(--text-muted);
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.footer__link:hover {
  color: var(--accent);
}

.footer__link--tg .footer__icon {
  color: #0088cc;
}
.footer__link--tg:hover .footer__icon {
  color: var(--accent);
}

.footer__icon {
  flex-shrink: 0;
}

.footer__top {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.footer__top:hover {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: var(--accent-border);
}

/* Responsive */
@media (max-width: 900px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 85vw);
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    padding: 40px 24px;
    background: var(--surface);
    border-left: 1px solid var(--border);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav__menu.is-open {
    transform: translateX(0);
  }

  .nav__link {
    padding: 16px;
    font-size: 16px;
  }
  .nav__link--cta {
    margin-left: 0;
    margin-top: 16px;
  }

  .about__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about__photo {
    justify-self: center;
  }

  .about__photo img {
    max-width: 240px;
  }

  .about__grid,
  .prices__grid {
    grid-template-columns: 1fr;
  }

  .format__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .contact__photo {
    order: -1;
    max-width: 280px;
  }
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__photo {
    justify-self: center;
    order: -1;
  }

  .hero__photo img {
    max-width: 280px;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: auto;
    padding: 60px var(--pad) 80px;
  }

  .hero__photo img {
    max-width: 240px;
  }

  .hero__actions {
    flex-direction: column;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
