/* Budget tech and affordable gadgets — gadgets under 50
   палитра: земляная | стиль: умеренный | код: префикс-двухбуквенный
   Базовый слой сгенерирован автоматически. Секционные раскладки — ниже. */
:root {
  --color-bg: #faf7f2;
  --color-text: #221f19;
  --color-muted: #6a6154;
  --color-accent: #5f6d2f;
  --color-surface: #eeeade;
  --color-on-accent: #ffffff;

  --font-heading: 'Josefin Sans', Georgia, serif;
  --font-body: 'Mulish', system-ui, sans-serif;

  --radius: 14px;
  --shadow: 0 2px 8px rgb(0 0 0 / .06);
  --container: 72rem;
}

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

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  overflow-x: hidden;
}

/* .swiper-pagination (vendor) всегда z-index:10 и растянута на всю ширину —
   кнопки листания не должны оказаться под ней, с каким бы z-index их ни
   поставила секционная раскладка. */
[data-slider-prev], [data-slider-next] { z-index: 20 !important; }

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.3vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
p  { font-size: clamp(1rem, 1.1vw, 1.125rem); margin: 0 0 1.1em; max-width: 68ch; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); }

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

.ct-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
  overflow-x: hidden;
}

section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
section:nth-of-type(even) { background: var(--color-surface); }

.ct-section__eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: .6rem;
}

/* шапка */
.ct-header {
  position: sticky; top: 0; z-index: 1030;
  background: var(--color-bg);
  border-bottom: 1px solid color-mix(in srgb, var(--color-muted) 22%, transparent);
}
.ct-header--transparent { background: transparent; border-bottom-color: transparent; }
.ct-header__inner { display: flex; align-items: center; gap: 1.5rem; padding-block: .9rem; }
.ct-header__brand { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem;
  color: var(--color-text); text-decoration: none; margin-right: auto; }
.ct-nav__list { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.ct-nav__link { display: block; padding: .5rem .9rem; border-radius: var(--radius);
  color: var(--color-text); text-decoration: none; font-weight: 500;
  transition: background .2s ease, color .2s ease; }
.ct-nav__link:hover { background: var(--color-surface); }
.ct-nav__link.active-active { color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 12%, transparent); }
.ct-nav--split { display: flex; align-items: center; gap: 2rem; width: 100%;
  justify-content: center; }
.ct-header__burger { display: none; flex-direction: column; gap: 4px; padding: .6rem;
  background: none; border: 0; cursor: pointer; }
.ct-header__burger span { width: 22px; height: 2px; background: var(--color-text); }

/* кнопки */
.ct-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.ct-btn--primary { background: var(--color-accent); color: var(--color-on-accent); }
.ct-btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ct-btn--ghost { background: transparent; color: var(--color-accent); border-color: var(--color-accent); }
.ct-btn--ghost:hover { background: var(--color-accent); color: var(--color-on-accent); }

/* формы */
.ct-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.ct-form input, .ct-form textarea {
  width: 100%; padding: .8rem 1rem; margin-bottom: 1rem;
  border: 1px solid color-mix(in srgb, var(--color-muted) 35%, transparent);
  border-radius: var(--radius); background: var(--color-bg); color: var(--color-text); font: inherit;
}
.ct-form input:focus, .ct-form textarea:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.ct-form [aria-invalid="true"] { border-color: #c62828; }
.ct-form__error { color: #c62828; font-size: .85rem; margin: -.7rem 0 .9rem; }
.ct-form__ok { background: color-mix(in srgb, var(--color-accent) 12%, transparent);
  border-radius: var(--radius); padding: 1rem; font-weight: 600; }
.ct-form__consent { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.ct-form__consent input { width: auto; margin: .25rem 0 0; }

/* плашка cookie */
.ct-cookie {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 1080;
  background: var(--color-surface);
  border-top: 1px solid color-mix(in srgb, var(--color-muted) 30%, transparent);
  box-shadow: 0 -8px 30px rgb(0 0 0 / .12);
  transform: translateY(100%); transition: transform .35s ease;
}
.ct-cookie.visible-active { transform: translateY(0); }
.ct-cookie__inner { display: flex; align-items: center; gap: 1.5rem; padding-block: 1.1rem; }
.ct-cookie__text p { margin: 0; font-size: .92rem; max-width: 70ch; }
.ct-cookie__actions { display: flex; align-items: center; gap: .7rem; margin-left: auto; flex-shrink: 0; }
.ct-cookie__configure { background: none; border: 0; color: var(--color-accent);
  font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.ct-cookie__options { display: grid; gap: .6rem; margin-top: 1rem; }
.ct-cookie__option { display: grid; grid-template-columns: auto 1fr; gap: .5rem .6rem;
  align-items: start; font-size: .9rem; font-weight: 600; }
.ct-cookie__option span { grid-column: 2; font-weight: 400; opacity: .75; }

/* футер */
.ct-footer { background: var(--color-surface); }
.ct-footer--contrast { background: var(--color-text); color: var(--color-bg); }
.ct-footer--contrast a { color: inherit; }
.ct-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem;
  padding-block: clamp(2.5rem, 5vw, 4rem); }
.ct-footer__row { display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 1rem; padding-block: 1.6rem; font-size: .9rem; }
.ct-footer__brand { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; margin: 0 0 .4rem; }
.ct-footer__tagline { opacity: .75; font-size: .95rem; }
.ct-footer__title { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  opacity: .7; margin-bottom: .9rem; }
.ct-footer__address { font-style: normal; line-height: 1.7; }
.ct-footer__hours { opacity: .75; font-size: .92rem; margin-top: .7rem; }
.ct-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.ct-footer__cookie { background: none; border: 0; padding: 0; color: inherit;
  text-decoration: underline; cursor: pointer; font: inherit; }
.ct-footer__bottom { display: flex; justify-content: space-between; gap: 1rem;
  padding-block: 1.2rem; font-size: .85rem; opacity: .75;
  border-top: 1px solid color-mix(in srgb, var(--color-muted) 25%, transparent); }
.ct-footer__bottom p { margin: 0; }

/* правовые страницы */
.ct-legal { background: var(--color-bg); }
.ct-legal__inner { max-width: 52rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.ct-legal h2 { margin-top: 2.2rem; }
.ct-legal h3 { margin-top: 1.4rem; }
.ct-legal__updated { color: var(--color-muted); font-size: .9rem; }
.ct-legal__table { width: 100%; border-collapse: collapse; margin: 1.2rem 0 1.8rem; }
.ct-legal__table th, .ct-legal__table td { text-align: left; padding: .7rem .9rem;
  border-bottom: 1px solid color-mix(in srgb, var(--color-muted) 25%, transparent); vertical-align: top; }
.ct-legal__table th { width: 34%; font-weight: 600; }
.ct-legal__back { margin-top: 2.5rem; }
/* анимации: без JS всё видно */
[data-aos]:not(.aos-init) { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 991px) {
  .ct-footer__inner { grid-template-columns: 1fr 1fr; }
  .ct-cookie__inner { flex-direction: column; align-items: stretch; }
  .ct-cookie__actions { margin-left: 0; flex-wrap: wrap; }
}

@media (max-width: 767px) {
  .ct-header__burger { display: flex; }
  .ct-header__cta { display: none; }
  .ct-nav { display: none; width: 100%; }
  .ct-nav.open-active { display: block; }
  .ct-nav__list { flex-direction: column; padding-block: .6rem; }
  .ct-header__inner { flex-wrap: wrap; }
  .ct-footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .ct-footer__bottom, .ct-footer__row { flex-direction: column; }
  .ct-cookie__actions .ct-btn { flex: 1 1 auto; }
}

/* Секционные раскладки */
.ct-btn--secondary {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.ct-btn--secondary:hover {
  color: var(--color-on-accent);
  background: var(--color-accent);
  transform: translateY(-2px);
}
.ct-eyebrow,
.ct-section h2[id]::before {
  display: block;
  margin-bottom: .7rem;
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ct-section h2[id]::before { content: "Guía Esanramonrealestate"; }
.ct-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.9rem;
  border: 1px solid color-mix(in srgb, var(--color-muted) 28%, transparent);
  border-radius: var(--radius);
  background: var(--color-bg);
  box-shadow: var(--shadow);
}
.ct-card > .ct-btn,
.ct-plan > .ct-btn { margin-top: auto; }

/* Hero: imagen a toda altura y relato anclado abajo */
.ct-hero,
.ct-page-hero {
  position: relative;
  display: flex;
  min-height: 80vh;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
  background: var(--color-text);
  color: var(--color-on-accent);
}
.ct-hero { min-height: 100vh; }
.ct-hero__image,
.ct-page-hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ct-hero::after,
.ct-page-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(180deg, transparent 22%, color-mix(in srgb, var(--color-text) 88%, transparent) 100%);
}
.ct-hero__content,
.ct-page-hero__content { padding-block: clamp(7rem, 15vh, 10rem) 3.5rem; }
.ct-hero__content p,
.ct-page-hero__content p { max-width: 54ch; }
.ct-hero__scroll {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  margin-top: 1.5rem;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  text-decoration: none;
}
.ct-page-hero--compact { min-height: 70vh; }

/* Текст + фото */
.ct-split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.ct-split__image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.ct-split--image-first .ct-split__image { aspect-ratio: 5 / 6; }

/* Bento */
.ct-bento { display: grid; gap: 1rem; }
.ct-bento__item { justify-content: flex-end; min-height: 13rem; }
.ct-bento__item--large {
  min-height: 20rem;
  background: var(--color-accent);
  color: var(--color-on-accent);
}

/* Две колонки текста и тезисы на полях */
.ct-columns-text { display: grid; gap: 1.5rem; }
.ct-columns-text p { margin: 0; }
.ct-asides { display: grid; gap: 1rem 1.5rem; }
.ct-asides__note {
  padding: 1rem;
  border-left: 3px solid var(--color-accent);
  color: var(--color-muted);
  font-size: .95rem;
}

/* Широкое фото */
.ct-wide-image {
  width: 100%;
  margin: 1.5rem 0 2rem;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.ct-wide-copy { display: grid; gap: 0 2.5rem; }

/* Таблицы */
.table-responsive { border: 1px solid color-mix(in srgb, var(--color-muted) 30%, transparent); border-radius: var(--radius); }
.ct-table { width: 100%; min-width: 42rem; border-collapse: collapse; background: var(--color-bg); }
.ct-table th,
.ct-table td { padding: 1rem; border-bottom: 1px solid color-mix(in srgb, var(--color-muted) 30%, transparent); text-align: left; }
.ct-table thead { background: var(--color-accent); color: var(--color-on-accent); }
.ct-table tbody tr:last-child > * { border-bottom: 0; }

/* Timeline */
.ct-timeline { position: relative; max-width: 50rem; margin: 2rem 0 0; padding: 0; list-style: none; counter-reset: step; }
.ct-timeline::before { position: absolute; inset: 1rem auto 1rem 1.35rem; width: 1px; content: ""; background: var(--color-accent); }
.ct-timeline li { position: relative; padding: 0 0 1.6rem 4.25rem; counter-increment: step; }
.ct-timeline li::before {
  position: absolute;
  left: 0;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-on-accent);
  content: counter(step, decimal-leading-zero);
  font-weight: 700;
}

/* Аккордеоны */
.ct-accordion { max-width: 54rem; margin-top: 1.5rem; }
.ct-accordion .accordion-item { overflow: hidden; margin-bottom: .75rem; border: 1px solid color-mix(in srgb, var(--color-muted) 30%, transparent); border-radius: var(--radius); background: var(--color-bg); }
.ct-accordion .accordion-button { color: var(--color-text); background: var(--color-bg); font-family: var(--font-heading); font-size: 1.1rem; }
.ct-accordion .accordion-button:not(.collapsed) { color: var(--color-on-accent); background: var(--color-accent); box-shadow: none; }

/* Счётчики */
.ct-stats { display: grid; gap: 1rem; margin: 2rem 0; }
.ct-stat { padding: 1.9rem; border-top: 3px solid var(--color-accent); background: var(--color-bg); box-shadow: var(--shadow); }
.ct-stat__number { display: block; color: var(--color-accent); font-family: var(--font-heading); font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1; }

/* Карточки, цитата, слайдер и плитки */
.ct-card-grid { display: grid; gap: 1.25rem; margin-block: 1.75rem; align-items: stretch; }
.ct-quote { background: var(--color-accent) !important; color: var(--color-on-accent); }
.ct-quote h2::before { color: inherit !important; }
.ct-quote blockquote { max-width: 25ch; margin: 1.5rem 0; font-family: var(--font-heading); font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.25; }
.ct-slider { margin-top: 2rem; padding: .4rem .2rem 3.5rem; }
.ct-slider .swiper-slide { height: auto; min-height: 15rem; }
.ct-slider .swiper-button-prev,
.ct-slider .swiper-button-next { top: auto; bottom: 0; width: 2.5rem; height: 2.5rem; color: var(--color-accent); }
.ct-slider .swiper-button-prev { left: auto; right: 3.25rem; }
.ct-slider .swiper-button-next { right: .2rem; }
.ct-slider .swiper-pagination { width: auto; right: 7rem; bottom: .65rem; text-align: left; }
.ct-tile-grid { display: grid; gap: 1rem; margin-top: 1.75rem; }
.ct-tile { padding: 1.9rem; border: 1px solid color-mix(in srgb, var(--color-muted) 30%, transparent); border-radius: var(--radius); background: var(--color-bg); }
.ct-tile > span { display: inline-block; margin-bottom: 1rem; color: var(--color-accent); font-family: var(--font-heading); font-size: 1.8rem; }
.ct-numbered-list { margin: 2rem 0 0; padding: 0; list-style: none; counter-reset: point; }
.ct-numbered-list li { display: grid; grid-template-columns: 3.25rem 1fr; gap: 0 1rem; padding: 1.4rem 0; border-top: 1px solid color-mix(in srgb, var(--color-muted) 30%, transparent); counter-increment: point; }
.ct-numbered-list li::before { grid-row: 1 / 3; color: var(--color-accent); content: counter(point, decimal-leading-zero); font-family: var(--font-heading); font-size: 2rem; }
.ct-numbered-list h3,
.ct-numbered-list p { grid-column: 2; }

/* Отзывы и тарифы */
.ct-testimonial { position: relative; padding-top: 4.75rem; }
.ct-avatar { position: absolute; top: 1.5rem; display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border-radius: 50%; background: var(--color-accent); color: var(--color-on-accent); font-weight: 700; }
.ct-pricing { display: grid; gap: 1.25rem; margin-top: 2rem; align-items: stretch; }
.ct-plan { position: relative; }
.ct-plan ul { margin-bottom: 1.75rem; padding-left: 1.2rem; }
.ct-plan__price strong { display: inline-block; font-family: var(--font-heading); font-size: 2.4rem; }
.ct-plan--featured { border: 2px solid var(--color-accent); }
.ct-plan__badge { align-self: flex-start; margin: -3rem 0 1.2rem; padding: .35rem .8rem; border-radius: 999px; background: var(--color-accent); color: var(--color-on-accent); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ct-pricing__note { max-width: none; margin-top: 1.3rem; }

/* Контакты, CTA и внутренние страницы */
.ct-contact__grid { display: grid; gap: 2rem; align-items: start; }
.ct-contact__details,
.ct-form,
.ct-map { padding: 1.9rem; border: 1px solid color-mix(in srgb, var(--color-muted) 30%, transparent); border-radius: var(--radius); background: var(--color-bg); box-shadow: var(--shadow); }
.ct-form__check { display: grid; grid-template-columns: auto 1fr; gap: .65rem; margin-bottom: 1.25rem; }
.ct-form__check input { margin-top: .35rem; }
.ct-contact__details address { font-size: clamp(1rem, 2vw, 1.25rem); font-style: normal; }
.ct-map { margin-top: 2rem; overflow: hidden; }
.ct-map iframe { display: block; border-radius: calc(var(--radius) / 2); }
.ct-cta { text-align: center; }
.ct-cta p { margin-inline: auto; }
.ct-cta .ct-btn { margin: .35rem; }
.ct-team img { width: calc(100% + 3.8rem); max-width: none; margin: -1.9rem -1.9rem 1.5rem; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }

@media (min-width: 576px) {
  .ct-stats,
  .ct-tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-wide-copy { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-wide-copy .ct-btn { justify-self: start; }
}

@media (min-width: 768px) {
  .ct-columns-text { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
  .ct-asides { grid-template-columns: minmax(9rem, 1fr) minmax(0, 3fr); align-items: start; }
  .ct-card-grid--three,
  .ct-pricing { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ct-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-bento__item--large { grid-row: span 2; }
  .ct-contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
}

@media (min-width: 992px) {
  .ct-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ct-split--image-first .ct-split__image { order: -1; }
  .ct-split--image-first { grid-template-columns: 5fr 7fr; }
  .ct-bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ct-bento__item--large { grid-column: span 2; grid-row: span 2; }
  .ct-plan--featured { transform: translateY(-.75rem); }
}

@media (max-width: 575px) {
  .ct-container { padding-inline: 1.25rem; }
  .ct-card,
  .ct-contact__details,
  .ct-form,
  .ct-map,
  .ct-tile { padding: 1.35rem; }
  .ct-team img { width: calc(100% + 2.7rem); margin: -1.35rem -1.35rem 1.25rem; }
  .ct-wide-image { aspect-ratio: 3 / 2; }
  .ct-cookie__actions { flex-direction: column; }
  .ct-cookie__actions .ct-btn,
  .ct-cookie__configure { width: 100%; }
}
