:root {
  --color-bg: #f8f9fa;
  --color-text: #1a1a1a;
  --color-accent: #e63946; /* Zen Red */
  --color-soft: rgba(230, 57, 70, 0.05);
  --aurora-1: rgba(168, 218, 220, 0.4);
  --aurora-2: rgba(69, 123, 157, 0.2);
  --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Aurora & Noise Effect */
.zen-aurora-theme {
  background:
    radial-gradient(circle at 10% 20%, var(--aurora-1) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, var(--aurora-2) 0%, transparent 40%),
    var(--color-bg);
  position: relative;
}

.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://grainy-gradients.vercel.app/noise.svg");
  opacity: 0.04;
  pointer-events: none;
  z-index: 9999;
}

/* Typography */
h1,
h2,
h3,
.logo__text {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
}

/* Header */
.header {
  padding: 1.5rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(248, 249, 250, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-text);
  transition: var(--transition);
}

.logo:hover {
  transform: translateY(-2px);
}

.logo__text {
  font-size: 1.25rem;
  letter-spacing: -0.5px;
}

.nav__list {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0.7;
  transition: var(--transition);
  position: relative;
}

.nav__link:hover {
  opacity: 1;
  color: var(--color-accent);
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: var(--transition);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__btn {
  text-decoration: none;
  background: var(--color-text);
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.nav__btn:hover {
  background: var(--color-accent);
  transform: scale(1.05);
}

/* Burger */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
}

/* Footer */
.footer {
  background: #fff;
  padding: 5rem 0 2rem;
  margin-top: 5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.footer__container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer__title {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  position: relative;
}

.footer__title::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 50%;
  width: 5px;
  height: 5px;
  background: var(--color-accent);
  border-radius: 50%;
}

.footer__nav {
  list-style: none;
}

.footer__nav li {
  margin-bottom: 0.8rem;
}

.footer__nav a {
  text-decoration: none;
  color: var(--color-text);
  opacity: 0.6;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer__nav a:hover {
  opacity: 1;
  padding-left: 5px;
  color: var(--color-accent);
}

.footer__description {
  font-size: 0.95rem;
  opacity: 0.7;
  margin-top: 1rem;
}

.footer__address {
  font-style: normal;
  font-size: 0.9rem;
  opacity: 0.7;
}

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

.footer__badge {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.4rem 0.8rem;
  background: var(--color-soft);
  color: var(--color-accent);
  font-size: 0.75rem;
  border-radius: 4px;
  border: 1px solid rgba(230, 57, 70, 0.2);
}

.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.5;
}

/* Responsive */
@media (max-width: 992px) {
  .footer__container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none; /* Будет реализовано в JS */
  }
  .burger {
    display: block;
  }
  .footer__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Hero Section Styles */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

.hero__canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero__container {
  position: relative;
  z-index: 2;
}

.hero__content {
  max-width: 800px;
}

.hero__subtitle {
  display: inline-block;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(3rem, 8vw, 6rem); /* Гігантський заголовок */
  line-height: 1.1;
  margin-bottom: 2rem;
  color: var(--color-text);
}

.hero__title span {
  color: transparent;
  -webkit-text-stroke: 1px var(--color-text);
  font-style: italic;
}

.hero__description {
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 3rem;
  opacity: 0.8;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 1.2rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.btn--primary {
  background: var(--color-text);
  color: white;
  margin-right: 1.5rem;
}

.btn--primary:hover {
  background: var(--color-accent);
  transform: translateY(-5px) scale(1.02);
}

.btn--secondary {
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--color-text);
}

.btn--secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-soft);
}

/* Organic Blob */
.hero__blob {
  position: absolute;
  right: -10%;
  top: 20%;
  width: 600px;
  height: 600px;
  background: var(--aurora-1);
  filter: blur(80px);
  z-index: 1;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  animation: blobMorph 15s infinite alternate;
}

@keyframes blobMorph {
  0% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: translate(50px, 100px) rotate(90deg);
  }
}

/* Scroll Animation States */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .hero__title {
    font-size: 3.5rem;
  }
  .hero__actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Practices Section */
.practices {
  padding: 100px 0;
  position: relative;
}

.section-header {
  margin-bottom: 80px;
  max-width: 600px;
}

.section-header__label {
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
}

.section-header__title {
  font-size: 3.5rem;
  margin: 1rem 0;
}

.section-header__desc {
  opacity: 0.7;
  font-size: 1.1rem;
}

.practices__grid {
  display: flex;
  flex-direction: column;
  gap: 150px; /* Большой отступ для асимметрии */
}

/* Base Card Style */
.practice-card {
  display: flex;
  align-items: center;
  gap: 4rem;
  position: relative;
}

.practice-card__shape {
  width: 450px;
  height: 450px;
  overflow: hidden;
  background: var(--color-soft);
  transition: var(--transition);
  /* Сложная органическая форма через clip-path */
  clip-path: polygon(
    30% 0%,
    70% 0%,
    100% 30%,
    100% 70%,
    70% 100%,
    30% 100%,
    0% 70%,
    0% 30%
  );
}

.practice-card:nth-child(even) {
  flex-direction: row-reverse;
  text-align: right;
}

.practice-card:hover .practice-card__shape {
  clip-path: polygon(
    20% 10%,
    80% 0%,
    90% 40%,
    100% 90%,
    60% 100%,
    10% 80%,
    0% 50%,
    10% 10%
  );
}

.practice-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: var(--transition);
  opacity: 0.8;
}

.practice-card:hover .practice-card__img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

.practice-card__content {
  flex: 1;
  max-width: 500px;
}

.practice-card__title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.practice-card__text {
  font-size: 1.1rem;
  opacity: 0.7;
  margin-bottom: 2rem;
}

.practice-card__link {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.practice-card__link:hover {
  color: var(--color-accent);
  gap: 15px;
}

/* Vertical Text Influence */
.practice-card__vertical-text {
  position: absolute;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 5rem;
  font-weight: 900;
  opacity: 0.03;
  top: 50%;
  transform: translateY(-50%);
  right: -20px;
  pointer-events: none;
}

.practice-card:nth-child(even) .practice-card__vertical-text {
  left: -20px;
  right: auto;
}

/* Responsive */
@media (max-width: 992px) {
  .practice-card,
  .practice-card:nth-child(even) {
    flex-direction: column;
    text-align: left;
    gap: 2rem;
  }
  .practice-card__shape {
    width: 100%;
    height: 300px;
  }
  .practices__grid {
    gap: 80px;
  }
}

/* Tools Section (Bento Grid) */
.tools {
  padding: 100px 0;
  background: linear-gradient(
    180deg,
    transparent,
    var(--color-soft),
    transparent
  );
}

.section-header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.tools__bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 1.5rem;
}

.tools__item {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 40px; /* Очень мягкие углы */
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.tools__item:hover {
  transform: translateY(-10px);
  background: white;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
  border-color: var(--color-accent);
}

/* Bento Spanning */
.tools__item--large {
  grid-column: span 2;
  grid-row: span 2;
  justify-content: flex-start;
}

.tools__item--medium {
  grid-column: span 2;
  grid-row: span 1;
}

.tools__item--wide {
  grid-column: span 2;
  grid-row: span 1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.tools__item--small {
  grid-column: span 1;
  grid-row: span 1;
}

/* Item Content */
.tools__icon {
  width: 50px;
  height: 50px;
  background: var(--color-soft);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.tools__item:hover .tools__icon {
  background: var(--color-accent);
  color: white;
  transform: rotate(15deg) scale(1.1);
}

.tools__name {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--color-text);
}

.tools__text {
  font-size: 0.95rem;
  opacity: 0.7;
  margin: 0;
}

.tools__tag {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: var(--color-accent);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tools__bg-icon {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 150px;
  height: 150px;
  opacity: 0.03;
  transform: rotate(-15deg);
}

/* Mobile Bento */
@media (max-width: 992px) {
  .tools__bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
  }
  .tools__item--large,
  .tools__item--medium,
  .tools__item--wide,
  .tools__item--small {
    grid-column: span 2;
    min-height: 250px;
  }
}
/* Cases Section (Editorial Style) */
.cases {
  padding: 120px 0;
  border-top: 1px solid var(--color-text);
}

.cases__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
  padding-bottom: 20px;
}

.cases__main-title {
  font-size: 4.5rem;
  line-height: 0.9;
  text-transform: uppercase;
}

.cases__header-meta {
  writing-mode: vertical-rl;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  border-left: 1px solid var(--color-text);
  padding-left: 10px;
}

/* Magazine Grid */
.cases__magazine-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: auto auto;
  border-top: 1px solid var(--color-text);
  border-left: 1px solid var(--color-text);
}

.case-article {
  border-right: 1px solid var(--color-text);
  border-bottom: 1px solid var(--color-text);
  padding: 40px;
  transition: var(--transition);
  background: #fff;
}

.case-article:hover {
  background: var(--color-soft);
}

.case-article--featured {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}

.case-article__image {
  width: 100%;
  height: 300px;
  overflow: hidden;
  margin-bottom: 30px;
}

.case-article__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.2);
}

.case-article__category {
  display: block;
  color: var(--color-accent);
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.case-article__title {
  font-size: 1.8rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.case-article__lead {
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 30px;
}

.case-article__text {
  font-size: 0.95rem;
  opacity: 0.8;
}

.case-article__more {
  margin-top: auto;
  text-decoration: none;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.case-article__more:hover {
  color: var(--color-accent);
  transform: translateX(5px);
}

/* Responsive Editorial */
@media (max-width: 992px) {
  .cases__magazine-grid {
    grid-template-columns: 1fr;
  }
  .cases__main-title {
    font-size: 3rem;
  }
  .case-article--featured {
    grid-row: span 1;
  }
}

/* Contact Section */
.contact {
  padding: 120px 0;
  position: relative;
}

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

.contact__title {
  font-size: 3.5rem;
  margin: 1.5rem 0;
}

.contact__text {
  font-size: 1.1rem;
  opacity: 0.7;
  margin-bottom: 2.5rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 500;
}

.contact__item i {
  color: var(--color-accent);
}

/* Form Styles */
.form {
  background: white;
  padding: 3rem;
  border-radius: 50px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

.form__group {
  position: relative;
  margin-bottom: 2rem;
}

.form__input {
  width: 100%;
  padding: 1rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.form__label {
  position: absolute;
  top: 1rem;
  left: 0;
  opacity: 0.5;
  pointer-events: none;
  transition: var(--transition);
}

.form__input:focus ~ .form__label,
.form__input:not(:placeholder-shown) ~ .form__label {
  top: -10px;
  font-size: 0.75rem;
  color: var(--color-accent);
  opacity: 1;
}

.form__input:focus {
  border-bottom-color: var(--color-accent);
}

/* Custom Checkbox */
.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  margin-bottom: 1.5rem;
  user-select: none;
}

.custom-checkbox input {
  display: none;
}

.checkmark {
  min-width: 22px;
  height: 22px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  position: relative;
  transition: var(--transition);
}

.custom-checkbox input:checked + .checkmark {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.checkmark:after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  display: none;
}

.custom-checkbox input:checked + .checkmark:after {
  display: block;
}

.checkbox-text {
  font-size: 0.85rem;
  opacity: 0.7;
  line-height: 1.4;
}

/* Captcha Box */
.form__captcha {
  background: var(--color-soft);
  padding: 1.5rem;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.form__captcha .custom-checkbox {
  margin: 0;
}

.form__captcha-icon {
  opacity: 0.2;
}

/* Success Message */
.form__message {
  display: none;
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 20px;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.form__message--success {
  background: #d1e7dd;
  color: #0f5132;
}

.form__submit {
  width: 100%;
  justify-content: center;
  gap: 10px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 992px) {
  .contact__wrapper {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .form {
    padding: 2rem;
  }
}

/* Cookie Pop-up */
.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 2rem;
  right: 2rem;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  padding: 1.5rem;
  border-radius: 25px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.cookie-popup--active {
  bottom: 2rem;
}

.cookie-popup__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-popup p {
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.4;
}

.btn--small {
  padding: 0.6rem 1.2rem;
  font-size: 0.8rem;
}

/* Стили для страниц политик (.pages) */
.pages {
  padding: 150px 0 100px;
  background: var(--color-bg);
}

.pages h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--color-text);
}

.pages h2 {
  font-size: 1.8rem;
  margin: 2.5rem 0 1rem;
}

.pages p {
  margin-bottom: 1.5rem;
  opacity: 0.8;
  font-size: 1.1rem;
}

.pages ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.pages li {
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.pages a {
  color: var(--color-accent);
  text-decoration: none;
}
