/*
Theme Name: Aroma Air
Theme URI: https://example.com/aroma-air
Author: Custom Theme Builder
Author URI: https://example.com
Description: Воздушная и SEO-оптимизированная WordPress тема для блога и продаж эфирных масел и книг по ароматерапии.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: aroma-air
*/

:root {
  --aa-bg: #e6e6fa;
  --aa-surface: rgba(255, 255, 255, 0.86);
  --aa-surface-strong: #ffffff;
  --aa-primary: #9370db;
  --aa-primary-dark: #6a0dad;
  --aa-accent: #ba55d3;
  --aa-text: #331b4d;
  --aa-muted: #5d4d73;
  --aa-border: rgba(106, 13, 173, 0.18);
  --aa-radius: 20px;
  --aa-shadow: 0 14px 34px rgba(75, 0, 130, 0.16);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
  color: var(--aa-text);
  background:
    radial-gradient(1100px 540px at 10% -10%, rgba(186, 85, 211, 0.36), transparent 60%),
    radial-gradient(1200px 640px at 110% 0%, rgba(147, 112, 219, 0.4), transparent 55%),
    linear-gradient(165deg, #f2efff 0%, var(--aa-bg) 40%, #ddd6f6 100%);
  line-height: 1.7;
}

body { padding-top: 54px; }

.preview-toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .8rem;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--aa-border);
  backdrop-filter: blur(6px);
}

.preview-toolbar button {
  border: 1px solid rgba(106, 13, 173, 0.28);
  background: #fff;
  color: var(--aa-primary-dark);
  border-radius: 999px;
  padding: .2rem .6rem;
  cursor: pointer;
}

.preview-toolbar button:hover {
  background: rgba(147, 112, 219, 0.14);
}

#preview-mode {
  margin-left: auto;
  color: var(--aa-muted);
  font-size: .92rem;
}

.preview-toolbar__link {
  color: var(--aa-primary-dark);
  font-weight: 600;
  text-decoration: none;
  padding: .15rem .45rem;
  border-radius: 8px;
}

.preview-toolbar__link:hover {
  background: rgba(147, 112, 219, 0.14);
  text-decoration: none;
}

.preview-toolbar__sep {
  color: var(--aa-muted);
  user-select: none;
}

a { color: var(--aa-primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.container { width: min(1160px, 92%); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(245, 241, 255, 0.78);
  border-bottom: 1px solid var(--aa-border);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.branding {
  font-weight: 700;
  letter-spacing: .2px;
  font-size: 1.2rem;
  text-shadow: 0 3px 14px rgba(106, 13, 173, 0.2);
}

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; }
.main-nav a { display: inline-block; padding: .45rem .7rem; border-radius: 10px; }
.main-nav a:hover { background: rgba(147, 112, 219, 0.15); text-decoration: none; }

.hero {
  padding: 3rem 0 2rem;
}

.hero-box {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 1rem;
  align-items: center;
  background:
    radial-gradient(circle at 20% 10%, rgba(230, 230, 250, 0.95), rgba(221, 160, 221, 0.35) 60%, transparent 100%),
    linear-gradient(145deg, #ffffff, #f5eeff);
  border: 1px solid var(--aa-border);
  border-radius: calc(var(--aa-radius) + 8px);
  box-shadow: var(--aa-shadow);
  padding: 2.4rem;
}

.hero-box--only-media {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 1rem;
}

.hero h1 { margin: 0 0 .8rem; line-height: 1.15; font-size: clamp(1.9rem, 4vw, 3rem); }
.hero p { color: var(--aa-muted); max-width: 65ch; margin: 0 0 1.2rem; }

.btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: .78rem 1.2rem;
  font-weight: 600;
}

.btn-primary { background: var(--aa-primary); color: #fff; }
.btn-primary:hover { background: var(--aa-primary-dark); text-decoration: none; }
.btn-secondary {
  background: #fff;
  border: 1px solid rgba(106, 13, 173, 0.22);
  margin-left: .5rem;
}

.section { padding: 2.4rem 0; }
.section-title { margin: 0 0 1rem; font-size: 1.5rem; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.card {
  background: var(--aa-surface-strong);
  border: 1px solid var(--aa-border);
  border-radius: var(--aa-radius);
  padding: 1.1rem;
  box-shadow: 0 10px 24px rgba(75, 0, 130, 0.08);
}
.card h3 { margin: .2rem 0 .4rem; }
.card p { margin: 0; color: var(--aa-muted); }

.posts-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.1rem; }
.post-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--aa-border);
  border-radius: var(--aa-radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(75, 0, 130, 0.13); }
.post-card__content { padding: 1rem; }

.content-layout { display: grid; grid-template-columns: 1fr 300px; gap: 1.4rem; padding: 2rem 0 3rem; }
.content, .sidebar {
  background: var(--aa-surface);
  border: 1px solid var(--aa-border);
  border-radius: var(--aa-radius);
  padding: 1.2rem;
}

.entry-meta { font-size: .92rem; color: var(--aa-muted); margin-bottom: .8rem; }

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--aa-border);
  background: rgba(216, 191, 216, 0.45);
  padding: 1.3rem 0;
  color: var(--aa-muted);
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  border: 1px solid var(--aa-border);
  border-radius: var(--aa-radius);
  padding: .8rem;
  background: #fff;
}

.home-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 220px;
  gap: 1rem;
  align-items: start;
  padding-bottom: 3rem;
}

.side-panel {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--aa-border);
  border-radius: var(--aa-radius);
  box-shadow: 0 10px 28px rgba(75, 0, 130, 0.1);
  padding: 1rem .85rem;
  position: sticky;
  top: 90px;
}

.side-panel h3 {
  margin: .2rem 0 .7rem;
  font-size: .98rem;
}

.category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}

.category-list a {
  display: block;
  background: rgba(147, 112, 219, 0.12);
  border: 1px solid rgba(106, 13, 173, 0.15);
  color: #4b0082;
  border-radius: 12px;
  padding: .5rem .6rem;
}

.category-list a:hover {
  background: rgba(186, 85, 211, 0.2);
  text-decoration: none;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
}

.drop-scene {
  width: min(100%, 470px);
  height: 320px;
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(106, 13, 173, 0.22);
  box-shadow: 0 18px 42px rgba(75, 0, 130, 0.24);
  transform-origin: 50% 20%;
  animation: sceneFloat 6s ease-in-out infinite;
}

.hero-box--only-media .hero-visual {
  width: 100%;
  min-height: 520px;
}

.hero-box--only-media .drop-scene {
  width: min(100%, 980px);
  height: 520px;
}

.drop-scene img,
.drop-scene .oil-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 22% 20%;
  display: block;
  transform-origin: center;
  animation: none;
}

.drop-scene .oil-video {
  transform: none;
  filter: contrast(1.04) saturate(1.03);
}

.latest-wrap {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--aa-border);
  border-radius: var(--aa-radius);
  box-shadow: 0 14px 30px rgba(75, 0, 130, 0.12);
  padding: 1rem;
}

@keyframes sceneFloat {
  0%, 100% {
    transform: translateY(0) rotate(-0.25deg);
  }
  50% {
    transform: translateY(-4px) rotate(0.25deg);
  }
}

@keyframes frameBreath {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .content-layout { grid-template-columns: 1fr; }
  .hero-box { grid-template-columns: 1fr; }
  .drop-scene { height: 280px; }
  .hero-box--only-media .hero-visual {
    min-height: 300px;
  }
  .hero-box--only-media .drop-scene {
    width: min(100%, 640px);
    height: 300px;
  }
  .home-shell {
    grid-template-columns: 1fr;
    gap: .8rem;
  }
  .side-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .main-nav ul { flex-wrap: wrap; gap: .4rem; }
  .grid, .posts-grid { grid-template-columns: 1fr; }
  .hero-box { padding: 1.5rem; }
  .drop-scene { height: 240px; }
  .hero-box--only-media .hero-visual {
    min-height: 240px;
  }
  .hero-box--only-media .drop-scene {
    width: 100%;
    height: 240px;
  }
  .btn-secondary { margin-left: 0; margin-top: .55rem; }
}

.about-page {
  max-width: 760px;
  padding: 2rem 0 3.5rem;
}

.about-page__article {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--aa-border);
  border-radius: var(--aa-radius);
  box-shadow: 0 14px 34px rgba(75, 0, 130, 0.1);
  padding: 2rem 1.75rem;
}

.about-page__title {
  margin: 0 0 .75rem;
  font-size: clamp(1.65rem, 3.5vw, 2.1rem);
  line-height: 1.2;
}

.about-page__subtitle {
  margin: 0 0 1rem;
  color: var(--aa-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.about-page__lead {
  margin: 0 0 1.25rem;
  font-size: 1.08rem;
  line-height: 1.65;
}

.about-page__intro {
  margin: 0 0 1.75rem;
  color: var(--aa-muted);
  line-height: 1.7;
}

.about-section {
  margin-bottom: 1.85rem;
}

.about-section__title {
  margin: 0 0 .85rem;
  font-size: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  line-height: 1.35;
}

.about-section__icon {
  flex-shrink: 0;
  line-height: 1.2;
}

.about-section p {
  margin: 0 0 .85rem;
}

.about-list,
.about-steps {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
  color: var(--aa-text);
}

.about-list li,
.about-steps li {
  margin-bottom: .4rem;
}

.about-list--plain {
  list-style: none;
  padding-left: 0;
}

.about-list--plain li {
  padding-left: 1.1rem;
  position: relative;
}

.about-list--plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aa-primary);
}

.about-section--highlight {
  background: linear-gradient(135deg, rgba(147, 112, 219, 0.1), rgba(230, 230, 250, 0.6));
  border: 1px solid rgba(106, 13, 173, 0.14);
  border-radius: calc(var(--aa-radius) - 4px);
  padding: 1.1rem 1.15rem;
}

.about-page__footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--aa-border);
}

.about-page__closing {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--aa-muted);
}

.about-page__wp-content {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(106, 13, 173, 0.22);
}

.about-page__wp-content > *:first-child {
  margin-top: 0;
}

.simple-page {
  padding: 2rem 0 3.5rem;
}

.simple-page__hero,
.policy-card,
.contact-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--aa-border);
  border-radius: var(--aa-radius);
  box-shadow: 0 14px 34px rgba(75, 0, 130, 0.1);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
}

.simple-page__hero h1 {
  margin: 0 0 .65rem;
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  line-height: 1.2;
}

.simple-page__hero p,
.policy-card p,
.contact-card p {
  margin: 0 0 .85rem;
  color: var(--aa-muted);
}

.book-grid,
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.book-card,
.faq-item {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--aa-border);
  border-radius: var(--aa-radius);
  box-shadow: 0 10px 24px rgba(75, 0, 130, 0.08);
  padding: 1.25rem;
}

.book-card h2,
.faq-item h2 {
  margin: 0 0 .55rem;
  font-size: 1.2rem;
  line-height: 1.3;
}

.book-card p,
.faq-item p {
  margin: 0 0 1rem;
  color: var(--aa-muted);
}

@media (max-width: 680px) {
  .about-page__article {
    padding: 1.35rem 1.1rem;
  }

  .book-grid,
  .faq-list {
    grid-template-columns: 1fr;
  }
}
