/*
Theme Name: Скупка книг
Theme URI: https://example.com/
Author: Local Team
Author URI: https://example.com/
Description: WordPress theme converted from static landing page.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: skupka-knig
*/

:root {
  --bg: #fff7e6;
  --accent: #ff4719;
  --text: #111;
  --muted: #555;
  --card: #fff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  color: var(--text);
  background: #fff;
}

html {
  scroll-behavior: smooth;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #199c68;
  outline-offset: 3px;
}

.landing__icons {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.landing__container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.landing__top {
  background: #ffe7ae;
  border-bottom: 1px solid #f1d58f;
  position: sticky;
  top: 0;
  z-index: 300;
}

.landing__top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
}

.landing__brand {
  font-weight: 700;
  font-size: 24px;
}

.landing__subtitle {
  color: var(--muted);
  font-size: 13px;
}

.landing__phone {
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  display: block;
  width: 100%;
  text-align: center;
}

.landing__top-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-links__btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e8d9b3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.social-links__icon {
  display: block;
  fill: currentColor;
}

.social-links__btn--telegram {
  color: #1d98dc;
}

.social-links__btn--max {
  color: #4db7ff;
}

.social-links__btn--phone {
  color: #199c68;
}

.hero {
  background: linear-gradient(180deg, #ffe7ae 0%, #fff 100%);
  padding: 54px 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: start;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.1;
}

.hero p {
  margin: 0;
  color: var(--muted);
}

.hero__form {
  background: #1c1c1c;
  color: #fff;
  border-radius: 14px;
  padding: 24px;
}

.hero__form h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.hero__form p {
  color: #d0d0d0;
  margin-bottom: 16px;
}

.hero__cf7 .wpcf7 input,
.hero__cf7 .wpcf7 textarea {
  width: 100%;
  margin-bottom: 10px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 10px 12px;
}

.hero__cf7 .wpcf7-submit {
  background: var(--accent);
  border: 0;
  color: #fff;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
}

.image-block {
  padding: 40px 0 24px;
}

.image-block h2 {
  margin: 0 0 20px;
  text-align: center;
}

.image-block img {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  border-radius: 14px;
}

.features,
.faq,
.process,
.about,
.text-block,
.reviews,
.contacts {
  padding: 56px 0;
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;
}

.features {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 28%);
}

.features h2,
.faq h2,
.process h2,
.about h2,
.text-block h2,
.reviews h2,
.contacts h2 {
  margin: 0 0 20px;
  text-align: center;
}

.features__subtitle {
  margin: 0 auto 28px;
  max-width: 780px;
  text-align: center;
  color: var(--muted);
}

.features__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.features__list article {
  background: var(--card);
  border-radius: 12px;
  padding: 18px;
  border: 1px solid #f1efe9;
  text-align: center;
}

.features__item-image {
  width: 128px;
  height: auto;
  margin: 0 auto 12px;
  display: block;
}

.features__list h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.features__list p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.features__button-wrap {
  margin-top: 24px;
  text-align: center;
}

.features__button {
  display: inline-block;
  background: #199c68;
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 999px;
}

.motivation {
  padding: 56px 0;
  background: linear-gradient(180deg, var(--bg) 0%, #ffffff 70%);
}

.motivation h2 {
  margin: 0 0 24px;
  text-align: center;
}

.motivation__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.motivation__text p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.motivation__media img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.motivation__caption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.faq {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 28%);
}

.faq__list {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.faq__item {
  background: var(--card);
  border: 1px solid #f1efe9;
  border-radius: 12px;
  padding: 14px 16px;
}

.faq__item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-weight: 700;
}

.faq__item[open] summary::after {
  content: "−";
}

.faq__item p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.process {
  background: linear-gradient(180deg, var(--bg) 0%, #ffffff 70%);
}

.process__timeline {
  position: relative;
  display: grid;
  gap: 18px;
  margin-top: 10px;
}

.process__timeline::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: #dfd5be;
}

.process__item {
  display: grid;
  grid-template-columns: 1fr 92px 1fr;
  align-items: center;
}

.process__axis {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.process__dot {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  background: #fff;
  border: 2px solid #dfd5be;
}

.process__content {
  background: var(--card);
  border: 1px solid #f1efe9;
  border-radius: 12px;
  padding: 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.process__item--left .process__content {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}

.process__item--right .process__content {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
}

.process__image {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
  margin: 0;
}

.process__text h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.process__text p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.about {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.about__rows {
  display: grid;
  gap: 20px;
}

.about__row {
  display: grid;
  gap: 20px;
  align-items: stretch;
}

.about__row--first {
  grid-template-columns: 1fr 2fr;
}

.about__row--second {
  grid-template-columns: 2fr 1fr;
}

.about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.about__text {
  background: var(--card);
  border: 1px solid #f1efe9;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about__text h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.about__text p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.text-block {
  background: linear-gradient(180deg, var(--bg) 0%, #ffffff 100%);
}

.text-block__content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.reviews {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.reviews__list {
  display: grid;
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}

.reviews__item {
  display: grid;
  grid-template-columns: 1fr 86px;
  gap: 14px;
  align-items: start;
}

.reviews__bubble {
  position: relative;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e7e3dc;
  padding: 16px 18px;
}

.reviews__bubble::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 20px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-top: 1px solid #e7e3dc;
  border-right: 1px solid #e7e3dc;
  transform: rotate(45deg);
}

.reviews__bubble h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.reviews__bubble p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.reviews__avatar-wrap {
  display: flex;
  justify-content: flex-end;
}

.reviews__avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid #ded8cf;
}

.contacts {
  background: var(--bg);
}

.contacts__box {
  width: 100%;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e7e0d6;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
}

.contacts__list {
  display: grid;
  gap: 10px;
}

.contacts__list p {
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}

.contacts__list a {
  color: #199c68;
  text-decoration: none;
  word-break: break-word;
}

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 999px;
  background: #199c68;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  z-index: 200;
  transition: transform 0.2s ease, background-color 0.2s ease;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.scroll-top:hover {
  background: #158656;
  transform: translateY(-2px);
}

.scroll-top.scroll-top--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (max-width: 860px) {
  .hero__grid,
  .features__list,
  .motivation__grid,
  .about__row--first,
  .about__row--second {
    grid-template-columns: 1fr;
  }

  .reviews__item {
    grid-template-columns: 1fr;
  }

  .reviews__avatar-wrap {
    justify-content: flex-start;
  }

  .reviews__bubble::after {
    right: auto;
    left: 22px;
    top: auto;
    bottom: -8px;
    transform: rotate(135deg);
  }

  .process__timeline::before {
    left: 20px;
    transform: none;
  }

  .process__item {
    grid-template-columns: 40px 1fr;
    gap: 12px;
    align-items: start;
  }

  .process__axis {
    grid-column: 1;
    justify-content: flex-start;
  }

  .process__content,
  .process__item--left .process__content,
  .process__item--right .process__content {
    grid-column: 2;
  }

  .process__content {
    grid-template-columns: auto 1fr;
  }

  .landing__top-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing__top-inner > div:first-child {
    width: 100%;
    text-align: center;
  }

  .landing__top-right {
    width: 100%;
    align-items: center;
  }
}