/*
Theme Name: Авторская тема
Description: Тема сайта для Wordpress
Author: Dmitry Kosterin
Author URI: https://dkosterin.ru
License URI: https://dkosterin.ru
Version: 5.1
License: Dmitry Kosterin
Tags: black, white
*/

@font-face {
  font-family: "AngstVF";
  src: url("/wp-content/themes/dkost_mebel/fonts/AngstVF.woff2") format("woff2"),
    url("/wp-content/themes/dkost_mebel/fonts/AngstVF.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "AngstVF";
  src: url("/wp-content/themes/dkost_mebel/fonts/AngstVF.woff2") format("woff2-variations"),
    url("/wp-content/themes/dkost_mebel/fonts/AngstVF.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary-dark: #441736;
  --gradient: linear-gradient(90deg,
      #f9f0e0 0%,
      #f5e4ca 15%,
      #efca82 45%,
      #eabc6a 75%,
      #d4a95a 100%);
  --secondary-dark: #152242;
  --accent-gold: #c98b50;
  --text-light: #ffffff;
  --text-dark: #000000;
  --bg-light: #f8f8f8;
}

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

html,
body {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
  font-weight: 300;
}

.admin-bar {
  margin-top: 0 !important;
}

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

/* Шапка */

.header {
  background: linear-gradient(135deg,
      var(--primary-dark) 0%,
      var(--secondary-dark) 100%);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
  border-radius: 0 0 0 100px;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%,
      rgba(201, 139, 80, 0.1) 0%,
      transparent 50%),
    radial-gradient(circle at 80% 20%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 50%);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.logo-main {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  flex-shrink: 0;
}

.logo-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-text {
  padding-left: 0px;
  left: 250px;
  position: absolute;
  top: 155px;
  text-align: right;
}

.header-text h1 {
  font-family: "AngstVF", sans-serif;
  text-transform: uppercase;
  font-size: 2.8em;
  font-weight: 600;
  letter-spacing: 2px;
  background: linear-gradient(90deg,
      #f9f0e0 0%,
      #f5e4ca 15%,
      #efca82 45%,
      #eabc6a 75%,
      #d4a95a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-family: "AngstVF", sans-serif;
  color: var(--primary-dark);
}

h3 {
  font-family: "AngstVF", sans-serif;
  color: var(--primary-dark);
  font-size: 1.6rem;
  margin-bottom: 30px;
}

.header-text .description {
  font-size: 1.4rem;
  letter-spacing: 2px;
  background: linear-gradient(90deg,
      #f9f0e0 0%,
      #f5e4ca 15%,
      #efca82 45%,
      #eabc6a 75%,
      #d4a95a 100%);
  margin-top: -20px;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.header-text .sub-description {
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 1px;
  margin-top: -5px;
  background: linear-gradient(90deg,
      #f9f0e0 0%,
      #f5e4ca 15%,
      #efca82 45%,
      #eabc6a 75%,
      #d4a95a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.header-image {
  height: 400px;
  display: flex;
  width: 300px;
  align-items: start;
  padding-top: 20px;
}

.header-image img {
  width: 100%;
  object-fit: cover;
  filter: drop-shadow(2px 4px 80px white);
}

/* Обо мне */

.about {
  padding: 100px 0;
  background: var(--text-light);
}

.about-content {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  position: relative;
  min-height: 1500px;
}

.about-photo {
  position: sticky;
  top: 40px;
  align-self: flex-start;
  flex-shrink: 0;
  width: 450px;
  height: fit-content;
}

.about-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.about-text {
  flex: 1;
}

.about h2,
.title-block {
  font-size: 2.6em;
  margin-bottom: 40px;
  color: var(--primary-dark);
  font-weight: 500;
	    text-align: center;
  position: relative;
}

.about-text p {
  font-size: 1rem;
  margin-bottom: 25px;
  line-height: 1.7;
  color: #333;
}

.about-text li {
  font-size: 1rem;
  margin-bottom: 10px;
  line-height: 1.7;
  color: #333;
}

ul {
  list-style: none;
  padding-left: 0;
}

li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  line-height: 1.5;
}

li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-weight: bold;
  font-size: 1.2em;
}

main.block {
  padding: 50px 0;
}

h5 {
  font-size: 1.5rem;
  font-weight: 300;
  padding: 10px 0;
}

.contacts-about {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
	margin-bottom: 20px;
}

.contacts-phone {
  margin-top: -10px;
  margin-bottom: 20px;
  cursor: pointer !important;
}

.contacts-phone a {
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.contacts-about button {
  border: none;
  color: var(--bg-light);
	    text-align: left;
  border-radius: 8px !important;
  display: block;
         font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer !important;
	background: none;
}

.contacts-about a {
  text-decoration: none !important;
}

.contacts-about i {
  padding-right: 7px;
	    top: 3px;
    position: relative;
}

/* Над формой */

.booking h2 {
  font-size: 2.8em;
  font-weight: 900;
  text-align: center;
  margin-top: 50px;
  margin-bottom: 30px;
  background: linear-gradient(135deg,
      var(--text-light) 0%,
      var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
  position: relative;
  z-index: 3;
  text-transform: uppercase;
}

.benefits-grid {
  display: flex;
  gap: 30px;
  position: relative;
  z-index: 3;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex: 1;
  padding: 25px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.benefit-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  border-color: rgba(201, 139, 80, 0.3);
}

.benefit-icon {
  width: 50px;
  height: 50px;
  font-family: "AngstVF", sans-serif;
  background: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.3em;
  font-weight: bold;
}

.benefit-text {
  flex: 1;
}

.benefit-text h3 {
  font-size: 1.5em;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--accent-gold);
  text-transform: uppercase;
}

.benefit-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.9;
  font-weight: 300;
}

/* Форма */

.booking {
  font-family: "Roboto", sans-serif;
  padding: 50px 0;
  background: linear-gradient(135deg,
      var(--secondary-dark),
      var(--primary-dark));
  color: var(--text-light);
  border-radius: 0 100px 0 0;
  position: relative;
  overflow: hidden;
}

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

.parallax-image {
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  opacity: 0.3;
  filter: blur(2px);
  height: auto;
  object-fit: contain;
  transition: transform 0.1s ease;
}

.booking-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-form {
  max-width: 650px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.08);
  padding: 50px;
  border-radius: 8px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
  margin-bottom: 50px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  opacity: 0.9;
  font-size: 1.2rem;
}

.form-group label .wpcf7-form-control-wrap input,
.form-group label .wpcf7-form-control-wrap textarea {
  font-family: "Roboto", sans-serif;
  width: 100%;
  padding: 15px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.form-group label .wpcf7-form-control-wrap input::placeholder,
.form-group label .wpcf7-form-control-wrap textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.wpcf7-form-control-wrap {
  top: 10px;
}

.form-group label .wpcf7-form-control-wrap input:focus,
.form-group label .wpcf7-form-control-wrap textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 2px rgba(201, 139, 80, 0.2);
}

.form-group textarea {
  height: 140px;
  resize: vertical;
}

.wpcf7-form-control {
  width: 100%;
  display: block;
  padding: 15px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-align: left;
}

.wpcf7-form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 2px rgba(201, 139, 80, 0.2);
}

.wpcf7-not-valid-tip {
  color: var(--accent-gold) !important;
  margin-top: 5px;
  font-size: 1.1rem !important;
}

.wpcf7-response-output {
  border-radius: 6px;
  margin: 20px 0 0 !important;
  padding: 15px !important;
  text-align: center;
}

.wpcf7-submit {
  background: var(--accent-gold);
  color: var(--text-light);
  border: none;
  padding: 18px 50px;
  font-size: 1.1em;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 40px auto 0;
  font-weight: 500;
  font-size: 1.2em;
  letter-spacing: 1px;
}

.wpcf7-submit:hover {
  background: #b87d45;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(201, 139, 80, 0.3);
}

/* Радио */

.wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 25px;
  top: -30px;
  position: relative;
  margin-bottom: -30px;
  text-align: left;
}

.wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 25px;
}

.wpcf7-radio input[type="radio"] {
  width: 16px;
  height: 16px;
  margin-right: 5px;
  position: relative;
  top: 3px;
}

.wpcf7-radio input[type="radio" i] {
  appearance: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.6);
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
}

.wpcf7-list-item {
  margin: 0 !important;
}

.wpcf7-radio input[type="radio" i]:checked {
  background-color: var(--accent-gold) !important;
  border-color: var(--accent-gold) !important;
  position: relative;
}

.wpcf7-radio input[type="radio" i]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

/* Квадратные чекбоксы в стиле вашего дизайна */
.wpcf7-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  border-radius: 4px;
  /* Квадратные с небольшим скруглением */
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.6);
  width: 18px;
  height: 18px;
  transition: all 0.3s ease;
  margin-right: 8px;
  position: relative;
  top: 3px;
  cursor: pointer;
}

.wpcf7-checkbox input[type="checkbox"]:checked {
  background-color: var(--accent-gold) !important;
  border-color: var(--accent-gold) !important;
}

/* Галочка вместо точки */
.wpcf7-checkbox input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

span.wpcf7-form-control.wpcf7-acceptance.optional {
  border: none;
  background: none;
  margin: 0 !important;
  padding: 0 !important;
}

.wpcf7-list-item input[type="checkbox"]:checked {
  accent-color: var(--accent-gold);
}

/* Футер */

.footer {
  background: var(--text-dark);
  color: var(--text-light);
  padding: 50px 0;
  text-align: center;
}

.footer-content a {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 500;
}

.footer-content {
  opacity: 0.8;
  font-size: 0.95em;
  line-height: 1.8;
  display: flex;
  text-align: left;
  gap: 50px;
}

.footer i {
  font-size: 1.8rem;
  width: 40px;
  height: 40px;
  color: var(--text-light);
}

.footer-href,
.footer-info {
  flex: 1;
}

.footer-href a {
  font-size: 1.2rem;
  text-transform: uppercase;
}

#cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--text-light);
  padding: 15px;
  text-align: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
}

#cookie-notice span {
  color: var(--primary-dark);
}

#cookie-notice a {
  color: var(--accent-gold) !important;
  text-decoration: none;
  font-weight: 500;
  margin: 0;
}

/* Сворачивание формы */

.collapsible-wrapper {
  position: relative;
  overflow: hidden;
}

.collapsible-content {
  max-height: 700px;
  overflow: hidden;
  transition: max-height 0.3s ease;
  position: relative;
}

.collapsible-content--expanded {
  max-height: 5000px;
}

.collapsible-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom, transparent, rgb(44 28 60));
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.collapsible-fade--hidden {
  opacity: 0;
}

.collapsible-wrapper {
  text-align: center;
}

.collapsible-btn {
  width: auto;
  padding: 12px 20px;
  color: var(--primary-dark);
  border: 2px solid var(--text-light);
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: -15px;
  transition: opacity 0.3s ease;
  text-transform: uppercase;
  position: relative;
  z-index: 100;
  opacity: 0.8;
}

.collapsible-btn--hidden {
  opacity: 0;
  pointer-events: none;
}

.collapsible-btn:hover {
  background: var(--primary-dark);
  color: var(--text-light);
  opacity: 0.7;
}

/* Адаптивность */

@media (max-width: 1200px) {
  .parallax-image {
    bottom: 0 !important;
  }
}

@media (max-width: 968px) {
  .header-content {
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px 50px;
  }

  .header-text {
    border-left: none;
    margin-top: -40px;
    text-align: center;
    flex-basis: 100%;
    position: relative;
    top: 0;
    left: 0;
  }

  .header-image {
    display: none;
  }

  .about-content>div {
    gap: 50px;
    flex-wrap: wrap;
  }

  .about-photo {
    width: 40%;
    height: auto;
  }

  .about-photo img {
    height: auto;
  }

  .header-image {
    display: none;
  }

  .benefits-grid {
    flex-wrap: wrap;
  }

  .benefit-item {
    flex: auto;
  }

  .parallax-image {
    width: 120%;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 40px 0 30px;
  }

  .header-text h1 {
    font-size: 2.5em;
  }

  .header-text .description {
    font-size: 1.2rem;
    margin-top: -5px;
  }

  .header-text .sub-description {
    font-size: 1.1rem;
  }

  .header-image {
    width: 250px;
    height: 300px;
  }

  .logo-main {
    width: 110px;
    height: 110px;
  }

  .header h1 {
    font-size: 2.2em;
  }

  .booking-form {
    padding: 30px 25px;
  }

  .about-text h2,
  .booking h2 {
    font-size: 2rem;
  }

  .about {
    padding: 50px 0;
  }

  .about-content {
    display: block;
    position: relative;
    min-height: auto;
  }

  .about-content>div {
    display: block;
  }

  .about-photo {
    position: relative;
    top: auto;
    align-self: auto;
    width: 100%;
  }

  .benefit-icon {
    font-size: 1.8em !important;
  }

  .form-group label {
    font-size: 1.1rem;
  }

  .form-group label .wpcf7-form-control-wrap input,
  .form-group label .wpcf7-form-control-wrap textarea {
    font-size: 1.1rem;
  }

  .parallax-image {
    bottom: 11%;
  }

  .footer-href>div {
    margin-bottom: 20px;
  }

  .footer-href,
  .footer-info {
    flex: auto;
  }
}

@media (max-width: 480px) {
  .header-text h1 {
    font-size: 2em;
  }

  .container {
    padding: 0 30px;
  }

  .header-text .description {
    font-size: 1rem;
  }

  .header-text .sub-description {
    font-size: 0.9rem;
  }

  .header-image {
    width: 200px;
    height: 250px;
  }

  .about-text h2,
  .booking h2 {
    font-size: 1.8em;
  }

  .parallax-image {
    width: 200%;
    bottom: 12% !important;
    filter: blur(1px);
  }

  .footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }

  .header-content {
    padding: 0px 30px 30px 30px;
  }

  .about-text p {
    font-size: 1.1em;
  }

  .contacts-about button {
    width: 100%;
    font-size: 0.9rem;
  }

  .contacts-about a {
    width: 100%;
  }
}