/*
Theme Name: MyTheme
Theme URI: https://example.com
Author: You
Version: 0.1
Description: Учебная минимальная тема для понимания структуры.
Text Domain: mytheme
*/

/* =========================
   Fonts
========================= */
@font-face {
  font-family: "Manrope";
  src: url("./assets/fonts/Manrope-VariableFont_wght.woff2") format("woff2");
  font-style: normal;
  font-weight: 1 1000;
  font-display: swap;
}

@font-face {
  font-family: "PlayfairDisplay";
  src: url("./assets/fonts/PlayfairDisplay-VariableFont_wght.woff2") format("woff2");
  font-style: normal;
  font-weight: 1 1000;
  font-display: swap;
}

@font-face {
  font-family: "Metrophobic";
  src: url("./assets/fonts/Metrophobic-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Yrsa";
  src: url("./assets/fonts/Yrsa-VariableFont_wght.ttf") format("woff2");
  font-style: normal;
  font-weight: 1 1000;
  font-display: swap;
}

@font-face {
  font-family: "Glory";
  src: url("./assets/fonts/Glory-VariableFont_wght.ttf") format("woff2");
  font-style: normal;
  font-weight: 1 1000;
  font-display: swap;
}


/* =========================
   Base
========================= */
html {
  scrollbar-gutter: stable;
   font-size: 115%; /* было 100% */
}

body {
  background-color: rgb(247, 247, 247);
  margin: 0;
  padding: 0;
  font-family:  Glory, "Metrophobic", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

button {
  font-family:   Glory, "Metrophobic", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* =========================
   Layout
========================= */
.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 0;
  box-sizing: border-box;
}

header {
  margin-top: 0;
}

/* =========================
   slider section (Services Slider)   
========================= */
.slider-section {
  background: #fff;
  /* padding: 64px 0; */
}

.slider-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
}

/* Header */
.slider-header {
  text-align: center;
  margin-bottom: 28px;
}

.slider-title {
  margin: 0;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.08em; /* было 0.05em */
  color: #7a6262;
  line-height: 1.2;
  display: inline-block;
  position: relative;
  padding: 18px 0;
}

.slider-title::before,
.slider-title::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 1px;
  background: #cfcfcf; /* чуть мягче */
}

.slider-title::before { top: 0; }
.slider-title::after  { bottom: 0; }

.slider-subtitle {
  margin: 14px auto 0;
  font-size: 14px;
  color: #6f6f6f;
  max-width: 760px;
}

/* Frame */
.slider-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  margin: 0 20px;
  padding: 34px 24px 16px; /* больше места под пагинацию */
  background: #f3eeec;
  border-radius: 16px;
  /* box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08); */
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.22);
}

/* Swiper */
.slider-frame .swiper {
  width: 100%;
  padding-bottom: 46px;
}

/* Slides / Images */
.slider-img {
  width: 100%;
  height: 280px; /* было 290 */
  object-fit: cover;
  border-radius: 14px;
  display: block;
  transition: transform 0.35s ease;
}

.slider-slide:hover .slider-img {
  transform: scale(1.03);
}

/* Arrows */
.slider-arrow {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;

  opacity: 0.7;
  border-radius: 999px;
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.slider-arrow:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.55);
  transform: scale(1.05);
}

.slider-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border-left: 3px solid #7a6262;
  border-bottom: 3px solid #7a6262;
  transform: translate(-50%, -50%) rotate(45deg);
}

.slider-arrow--next::before {
  transform: translate(-50%, -50%) rotate(-135deg);
}

/* Pagination */
.slider-pagination {
  bottom: 6px !important;
}

.slider-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #b9b0af;
  opacity: 0.6;
  margin: 0 6px !important;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

.slider-pagination .swiper-pagination-bullet-active {
  background: #7a6262;
  opacity: 1;
  transform: scale(1.6); /* 👈 вот ключ */
}

/* =========================
   Service card
========================= */
.service-card {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
}

.service-title {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.55); /* было 0.414 */
  backdrop-filter: blur(6px);
  font-size: 12px; /* было 14px */
  font-weight: 600;
  letter-spacing: 0.14em; /* читабельнее для uppercase */
  text-transform: uppercase;
  color: #2b2b2b;
}

/* =========================
   CTA Buttons
========================= */
.cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;

  padding: 12px 22px;
  border-radius: 14px;

  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #fff;
  font-size: 16px;
  letter-spacing: 0.02em;

  background: linear-gradient(90deg, #e8a4a4 0%, #d78f9b 55%, #c57f90 100%);
  box-shadow: 0 10px 22px rgba(199, 120, 140, 0.25);

  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.cta-btn:hover {
  transform: translateY(-1px);
  filter: saturate(1.05);
  box-shadow: 0 14px 28px rgba(199, 120, 140, 0.3);
}

.cta-btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(199, 120, 140, 0.22);
}

.cta-btn:focus-visible {
  outline: 3px solid rgba(199, 120, 140, 0.35);
  outline-offset: 3px;
}

.cta-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;

  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.cta-text {
  line-height: 1;
}

.cta-glint {
  position: absolute;
  right: 10px;
  bottom: 8px;
  width: 58px;
  height: 26px;

  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0) 70%
  );
  opacity: 0.55;
  transform: rotate(-10deg);
  pointer-events: none;
}

/* Secondary CTA */
.cta-native {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 22px;
  border-radius: 10px;

  background-color: #cca9a5c4;
  border: 1px solid rgba(107, 91, 91, 0.2);
  color: #fff;

  font-size: 15px;
  letter-spacing: 0.03em;

  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease,
    transform 0.18s ease;
}

.cta-native:hover {
  cursor: pointer;
  background-color: #cca9a5;
  border-color: rgba(107, 91, 91, 0.28);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.cta-native:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.cta-native:focus-visible {
  outline: 3px solid rgba(201, 163, 160, 0.25);
  outline-offset: 3px;
}

/* =========================
   Contact Form 7
========================= */
.wpcf7 input[type="text"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  padding: 10px 12px;
}

.wpcf7-submit {
  border-radius: 12px;
  padding: 10px 16px;
  margin: 10px auto;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: #d8c1bc;
}

/* =========================
   Navigation
========================= */
nav li a {
  position: relative;
  /* color: #525252; */
  color: #7A6262;
  font-weight: 500;
}

nav li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background-color: #7c5e5c;

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

nav li a:hover {
  color: #7c5e5c;
}

nav li a:hover::after {
  transform: scaleX(1);
}

/* =========================
   Responsive
========================= */
@media (min-width: 1024px) {
  .wrapper {
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.06);
  }
}

@media (max-width: 768px) {
  .slider-title {
    font-size: 22px;
    letter-spacing: 0.12em; /* было 0.28em — слишком жирно */
  }

  .slider-frame {
    padding: 22px 18px 54px;
    gap: 10px;
  }

  .slider-img {
    height: 240px;
  }

  .slider-arrow {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .slider-title {
    font-size: 18px;
    letter-spacing: 0.12em;
  }

  .slider-subtitle {
    font-size: 13px;
  }

  .slider-img {
    height: 210px;
  }

  .cta-native {
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 9px;
  }
}

/* =========================
   Legal content
========================= */
.legal-content h1,
.legal-content h2,
.legal-content h3 {
  margin: 1.6rem 0 0.8rem;
  line-height: 1.25;
}

.legal-content p {
  margin: 0 0 0.9rem;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 1rem 1.25rem;
}

.legal-content li {
  margin: 0.25rem 0;
}

.legal-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 425px) {
  .slider-frame  {
    padding: 14px 4px 16px;
  }
  .slider-frame .swiper {
    padding-bottom: 36px;
  }
}
 /* Hero Top Services (pill bar) */
.hero-topservices{
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 10px 14px;
  border-radius: 999px;

  background: rgba(255,255,255,0.60);
  border: 1px solid rgba(0,0,0,0.08);
  backdrop-filter: blur(10px);

  box-shadow: 0 10px 22px rgba(0,0,0,0.06);
}

.hero-topservices__item{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-topservices__icon{
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-topservices__img{
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.hero-topservices__text{
  font-size: 14px;
  color: #6b5b5b;
  line-height: 1;
  white-space: nowrap;
}

.hero-topservices__sep{
  width: 1px;
  height: 18px;
  margin: 0 14px;
  background: rgba(107,91,91,0.20);
}
@media (max-width: 768px){ 
  .hero-topservices{
    display: none;
  }
}

/* мобилка: чтобы не ломало */
@media (max-width: 480px){
  .hero-topservices{
    display: none;
  }
}

/* ===== Modal CF7 styling (only inside .cf7-modal) ===== */
.cf7-modal .wpcf7 {
  margin: 0;
  color: #6B5B5B;
  font-size: 16px;
}

.cf7-modal p { 
  margin: 0 0 14px;
}

.cf7-modal label {
  display: block;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #7A6262;
  margin-bottom: 6px;
}

/* inputs */
.cf7-modal input[type="text"],
.cf7-modal input[type="email"],
.cf7-modal input[type="tel"],
.cf7-modal textarea {
  width: 100%;
  border: 1px solid rgba(215,195,195,0.75);
  background: rgba(255,255,255,0.75);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
  color: #6B5B5B;
}

.cf7-modal textarea {
  min-height: 110px;
  resize: vertical;
}

.cf7-modal input::placeholder,
.cf7-modal textarea::placeholder {
  color: rgba(107,91,91,0.55);
}

.cf7-modal input:focus,
.cf7-modal textarea:focus {
  border-color: rgba(185,124,141,0.65);
  box-shadow: 0 0 0 4px rgba(185,124,141,0.18);
  background: rgba(255,255,255,0.9);
}

/* submit button */
.cf7-modal input[type="submit"] {
  appearance: none;
  display: block;
  margin: 18px auto 0;
  border: 1px solid rgba(215,195,195,0.9);
  background: #CBA19E;
  color: #fff;
  border-radius: 16px;
  padding: 12px 18px;
  font-size: 16px;
  /* font-weight: 600; */
  /* letter-spacing: 0.02em; */
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease;
}

.cf7-modal input[type="submit"]:hover {
  transform: translateY(-1px);
  filter: brightness(0.97);
}

.cf7-modal input[type="submit"]:active {
  transform: translateY(0);
}

/* errors */
.cf7-modal .wpcf7-not-valid-tip {
  font-size: 13px;
  margin-top: 6px;
}

.cf7-modal .wpcf7-response-output {
  margin: 0 0 0;
  border-radius: 14px;
  border: 1px solid rgba(215,195,195,0.75);
  color: #6B5B5B;
}

.cf7-modal p {
    margin: 0 0 0px;
}

#kontakt {
  background-position: center;
}

@media (max-width: 768px) {
  #kontakt {
    min-height: 75vh;
    background-position: 90% center;
  }
}

@keyframes hero-zoom {
  0%   { transform: scale(1); }
  100% { transform: scale(1.03); }
}

.hero-bg-img {
  transform-origin: center center;
  animation: hero-zoom 5s ease-in-out infinite alternate;
  will-change: transform;
}

/* ===== Reveal on scroll (one pattern) ===== */
[data-reveal]{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.88s ease-out, transform 0.88s ease-out;
  will-change: opacity, transform;
}

[data-reveal].is-revealed{
  opacity: 1;
  transform: translateY(0);
}

/* чуть мягче на мобилке */
@media (max-width: 768px){
  [data-reveal]{
    transform: translateY(8px);
    transition-duration: 0.42s;
  }
}

/* уважение к настройкам пользователя */
@media (prefers-reduced-motion: reduce){
  [data-reveal]{
    opacity: 1;
    transform: none;
    transition: none;
  }
}
