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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #2b2b2b;
    background: #f8f6f3;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

.section + .section {
    border-top: 1px solid #eee4d6;
}

.topbar {
    background: #ffffff;
    border-bottom: 1px solid #ece7dd;
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
}

.brand__title {
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.08em;
    color: #7b6a46;
}

.brand__name {
    font-weight: 600;
    font-size: 16px;
}

.topbar__contacts {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 720px) {
    .topbar__contacts .pill {
        display: none;
    }
}

.topbar__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
    font-size: 14px;
    color: #4a463f;
}

.pill {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid #c1b59a;
    background: #fff;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    position: relative;
    overflow: hidden;
}

.pill--primary {
    background: linear-gradient(135deg, #d4af37, #b48a2c);
    color: #1f1606;
    border: none;
    box-shadow: 0 8px 20px rgba(180, 138, 44, 0.22);
}

.pill:hover,
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.pill:active,
.btn:active {
    transform: translateY(0);
    box-shadow: none;
    filter: brightness(0.97);
}

.pill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.28), transparent 35%),
                radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.16), transparent 45%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.pill:hover::before {
    opacity: 1;
}

.hero {
    padding: 44px 0;
    background: radial-gradient(circle at 18% 22%, rgba(212, 175, 55, 0.12), transparent 25%),
                radial-gradient(circle at 78% 6%, rgba(63, 51, 31, 0.05), transparent 32%),
                #f7f2ea;
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.7;
    pointer-events: none;
}

.hero::before {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.18), transparent 60%);
    top: -140px;
    left: -160px;
}

.hero::after {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(120, 90, 40, 0.12), transparent 65%);
    bottom: -120px;
    right: -150px;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: center;
    position: relative;
}

.hero__image {
    background: linear-gradient(135deg, #ffffff 0%, #f6f0e5 60%, #f1e6d7 100%);
    border-radius: 28px;
    padding: 16px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.09);
    border: 1px solid #e4d7c4;
    position: relative;
    overflow: hidden;
    animation: floatHero 9s ease-in-out infinite alternate;
}

.hero__text {
    border-radius: 18px;
    border: 1px solid transparent;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(244, 236, 219, 0.96)) padding-box,
        linear-gradient(135deg, rgba(212, 175, 55, 0.4), rgba(120, 90, 40, 0.3)) border-box;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(6px);
}

.hero__text h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 4vw, 42px);
    margin-bottom: 10px;
    color: #2d2415;
}

.hero__text .lede {
    font-size: 17px;
    color: #403728;
    margin-bottom: 16px;
}

.hero__image {
    background: linear-gradient(135deg, #ffffff 0%, #f6f0e5 60%, #f1e6d7 100%);
    border-radius: 28px;
    padding: 16px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.09);
    border: 1px solid #e4d7c4;
    position: relative;
    overflow: hidden;
}

.hero__image::before {
    content: '';
    position: absolute;
    inset: 12% -6% auto 22%;
    height: 32%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.22), transparent 60%);
    filter: blur(30px);
    pointer-events: none;
}

.hero__image img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 22px;
    background: #f8f6f3;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    color: #7c6a46;
    margin-bottom: 8px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid #c5b89d;
    background: #fff;
    font-weight: 600;
    color: #2d2415;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: linear-gradient(135deg, #d4af37, #b48a2c);
    border: none;
    color: #1f1606;
    box-shadow: 0 10px 25px rgba(180, 138, 44, 0.25);
}

.btn--ghost {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(245, 235, 212, 0.9));
    border-color: #cbb78a;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.28), transparent 35%),
                radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.16), transparent 45%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.btn:hover::before {
    opacity: 1;
}

.btn::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    opacity: 0;
    font-size: 16px;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.btn--call::after {
    content: '📞';
}

.btn--mail::after {
    content: '✉️';
}

.btn--call:hover::after,
.btn--mail:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.btn--call,
.btn--mail {
    padding-right: 42px;
}

.btn:hover {
    transform: translateY(-1px) scale(1.01);
}

.btn:active {
    transform: translateY(0);
    box-shadow: none;
    filter: brightness(0.97);
}

.badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.badge {
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.12);
    color: #5a4a28;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.card {
    background: #ffffff;
    border: 1px solid #e2d7c4;
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card::after {
    content: '';
    position: absolute;
    inset: 10px 12px auto auto;
    width: 22px;
    height: 2px;
    background: linear-gradient(90deg, #d4af37, transparent);
    opacity: 0.4;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.overlay__contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-weight: 600;
    color: #2d2415;
    margin-top: 4px;
}

.hero__note {
    margin-top: 8px;
    font-size: 14px;
    color: #5a5143;
}

.hero__social {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: var(--reveal-delay, 0s);
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.section {
    padding: 72px 0;
}

.section--services {
    background: #f4f6fb;
}

.section--services .section__grid {
    gap: 32px;
}

.section--services .cards {
    gap: 20px;
}

.section--services .card {
    text-align: center;
    border: 1px solid #e8ecf5;
    box-shadow: 0 12px 32px rgba(20, 40, 80, 0.08);
    border-radius: 22px;
    padding: 28px 26px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.section--services .card h3 {
    color: #0b2a6b;
    font-weight: 800;
    margin-bottom: 10px;
}

.section--services .card p {
    color: #4b4f63;
    line-height: 1.55;
}

.section--services .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(20, 40, 80, 0.12);
    border-color: #d4e0ff;
}

.card__icon {
    font-size: 44px;
    display: inline-block;
    margin-bottom: 12px;
}

.cta-bubble {
    position: absolute;
    transform: translate(-50%, -12px) scale(0.96);
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(45, 36, 21, 0.92);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 30;
    white-space: nowrap;
}

.cta-bubble.visible {
    opacity: 1;
    transform: translate(-50%, -18px) scale(1);
}

@keyframes floatHero {
    0% { transform: translateY(0px) scale(1); }
    100% { transform: translateY(-6px) scale(1.01); }
}

.section__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.section__intro h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 3vw, 36px);
    color: #2d2415;
    margin-bottom: 10px;
    position: relative;
}

.section__intro p {
    color: #433a2d;
    font-size: 16px;
    max-width: 640px;
}

.section__intro h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 88px;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, transparent);
    border-radius: 8px;
}

.cards {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #2f2617;
}

.card p {
    color: #4d4231;
    font-size: 15px;
}

.section--accent {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.16), rgba(255, 255, 255, 0.7));
    border-top: 1px solid #e5d9c5;
    border-bottom: 1px solid #e5d9c5;
    position: relative;
    overflow: hidden;
}

.highlight {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.highlight::before {
    content: '';
    position: absolute;
    inset: -40% auto auto -20%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.18), transparent 55%);
    pointer-events: none;
}

.highlight__actions {
    display: flex;
    gap: 10px;
}

.contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: start;
}

.contact__list {
    list-style: none;
    display: grid;
    gap: 8px;
    margin: 12px 0 18px;
    color: #433a2d;
}

.contact__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact__buttons a {
    min-width: 180px;
}

.contact__info {
    display: grid;
    gap: 6px;
}

form {
    display: grid;
    gap: 12px;
}

label {
    display: grid;
    gap: 6px;
    font-weight: 600;
    color: #2f2617;
}

input,
textarea {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #d8ccb7;
    background: #fff;
    font: inherit;
    color: #2d2415;
}

input:focus,
textarea:focus {
    outline: 2px solid rgba(212, 175, 55, 0.5);
    border-color: #c9b079;
}

.form-note {
    font-size: 13px;
    color: #7b6a46;
}

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 600;
    margin-bottom: 8px;
}

.alert--success {
    background: #e8f7ef;
    color: #1f6b3a;
    border: 1px solid #b8e0c8;
}

.alert--error {
    background: #fff0f0;
    color: #a12424;
    border: 1px solid #e5b8b8;
}

.footer {
    padding: 24px 0 28px;
    background: #f1eadf;
    border-top: 1px solid #e0d6c5;
}

.footer__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-items: center;
    gap: 12px;
    color: #3b3122;
}

.footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-weight: 600;
}

.footer__social {
    display: flex;
    gap: 10px;
    font-size: 18px;
    align-items: center;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e6dcc9;
    border: 1px solid #d4c39d;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-size: 70%;
    background-position: center;
    background-repeat: no-repeat;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.social-link--tg {
    background-color: #e8f1fb;
    border-color: #bcd5f5;
    background-image: url("../img/tg.png");
    background-size: 78%;
}

.social-link--max {
    background-color: #eef1ff;
    border-color: #cfd8ff;
    background-image: url("../img/max.png");
    background-size: 78%;
}

.social-link--vk {
    background-color: #e7eef9;
    border-color: #c7d6f0;
    background-image: url("../img/vk.png");
    background-size: 78%;
}

.footer__note {
    font-size: 14px;
    color: #6a5d45;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.modal[aria-hidden="false"] {
    display: flex;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
}

.modal__dialog {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 20px 20px 16px;
    width: min(420px, 90vw);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2d7c4;
    z-index: 1;
}

.lock-scroll {
    overflow: hidden;
}

.modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #d8ccb7;
    background: #fff;
    font-weight: 700;
    cursor: pointer;
}

.modal__hint {
    color: #4b4233;
    margin: 6px 0 12px;
}

.modal__actions {
    display: grid;
    gap: 10px;
}

.modal__btn {
    width: 100%;
    justify-content: center;
    gap: 0;
    position: relative;
    padding: 14px 16px 14px 60px;
    text-align: center;
    background: linear-gradient(135deg, #f7f2e8, #f1e6d9);
    border: 1px solid #d4c3a5;
    color: #2d2415;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.modal__btn:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.14);
    filter: brightness(1.02);
}

.modal__btn:active {
    transform: translateY(0) scale(0.99);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
    filter: brightness(0.96);
}

.modal__btn::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background-size: 24px 24px;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1;
    pointer-events: none;
}

.modal__btn--tg::before {
    background-image: url("../img/tg.png");
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.15));
}

.modal__btn--vk::before {
    background-image: url("../img/vk.png");
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.15));
}

.modal__btn--max::before {
    background-image: url("../img/max.png");
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.15));
}

.modal__btn--mail::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232d2415' d='M3 6.75A1.75 1.75 0 0 1 4.75 5h14.5A1.75 1.75 0 0 1 21 6.75v10.5A1.75 1.75 0 0 1 19.25 19H4.75A1.75 1.75 0 0 1 3 17.25zM5.5 7a.5.5 0 0 0-.3.9l6.5 4.25a.5.5 0 0 0 .54 0L18.74 7.9A.5.5 0 0 0 18.5 7z'/%3E%3C/svg%3E");
}
@media (max-width: 540px) {
    .modal__dialog {
        padding: 16px 16px 12px;
    }
}
@media (max-width: 960px) {
    .hero__grid {
        grid-template-columns: 1fr;
    }
    .hero__image {
        order: 1;
    }
    .hero__text {
        order: 2;
    }
}

@media (max-width: 640px) {
    .hero__text {
        padding: 16px;
    }
    .hero__text h1 {
        font-size: 30px;
    }
}

@media (max-width: 720px) {
    .topbar__inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .topbar__contacts {
        width: 100%;
        justify-content: flex-start;
        gap: 6px;
        flex-wrap: wrap;
    }
    .topbar__text {
        text-align: left;
        align-items: flex-start;
    }
    .hero__image {
        animation: none;
    }
    .hero {
        padding-top: 40px;
    }
    .highlight {
        flex-direction: column;
        align-items: flex-start;
    }
}
