:root {
    --white: #fff;
    --brown: #74191c;
    --beige: #eed9c6;
    --cream: #fcf0e2;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--brown);
    background: var(--white);
}

/* --- Header --- */
.header {
    background: var(--brown);
    border-bottom: 2px solid var(--beige);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    color: var(--cream);

}
.header.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);

}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}
.header.scrolled .header-inner {
    padding: 8px 0;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
.logo img {
    height: 60px;
    transition: height 0.3s ease;
}
.header.scrolled .logo img {
    height: 40px;
}
.brand, .contacts {
    display: flex;
    flex-direction: row;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}
.brand h1 {
    display: none;
    margin: 0;
    font-size: 1.5rem;
    transition: font-size 0.3s ease;
}
.header.scrolled .brand h1 {
    font-size: 1.2rem;
    padding: 3px 0 0 0;
}
.contacts a{
    color: var(--cream);
    text-decoration: none;
        margin: 0;
    font-size: 1.2rem;
}

/* --- Main Navigation --- */
.main_nav {
    display: flex;
    flex-direction: row;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main_nav li {
    margin: 0;
}
.main_nav a {
    color: var(--beige);
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
}
.main_nav a:hover {
    border: 1px solid var(--beige);
    color: #fcf0e2;
}

.messengers a {
    margin-left: 10px;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--cream);
    color: var(--brown);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-max img{
    width: 24px;
    height: 24px;
}
.logo{
    max-width: 190px;
    height: auto;
}
.logo img{
    width: 100%;
    height: auto;
}
h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}
h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}
/* --- Hero --- */
.hero {
    background: var(--beige);
    padding: 60px 0;
}
.hero-title {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    font-family:'Conv_Annabelle', Arial, Helvetica, sans-serif;
}
.hero-text {
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
    text-align: left;
}
.hero-text p {
    margin-bottom: 15px;
}
.hero img {
    max-width: 100%;
    border-radius: 16px;
}
.fs_offer{
    display: flex;
    flex-direction: row;
    flex-shrink: 0;
  
}
/* --- Steps --- */
.how {
    padding: 60px 0;
    background: var(--cream);
}
.how h2 {
    text-align: center;
}
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.step {
    text-align: left;
}
.step h3 {
    margin-bottom: 10px;
    height: 50px;
    display: block;
    overflow: hidden;
}
.step p {
    margin-bottom: 15px;
}
.step img, .komplekt_image img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 10px;
    display: block;
}
.komplekt_image{
    width: 450px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

/* --- Order --- */
.order {
    background: var(--beige);
    padding: 60px 0;
}
.order-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}
.order-form {
    flex: 1;
    min-width: 300px;
}
.order-form h3 {
    margin-bottom: 20px;
}
.order-form form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.form-field {
    display: flex;
    flex-direction: column;
}
.form-field label {
    margin-bottom: 5px;
    font-size: 0.9rem;
    font-weight: 500;
}
.form-field-full {
    grid-column: 1 / -1;
}
.order-form input,
.order-form button {
    padding: 10px;
    border: 1px solid var(--brown);
    border-radius: 8px;
}
.order-form button{
    width:100%;
}
.order-form input::placeholder {
    color: var(--beige);
}
.order-form .btn-submit{
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
.order-form .btn-submit:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}
.order-form .btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
/* File drop area */
.file-drop-area {
    border: 2px dashed var(--brown);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
}
.file-drop-area.highlight {
    border-color: var(--brown);
    background: var(--cream);
}
.file-drop-text {
    color: var(--brown);
}
.file-drop-text svg {
    margin-bottom: 10px;
}
.file-drop-text p {
    margin: 10px 0;
}
.file-browse {
    color: var(--brown);
    text-decoration: underline;
    cursor: pointer;
}
.file-name {
    display: none;
    margin-top: 10px;
    font-weight: bold;
    color: var(--brown);
}

.btn-submit {
    background: var(--brown);
    color: var(--white);
    font-weight: bold;
    cursor: pointer;
}
.agree {
    font-size: 0.9rem;
}
.wa-link {
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--brown);
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
    margin: 10px auto 0;
    padding: 0 0 4px 0;
    border-bottom: 1px solid var(--beige);
}
.wa-link:hover {
    border-bottom: 1px solid var(--brown);
}
.wa-link svg {
    width: 20px;
    height: 20px;
    display: inline-block;
}
.order-summary {
    flex: 0 0 250px;
    display: flex;
    align-items: center;
}
.summary-card {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
}

/* --- Subscription & Footer --- */
.subscription, .footer {
    padding: 40px 0;
}
.subscription {
    text-align: left;
}
.subscription h2 {
    text-align: center;
    margin-bottom: 20px;
}
.footer {
    text-align: center;
}
.footer ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}
.footer li {
    margin-bottom: 5px;
}

/* --- Back to top button --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--brown);
    color: var(--cream);
    border: none;
    border-radius: 8px;
    font-size: 24px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.back-to-top:hover {
    background: var(--beige);
    color: var(--brown);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.back-to-top.show {
    display: flex;
}
.footer a, .agree a {
    color: var(--brown);
    text-decoration: none;
}