/* Odwyddw - main stylesheet (BEM, mobile-first, no motion) */

:root {
  --color-bg: #FFFDF8;
  --color-sand: #F7F1E6;
  --color-accent: #2E9E6B;
  --color-accent-dark: #247F56;
  --color-secondary: #F2994A;
  --color-heading: #222831;
  --color-text: #4A4F57;
  --color-border: #E8E2D6;
  --color-white: #FFFFFF;
  --color-error: #C0392B;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(34, 40, 49, 0.06);
  --container: 1180px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

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

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

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-accent);
}

a:hover {
  color: var(--color-accent-dark);
}

h1,
h2,
h3,
h4 {
  color: var(--color-heading);
  line-height: 1.25;
  margin: 0 0 16px;
  font-weight: 800;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.6rem;
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 16px;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--color-heading);
  color: var(--color-white);
  padding: 8px 14px;
  border-radius: var(--radius);
  z-index: 100;
}

.skip-link:focus {
  left: 8px;
}

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

/* ---------- Buttons ---------- */

.button {
  display: inline-block;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  line-height: 1.3;
}

.button--primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.button--primary:hover {
  background: var(--color-accent-dark);
  color: var(--color-white);
}

.button--secondary {
  background: var(--color-white);
  color: var(--color-heading);
  border-color: var(--color-border);
}

.button--secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.button--light {
  background: var(--color-white);
  color: var(--color-accent-dark);
}

.button--light:hover {
  background: var(--color-sand);
  color: var(--color-accent-dark);
}

.button--small {
  padding: 9px 16px;
  font-size: 0.92rem;
}

/* ---------- Header ---------- */

.header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.header__logo {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-heading);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.header__logo-mark {
  color: var(--color-accent);
}

.header__burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
}

.header__burger-line {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-heading);
}

.header__nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 20px 20px;
}

.header__nav--open {
  display: block;
}

.header__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.header__link {
  display: block;
  padding: 10px 4px;
  color: var(--color-heading);
  font-weight: 600;
  text-decoration: none;
}

.header__link:hover,
.header__link--active {
  color: var(--color-accent);
}

.header__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.header__phone {
  color: var(--color-heading);
  font-weight: 700;
  text-decoration: none;
}

/* ---------- Hero ---------- */

.hero {
  padding: 40px 0 48px;
  background: var(--color-bg);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-block;
  background: var(--color-sand);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 4px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-bottom: 16px;
}

.hero__title {
  font-size: 2.1rem;
}

.hero__lead {
  font-size: 1.1rem;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.hero__image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* ---------- Info bar ---------- */

.info-bar {
  background: var(--color-sand);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 24px 0;
}

.info-bar__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.info-bar__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
}

.info-bar__icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.info-bar__title {
  display: block;
  color: var(--color-heading);
  font-weight: 800;
}

.info-bar__text {
  font-size: 0.92rem;
}

/* ---------- Sections ---------- */

.section {
  padding: 56px 0;
}

.section--sand {
  background: var(--color-sand);
}

.section__header {
  max-width: 760px;
  margin-bottom: 32px;
}

.section__lead {
  font-size: 1.05rem;
}

/* ---------- Split (alternating image/text) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.split__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.split__image {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.split__list {
  padding-left: 20px;
  margin: 0 0 16px;
}

.split__list li {
  margin-bottom: 8px;
}

/* ---------- Table ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.table__head {
  background: var(--color-sand);
}

.table__cell {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.table__cell--head {
  color: var(--color-heading);
  font-weight: 800;
}

.table__note {
  font-size: 0.9rem;
  margin-top: 12px;
}

/* ---------- Steps ---------- */

.steps {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-secondary);
  color: var(--color-white);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.step__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.step__image {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

/* ---------- Tips ---------- */

.tips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.tips__item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.tips__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-secondary);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.tips__text {
  margin: 0;
}

/* ---------- FAQ ---------- */

.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
}

.faq__item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0 20px;
}

.faq__question {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 700;
  color: var(--color-heading);
}

.faq__answer {
  padding-bottom: 18px;
}

.faq__answer p {
  margin: 0;
}

/* ---------- CTA ---------- */

.cta {
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
}

.cta__title {
  color: var(--color-white);
}

.cta__text {
  max-width: 640px;
  margin: 0 auto 24px;
  color: #E9F7F0;
}

/* ---------- Page header (inner pages) ---------- */

.page-head {
  background: var(--color-sand);
  border-bottom: 1px solid var(--color-border);
  padding: 40px 0;
}

.page-head__title {
  margin-bottom: 12px;
}

.page-head__text {
  max-width: 760px;
  margin: 0;
}

/* ---------- Notice ---------- */

.notice {
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-secondary);
  background: #FFF6EC;
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--color-heading);
  font-size: 0.95rem;
}

.notice--spaced {
  margin-bottom: 24px;
}

.notice--success {
  border-left-color: var(--color-accent);
  background: #EEF8F2;
}

.notice__title {
  display: block;
  font-weight: 800;
  margin-bottom: 4px;
}

.notice__text {
  margin: 0;
}

/* ---------- Forms ---------- */

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

.form__section {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 0;
  min-width: 0;
}

.form__legend {
  font-weight: 800;
  color: var(--color-heading);
  font-size: 1.1rem;
  padding: 0 6px;
}

.form__hint {
  font-size: 0.9rem;
  margin: 4px 0 16px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.form__group {
  margin-top: 8px;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-field__label {
  font-weight: 700;
  color: var(--color-heading);
  font-size: 0.95rem;
}

.form-field__input,
.form-field__select,
.form-field__textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-heading);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.form-field__textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field__input:focus,
.form-field__select:focus,
.form-field__textarea:focus {
  border-color: var(--color-accent);
  outline: 2px solid rgba(46, 158, 107, 0.25);
}

.form-field__error {
  display: none;
  color: var(--color-error);
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0;
}

.form-field--invalid .form-field__input,
.form-field--invalid .form-field__select,
.form-field--invalid .form-field__textarea {
  border-color: var(--color-error);
  background: #FFF7F6;
}

.form-field--invalid .form-field__error {
  display: block;
}

.form-field--hidden {
  display: none;
}

.form-field__checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-field__checkbox {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--color-accent);
  flex: 0 0 20px;
}

/* Toggle (account type) */

.choice {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.choice__option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  cursor: pointer;
  font-weight: 700;
  color: var(--color-heading);
}

.choice__option--selected {
  border-color: var(--color-accent);
  background: #EEF8F2;
}

.choice__input {
  accent-color: var(--color-accent);
}

/* Amount cards */

.amounts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.amounts__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  cursor: pointer;
  text-align: center;
}

.amounts__card--selected {
  border: 2px solid var(--color-accent);
  background: #EEF8F2;
}

.amounts__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.amounts__input:focus-visible + .amounts__value {
  outline: 3px solid var(--color-secondary);
  outline-offset: 4px;
}

.amounts__value {
  font-weight: 800;
  color: var(--color-heading);
  font-size: 1.15rem;
}

.amounts__caption {
  font-size: 0.8rem;
}

/* Top-up layout */

.topup {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.summary {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.summary__title {
  font-size: 1.15rem;
}

.summary__list {
  margin: 0 0 16px;
}

.summary__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.summary__term {
  font-weight: 600;
}

.summary__value {
  margin: 0;
  color: var(--color-heading);
  font-weight: 700;
  text-align: right;
  word-break: break-word;
}

.summary__row--total {
  border-bottom: none;
  font-size: 1.1rem;
}

.summary__media {
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid var(--color-border);
}

.summary__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.result {
  display: none;
}

.result--visible {
  display: block;
}

/* ---------- Contact ---------- */

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

.contact__card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
}

.contact__list {
  margin: 0;
}

.contact__term {
  font-weight: 800;
  color: var(--color-heading);
  margin-top: 14px;
}

.contact__term:first-child {
  margin-top: 0;
}

.contact__detail {
  margin: 4px 0 0;
}

.contact__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-top: 20px;
}

.map {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-sand);
}

.map__frame {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

/* ---------- Legal article ---------- */

.article {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.article__meta {
  font-size: 0.9rem;
  color: var(--color-text);
  margin-bottom: 24px;
}

.article__toc {
  background: var(--color-sand);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
}

.article__toc-title {
  font-size: 1rem;
  margin-bottom: 8px;
}

.article__toc-list {
  margin: 0;
  padding-left: 20px;
}

.article__toc-list li {
  margin-bottom: 4px;
}

.article__section {
  margin-bottom: 32px;
}

.article__section h2 {
  font-size: 1.35rem;
}

.article__list {
  padding-left: 20px;
}

.article__list li {
  margin-bottom: 6px;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--color-sand);
  border-top: 1px solid var(--color-border);
  padding: 48px 0 24px;
  margin-top: 0;
}

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

.footer__logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-heading);
  text-decoration: none;
}

.footer__about {
  margin-top: 12px;
  font-size: 0.93rem;
}

.footer__title {
  font-size: 1rem;
  margin-bottom: 12px;
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__list li {
  margin-bottom: 8px;
}

.footer__link {
  color: var(--color-text);
  text-decoration: none;
}

.footer__link:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.footer__address {
  font-style: normal;
  font-size: 0.93rem;
}

.footer__bottom {
  border-top: 1px solid var(--color-border);
  margin-top: 32px;
  padding-top: 20px;
  font-size: 0.88rem;
}

/* ---------- Cookie consent ---------- */

.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  max-width: 360px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 4px 16px rgba(34, 40, 49, 0.1);
  font-size: 0.9rem;
}

.cookie--hidden {
  display: none;
}

.cookie__title {
  font-size: 1rem;
  margin-bottom: 6px;
}

.cookie__text {
  margin-bottom: 12px;
}

.cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Responsive ---------- */

@media (min-width: 600px) {
  .info-bar__list {
    grid-template-columns: repeat(3, 1fr);
  }

  .tips {
    grid-template-columns: repeat(2, 1fr);
  }

  .amounts {
    grid-template-columns: repeat(3, 1fr);
  }

  .form__row {
    grid-template-columns: repeat(2, 1fr);
  }

  .form__row--three {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  h1 {
    font-size: 2.6rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero {
    padding: 64px 0 72px;
  }

  .hero__grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
  }

  .hero__title {
    font-size: 2.8rem;
  }

  .hero__image {
    height: 460px;
  }

  .header__burger {
    display: none;
  }

  .header__nav {
    display: flex;
    align-items: center;
    gap: 28px;
    position: static;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .header__menu {
    flex-direction: row;
    gap: 24px;
  }

  .header__actions {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin-top: 0;
  }

  .section {
    padding: 80px 0;
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }

  .split--reverse .split__media {
    order: 2;
  }

  .split__image {
    height: 400px;
  }

  .step {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }

  .step--reverse .step__media {
    order: 2;
  }

  .step__image {
    height: 320px;
  }

  .tips {
    grid-template-columns: repeat(3, 1fr);
  }

  .amounts {
    grid-template-columns: repeat(5, 1fr);
  }

  .topup {
    grid-template-columns: 1.6fr 1fr;
  }

  .summary {
    position: sticky;
    top: 96px;
  }

  .contact {
    grid-template-columns: 1fr 1.3fr;
  }

  .footer__grid {
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  }

  .cta {
    padding: 56px 40px;
  }
}
