/* Base */
:root {
  --bg: #F7F5F2;
  --text: #1A1A1A;
  --muted: #ffffff;
  --accent: #B48A60; /* bronze */
  --accent-2: #7E3D3F; /* deep burgundy */
  --border: rgba(26,26,26,0.12);
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.2;
  margin: 0 0 16px;
}
h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; line-height: 1.12; letter-spacing: -0.2px; }
h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; }
h3 { font-size: 22px; font-weight: 700; }
.lead { font-size: 18px; opacity: 0.9; margin-top: 8px; }
.sublead { font-size: 16px; opacity: 0.9; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(247,245,242,0.8);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { font-weight: 700; letter-spacing: 0.2px; }
.nav { display: none; gap: 16px; }
.nav a { padding: 8px 10px; border-radius: 10px; }
.nav a:hover { background: rgba(0,0,0,0.04); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all .25s ease;
  cursor: pointer;
}
.btn--small { padding: 8px 12px; font-size: 14px; }
.btn--primary {
  background: linear-gradient(180deg, #caa483, var(--accent));
  color: #fff;
  box-shadow: var(--shadow);
}
.btn--primary:hover { filter: saturate(1.05) brightness(1.02); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--contrast {
  background: #1A1A1A;
  color: #fff;
}
.btn--contrast:hover { filter: brightness(1.05); transform: translateY(-1px); }

/* Sections */
.section { padding: 72px 0; }
.section.hero { padding: 96px 0 88px; }
.section--muted { background: var(--muted); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.align-center { text-align: center; }

/* Hero */
.hero__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.kicker { letter-spacing: 1.2px; text-transform: uppercase; font-size: 12px; opacity: .7; margin-bottom: 12px; }
.hero__ctas { display: flex; gap: 12px; margin-top: 18px; }
.hero__media { height: 550px; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero__content { max-width: 720px; }
.hero__content h1 { text-wrap: balance; }

/* About */
.grid { display: grid; gap: 32px; }
.grid--2 { grid-template-columns: 1fr 1fr; align-items: center; }
.infostrip { display: flex; gap: 16px; padding: 0; margin: 16px 0 0; list-style: none; flex-wrap: wrap; }
.infostrip li { padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; background: #fff; }
.about__media { height: 460px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: rgba(26,26,26,0.18); }
.card__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.card--highlight { border-width: 2px; border-color: var(--accent); }
.card--elevated { box-shadow: var(--shadow); }
.card--vip { border-width: 2px; border-color: var(--accent-2); }
.card__actions { margin-top: 16px; }

/* Testimonials */
.video-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.video-card p { margin: 12px 0 0; font-size: 15px; }
.video { width: 100%; height: 320px; border-radius: 10px; background: #000; object-fit: contain; object-position: center; }

/* Carousel */
.carousel { position: relative; }
.carousel__viewport { overflow-x: hidden; overflow-y: visible; padding-bottom: 8px; }
.carousel__track { display: flex; gap: 24px; transition: transform .35s ease; will-change: transform; }
.carousel__item { flex: 0 0 calc((100% - 48px) / 3); display: flex; flex-direction: column; }
.carousel__btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; border: 1px solid var(--border); background: #fff; width: 40px; height: 40px; border-radius: 999px; box-shadow: var(--shadow); cursor: pointer; }
.carousel__btn--prev { left: -56px; }
.carousel__btn--next { right: -56px; }
.carousel__btn:hover { border-color: var(--accent); color: var(--accent); }

.testimonials__more { margin-top: 24px; }

/* Accordion */
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__trigger {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 16px 0;
  font-size: 16px;
  cursor: pointer;
}
.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, opacity .3s ease;
  opacity: 0.9;
}
.accordion__item.is-open .accordion__content { max-height: 200px; }

/* Contacts */
.contact-list { list-style: none; padding: 0; margin: 0 0 16px; }
.contact-list li { margin: 6px 0; }
.contact-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.form-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.form-row--inline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
label { font-size: 14px; opacity: .8; }
input, textarea { padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; font: inherit; background: #fff; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(180,138,96,0.15); }
.checkbox { display: flex; align-items: center; gap: 8px; font-size: 14px; }

/* Final CTA */
.final-cta__inner { text-align: center; background: linear-gradient(180deg, #fff, #f3efea); padding: 36px; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.final-cta h2 { margin-bottom: 10px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: rgba(255,255,255,0.7); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.footer-links { display: flex; gap: 16px; }

/* Placeholders */
.placeholder { background: repeating-linear-gradient(135deg, #e9e6e2, #e9e6e2 10px, #f3f0eb 10px, #f3f0eb 20px); border: 1px dashed rgba(26,26,26,0.2); }
.placeholder--portrait { width: 100%; height: 100%; border-radius: var(--radius); }
.placeholder--video { width: 100%; height: 180px; border-radius: 10px; background: linear-gradient(180deg, #ddd, #eee); display: grid; place-items: center; position: relative; }
.placeholder--video::before { content: "▶"; position: absolute; font-size: 28px; color: rgba(0,0,0,0.55); }

/* Responsive */
@media (min-width: 920px) { .nav { display: flex; } }
@media (max-width: 919px) {
  .hero__inner { grid-template-columns: 1fr; gap: 28px; }
  .section.hero { padding: 72px 0 64px; }
  .grid--2 { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .header-inner { gap: 12px; }
  .footer-inner { flex-direction: column; gap: 8px; height: auto; padding: 12px 0; }
  .carousel__item { flex-basis: 100%; }
  .video { height: 260px; }
  .hero__media { height: 420px; }
  .about__media { height: 380px; }
  .carousel__btn--prev { left: -4px; }
  .carousel__btn--next { right: -4px; }
}

/* Стили для модального окна выбора мессенджера */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--muted);
    margin: 15% auto;
    padding: 0;
    border-radius: var(--radius);
    width: 90%;
    max-width: 440px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text);
    opacity: 0.6;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    opacity: 1;
    background: rgba(0,0,0,0.05);
}

.modal-body {
    padding: 24px;
}

.modal-subtitle {
    opacity: 0.8;
    margin-bottom: 20px;
    text-align: center;
    font-size: 15px;
}

.messenger-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.messenger-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
}

.messenger-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.telegram-btn:hover {
    border-color: #0088cc;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.15);
}

.whatsapp-btn:hover {
    border-color: #25D366;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.15);
}

.messenger-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #ccc;
}

.messenger-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.messenger-text strong {
    font-weight: 600;
    margin-bottom: 2px;
}

.messenger-text span {
    font-size: 13px;
    opacity: 0.7;
}

.modal-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}

/* Адаптивность для модального окна */
@media (max-width: 919px) {
    .modal-content {
        margin: 20% auto;
        width: 95%;
        max-width: 380px;
    }
    
    .modal-header {
        padding: 20px 20px 12px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 12px 20px 20px;
    }
    
    .messenger-btn {
        padding: 14px;
    }
    
    .messenger-icon {
        width: 40px;
        height: 40px;
    }
}
