@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&family=Raleway:wght@400;600;700&display=swap');

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

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: #ffffff;
    color: #000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.page {
    position: relative;
    max-width: 1920px;
    margin: 0 auto;
    overflow: hidden;
}

/* ---------- Header ---------- */
.site-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 30px 152.5px 0;
    min-height: 133.78px;
    position: relative;
    z-index: 10;
}

.site-header__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 100px;
    width: 390px;
    flex-shrink: 0;
}

.brand {
    width: 290px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand__logo {
    width: 290px;
    height: 72.5px;
    background: url('../images/logo.png') no-repeat center/contain;
}

.brand__tagline {
    margin-top: 14px;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 14.4px;
    line-height: 17.28px;
    color: #000;
    text-align: center;
    white-space: nowrap;
}

.site-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    padding-top: 35px;
}

.site-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: flex-start;
}

.site-nav__item {
    padding: 0 15px;
}

.site-nav__link {
    display: block;
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    font-size: 19px;
    line-height: 19px;
    color: #000;
    padding: 18px 0 20px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.site-nav__link:hover,
.site-nav__link.is-active {
    border-bottom-color: #57e4e8;
}

/* ---------- Footer ---------- */
.site-footer {
    position: relative;
    margin: 0 auto;
    padding: 40px 352.5px 0;
    max-width: 1920px;
}

.site-footer__inner {
    position: relative;
    display: grid;
    grid-template-columns: 290px 1fr 340px;
    gap: 20px;
    align-items: start;
    min-height: 295.56px;
}

.site-footer__brand {
    width: 290px;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.site-footer__contact {
    padding-top: 10px;
    width: 183.16px;
    justify-self: center;
}

.site-footer__contact-label {
    font-size: 16px;
    line-height: 19.2px;
    color: #999;
    margin-bottom: 12px;
}

.site-footer__phone {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    color: #2dc1c1;
    padding-top: 12px;
}

.site-footer__hours-small {
    font-size: 12px;
    line-height: 14.4px;
    color: #999;
    margin-top: 18px;
    margin-bottom: 6px;
}

.site-footer__hours {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    color: #2dc1c1;
    padding-top: 12px;
}

.site-footer__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-top: 40px;
    width: 340px;
    justify-self: end;
}

.site-footer__nav {
    list-style: none;
    margin: 0 0 2px;
    padding: 5px 0 2px;
    display: flex;
    gap: 15.2px;
    font-size: 14px;
    line-height: 16.8px;
    color: #888;
}

.site-footer__copyright {
    padding: 18.795px 0 20.395px;
    font-size: 13px;
    line-height: 15.6px;
    color: #888;
    text-align: left;
    width: 100%;
}

.site-footer__copyright p {
    margin: 0;
}

/* ---------- Home page hero ---------- */
.hero {
    position: relative;
    width: 100%;
    height: 737px;
    padding: 220px 360px 97px;
    overflow: hidden;
    margin-top: -133.78px;
}

.hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero__bg img {
    position: absolute;
    top: 0;
    left: -12.5%;
    width: 125%;
    height: 100%;
    object-fit: cover;
}

.hero__content {
    position: relative;
    height: 420px;
}

.hero__title {
    margin: 0;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 58px;
    line-height: 58px;
    color: #000;
    text-align: center;
    white-space: nowrap;
}

.hero__subtitle {
    margin: 0;
    padding-top: 60px;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 48px;
    color: #2dacae;
    text-align: center;
    white-space: nowrap;
}

.hero__cards {
    position: absolute;
    left: 33.39px;
    right: 33.41px;
    top: 166px;
    display: flex;
    gap: 40px;
    justify-content: center;
}

.hero-card {
    position: relative;
    flex: 1 0 0;
    max-width: 560px;
    height: 254px;
    padding-top: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9.5px;
}

.hero-card__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-card__bg img {
    position: absolute;
    top: 3.94%;
    left: 31.48%;
    width: 37.04%;
    height: 96.1%;
    object-fit: cover;
}

.hero-card__button {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: 0 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card__button-text {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 80px;
    color: #2dacae;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    margin: 0;
}

.hero-card__caption {
    position: relative;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    color: #000;
    text-align: center;
    margin: 0;
    white-space: nowrap;
}

/* ---------- Articles page ---------- */
.articles-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2px;
}

.articles-page .site-header {
    width: 1600px;
    padding: 30px 0 0;
    align-self: center;
}

.articles-page .site-header__brand {
    padding-left: 100px;
}

.articles-main {
    width: 1200px;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.articles-title {
    margin: 0;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 50px;
    line-height: 55px;
    color: #2dacae;
    text-align: center;
}

.articles-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.article-item {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.article-item__title {
    margin: 0;
    padding-bottom: 20px;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 30px;
    line-height: 33px;
    color: #57e3e8;
}

.article-item__body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    color: #707070;
}

.article-item__read-more {
    padding-top: 24px;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    color: #2dc1c1;
    text-align: right;
    display: block;
}

/* Articles page footer with background shadow */
.articles-footer {
    position: relative;
    width: 1200px;
    height: 494.36px;
    max-width: 1200px;
    padding: 0;
}

.articles-footer::before {
    content: '';
    position: absolute;
    left: -12.02%;
    top: 68.7%;
    width: 124.04%;
    height: 18.24%;
    background: url('../images/footer-shadow.png') no-repeat center/100% 100%;
    pointer-events: none;
    z-index: 0;
}

.articles-footer .site-footer__inner {
    position: absolute;
    left: 0;
    right: 0;
    top: 238.8px;
    display: grid;
    grid-template-columns: 290px 1fr 340px;
    gap: 20px;
    min-height: auto;
    padding: 0 20px;
}

/* ---------- Subpage (shared with articles layout) ---------- */
.subpage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2px;
}

.subpage .site-header {
    width: 1600px;
    padding: 30px 0 0;
    align-self: center;
}

.subpage .site-header__brand {
    padding-left: 100px;
}

.subpage-main {
    width: 1200px;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.subpage-title {
    margin: 0;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 50px;
    line-height: 55px;
    color: #2dacae;
    text-align: center;
}

.subpage-content {
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
    line-height: 28px;
    color: #707070;
}

.subpage-content h2 {
    margin: 30px 0 20px;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 30px;
    line-height: 33px;
    color: #57e3e8;
}

.subpage-content h3 {
    margin: 24px 0 14px;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 22px;
    line-height: 28px;
    color: #2dacae;
}

.subpage-content p {
    margin: 0 0 16px;
}

.subpage-content ul,
.subpage-content ol {
    margin: 0 0 20px;
    padding-left: 24px;
}

.subpage-content li {
    margin-bottom: 8px;
}

.subpage-content a {
    color: #2dc1c1;
    font-weight: 600;
}

.subpage-content a:hover {
    text-decoration: underline;
}

.subpage-content strong {
    color: #2dacae;
}

.subpage-content hr {
    border: 0;
    border-top: 1px solid #e6e6e6;
    margin: 30px 0;
}

/* Pricing table */
.price-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.price-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 14px 0;
    border-bottom: 1px dashed #d9d9d9;
}

.price-list li:last-child {
    border-bottom: 0;
}

.price-list__label {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #707070;
}

.price-list__value {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #2dc1c1;
    white-space: nowrap;
}

/* Team grid for "O nas" */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 40px;
    margin: 20px 0;
}

.team-card {
    padding: 24px;
    background: #fafafa;
    border-radius: 12px;
}

.team-card h3 {
    margin-top: 0;
}

.team-card p {
    font-size: 18px;
    line-height: 26px;
    margin: 0;
}

/* Contact page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 10px;
}

.contact-info {
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
    line-height: 28px;
    color: #707070;
}

.contact-info h2 {
    margin-top: 0;
}

.contact-info p {
    margin: 0 0 14px;
}

.contact-info a {
    color: #2dc1c1;
    font-weight: 700;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #2dacae;
}

.contact-form input,
.contact-form textarea {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    color: #333;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    padding: 12px 14px;
    outline: none;
    background: #fff;
    transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #2dacae;
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form button {
    align-self: flex-start;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #fff;
    background: #2dacae;
    border: 0;
    border-radius: 30px;
    padding: 14px 38px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.2s ease;
}

.contact-form button:hover {
    background: #2dc1c1;
}

/* Sitemap list */
.sitemap-list {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: 40px;
    font-size: 20px;
    line-height: 32px;
}

.sitemap-list a {
    color: #2dc1c1;
    font-weight: 600;
}

.sitemap-list a:hover {
    text-decoration: underline;
}

.articles-footer .site-footer__meta {
    position: absolute;
    top: 359.18px;
    right: 0;
}
