/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #ffffff;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
    /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    white-space: inherit;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
    content: "";
    display: table;
}

.clearfix::after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *::before,
    *::after {
        background: #fff !important;
        color: #000 !important;
        /* Black prints faster */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }

    abbr[title]::after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */
    a[href^="#"]::after,
    a[href^="javascript:"]::after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}


body, header {
    background: rgba(5, 15, 44, 1) !important;
    font-family: "Montserrat Alternates", sans-serif !important;
}

body.no-scroll {
    overflow: hidden;
}

.content {
    max-width: 1170px;
    margin: 0 auto;
}

nav a {
    color: white;
    text-decoration: none;
    text-underline: none;
    margin-right: 30px;
}

header {
    padding: 25px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    font-size: 24px;
}

.nav-links {
    margin: 0;
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links li a {
    text-decoration: none;
    color: white;
    font-size: 18px;
}

.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    height: 21px;
}

.burger div {
    width: 30px;
    height: 3px;
    background-color: white;
    border-radius: 5px;
    transition: all 0.3s ease;
}


.close-nav-btn {
    display: none;
}

/* Стили для мобильных устройств */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        height: 100vh;
        top: 0;
        background: rgba(5, 15, 44, 1);
        border-radius: 12px 0 0 12px;
        border-left: 1px solid white;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 80%;
        transform: translateX(100%);
        transition: transform 0.3s ease-in;
    }

    .close-nav-btn {
        display: block;
        position: absolute;
        top: 6px;
        right: 28px;
        font-size: 40px;
        color: white;
        cursor: pointer;
    }

    .nav-links.active {
        transform: translateX(0%);
    }

    .nav-links li {
        margin: 20px 0;
    }

    .burger {
        display: flex;
    }
}

.row {
    margin: 0 !important;
}

.logo {
    width: 160px;
    height: 20px;
}

section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header__contact a {
    color: white !important;
    text-underline: none !important;
}

.home {
    background-image: url("../img/background.svg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
    min-height: 600px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home__logo {
    /*margin-bottom: 160px;*/
}

.home__logo h2 {
    font-size: 40px;
}

.home__logo img {
    height: 70px;
    margin-bottom: 50px;
}

.stats h3 {
    font-weight: 500;
    font-size: 40px;
}

.about {
    color: white;
    padding-top: 70px;
    padding-bottom: 90px;
}

.about__container {
    position: relative;
}

.about h2 {
    font-weight: 500;
    font-size: 50px;
}

.about__desc {
    font-size: 24px;
    width: 65%;
}

.about__lang {
    overflow-y: scroll;
    height: 110%;
    position: absolute;
    top: -10px;
    right: 100px;
    font-size: 18px;
}

.about__lang::-webkit-scrollbar {
    display: none; /* Chrome, Safari и другие браузеры на основе WebKit */
}

.dark_red {
    color: rgb(255, 108, 95);
}

.blue {
    color: rgb(255, 0, 0);
}

.red {
    color: rgba(247, 37, 107, 1);
}

.orange {
    color: rgba(255, 108, 95, 1);
}

.purp {
    color: rgb(255, 0, 205);
}

.dark_blue {
    color: rgb(74, 58, 255);
}

.cases {
    color: white;
    padding: 50px 0;
}

.button {
    margin: 76px auto 0;
}

.button:disabled {
    background: lightgrey;
}

.button button {
    border-radius: 24px;
    padding: 10px 30px;
    color: white;
    font-size: 24px;
    background: rgba(114, 9, 183, 1);
    width: 345px;
    height: 77px;
    border: none;
    outline: none;
}

.cases h2 {
    font-size: 50px;
    font-weight: 500;
    margin-bottom: 50px;
}

.cases p {
    font-size: 24px;
    line-height: 29.26px;
    margin-bottom: 70px;
}

.why {
    color: white;
    padding: 70px 0;
}

.why h2 {
    font-size: 50px;
    font-weight: 500;
    margin-bottom: 30px;
}

.why__info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
}

.why__info--item {
    border-radius: 24px;
    padding: 40px 30px;
    background: rgba(153, 78, 203, 1);
    height: 350px;
    width: 350px;
    margin-bottom: 18px;
    font-weight: 500;
}

.why__info--item h4 {
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 30px;
}

.why__info--item span {
    font-size: 16px;
    line-height: 20px;
}

.projects {
    color: white;
    padding: 50px 0 80px;
}

.projects .flickity-viewport {
    overflow: visible;
}

.projects h2 {
    font-size: 50px;
    font-weight: 500;
    margin-bottom: 48px;
}

.work {
    background: white;
    padding-top: 50px;
}

.work__desc {
    font-size: 24px;
    width: 65%;
    margin-bottom: 56px;
}

.work__container {
    border-radius: 24px;
    border: 1px solid rgba(153, 78, 203, 1);
    padding-top: 90px;
    padding-bottom: 50px;
    margin-bottom: 70px;
}

.work__container h2 {
    color: black;
    font-size: 50px;
    font-weight: 500;
}

.work__container div {
    font-size: 24px;
    font-weight: 500;
    color: black;
    width: 65%;
}

.work__container div span {
    color: rgba(114, 9, 183, 1);
}

.work__container .button {
    text-align: center;
}

.work__container .button button {
    width: 380px;
}

.work__form {
    margin-bottom: 55px;
    padding-top: 70px;
}

.work__form h2 {
    font-size: 50px;
    font-weight: 500;
    margin-bottom: 64px;
}

.work__form form {
    background: rgba(114, 9, 183, 1);
    border-radius: 24px;
    padding: 60px 100px 80px;
}

.work__form form p {
    font-size: 24px;
    color: rgba(255, 255, 255, 1);
    font-weight: 400;
    margin-bottom: 46px;
}

.work__form input {
    background: rgba(244, 235, 249, 0.3);
    border: 1px solid rgba(244, 235, 249, 1);
    border-radius: 24px;
    padding: 15px 0 15px 40px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 1);
    width: 49%;
}

.work__form--form {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.work__form--form div {
    display: flex;
    justify-content: space-between;
}

.work__form input::placeholder {
    color: rgba(255, 255, 255, 1);
    font-size: 16px;
}

.work__form textarea {
    width: 100%;
    background: rgba(244, 235, 249, 0.3);
    border: 1px solid rgba(244, 235, 249, 1);
    border-radius: 24px;
    height: 150px;
    color: rgba(255, 255, 255, 1);
    padding: 15px 0 15px 40px;
}

.work__form textarea::placeholder {
    color: rgba(255, 255, 255, 1);
    font-size: 16px;
}

.work__form--actions {
    margin: 55px auto 0;
}

.work__form--actions div {
    justify-content: center !important;
    flex-wrap: wrap;
}

.work__form--actions button {
    box-shadow: 2px 2px 30px 0px rgba(244, 235, 249, 1);
    border: 1px solid rgba(153, 78, 203, 1);
    background: rgba(114, 9, 183, 1);
    border-radius: 24px;
    font-size: 24px;
    color: rgba(255, 255, 255, 1);
    padding: 24px 180px;
}

footer {
    background: white;
    padding-bottom: 50px;
}

footer .container {
    padding-left: 100px;
}

footer .container img {
    margin-bottom: 15px;
}

footer .container p {
    font-size: 16px;
    color: rgba(0, 0, 0, 1);
}

.gallery{
    overflow: hidden;
}

.gallery-cell {
    width: 66%;
    height: 500px;
    margin-right: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flickity-button {
    display: none !important;
}

.flickity-viewport {
    /*height: 400px !important;*/
}

.dot {
    background: white !important;
}

.fullscreen-container {
    display: none;
}

/* Адаптивные стили */
@media (max-width: 1200px) {
    header .row {
        flex-direction: column;
    }

    .gallery-cell {
        left: -60px;
        width: 100%;
        height: 230px !important;
    }

    .gallery-cell img {
        height: 100%;
        width: 100%;
    }

    h2 {
        font-size: 30px !important;
    }

    .button button {
        font-size: 20px;
        padding: 10px 20px;
        width: 300px;
        height: 60px;
    }

    .content {
        max-width: 960px;
    }

    .logo {
        width: 140px;
        height: 18px;
    }

    .cases p {
        font-size: 20px;
    }

    .about__desc {
        font-size: 20px;
    }

    .about__lang {
        right: 70px;
    }

    .work__desc {
        font-size: 20px;
    }

    .work__info {
        font-size: 20px !important;
        width: 80% !important;
    }

    .work__form--actions button {
        padding: 18px 100px;
    }

    footer {
        padding-top: 40px;
    }

    .projects .flickity-viewport {
        overflow: hidden;
    }
}

@media (max-width: 768px) {

    .clickable-image {
        width: 200px;
        cursor: pointer;
    }

    .fullscreen-container {
        display: none; /* Скрыто по умолчанию */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9); /* Тёмный фон */
        justify-content: center;
        align-items: center;
        z-index: 9999;
    }

    .fullscreen-image {
        max-width: 90%;
        max-height: 90%;
    }

    .close-btn {
        position: absolute;
        top: 20px;
        right: 30px;
        font-size: 40px;
        color: white;
        cursor: pointer;
    }

    .home__logo img {
        height: 50px;
    }

    header .row {
        flex-direction: column;
    }

    h2 {
        font-size: 20px !important;
    }

    .button button {
        font-size: 16px;
        padding: 10px 20px;
        width: 300px;
        height: 60px;
    }

    .content {
        max-width: 960px;
    }

    .logo {
        width: 140px;
        height: 18px;
    }

    .cases p {
        font-size: 16px;
    }

    .about__desc {
        font-size: 16px;
    }

    .about__lang {
        right: 50px;
        font-size: 20px;
    }

    .why__info--item {
        width: 100%;
        height: auto;
    }

    .work__desc {
        font-size: 16px;
        width: 100%;
    }

    .work__info {
        font-size: 16px !important;
        width: 80% !important;
    }

    .work__container div {
        width: 100%;
    }

    .work__form form {
        padding: 40px;
    }

    .work__form--actions button {
        padding: 18px 100px;
        font-size: 16px;
    }

    footer .container {
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    footer {
        padding-top: 40px;
    }
}

@media (max-width: 576px) {
    .home__logo img {
        height: 40px;
    }

    header .row {
        flex-direction: column;
    }

    header nav a {
        margin-right: 20px;
    }

    h2, h4 {
        font-size: 16px !important;
    }

    .button button {
        font-size: 14px;
        padding: 10px 20px;
        width: 300px;
        height: 60px;
    }

    .content {
        max-width: 420px;
    }

    .logo {
        width: 140px;
        height: 18px;
    }

    .cases p {
        font-size: 14px;
    }

    .about__desc {
        font-size: 14px;
        width: 100%;
    }

    .about__lang {
        display: none;
        right: 10px;
        font-size: 18px;
    }

    .why__info--item {
        width: 100%;
        font-size: 14px;
    }

    .work__desc {
        font-size: 14px;
    }

    .work__container .button button {
        width: 240px;
    }

    .work__info {
        font-size: 14px !important;
        width: 80% !important;
    }

    .work__container div {
        width: 100%;
    }

    .work__form form {
        padding: 40px;
    }

    .work__form--actions button {
        padding: 18px 60px;
        font-size: 14px;
    }

    .work__form--form div {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .work__form--form input {
        width: 100%;
    }

    footer .container {
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    footer {
        padding-top: 40px;
    }
}

@media (max-width: 375px) {
    .home__logo img {
        height: 30px;
    }

    header .row {
        flex-direction: column;
    }

    h2, h4 {
        font-size: 16px !important;
    }

    .button button {
        font-size: 14px;
        padding: 10px 20px;
        width: 300px;
        height: 60px;
    }

    .content {
        max-width: 420px;
    }

    .logo {
        width: 140px;
        height: 18px;
    }

    .cases p {
        font-size: 14px;
    }

    .about__desc {
        font-size: 14px;
        width: 100%;
    }

    .about__lang {
        display: none;
        right: 10px;
        font-size: 18px;
    }

    .why__info--item {
        width: 100%;
        font-size: 14px;
    }

    .work__desc {
        font-size: 14px;
    }

    .work__container .button button {
        width: 240px;
    }

    .work__info {
        font-size: 14px !important;
        width: 80% !important;
    }

    .work__container div {
        width: 100%;
    }

    .work__form form {
        padding: 40px;
    }

    .work__form--actions button {
        padding: 18px 60px;
        font-size: 14px;
    }

    .work__form--form div {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .work__form--form input {
        width: 100%;
    }

    footer .container {
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    footer {
        padding-top: 40px;
    }
}
