:root {
  --primary-color: #c9a96e;
  --secondary-color: #8b6914;
  --accent-color: #daa520;
  --gold-light: #f4e4bc;
  --gold-medium: #d4af37;
  --gold-dark: #8b6914;
  --light-color: #fefcf7;
  --beige-color: #f7f0e6;
  --dark-beige: #e8dcc0;
  --brown-color: #6b5b47;
  --dark-brown: #4a3f32;
  --text-color: #1a1a1a;
  --light-text: #ffffff;
  --gray-text: #4a4a4a;
  --border-color: #d4c4a8;
  --shadow-color: rgba(139, 105, 20, 0.2);
  --transition: all 0.3s ease-in-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Crimson Text", serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--light-color);
  overflow-x: hidden;
  font-weight: 400;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Libre Baskerville", serif;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 0.5em;
  color: var(--text-color);
  letter-spacing: 0.5px;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.75rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1.1rem;
}

p {
  margin-bottom: 1em;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 2px;
  font-family: "Crimson Text", serif;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold-medium), var(--gold-dark));
  color: white;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
  border: 1px solid var(--gold-dark);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-medium));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.btn--secondary,
.btn--outline {
  background: transparent;
  color: var(--gold-dark);
  border: 1px solid var(--gold-medium);
}

.btn--secondary:hover {
  background: var(--gold-medium);
  color: white;
  transform: translateY(-1px);
}

.btn--outline:hover {
  background: var(--gold-medium);
  color: white;
}

.text-center {
  text-align: center;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-header::before {
  content: "❦";
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold-light);
  font-size: 1.5rem;
  opacity: 0.6;
}

.section-title {
  font-size: 2.2rem;
  color: var(--gold-dark);
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold-medium),
    transparent
  );
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--gray-text);
  max-width: 600px;
  margin: 1rem auto 0;
}

.card {
  background: white;
  border-radius: 4px;
  box-shadow: 0 3px 12px var(--shadow-color);
  transition: var(--transition);
  overflow: hidden;
  position: relative;
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--gold-light), transparent);
  border-radius: 0 4px 0 20px;
  opacity: 0.3;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--shadow-color);
}

.icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.icon svg {
  width: 30px;
  height: 30px;
  fill: white;
  stroke: white;
}

.form__group {
  margin-bottom: 20px;
}

.form__label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-color);
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 2px;
  font-family: "Crimson Text", serif;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--light-color);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: var(--gold-medium);
  outline: none;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__submit {
  width: 100%;
  margin-top: 10px;
}

.star {
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-right: 2px;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fadeInUp {
  animation: fadeInUp 0.6s ease-out forwards;
}

@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  h3 {
    font-size: 1.5rem;
  }
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.6rem;
  }
  h3 {
    font-size: 1.4rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .section-subtitle {
    font-size: 1.1rem;
  }
  .btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 12px;
  }

  h1 {
    font-size: 1.6rem;
    line-height: 1.3;
  }
  h2 {
    font-size: 1.4rem;
    line-height: 1.3;
  }
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  .section-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  .section-header {
    margin-bottom: 2rem;
  }
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    min-height: 44px;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: var(--beige-color);
  color: var(--secondary-color);
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
}

.badge__icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: white;
  border-radius: 6px;
}

.chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #fff7e9;
  color: var(--brown-color);
  font-size: 0.8rem;
  border: 1px solid var(--border-color);
}

.btn--pill {
  border-radius: 9999px;
  padding-left: 22px;
  padding-right: 22px;
}

.btn--ghost {
  background: #fff7e9;
  color: var(--secondary-color);
  border: 1px solid var(--border-color);
}

.list--dots {
  padding-left: 0;
}

.list--dots li {
  position: relative;
  padding-left: 16px;
  margin: 8px 0;
  color: var(--gray-text);
}

.list--dots li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.18);
}

.stat {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
}

.stat__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--beige-color), #fff);
  border: 1px solid var(--border-color);
  color: var(--secondary-color);
}

.stat__value {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  color: var(--secondary-color);
  line-height: 1.1;
}

.stat__label {
  font-size: 0.85rem;
  color: var(--gray-text);
}

.card--soft {
  border: 1px solid var(--border-color);
  background: linear-gradient(180deg, #fff, var(--beige-color));
}

.filter-btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  background: #fff7e9;
  color: var(--secondary-color);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  margin: 6px 8px 0 0;
}

.filter-btn:hover {
  background: #ffeccf;
}

.filter-btn.active {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(230, 126, 34, 0.25);
}

/* Header */
.header {
  background: linear-gradient(180deg, #fffdf7, #faf1de);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(0);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--gold-medium);
  background: linear-gradient(135deg, var(--gold-light), #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: var(--gold-dark);
  margin: 0;
  font-weight: 300;
  letter-spacing: 1px;
  font-style: italic;
}

.logo-subtitle {
  font-size: 0.8rem;
  color: var(--gray-text);
  margin: 0;
  font-family: "Crimson Text", serif;
  font-style: italic;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

.nav {
  position: relative;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav__item {
  margin: 0 5px;
}

.nav__link {
  display: block;
  padding: 10px 15px;
  font-family: "Crimson Text", serif;
  font-weight: 400;
  font-size: 1rem;
  color: var(--text-color);
  border-radius: 4px;
  transition: var(--transition);
  position: relative;
  letter-spacing: 0.3px;
}

.nav__link:hover,
.nav__link.active {
  color: var(--gold-dark);
  background: var(--gold-light);
}
.nav__link.active {
  font-weight: 600;
}
.nav__link.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--gold-medium);
  animation: slideIn 0.3s forwards;
}

@keyframes slideIn {
  from {
    width: 0;
  }
  to {
    width: 60%;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.nav-toggle__line {
  width: 30px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 10px;
  transition: var(--transition);
  position: relative;
}

.nav-toggle.active .nav-toggle__line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active .nav-toggle__line:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active .nav-toggle__line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 992px) {
  .nav-toggle {
    display: flex;
  }
  .nav__list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }
  .nav__list.active {
    right: 0;
  }
  .nav__item {
    margin: 15px 0;
  }
  .nav__link {
    padding: 15px 20px;
    font-size: 1.2rem;
  }
  .logo-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  .header__inner {
    padding: 10px 0;
  }

  .logo-link {
    gap: 10px;
  }

  .logo-img {
    width: 35px;
    height: 35px;
    border-width: 1px;
    border-radius: 3px;
  }

  .logo-title {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
  }

  .logo-subtitle {
    font-size: 0.7rem;
  }

  .header__actions .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #f9eed7, #fff8ea);
  padding: 150px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "✧ ✦ ✧";
  position: absolute;
  top: 50px;
  right: 50px;
  color: var(--gold-light);
  font-size: 1.2rem;
  opacity: 0.4;
  animation: sparkle 4s ease-in-out infinite;
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      1200px 400px at 0% 0%,
      rgba(0, 0, 0, 0.04),
      transparent 60%
    ),
    radial-gradient(
      1200px 400px at 100% 0%,
      rgba(0, 0, 0, 0.04),
      transparent 60%
    );
  opacity: 1;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}
.hero__content {
  flex: 1;
  max-width: 600px;
}
.hero__title {
  font-family: "Libre Baskerville", serif;
  font-size: 3.2rem;
  color: var(--gold-dark);
  line-height: 1.3;
  margin-bottom: 20px;
  font-weight: 400;
  letter-spacing: 1px;
}
.hero__subtitle {
  font-size: 1.3rem;
  color: var(--gray-text);
  margin-bottom: 30px;
  line-height: 1.6;
}
.hero__buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}
.hero__image {
  flex: 1;
  max-width: 500px;
  position: relative;
}
.hero-img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border: 5px solid white;
  background-color: #f5e6d3;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-text);
  font-style: italic;
  /* Цветовые фильтры для гармоничного вписывания в дизайн */
  filter: sepia(12%) saturate(115%) hue-rotate(15deg) brightness(115%)
    contrast(105%) drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
  transition: filter 0.3s ease;
}

.hero-img:hover {
  filter: sepia(15%) saturate(120%) hue-rotate(18deg) brightness(120%)
    contrast(108%) drop-shadow(0 0 18px rgba(255, 255, 255, 0.25));
}
.hero__image::before {
  content: "";
  position: absolute;
  top: -15px;
  left: -15px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--gold-medium);
  border-radius: 12px;
  z-index: -1;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.hero__image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(212, 175, 55, 0.06) 30%,
    rgba(139, 105, 20, 0.04) 70%,
    rgba(244, 228, 188, 0.06) 100%
  );
  border-radius: 10px;
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 992px) {
  .hero {
    padding: 120px 0 80px;
  }
  .hero__title {
    font-size: 2.5rem;
  }
  .hero__subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  .hero__title {
    font-size: 2.2rem;
  }
  .hero__buttons {
    justify-content: center;
  }
  .hero__image {
    max-width: 100%;
    margin-top: 40px;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 80px 0 50px;
  }

  .hero__title {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 15px;
  }

  .hero__subtitle {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 25px;
  }

  .hero__buttons {
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
  }

  .hero__buttons .btn {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .hero__image {
    margin-top: 30px;
  }

  .hero-img {
    min-height: 250px;
    border-width: 3px;
    /* Усиленные фильтры для мобильных устройств */
    filter: sepia(15%) saturate(120%) hue-rotate(18deg) brightness(118%)
      contrast(108%) drop-shadow(0 0 12px rgba(255, 255, 255, 0.18));
  }

  .hero__image::before {
    top: -10px;
    left: -10px;
    border-width: 1px;
  }

  .hero__image::after {
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(212, 175, 55, 0.08) 30%,
      rgba(139, 105, 20, 0.06) 70%,
      rgba(244, 228, 188, 0.08) 100%
    );
  }
}

/* Services */
.services {
  padding: 80px 0;
  background: #fffaf0;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}
.service-card {
  background: linear-gradient(180deg, #ffffff, #fff8f0);
  border-radius: 12px;
  padding: 40px 30px;
  text-align: left;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 2px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(139, 105, 20, 0.1);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(139, 105, 20, 0.2);
  border-color: var(--gold-medium);
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-medium), var(--gold-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover::before {
  transform: scaleX(1);
}
.service-card__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: var(--transition);
}
.service-card:hover .service-card__icon {
  transform: scale(1.05);
}
.service-card__icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: var(--transition);
  filter: brightness(0) saturate(100%) invert(25%) sepia(15%) saturate(1200%)
    hue-rotate(25deg) brightness(90%) contrast(85%);
}

.service-card:hover .service-card__icon img {
  transform: scale(1.05);
  filter: brightness(0) saturate(100%) invert(15%) sepia(20%) saturate(1500%)
    hue-rotate(25deg) brightness(80%) contrast(100%);
}

.service-card__title {
  font-family: "Libre Baskerville", serif;
  font-size: 1.5rem;
  color: var(--gold-dark);
  margin-bottom: 15px;
  font-weight: 400;
  letter-spacing: 0.5px;
}
.service-card__description {
  color: var(--gray-text);
  margin-bottom: 20px;
  line-height: 1.6;
}
.service-card .list--dots {
  margin-top: 12px;
}
.service-card__link {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding-right: 25px;
  transition: var(--transition);
}
.service-card__link::after {
  content: "→";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: var(--transition);
}
.service-card__link:hover {
  color: var(--secondary-color);
  padding-right: 30px;
}
.service-card__link:hover::after {
  opacity: 1;
  right: 5px;
}

@media (max-width: 992px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .services {
    padding: 60px 0;
  }

  .services__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .service-card {
    padding: 25px 20px;
  }

  .service-card__title {
    font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  .services {
    padding: 50px 0;
  }

  .services__grid {
    gap: 15px;
    margin-top: 25px;
  }

  .service-card {
    padding: 20px 15px;
  }

  .service-card__icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
  }

  .service-card__icon {
    border: none;
    border-radius: 0;
    background: transparent;
  }

  .service-card__icon img {
    width: 30px;
    height: 30px;
  }

  .service-card__title {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }

  .service-card__description {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }
}

/* Portfolio */
.portfolio {
  padding: 80px 0;
  background: white;
}
.portfolio__filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}
.portfolio-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}
.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
.portfolio-item__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  background-color: #f5e6d3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-text);
  font-style: italic;
}
.portfolio-item:hover .portfolio-img {
  transform: scale(1.05);
}
.portfolio-item__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.portfolio-item:hover .portfolio-item__overlay {
  opacity: 1;
}
.portfolio-item__zoom {
  color: white;
  background: var(--primary-color);
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}
.portfolio-item__zoom:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}
.portfolio-item__info {
  padding: 20px;
  background: white;
}
.portfolio-item__title {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--text-color);
}
.portfolio-item__category {
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Скрыть изображения процесса и ателье по умолчанию */
.portfolio-item[data-category="process"],
.portfolio-item[data-category="atelier"] {
  display: none;
}

/* Стили для изображений процесса - обеспечить одинаковый размер */
.portfolio-item[data-category="process"] .portfolio-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center;
}

/* Стили для изображений ателье - обеспечить одинаковый размер */
.portfolio-item[data-category="atelier"] .portfolio-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 992px) {
  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .portfolio {
    padding: 60px 0;
  }

  .portfolio__grid {
    gap: 20px;
    margin-bottom: 40px;
  }
}

@media (max-width: 576px) {
  .portfolio {
    padding: 50px 0;
  }

  .portfolio__grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 30px;
  }

  .portfolio__filters {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
  }

  .filter-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    min-width: auto;
  }

  .portfolio-item__info {
    padding: 15px;
  }

  .portfolio-item__title {
    font-size: 1.1rem;
  }

  .portfolio-item__category {
    font-size: 0.8rem;
  }

  /* Адаптивные стили для изображений процесса и ателье на мобильных */
  .portfolio-item[data-category="process"] .portfolio-img,
  .portfolio-item[data-category="atelier"] .portfolio-img {
    height: 200px;
  }
}

/* Contact */
.contact {
  padding: 80px 0;
  background: white;
}
.contact__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.contact__info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.contact-info__item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.contact-info__icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--beige-color), #fff);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  flex-shrink: 0;
}
.contact-info__content {
  flex: 1;
}
.contact-info__title {
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
}
.contact-info__text {
  color: var(--gray-text);
  margin-bottom: 5px;
}
.contact-form__title {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
}
.contact-form__subtitle {
  color: var(--gray-text);
  margin-bottom: 30px;
}
.form__checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}
.form__checkbox-input {
  width: 20px;
  height: 20px;
}
.form__checkbox-label {
  margin-bottom: 0;
  font-size: 0.9rem;
}
.privacy-link {
  color: var(--primary-color);
  text-decoration: underline;
}
@media (max-width: 992px) {
  .contact__wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .contact {
    padding: 60px 0;
    text-align: center;
  }

  .contact .section-header {
    text-align: center;
  }

  .contact .section-title {
    text-align: center;
  }

  .contact .section-subtitle {
    text-align: center;
  }

  .contact__wrapper {
    gap: 30px;
    justify-items: center;
  }

  .contact__info {
    align-items: center;
    text-align: center;
  }

  .contact-info__item {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    align-items: center;
  }

  .contact-info__icon {
    align-self: center;
  }

  .contact-info__content {
    text-align: center;
  }

  .contact-form {
    text-align: center;
  }

  .form__checkbox {
    justify-content: center;
  }

  .btn {
    margin: 0 auto;
  }

  .map__wrapper {
    height: 250px !important;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .contact {
    padding: 50px 0;
    text-align: center;
  }

  .contact .section-header {
    text-align: center;
  }

  .contact .section-title {
    text-align: center;
  }

  .contact .section-subtitle {
    text-align: center;
  }

  .contact__wrapper {
    gap: 25px;
    justify-items: center;
  }

  .contact__info {
    gap: 20px;
    align-items: center;
    text-align: center;
  }

  .contact-info__item {
    gap: 12px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-info__icon {
    width: 40px;
    height: 40px;
    align-self: center;
  }

  .contact-info__content {
    text-align: center;
  }

  .contact-info__title {
    font-size: 1.1rem;
    text-align: center;
  }

  .contact-info__text {
    font-size: 0.9rem;
    text-align: center;
  }

  .contact-form {
    text-align: center;
  }

  .contact-form__title {
    font-size: 1.3rem;
    text-align: center;
  }

  .contact-form__subtitle {
    font-size: 0.9rem;
    text-align: center;
  }

  .form__input,
  .form__select,
  .form__textarea {
    padding: 10px 12px;
    font-size: 0.9rem;
    text-align: center;
  }

  .form__checkbox {
    justify-content: center;
  }

  .form__checkbox-label {
    text-align: center;
  }

  .btn {
    margin: 0 auto;
  }

  .map__wrapper {
    height: 200px !important;
    margin: 0 auto;
  }
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--dark-brown), var(--brown-color));
  color: white;
  padding: 60px 0 20px;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold-medium),
    transparent
  );
}
.footer__top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer__logo img {
  margin-bottom: 15px;
  background: white;
  padding: 10px;
  border-radius: 10px;
  width: 80px;
  height: 80px;
}
.footer__slogan {
  font-style: italic;
  color: var(--beige-color);
  margin-bottom: 20px;
}
.footer__title {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
}
.footer__list li {
  margin-bottom: 10px;
}
.footer__list a {
  color: var(--beige-color);
  transition: var(--transition);
}
.footer__list a:hover {
  color: white;
  padding-left: 5px;
}
.footer__address {
  font-style: normal;
  color: var(--beige-color);
}
.footer__address p {
  margin-bottom: 8px;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer__copyright {
  color: var(--beige-color);
  font-size: 0.9rem;
}
.footer__social {
  display: flex;
  gap: 15px;
}
.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition);
}
.social-link:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}
@media (max-width: 992px) {
  .footer__top {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .footer {
    padding: 40px 0 15px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 30px;
  }

  .footer__title {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }

  .footer__slogan {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }

  .footer__list li {
    margin-bottom: 8px;
  }

  .footer__list a {
    font-size: 0.9rem;
  }

  .footer__address p {
    margin-bottom: 6px;
    font-size: 0.9rem;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .footer__copyright {
    font-size: 0.8rem;
  }

  .social-link {
    width: 35px;
    height: 35px;
  }
}

/* Additional Sections */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--gold-medium), var(--gold-dark));
  color: white;
  text-align: center;
  position: relative;
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
}

.cta::after {
  content: "✧";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.2);
  font-size: 2rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateX(-50%) translateY(0px);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}
.cta__title {
  color: white;
  margin-bottom: 20px;
}
.cta__subtitle {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta__buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.btn--white {
  background: white;
  color: var(--primary-color);
}
.btn--white:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--secondary-color);
}
.btn--outline-white {
  background: transparent;
  color: white;
  border: 2px solid white;
}
.btn--outline-white:hover {
  background: white;
  color: var(--primary-color);
}
@media (max-width: 768px) {
  .cta {
    padding: 60px 0;
  }
}

@media (max-width: 576px) {
  .cta {
    padding: 50px 0;
  }

  .cta__title {
    font-size: 1.4rem;
    margin-bottom: 15px;
  }

  .cta__subtitle {
    font-size: 0.9rem;
    margin-bottom: 30px;
  }

  .cta__buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .cta__buttons .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.modal.active {
  opacity: 1;
  visibility: visible;
}
.modal__content {
  background: white;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  padding: 30px;
  position: relative;
  transform: translateY(30px);
  transition: var(--transition);
}
.modal.active .modal__content {
  transform: translateY(0);
}
.modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-text);
  transition: var(--transition);
}
.modal__close:hover {
  color: var(--primary-color);
}
.modal__title {
  margin-bottom: 20px;
  color: var(--secondary-color);
}

/* Lightbox modal for images */
/* Improved Lightbox Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
  backdrop-filter: blur(5px);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.lightbox__img.zoomed {
  transform: scale(1.5);
  cursor: zoom-out;
}

.lightbox__caption {
  margin-top: 15px;
  color: white;
  text-align: center;
  font-size: 1.1rem;
  background: rgba(0, 0, 0, 0.7);
  padding: 8px 16px;
  border-radius: 4px;
  max-width: 80%;
}

.modal__close {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal__close:hover {
  background: var(--primary-color);
  transform: scale(1.1);
}

/* Navigation arrows for lightbox */
.lightbox__nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  transform: translateY(-50%);
  pointer-events: none;
}

.lightbox__button {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.lightbox__button:hover {
  background: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .lightbox__img {
    max-width: 95vw;
    max-height: 70vh;
  }

  .lightbox__button {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .modal__close {
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
  }
}

/* Pricing (new) */
.pricing {
  padding: 80px 0;
  background: #fffaf0;
}
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.price-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px var(--shadow-color);
}
.price-card__title {
  font-family: "Playfair Display", serif;
  color: var(--secondary-color);
  margin-bottom: 8px;
}
.price-card__subtitle {
  color: var(--gray-text);
  margin-bottom: 16px;
}
.price-card__list {
  margin-bottom: 16px;
}
.price-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.price-card__price {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  color: var(--secondary-color);
}
@media (max-width: 992px) {
  .pricing__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .pricing {
    padding: 60px 0;
  }

  .pricing__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .pricing {
    padding: 50px 0;
  }

  .pricing__grid {
    gap: 15px;
  }

  .price-card {
    padding: 20px 15px;
  }

  .price-card__title {
    font-size: 1.2rem;
  }

  .price-card__subtitle {
    font-size: 0.9rem;
  }

  .price-card__price {
    font-size: 1.2rem;
  }
}

/* Map section */
.map {
  padding: 0;
  background: #fff;
}
.map .container {
  padding: 0 20px 80px;
}
.map__wrapper {
  position: relative;
  height: 420px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px var(--shadow-color);
}
.map__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.map__overlay {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.map__link {
  font-weight: 600;
}

/* Contact map styles */
.contact-info__item .map__wrapper {
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border-color);
}

.contact-info__item .map__link {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.contact-info__item .map__link:hover {
  color: var(--secondary-color);
}
