/* RB Lombard - Main Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.screen {
    padding: 60px 0;
}

/* Header */
#header, #header-mobile {
    background: #2c3e50;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#header-mobile {
    display: none;
}

#header .content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#header .logo img {
    max-width: 100%;
    height: auto;
}

#header .descriptor {
    font-size: 14px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#header .phone {
    color: #fff;
}

#header .phone dt {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

#header .phone dd {
    font-size: 14px;
    color: #3498db;
    cursor: pointer;
    transition: color 0.3s;
}

#header .phone dd:hover {
    color: #2980b9;
}

.nav-toggle-button {
    display: none;
}

/* Main Section */
#main {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 150px 0 100px;
    text-align: center;
}

#main h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 30px;
}

#main .list {
    list-style: none;
    margin: 30px 0;
    font-size: 20px;
}

#main .list li {
    margin: 10px 0;
}

/* Form */
.form-container {
    max-width: 500px;
    margin: 40px auto;
    background: rgba(255,255,255,0.95);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.textfield {
    margin-bottom: 20px;
}

.textfield-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.textfield-input:focus {
    outline: none;
    border-color: #3498db;
}

.button-container {
    margin-top: 30px;
}

.blue-button, .orange-button {
    width: 100%;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.blue-button {
    background: #3498db;
    color: #fff;
}

.blue-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52,152,219,0.3);
}

.orange-button {
    background: #e67e22;
    color: #fff;
}

.orange-button:hover {
    background: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230,126,34,0.3);
}

.blue-border-button {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.blue-border-button:hover {
    background: #3498db;
    color: #fff;
}

.security {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #7f8c8d;
}

/* Benefits */
#benefits-6x, #benefits-8x {
    background: #f8f9fa;
    text-align: center;
}

#benefits-8x-mobile {
    display: none;
}

#benefits-6x h2, #benefits-8x h2 {
    font-size: 42px;
    margin-bottom: 50px;
    color: #2c3e50;
}

#benefits-6x ul, #benefits-8x ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
}

#benefits-6x li {
    width: calc(33.333% - 20px);
    margin: 10px;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#benefits-8x li {
    width: calc(50% - 20px);
    margin: 10px;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#benefits-6x li span, #benefits-8x li span {
    display: block;
    font-size: 18px;
    color: #2c3e50;
}

#benefits-8x dt {
    font-size: 36px;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 10px;
}

/* Calculator */
#calculator {
    background: #fff;
    padding: 60px 0;
}

#calculator h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 50px;
    color: #2c3e50;
}

#calculator .head {
    margin-bottom: 40px;
}

#calculator .label {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

#calculator table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

#calculator table th, #calculator table td {
    padding: 15px;
    text-align: center;
    border: 1px solid #ddd;
}

#calculator table thead {
    background: #3498db;
    color: #fff;
}

.range input[type="range"] {
    width: 100%;
    margin: 20px 0;
}

.price-range {
    width: 100%;
}

.price-range td {
    border: none;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    color: #7f8c8d;
}

/* Terms */
#terms {
    background: #ecf0f1;
    text-align: center;
}

#terms h2 {
    font-size: 42px;
    margin-bottom: 30px;
    color: #2c3e50;
}

#terms .list {
    list-style: none;
    max-width: 600px;
    margin: 30px auto;
    text-align: left;
}

#terms .list li {
    padding: 15px 15px 15px 40px;
    margin: 10px 0;
    background: #fff;
    border-radius: 5px;
    position: relative;
}

#terms .list li:before {
    content: "✓";
    position: absolute;
    left: 15px;
    color: #27ae60;
    font-size: 20px;
    font-weight: 700;
}

/* Purposes */
#purposes {
    background: #fff;
    text-align: center;
}

#purposes h2 {
    font-size: 42px;
    margin-bottom: 50px;
    color: #2c3e50;
}

#purposes ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

#purposes ul.m {
    display: none;
}

#purposes li {
    width: calc(33.333% - 20px);
    margin: 10px;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

#purposes li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

#purposes .title {
    display: block;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
}

.orange-button-2 {
    display: inline-block;
    padding: 12px 30px;
    background: #e67e22;
    color: #fff;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
}

.orange-button-2:hover {
    background: #d35400;
}

/* Text Section */
#text {
    background: #f8f9fa;
    padding: 60px 0;
}

#text h2 {
    font-size: 42px;
    margin-bottom: 30px;
    color: #2c3e50;
    text-align: center;
}

#text h3 {
    font-size: 28px;
    margin: 30px 0 15px;
    color: #2c3e50;
}

#text p {
    margin: 15px 0;
    line-height: 1.8;
}

#text ul {
    margin: 15px 0 15px 30px;
}

#text ul li {
    margin: 10px 0;
    line-height: 1.6;
}

/* Map */
#map {
    background: #fff;
    text-align: center;
    padding: 60px 0;
}

#map h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #2c3e50;
}

#map .descriptor {
    font-size: 18px;
    color: #7f8c8d;
    margin-bottom: 40px;
}

#map .map {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

#map .map img {
    width: 100%;
    height: auto;
}

#map .map ul {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    list-style: none;
}

#map .map li {
    position: absolute;
}

#map .map a {
    display: block;
    padding: 8px 15px;
    background: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s;
}

#map .map a:hover {
    background: #2980b9;
    transform: scale(1.05);
}

/* Questions */
#questions {
    background: #3498db;
    color: #fff;
    text-align: center;
    padding: 60px 0;
}

#questions h2 {
    font-size: 42px;
    margin-bottom: 30px;
}

#questions p span {
    display: block;
    margin: 10px 0;
    font-size: 18px;
}

#questions p span:last-child {
    font-size: 32px;
    font-weight: 700;
    margin-top: 20px;
}

/* Callback */
#callback {
    background: #f8f9fa;
    padding: 60px 0;
}

#callback .content {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

#callback h3 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    color: #2c3e50;
}

#callback ul {
    list-style: none;
}

/* Footer */
#footer {
    background: #2c3e50;
    color: #fff;
    padding: 40px 0 20px;
}

#footer .content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

#footer .descriptor {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#footer .requisites {
    text-align: center;
    font-size: 12px;
    color: #95a5a6;
    padding: 20px 0;
    border-top: 1px solid #34495e;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
}

.modal.fade.in {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal-dialog {
    max-width: 500px;
    width: 90%;
}

.modal-content {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.modal-body {
    padding: 40px;
    position: relative;
}

.modal .close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 30px;
    color: #95a5a6;
}

.modal .close:before {
    content: "×";
}

.modal .head h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.modal .head p {
    margin-bottom: 30px;
    color: #7f8c8d;
}

.big-success {
    width: 80px;
    height: 80px;
    margin: 20px auto;
    border: 3px solid #27ae60;
    border-radius: 50%;
    position: relative;
}

.big-success:after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: #27ae60;
}

/* Navigation */
#navigation {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9998;
}

#navigation.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

#navigation ul {
    list-style: none;
    text-align: center;
}

#navigation li {
    margin: 20px 0;
}

#navigation span {
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s;
}

#navigation span:hover {
    color: #3498db;
}

#close-nav {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

#close-nav:before,
#close-nav:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #fff;
}

#close-nav:before {
    transform: rotate(45deg);
}

#close-nav:after {
    transform: rotate(-45deg);
}

.strut {
    flex: 1;
}

.hidden_input {
    display: none;
}

.scroll {
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    #header {
        display: none;
    }

    #header-mobile {
        display: block;
    }

    .nav-toggle-button {
        display: block;
        width: 30px;
        height: 25px;
        position: relative;
        cursor: pointer;
    }

    .nav-toggle-button:before,
    .nav-toggle-button:after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        height: 3px;
        background: #fff;
    }

    .nav-toggle-button:before {
        top: 0;
    }

    .nav-toggle-button:after {
        bottom: 0;
    }

    #main h1 {
        font-size: 32px;
    }

    #main .list {
        font-size: 16px;
    }

    #benefits-6x li {
        width: 100%;
    }

    #benefits-8x {
        display: none;
    }

    #benefits-8x-mobile {
        display: block;
        background: #f8f9fa;
    }

    #benefits-8x-mobile li {
        width: 100%;
    }

    #purposes ul.d {
        display: none;
    }

    #purposes ul.m {
        display: flex;
        flex-direction: column;
    }

    #purposes li {
        width: 100%;
    }

    h2 {
        font-size: 28px !important;
    }
}
